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

com.pulumi.azure.network.RouteServerArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.network;

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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final RouteServerArgs Empty = new RouteServerArgs();

    /**
     * Whether to enable route exchange between Azure Route Server and the gateway(s)
     * 
     */
    @Import(name="branchToBranchTrafficEnabled")
    private @Nullable Output branchToBranchTrafficEnabled;

    /**
     * @return Whether to enable route exchange between Azure Route Server and the gateway(s)
     * 
     */
    public Optional> branchToBranchTrafficEnabled() {
        return Optional.ofNullable(this.branchToBranchTrafficEnabled);
    }

    /**
     * Specifies the supported Azure location where the Route Server should exist. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Specifies the supported Azure location where the Route Server should exist. Changing this forces a new resource to be created.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The name of the Route Server. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the Route Server. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The ID of the Public IP Address. This option is required since September 1st 2021. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="publicIpAddressId", required=true)
    private Output publicIpAddressId;

    /**
     * @return The ID of the Public IP Address. This option is required since September 1st 2021. Changing this forces a new resource to be created.
     * 
     */
    public Output publicIpAddressId() {
        return this.publicIpAddressId;
    }

    /**
     * Specifies the name of the Resource Group where the Route Server should exist. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Specifies the name of the Resource Group where the Route Server should exist. Changing this forces a new resource to be created.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The SKU of the Route Server. The only possible value is `Standard`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="sku", required=true)
    private Output sku;

    /**
     * @return The SKU of the Route Server. The only possible value is `Standard`. Changing this forces a new resource to be created.
     * 
     */
    public Output sku() {
        return this.sku;
    }

    /**
     * The ID of the Subnet that the Route Server will reside. Changing this forces a new resource to be created.
     * 
     * > **NOTE:** Azure Route Server requires a dedicated subnet named RouteServerSubnet. The subnet size has to be at least /27 or short prefix (such as /26 or /25) and cannot be attached to any security group, otherwise, you'll receive an error message when deploying the Route Server
     * 
     */
    @Import(name="subnetId", required=true)
    private Output subnetId;

    /**
     * @return The ID of the Subnet that the Route Server will reside. Changing this forces a new resource to be created.
     * 
     * > **NOTE:** Azure Route Server requires a dedicated subnet named RouteServerSubnet. The subnet size has to be at least /27 or short prefix (such as /26 or /25) and cannot be attached to any security group, otherwise, you'll receive an error message when deploying the Route Server
     * 
     */
    public Output subnetId() {
        return this.subnetId;
    }

    /**
     * A mapping of tags to assign to the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags to assign to the resource.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private RouteServerArgs() {}

    private RouteServerArgs(RouteServerArgs $) {
        this.branchToBranchTrafficEnabled = $.branchToBranchTrafficEnabled;
        this.location = $.location;
        this.name = $.name;
        this.publicIpAddressId = $.publicIpAddressId;
        this.resourceGroupName = $.resourceGroupName;
        this.sku = $.sku;
        this.subnetId = $.subnetId;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private RouteServerArgs $;

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

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

        /**
         * @param branchToBranchTrafficEnabled Whether to enable route exchange between Azure Route Server and the gateway(s)
         * 
         * @return builder
         * 
         */
        public Builder branchToBranchTrafficEnabled(@Nullable Output branchToBranchTrafficEnabled) {
            $.branchToBranchTrafficEnabled = branchToBranchTrafficEnabled;
            return this;
        }

        /**
         * @param branchToBranchTrafficEnabled Whether to enable route exchange between Azure Route Server and the gateway(s)
         * 
         * @return builder
         * 
         */
        public Builder branchToBranchTrafficEnabled(Boolean branchToBranchTrafficEnabled) {
            return branchToBranchTrafficEnabled(Output.of(branchToBranchTrafficEnabled));
        }

        /**
         * @param location Specifies the supported Azure location where the Route Server should exist. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Specifies the supported Azure location where the Route Server should exist. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param name The name of the Route Server. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the Route Server. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param publicIpAddressId The ID of the Public IP Address. This option is required since September 1st 2021. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder publicIpAddressId(Output publicIpAddressId) {
            $.publicIpAddressId = publicIpAddressId;
            return this;
        }

        /**
         * @param publicIpAddressId The ID of the Public IP Address. This option is required since September 1st 2021. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder publicIpAddressId(String publicIpAddressId) {
            return publicIpAddressId(Output.of(publicIpAddressId));
        }

        /**
         * @param resourceGroupName Specifies the name of the Resource Group where the Route Server should exist. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Specifies the name of the Resource Group where the Route Server should exist. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param sku The SKU of the Route Server. The only possible value is `Standard`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder sku(Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku The SKU of the Route Server. The only possible value is `Standard`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder sku(String sku) {
            return sku(Output.of(sku));
        }

        /**
         * @param subnetId The ID of the Subnet that the Route Server will reside. Changing this forces a new resource to be created.
         * 
         * > **NOTE:** Azure Route Server requires a dedicated subnet named RouteServerSubnet. The subnet size has to be at least /27 or short prefix (such as /26 or /25) and cannot be attached to any security group, otherwise, you'll receive an error message when deploying the Route Server
         * 
         * @return builder
         * 
         */
        public Builder subnetId(Output subnetId) {
            $.subnetId = subnetId;
            return this;
        }

        /**
         * @param subnetId The ID of the Subnet that the Route Server will reside. Changing this forces a new resource to be created.
         * 
         * > **NOTE:** Azure Route Server requires a dedicated subnet named RouteServerSubnet. The subnet size has to be at least /27 or short prefix (such as /26 or /25) and cannot be attached to any security group, otherwise, you'll receive an error message when deploying the Route Server
         * 
         * @return builder
         * 
         */
        public Builder subnetId(String subnetId) {
            return subnetId(Output.of(subnetId));
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public RouteServerArgs build() {
            if ($.publicIpAddressId == null) {
                throw new MissingRequiredPropertyException("RouteServerArgs", "publicIpAddressId");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("RouteServerArgs", "resourceGroupName");
            }
            if ($.sku == null) {
                throw new MissingRequiredPropertyException("RouteServerArgs", "sku");
            }
            if ($.subnetId == null) {
                throw new MissingRequiredPropertyException("RouteServerArgs", "subnetId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy