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

com.pulumi.azurenative.network.ExpressRouteGatewayArgs 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.inputs.ExpressRouteConnectionArgs;
import com.pulumi.azurenative.network.inputs.ExpressRouteGatewayPropertiesAutoScaleConfigurationArgs;
import com.pulumi.azurenative.network.inputs.VirtualHubIdArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
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 ExpressRouteGatewayArgs extends com.pulumi.resources.ResourceArgs {

    public static final ExpressRouteGatewayArgs Empty = new ExpressRouteGatewayArgs();

    /**
     * Configures this gateway to accept traffic from non Virtual WAN networks.
     * 
     */
    @Import(name="allowNonVirtualWanTraffic")
    private @Nullable Output allowNonVirtualWanTraffic;

    /**
     * @return Configures this gateway to accept traffic from non Virtual WAN networks.
     * 
     */
    public Optional> allowNonVirtualWanTraffic() {
        return Optional.ofNullable(this.allowNonVirtualWanTraffic);
    }

    /**
     * Configuration for auto scaling.
     * 
     */
    @Import(name="autoScaleConfiguration")
    private @Nullable Output autoScaleConfiguration;

    /**
     * @return Configuration for auto scaling.
     * 
     */
    public Optional> autoScaleConfiguration() {
        return Optional.ofNullable(this.autoScaleConfiguration);
    }

    /**
     * List of ExpressRoute connections to the ExpressRoute gateway.
     * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
     * 
     */
    @Import(name="expressRouteConnections")
    private @Nullable Output> expressRouteConnections;

    /**
     * @return List of ExpressRoute connections to the ExpressRoute gateway.
     * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
     * 
     */
    public Optional>> expressRouteConnections() {
        return Optional.ofNullable(this.expressRouteConnections);
    }

    /**
     * The name of the ExpressRoute gateway.
     * 
     */
    @Import(name="expressRouteGatewayName")
    private @Nullable Output expressRouteGatewayName;

    /**
     * @return The name of the ExpressRoute gateway.
     * 
     */
    public Optional> expressRouteGatewayName() {
        return Optional.ofNullable(this.expressRouteGatewayName);
    }

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

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

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

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

    /**
     * The Virtual Hub where the ExpressRoute gateway is or will be deployed.
     * 
     */
    @Import(name="virtualHub", required=true)
    private Output virtualHub;

    /**
     * @return The Virtual Hub where the ExpressRoute gateway is or will be deployed.
     * 
     */
    public Output virtualHub() {
        return this.virtualHub;
    }

    private ExpressRouteGatewayArgs() {}

    private ExpressRouteGatewayArgs(ExpressRouteGatewayArgs $) {
        this.allowNonVirtualWanTraffic = $.allowNonVirtualWanTraffic;
        this.autoScaleConfiguration = $.autoScaleConfiguration;
        this.expressRouteConnections = $.expressRouteConnections;
        this.expressRouteGatewayName = $.expressRouteGatewayName;
        this.id = $.id;
        this.location = $.location;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.virtualHub = $.virtualHub;
    }

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

    public static final class Builder {
        private ExpressRouteGatewayArgs $;

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

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

        /**
         * @param allowNonVirtualWanTraffic Configures this gateway to accept traffic from non Virtual WAN networks.
         * 
         * @return builder
         * 
         */
        public Builder allowNonVirtualWanTraffic(@Nullable Output allowNonVirtualWanTraffic) {
            $.allowNonVirtualWanTraffic = allowNonVirtualWanTraffic;
            return this;
        }

        /**
         * @param allowNonVirtualWanTraffic Configures this gateway to accept traffic from non Virtual WAN networks.
         * 
         * @return builder
         * 
         */
        public Builder allowNonVirtualWanTraffic(Boolean allowNonVirtualWanTraffic) {
            return allowNonVirtualWanTraffic(Output.of(allowNonVirtualWanTraffic));
        }

        /**
         * @param autoScaleConfiguration Configuration for auto scaling.
         * 
         * @return builder
         * 
         */
        public Builder autoScaleConfiguration(@Nullable Output autoScaleConfiguration) {
            $.autoScaleConfiguration = autoScaleConfiguration;
            return this;
        }

        /**
         * @param autoScaleConfiguration Configuration for auto scaling.
         * 
         * @return builder
         * 
         */
        public Builder autoScaleConfiguration(ExpressRouteGatewayPropertiesAutoScaleConfigurationArgs autoScaleConfiguration) {
            return autoScaleConfiguration(Output.of(autoScaleConfiguration));
        }

        /**
         * @param expressRouteConnections List of ExpressRoute connections to the ExpressRoute gateway.
         * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
         * 
         * @return builder
         * 
         */
        public Builder expressRouteConnections(@Nullable Output> expressRouteConnections) {
            $.expressRouteConnections = expressRouteConnections;
            return this;
        }

        /**
         * @param expressRouteConnections List of ExpressRoute connections to the ExpressRoute gateway.
         * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
         * 
         * @return builder
         * 
         */
        public Builder expressRouteConnections(List expressRouteConnections) {
            return expressRouteConnections(Output.of(expressRouteConnections));
        }

        /**
         * @param expressRouteConnections List of ExpressRoute connections to the ExpressRoute gateway.
         * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
         * 
         * @return builder
         * 
         */
        public Builder expressRouteConnections(ExpressRouteConnectionArgs... expressRouteConnections) {
            return expressRouteConnections(List.of(expressRouteConnections));
        }

        /**
         * @param expressRouteGatewayName The name of the ExpressRoute gateway.
         * 
         * @return builder
         * 
         */
        public Builder expressRouteGatewayName(@Nullable Output expressRouteGatewayName) {
            $.expressRouteGatewayName = expressRouteGatewayName;
            return this;
        }

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

        /**
         * @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 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 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 virtualHub The Virtual Hub where the ExpressRoute gateway is or will be deployed.
         * 
         * @return builder
         * 
         */
        public Builder virtualHub(Output virtualHub) {
            $.virtualHub = virtualHub;
            return this;
        }

        /**
         * @param virtualHub The Virtual Hub where the ExpressRoute gateway is or will be deployed.
         * 
         * @return builder
         * 
         */
        public Builder virtualHub(VirtualHubIdArgs virtualHub) {
            return virtualHub(Output.of(virtualHub));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy