All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.network.inputs.QosDefinitionArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.network.inputs;

import com.pulumi.azurenative.network.enums.ProtocolType;
import com.pulumi.azurenative.network.inputs.QosIpRangeArgs;
import com.pulumi.azurenative.network.inputs.QosPortRangeArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Quality of Service defines the traffic configuration between endpoints. Mandatory to have one marking.
 * 
 */
public final class QosDefinitionArgs extends com.pulumi.resources.ResourceArgs {

    public static final QosDefinitionArgs Empty = new QosDefinitionArgs();

    /**
     * Destination IP ranges.
     * 
     */
    @Import(name="destinationIpRanges")
    private @Nullable Output> destinationIpRanges;

    /**
     * @return Destination IP ranges.
     * 
     */
    public Optional>> destinationIpRanges() {
        return Optional.ofNullable(this.destinationIpRanges);
    }

    /**
     * Destination port ranges.
     * 
     */
    @Import(name="destinationPortRanges")
    private @Nullable Output> destinationPortRanges;

    /**
     * @return Destination port ranges.
     * 
     */
    public Optional>> destinationPortRanges() {
        return Optional.ofNullable(this.destinationPortRanges);
    }

    /**
     * List of markings to be used in the configuration.
     * 
     */
    @Import(name="markings")
    private @Nullable Output> markings;

    /**
     * @return List of markings to be used in the configuration.
     * 
     */
    public Optional>> markings() {
        return Optional.ofNullable(this.markings);
    }

    /**
     * RNM supported protocol types.
     * 
     */
    @Import(name="protocol")
    private @Nullable Output> protocol;

    /**
     * @return RNM supported protocol types.
     * 
     */
    public Optional>> protocol() {
        return Optional.ofNullable(this.protocol);
    }

    /**
     * Source IP ranges.
     * 
     */
    @Import(name="sourceIpRanges")
    private @Nullable Output> sourceIpRanges;

    /**
     * @return Source IP ranges.
     * 
     */
    public Optional>> sourceIpRanges() {
        return Optional.ofNullable(this.sourceIpRanges);
    }

    /**
     * Sources port ranges.
     * 
     */
    @Import(name="sourcePortRanges")
    private @Nullable Output> sourcePortRanges;

    /**
     * @return Sources port ranges.
     * 
     */
    public Optional>> sourcePortRanges() {
        return Optional.ofNullable(this.sourcePortRanges);
    }

    private QosDefinitionArgs() {}

    private QosDefinitionArgs(QosDefinitionArgs $) {
        this.destinationIpRanges = $.destinationIpRanges;
        this.destinationPortRanges = $.destinationPortRanges;
        this.markings = $.markings;
        this.protocol = $.protocol;
        this.sourceIpRanges = $.sourceIpRanges;
        this.sourcePortRanges = $.sourcePortRanges;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(QosDefinitionArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private QosDefinitionArgs $;

        public Builder() {
            $ = new QosDefinitionArgs();
        }

        public Builder(QosDefinitionArgs defaults) {
            $ = new QosDefinitionArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param destinationIpRanges Destination IP ranges.
         * 
         * @return builder
         * 
         */
        public Builder destinationIpRanges(@Nullable Output> destinationIpRanges) {
            $.destinationIpRanges = destinationIpRanges;
            return this;
        }

        /**
         * @param destinationIpRanges Destination IP ranges.
         * 
         * @return builder
         * 
         */
        public Builder destinationIpRanges(List destinationIpRanges) {
            return destinationIpRanges(Output.of(destinationIpRanges));
        }

        /**
         * @param destinationIpRanges Destination IP ranges.
         * 
         * @return builder
         * 
         */
        public Builder destinationIpRanges(QosIpRangeArgs... destinationIpRanges) {
            return destinationIpRanges(List.of(destinationIpRanges));
        }

        /**
         * @param destinationPortRanges Destination port ranges.
         * 
         * @return builder
         * 
         */
        public Builder destinationPortRanges(@Nullable Output> destinationPortRanges) {
            $.destinationPortRanges = destinationPortRanges;
            return this;
        }

        /**
         * @param destinationPortRanges Destination port ranges.
         * 
         * @return builder
         * 
         */
        public Builder destinationPortRanges(List destinationPortRanges) {
            return destinationPortRanges(Output.of(destinationPortRanges));
        }

        /**
         * @param destinationPortRanges Destination port ranges.
         * 
         * @return builder
         * 
         */
        public Builder destinationPortRanges(QosPortRangeArgs... destinationPortRanges) {
            return destinationPortRanges(List.of(destinationPortRanges));
        }

        /**
         * @param markings List of markings to be used in the configuration.
         * 
         * @return builder
         * 
         */
        public Builder markings(@Nullable Output> markings) {
            $.markings = markings;
            return this;
        }

        /**
         * @param markings List of markings to be used in the configuration.
         * 
         * @return builder
         * 
         */
        public Builder markings(List markings) {
            return markings(Output.of(markings));
        }

        /**
         * @param markings List of markings to be used in the configuration.
         * 
         * @return builder
         * 
         */
        public Builder markings(Integer... markings) {
            return markings(List.of(markings));
        }

        /**
         * @param protocol RNM supported protocol types.
         * 
         * @return builder
         * 
         */
        public Builder protocol(@Nullable Output> protocol) {
            $.protocol = protocol;
            return this;
        }

        /**
         * @param protocol RNM supported protocol types.
         * 
         * @return builder
         * 
         */
        public Builder protocol(Either protocol) {
            return protocol(Output.of(protocol));
        }

        /**
         * @param protocol RNM supported protocol types.
         * 
         * @return builder
         * 
         */
        public Builder protocol(String protocol) {
            return protocol(Either.ofLeft(protocol));
        }

        /**
         * @param protocol RNM supported protocol types.
         * 
         * @return builder
         * 
         */
        public Builder protocol(ProtocolType protocol) {
            return protocol(Either.ofRight(protocol));
        }

        /**
         * @param sourceIpRanges Source IP ranges.
         * 
         * @return builder
         * 
         */
        public Builder sourceIpRanges(@Nullable Output> sourceIpRanges) {
            $.sourceIpRanges = sourceIpRanges;
            return this;
        }

        /**
         * @param sourceIpRanges Source IP ranges.
         * 
         * @return builder
         * 
         */
        public Builder sourceIpRanges(List sourceIpRanges) {
            return sourceIpRanges(Output.of(sourceIpRanges));
        }

        /**
         * @param sourceIpRanges Source IP ranges.
         * 
         * @return builder
         * 
         */
        public Builder sourceIpRanges(QosIpRangeArgs... sourceIpRanges) {
            return sourceIpRanges(List.of(sourceIpRanges));
        }

        /**
         * @param sourcePortRanges Sources port ranges.
         * 
         * @return builder
         * 
         */
        public Builder sourcePortRanges(@Nullable Output> sourcePortRanges) {
            $.sourcePortRanges = sourcePortRanges;
            return this;
        }

        /**
         * @param sourcePortRanges Sources port ranges.
         * 
         * @return builder
         * 
         */
        public Builder sourcePortRanges(List sourcePortRanges) {
            return sourcePortRanges(Output.of(sourcePortRanges));
        }

        /**
         * @param sourcePortRanges Sources port ranges.
         * 
         * @return builder
         * 
         */
        public Builder sourcePortRanges(QosPortRangeArgs... sourcePortRanges) {
            return sourcePortRanges(List.of(sourcePortRanges));
        }

        public QosDefinitionArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy