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

com.pulumi.azure.compute.inputs.ScaleSetNetworkProfileIpConfigurationArgs 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.compute.inputs;

import com.pulumi.azure.compute.inputs.ScaleSetNetworkProfileIpConfigurationPublicIpAddressConfigurationArgs;
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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ScaleSetNetworkProfileIpConfigurationArgs Empty = new ScaleSetNetworkProfileIpConfigurationArgs();

    /**
     * Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets can use the same application gateway.
     * 
     */
    @Import(name="applicationGatewayBackendAddressPoolIds")
    private @Nullable Output> applicationGatewayBackendAddressPoolIds;

    /**
     * @return Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets can use the same application gateway.
     * 
     */
    public Optional>> applicationGatewayBackendAddressPoolIds() {
        return Optional.ofNullable(this.applicationGatewayBackendAddressPoolIds);
    }

    /**
     * Specifies up to `20` application security group IDs.
     * 
     */
    @Import(name="applicationSecurityGroupIds")
    private @Nullable Output> applicationSecurityGroupIds;

    /**
     * @return Specifies up to `20` application security group IDs.
     * 
     */
    public Optional>> applicationSecurityGroupIds() {
        return Optional.ofNullable(this.applicationSecurityGroupIds);
    }

    /**
     * Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer.
     * 
     * > **NOTE:** When using this field you'll also need to configure a Rule for the Load Balancer, and use a `depends_on` between this resource and the Load Balancer Rule.
     * 
     */
    @Import(name="loadBalancerBackendAddressPoolIds")
    private @Nullable Output> loadBalancerBackendAddressPoolIds;

    /**
     * @return Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer.
     * 
     * > **NOTE:** When using this field you'll also need to configure a Rule for the Load Balancer, and use a `depends_on` between this resource and the Load Balancer Rule.
     * 
     */
    public Optional>> loadBalancerBackendAddressPoolIds() {
        return Optional.ofNullable(this.loadBalancerBackendAddressPoolIds);
    }

    /**
     * Specifies an array of references to inbound NAT pools for load balancers. A scale set can reference inbound NAT pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer.
     * 
     * > **NOTE:** When using this field you'll also need to configure a Rule for the Load Balancer, and use a `depends_on` between this resource and the Load Balancer Rule.
     * 
     */
    @Import(name="loadBalancerInboundNatRulesIds")
    private @Nullable Output> loadBalancerInboundNatRulesIds;

    /**
     * @return Specifies an array of references to inbound NAT pools for load balancers. A scale set can reference inbound NAT pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer.
     * 
     * > **NOTE:** When using this field you'll also need to configure a Rule for the Load Balancer, and use a `depends_on` between this resource and the Load Balancer Rule.
     * 
     */
    public Optional>> loadBalancerInboundNatRulesIds() {
        return Optional.ofNullable(this.loadBalancerInboundNatRulesIds);
    }

    /**
     * Specifies name of the IP configuration.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Specifies name of the IP configuration.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * Specifies if this ip_configuration is the primary one.
     * 
     */
    @Import(name="primary", required=true)
    private Output primary;

    /**
     * @return Specifies if this ip_configuration is the primary one.
     * 
     */
    public Output primary() {
        return this.primary;
    }

    /**
     * Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration. The `public_ip_address_configuration` block is documented below.
     * 
     */
    @Import(name="publicIpAddressConfiguration")
    private @Nullable Output publicIpAddressConfiguration;

    /**
     * @return Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration. The `public_ip_address_configuration` block is documented below.
     * 
     */
    public Optional> publicIpAddressConfiguration() {
        return Optional.ofNullable(this.publicIpAddressConfiguration);
    }

    /**
     * Specifies the identifier of the subnet.
     * 
     */
    @Import(name="subnetId", required=true)
    private Output subnetId;

    /**
     * @return Specifies the identifier of the subnet.
     * 
     */
    public Output subnetId() {
        return this.subnetId;
    }

    private ScaleSetNetworkProfileIpConfigurationArgs() {}

    private ScaleSetNetworkProfileIpConfigurationArgs(ScaleSetNetworkProfileIpConfigurationArgs $) {
        this.applicationGatewayBackendAddressPoolIds = $.applicationGatewayBackendAddressPoolIds;
        this.applicationSecurityGroupIds = $.applicationSecurityGroupIds;
        this.loadBalancerBackendAddressPoolIds = $.loadBalancerBackendAddressPoolIds;
        this.loadBalancerInboundNatRulesIds = $.loadBalancerInboundNatRulesIds;
        this.name = $.name;
        this.primary = $.primary;
        this.publicIpAddressConfiguration = $.publicIpAddressConfiguration;
        this.subnetId = $.subnetId;
    }

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

    public static final class Builder {
        private ScaleSetNetworkProfileIpConfigurationArgs $;

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

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

        /**
         * @param applicationGatewayBackendAddressPoolIds Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets can use the same application gateway.
         * 
         * @return builder
         * 
         */
        public Builder applicationGatewayBackendAddressPoolIds(@Nullable Output> applicationGatewayBackendAddressPoolIds) {
            $.applicationGatewayBackendAddressPoolIds = applicationGatewayBackendAddressPoolIds;
            return this;
        }

        /**
         * @param applicationGatewayBackendAddressPoolIds Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets can use the same application gateway.
         * 
         * @return builder
         * 
         */
        public Builder applicationGatewayBackendAddressPoolIds(List applicationGatewayBackendAddressPoolIds) {
            return applicationGatewayBackendAddressPoolIds(Output.of(applicationGatewayBackendAddressPoolIds));
        }

        /**
         * @param applicationGatewayBackendAddressPoolIds Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets can use the same application gateway.
         * 
         * @return builder
         * 
         */
        public Builder applicationGatewayBackendAddressPoolIds(String... applicationGatewayBackendAddressPoolIds) {
            return applicationGatewayBackendAddressPoolIds(List.of(applicationGatewayBackendAddressPoolIds));
        }

        /**
         * @param applicationSecurityGroupIds Specifies up to `20` application security group IDs.
         * 
         * @return builder
         * 
         */
        public Builder applicationSecurityGroupIds(@Nullable Output> applicationSecurityGroupIds) {
            $.applicationSecurityGroupIds = applicationSecurityGroupIds;
            return this;
        }

        /**
         * @param applicationSecurityGroupIds Specifies up to `20` application security group IDs.
         * 
         * @return builder
         * 
         */
        public Builder applicationSecurityGroupIds(List applicationSecurityGroupIds) {
            return applicationSecurityGroupIds(Output.of(applicationSecurityGroupIds));
        }

        /**
         * @param applicationSecurityGroupIds Specifies up to `20` application security group IDs.
         * 
         * @return builder
         * 
         */
        public Builder applicationSecurityGroupIds(String... applicationSecurityGroupIds) {
            return applicationSecurityGroupIds(List.of(applicationSecurityGroupIds));
        }

        /**
         * @param loadBalancerBackendAddressPoolIds Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer.
         * 
         * > **NOTE:** When using this field you'll also need to configure a Rule for the Load Balancer, and use a `depends_on` between this resource and the Load Balancer Rule.
         * 
         * @return builder
         * 
         */
        public Builder loadBalancerBackendAddressPoolIds(@Nullable Output> loadBalancerBackendAddressPoolIds) {
            $.loadBalancerBackendAddressPoolIds = loadBalancerBackendAddressPoolIds;
            return this;
        }

        /**
         * @param loadBalancerBackendAddressPoolIds Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer.
         * 
         * > **NOTE:** When using this field you'll also need to configure a Rule for the Load Balancer, and use a `depends_on` between this resource and the Load Balancer Rule.
         * 
         * @return builder
         * 
         */
        public Builder loadBalancerBackendAddressPoolIds(List loadBalancerBackendAddressPoolIds) {
            return loadBalancerBackendAddressPoolIds(Output.of(loadBalancerBackendAddressPoolIds));
        }

        /**
         * @param loadBalancerBackendAddressPoolIds Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer.
         * 
         * > **NOTE:** When using this field you'll also need to configure a Rule for the Load Balancer, and use a `depends_on` between this resource and the Load Balancer Rule.
         * 
         * @return builder
         * 
         */
        public Builder loadBalancerBackendAddressPoolIds(String... loadBalancerBackendAddressPoolIds) {
            return loadBalancerBackendAddressPoolIds(List.of(loadBalancerBackendAddressPoolIds));
        }

        /**
         * @param loadBalancerInboundNatRulesIds Specifies an array of references to inbound NAT pools for load balancers. A scale set can reference inbound NAT pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer.
         * 
         * > **NOTE:** When using this field you'll also need to configure a Rule for the Load Balancer, and use a `depends_on` between this resource and the Load Balancer Rule.
         * 
         * @return builder
         * 
         */
        public Builder loadBalancerInboundNatRulesIds(@Nullable Output> loadBalancerInboundNatRulesIds) {
            $.loadBalancerInboundNatRulesIds = loadBalancerInboundNatRulesIds;
            return this;
        }

        /**
         * @param loadBalancerInboundNatRulesIds Specifies an array of references to inbound NAT pools for load balancers. A scale set can reference inbound NAT pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer.
         * 
         * > **NOTE:** When using this field you'll also need to configure a Rule for the Load Balancer, and use a `depends_on` between this resource and the Load Balancer Rule.
         * 
         * @return builder
         * 
         */
        public Builder loadBalancerInboundNatRulesIds(List loadBalancerInboundNatRulesIds) {
            return loadBalancerInboundNatRulesIds(Output.of(loadBalancerInboundNatRulesIds));
        }

        /**
         * @param loadBalancerInboundNatRulesIds Specifies an array of references to inbound NAT pools for load balancers. A scale set can reference inbound NAT pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer.
         * 
         * > **NOTE:** When using this field you'll also need to configure a Rule for the Load Balancer, and use a `depends_on` between this resource and the Load Balancer Rule.
         * 
         * @return builder
         * 
         */
        public Builder loadBalancerInboundNatRulesIds(String... loadBalancerInboundNatRulesIds) {
            return loadBalancerInboundNatRulesIds(List.of(loadBalancerInboundNatRulesIds));
        }

        /**
         * @param name Specifies name of the IP configuration.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies name of the IP configuration.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param primary Specifies if this ip_configuration is the primary one.
         * 
         * @return builder
         * 
         */
        public Builder primary(Output primary) {
            $.primary = primary;
            return this;
        }

        /**
         * @param primary Specifies if this ip_configuration is the primary one.
         * 
         * @return builder
         * 
         */
        public Builder primary(Boolean primary) {
            return primary(Output.of(primary));
        }

        /**
         * @param publicIpAddressConfiguration Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration. The `public_ip_address_configuration` block is documented below.
         * 
         * @return builder
         * 
         */
        public Builder publicIpAddressConfiguration(@Nullable Output publicIpAddressConfiguration) {
            $.publicIpAddressConfiguration = publicIpAddressConfiguration;
            return this;
        }

        /**
         * @param publicIpAddressConfiguration Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration. The `public_ip_address_configuration` block is documented below.
         * 
         * @return builder
         * 
         */
        public Builder publicIpAddressConfiguration(ScaleSetNetworkProfileIpConfigurationPublicIpAddressConfigurationArgs publicIpAddressConfiguration) {
            return publicIpAddressConfiguration(Output.of(publicIpAddressConfiguration));
        }

        /**
         * @param subnetId Specifies the identifier of the subnet.
         * 
         * @return builder
         * 
         */
        public Builder subnetId(Output subnetId) {
            $.subnetId = subnetId;
            return this;
        }

        /**
         * @param subnetId Specifies the identifier of the subnet.
         * 
         * @return builder
         * 
         */
        public Builder subnetId(String subnetId) {
            return subnetId(Output.of(subnetId));
        }

        public ScaleSetNetworkProfileIpConfigurationArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("ScaleSetNetworkProfileIpConfigurationArgs", "name");
            }
            if ($.primary == null) {
                throw new MissingRequiredPropertyException("ScaleSetNetworkProfileIpConfigurationArgs", "primary");
            }
            if ($.subnetId == null) {
                throw new MissingRequiredPropertyException("ScaleSetNetworkProfileIpConfigurationArgs", "subnetId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy