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

com.pulumi.azure.lb.BackendAddressPoolArgs 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.lb;

import com.pulumi.azure.lb.inputs.BackendAddressPoolTunnelInterfaceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final BackendAddressPoolArgs Empty = new BackendAddressPoolArgs();

    /**
     * The ID of the Load Balancer in which to create the Backend Address Pool. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="loadbalancerId", required=true)
    private Output loadbalancerId;

    /**
     * @return The ID of the Load Balancer in which to create the Backend Address Pool. Changing this forces a new resource to be created.
     * 
     */
    public Output loadbalancerId() {
        return this.loadbalancerId;
    }

    /**
     * Specifies the name of the Backend Address Pool. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Specifies the name of the Backend Address Pool. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The backend address synchronous mode for the Backend Address Pool. Possible values are `Automatic` and `Manual`. This is required with `virtual_network_id`. Changing this forces a new resource to be created.
     * 
     * > **NOTE:** The `synchronous_mode` can set only for Load Balancer with `Standard` SKU.
     * 
     */
    @Import(name="synchronousMode")
    private @Nullable Output synchronousMode;

    /**
     * @return The backend address synchronous mode for the Backend Address Pool. Possible values are `Automatic` and `Manual`. This is required with `virtual_network_id`. Changing this forces a new resource to be created.
     * 
     * > **NOTE:** The `synchronous_mode` can set only for Load Balancer with `Standard` SKU.
     * 
     */
    public Optional> synchronousMode() {
        return Optional.ofNullable(this.synchronousMode);
    }

    /**
     * One or more `tunnel_interface` blocks as defined below.
     * 
     */
    @Import(name="tunnelInterfaces")
    private @Nullable Output> tunnelInterfaces;

    /**
     * @return One or more `tunnel_interface` blocks as defined below.
     * 
     */
    public Optional>> tunnelInterfaces() {
        return Optional.ofNullable(this.tunnelInterfaces);
    }

    /**
     * The ID of the Virtual Network within which the Backend Address Pool should exist.
     * 
     */
    @Import(name="virtualNetworkId")
    private @Nullable Output virtualNetworkId;

    /**
     * @return The ID of the Virtual Network within which the Backend Address Pool should exist.
     * 
     */
    public Optional> virtualNetworkId() {
        return Optional.ofNullable(this.virtualNetworkId);
    }

    private BackendAddressPoolArgs() {}

    private BackendAddressPoolArgs(BackendAddressPoolArgs $) {
        this.loadbalancerId = $.loadbalancerId;
        this.name = $.name;
        this.synchronousMode = $.synchronousMode;
        this.tunnelInterfaces = $.tunnelInterfaces;
        this.virtualNetworkId = $.virtualNetworkId;
    }

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

    public static final class Builder {
        private BackendAddressPoolArgs $;

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

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

        /**
         * @param loadbalancerId The ID of the Load Balancer in which to create the Backend Address Pool. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder loadbalancerId(Output loadbalancerId) {
            $.loadbalancerId = loadbalancerId;
            return this;
        }

        /**
         * @param loadbalancerId The ID of the Load Balancer in which to create the Backend Address Pool. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder loadbalancerId(String loadbalancerId) {
            return loadbalancerId(Output.of(loadbalancerId));
        }

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

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

        /**
         * @param synchronousMode The backend address synchronous mode for the Backend Address Pool. Possible values are `Automatic` and `Manual`. This is required with `virtual_network_id`. Changing this forces a new resource to be created.
         * 
         * > **NOTE:** The `synchronous_mode` can set only for Load Balancer with `Standard` SKU.
         * 
         * @return builder
         * 
         */
        public Builder synchronousMode(@Nullable Output synchronousMode) {
            $.synchronousMode = synchronousMode;
            return this;
        }

        /**
         * @param synchronousMode The backend address synchronous mode for the Backend Address Pool. Possible values are `Automatic` and `Manual`. This is required with `virtual_network_id`. Changing this forces a new resource to be created.
         * 
         * > **NOTE:** The `synchronous_mode` can set only for Load Balancer with `Standard` SKU.
         * 
         * @return builder
         * 
         */
        public Builder synchronousMode(String synchronousMode) {
            return synchronousMode(Output.of(synchronousMode));
        }

        /**
         * @param tunnelInterfaces One or more `tunnel_interface` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder tunnelInterfaces(@Nullable Output> tunnelInterfaces) {
            $.tunnelInterfaces = tunnelInterfaces;
            return this;
        }

        /**
         * @param tunnelInterfaces One or more `tunnel_interface` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder tunnelInterfaces(List tunnelInterfaces) {
            return tunnelInterfaces(Output.of(tunnelInterfaces));
        }

        /**
         * @param tunnelInterfaces One or more `tunnel_interface` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder tunnelInterfaces(BackendAddressPoolTunnelInterfaceArgs... tunnelInterfaces) {
            return tunnelInterfaces(List.of(tunnelInterfaces));
        }

        /**
         * @param virtualNetworkId The ID of the Virtual Network within which the Backend Address Pool should exist.
         * 
         * @return builder
         * 
         */
        public Builder virtualNetworkId(@Nullable Output virtualNetworkId) {
            $.virtualNetworkId = virtualNetworkId;
            return this;
        }

        /**
         * @param virtualNetworkId The ID of the Virtual Network within which the Backend Address Pool should exist.
         * 
         * @return builder
         * 
         */
        public Builder virtualNetworkId(String virtualNetworkId) {
            return virtualNetworkId(Output.of(virtualNetworkId));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy