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

com.pulumi.azurenative.servicenetworking.AssociationsInterfaceArgs Maven / Gradle / Ivy

// *** 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.servicenetworking;

import com.pulumi.azurenative.servicenetworking.enums.AssociationType;
import com.pulumi.azurenative.servicenetworking.inputs.AssociationSubnetArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AssociationsInterfaceArgs Empty = new AssociationsInterfaceArgs();

    /**
     * Name of Association
     * 
     */
    @Import(name="associationName")
    private @Nullable Output associationName;

    /**
     * @return Name of Association
     * 
     */
    public Optional> associationName() {
        return Optional.ofNullable(this.associationName);
    }

    /**
     * Association Type
     * 
     */
    @Import(name="associationType", required=true)
    private Output> associationType;

    /**
     * @return Association Type
     * 
     */
    public Output> associationType() {
        return this.associationType;
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

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

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

    /**
     * Association Subnet
     * 
     */
    @Import(name="subnet")
    private @Nullable Output subnet;

    /**
     * @return Association Subnet
     * 
     */
    public Optional> subnet() {
        return Optional.ofNullable(this.subnet);
    }

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

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

    /**
     * traffic controller name for path
     * 
     */
    @Import(name="trafficControllerName", required=true)
    private Output trafficControllerName;

    /**
     * @return traffic controller name for path
     * 
     */
    public Output trafficControllerName() {
        return this.trafficControllerName;
    }

    private AssociationsInterfaceArgs() {}

    private AssociationsInterfaceArgs(AssociationsInterfaceArgs $) {
        this.associationName = $.associationName;
        this.associationType = $.associationType;
        this.location = $.location;
        this.resourceGroupName = $.resourceGroupName;
        this.subnet = $.subnet;
        this.tags = $.tags;
        this.trafficControllerName = $.trafficControllerName;
    }

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

    public static final class Builder {
        private AssociationsInterfaceArgs $;

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

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

        /**
         * @param associationName Name of Association
         * 
         * @return builder
         * 
         */
        public Builder associationName(@Nullable Output associationName) {
            $.associationName = associationName;
            return this;
        }

        /**
         * @param associationName Name of Association
         * 
         * @return builder
         * 
         */
        public Builder associationName(String associationName) {
            return associationName(Output.of(associationName));
        }

        /**
         * @param associationType Association Type
         * 
         * @return builder
         * 
         */
        public Builder associationType(Output> associationType) {
            $.associationType = associationType;
            return this;
        }

        /**
         * @param associationType Association Type
         * 
         * @return builder
         * 
         */
        public Builder associationType(Either associationType) {
            return associationType(Output.of(associationType));
        }

        /**
         * @param associationType Association Type
         * 
         * @return builder
         * 
         */
        public Builder associationType(String associationType) {
            return associationType(Either.ofLeft(associationType));
        }

        /**
         * @param associationType Association Type
         * 
         * @return builder
         * 
         */
        public Builder associationType(AssociationType associationType) {
            return associationType(Either.ofRight(associationType));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

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

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

        /**
         * @param subnet Association Subnet
         * 
         * @return builder
         * 
         */
        public Builder subnet(@Nullable Output subnet) {
            $.subnet = subnet;
            return this;
        }

        /**
         * @param subnet Association Subnet
         * 
         * @return builder
         * 
         */
        public Builder subnet(AssociationSubnetArgs subnet) {
            return subnet(Output.of(subnet));
        }

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

        /**
         * @param trafficControllerName traffic controller name for path
         * 
         * @return builder
         * 
         */
        public Builder trafficControllerName(Output trafficControllerName) {
            $.trafficControllerName = trafficControllerName;
            return this;
        }

        /**
         * @param trafficControllerName traffic controller name for path
         * 
         * @return builder
         * 
         */
        public Builder trafficControllerName(String trafficControllerName) {
            return trafficControllerName(Output.of(trafficControllerName));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy