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

com.pulumi.azurenative.network.DscpConfigurationArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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;

import com.pulumi.azurenative.network.enums.ProtocolType;
import com.pulumi.azurenative.network.inputs.QosDefinitionArgs;
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 com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class DscpConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final DscpConfigurationArgs Empty = new DscpConfigurationArgs();

    /**
     * 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);
    }

    /**
     * The name of the resource.
     * 
     */
    @Import(name="dscpConfigurationName")
    private @Nullable Output dscpConfigurationName;

    /**
     * @return The name of the resource.
     * 
     */
    public Optional> dscpConfigurationName() {
        return Optional.ofNullable(this.dscpConfigurationName);
    }

    /**
     * Resource ID.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return Resource ID.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * Resource location.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Resource location.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * 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);
    }

    /**
     * QoS object definitions
     * 
     */
    @Import(name="qosDefinitionCollection")
    private @Nullable Output> qosDefinitionCollection;

    /**
     * @return QoS object definitions
     * 
     */
    public Optional>> qosDefinitionCollection() {
        return Optional.ofNullable(this.qosDefinitionCollection);
    }

    /**
     * The name of the resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * 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);
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private DscpConfigurationArgs() {}

    private DscpConfigurationArgs(DscpConfigurationArgs $) {
        this.destinationIpRanges = $.destinationIpRanges;
        this.destinationPortRanges = $.destinationPortRanges;
        this.dscpConfigurationName = $.dscpConfigurationName;
        this.id = $.id;
        this.location = $.location;
        this.markings = $.markings;
        this.protocol = $.protocol;
        this.qosDefinitionCollection = $.qosDefinitionCollection;
        this.resourceGroupName = $.resourceGroupName;
        this.sourceIpRanges = $.sourceIpRanges;
        this.sourcePortRanges = $.sourcePortRanges;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private DscpConfigurationArgs $;

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

        public Builder(DscpConfigurationArgs defaults) {
            $ = new DscpConfigurationArgs(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 dscpConfigurationName The name of the resource.
         * 
         * @return builder
         * 
         */
        public Builder dscpConfigurationName(@Nullable Output dscpConfigurationName) {
            $.dscpConfigurationName = dscpConfigurationName;
            return this;
        }

        /**
         * @param dscpConfigurationName The name of the resource.
         * 
         * @return builder
         * 
         */
        public Builder dscpConfigurationName(String dscpConfigurationName) {
            return dscpConfigurationName(Output.of(dscpConfigurationName));
        }

        /**
         * @param id Resource ID.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id Resource ID.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @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 qosDefinitionCollection QoS object definitions
         * 
         * @return builder
         * 
         */
        public Builder qosDefinitionCollection(@Nullable Output> qosDefinitionCollection) {
            $.qosDefinitionCollection = qosDefinitionCollection;
            return this;
        }

        /**
         * @param qosDefinitionCollection QoS object definitions
         * 
         * @return builder
         * 
         */
        public Builder qosDefinitionCollection(List qosDefinitionCollection) {
            return qosDefinitionCollection(Output.of(qosDefinitionCollection));
        }

        /**
         * @param qosDefinitionCollection QoS object definitions
         * 
         * @return builder
         * 
         */
        public Builder qosDefinitionCollection(QosDefinitionArgs... qosDefinitionCollection) {
            return qosDefinitionCollection(List.of(qosDefinitionCollection));
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @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));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public DscpConfigurationArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("DscpConfigurationArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy