com.pulumi.azure.compute.outputs.GetVirtualMachineScaleSetNetworkInterfaceIpConfiguration 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.azure.compute.outputs;
import com.pulumi.azure.compute.outputs.GetVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddress;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetVirtualMachineScaleSetNetworkInterfaceIpConfiguration {
/**
* @return An array of references to backend address pools of application gateways.
*
*/
private List applicationGatewayBackendAddressPoolIds;
/**
* @return The application security group IDs to use.
*
*/
private List applicationSecurityGroupIds;
/**
* @return An array of references to backend address pools of load balancers.
*
*/
private List loadBalancerBackendAddressPoolIds;
/**
* @return An array of references to inbound NAT pools for load balancers.
*
*/
private List loadBalancerInboundNatRulesIds;
/**
* @return The name of this Virtual Machine Scale Set.
*
*/
private String name;
/**
* @return If this ip_configuration is the primary one.
*
*/
private Boolean primary;
/**
* @return The virtual machines scale set IP Configuration's PublicIPAddress configuration. The `public_ip_address` is documented below.
*
*/
private List publicIpAddresses;
/**
* @return The identifier of the subnet.
*
*/
private String subnetId;
/**
* @return The Internet Protocol Version of the public IP address.
*
*/
private String version;
private GetVirtualMachineScaleSetNetworkInterfaceIpConfiguration() {}
/**
* @return An array of references to backend address pools of application gateways.
*
*/
public List applicationGatewayBackendAddressPoolIds() {
return this.applicationGatewayBackendAddressPoolIds;
}
/**
* @return The application security group IDs to use.
*
*/
public List applicationSecurityGroupIds() {
return this.applicationSecurityGroupIds;
}
/**
* @return An array of references to backend address pools of load balancers.
*
*/
public List loadBalancerBackendAddressPoolIds() {
return this.loadBalancerBackendAddressPoolIds;
}
/**
* @return An array of references to inbound NAT pools for load balancers.
*
*/
public List loadBalancerInboundNatRulesIds() {
return this.loadBalancerInboundNatRulesIds;
}
/**
* @return The name of this Virtual Machine Scale Set.
*
*/
public String name() {
return this.name;
}
/**
* @return If this ip_configuration is the primary one.
*
*/
public Boolean primary() {
return this.primary;
}
/**
* @return The virtual machines scale set IP Configuration's PublicIPAddress configuration. The `public_ip_address` is documented below.
*
*/
public List publicIpAddresses() {
return this.publicIpAddresses;
}
/**
* @return The identifier of the subnet.
*
*/
public String subnetId() {
return this.subnetId;
}
/**
* @return The Internet Protocol Version of the public IP address.
*
*/
public String version() {
return this.version;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetVirtualMachineScaleSetNetworkInterfaceIpConfiguration defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List applicationGatewayBackendAddressPoolIds;
private List applicationSecurityGroupIds;
private List loadBalancerBackendAddressPoolIds;
private List loadBalancerInboundNatRulesIds;
private String name;
private Boolean primary;
private List publicIpAddresses;
private String subnetId;
private String version;
public Builder() {}
public Builder(GetVirtualMachineScaleSetNetworkInterfaceIpConfiguration defaults) {
Objects.requireNonNull(defaults);
this.applicationGatewayBackendAddressPoolIds = defaults.applicationGatewayBackendAddressPoolIds;
this.applicationSecurityGroupIds = defaults.applicationSecurityGroupIds;
this.loadBalancerBackendAddressPoolIds = defaults.loadBalancerBackendAddressPoolIds;
this.loadBalancerInboundNatRulesIds = defaults.loadBalancerInboundNatRulesIds;
this.name = defaults.name;
this.primary = defaults.primary;
this.publicIpAddresses = defaults.publicIpAddresses;
this.subnetId = defaults.subnetId;
this.version = defaults.version;
}
@CustomType.Setter
public Builder applicationGatewayBackendAddressPoolIds(List applicationGatewayBackendAddressPoolIds) {
if (applicationGatewayBackendAddressPoolIds == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineScaleSetNetworkInterfaceIpConfiguration", "applicationGatewayBackendAddressPoolIds");
}
this.applicationGatewayBackendAddressPoolIds = applicationGatewayBackendAddressPoolIds;
return this;
}
public Builder applicationGatewayBackendAddressPoolIds(String... applicationGatewayBackendAddressPoolIds) {
return applicationGatewayBackendAddressPoolIds(List.of(applicationGatewayBackendAddressPoolIds));
}
@CustomType.Setter
public Builder applicationSecurityGroupIds(List applicationSecurityGroupIds) {
if (applicationSecurityGroupIds == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineScaleSetNetworkInterfaceIpConfiguration", "applicationSecurityGroupIds");
}
this.applicationSecurityGroupIds = applicationSecurityGroupIds;
return this;
}
public Builder applicationSecurityGroupIds(String... applicationSecurityGroupIds) {
return applicationSecurityGroupIds(List.of(applicationSecurityGroupIds));
}
@CustomType.Setter
public Builder loadBalancerBackendAddressPoolIds(List loadBalancerBackendAddressPoolIds) {
if (loadBalancerBackendAddressPoolIds == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineScaleSetNetworkInterfaceIpConfiguration", "loadBalancerBackendAddressPoolIds");
}
this.loadBalancerBackendAddressPoolIds = loadBalancerBackendAddressPoolIds;
return this;
}
public Builder loadBalancerBackendAddressPoolIds(String... loadBalancerBackendAddressPoolIds) {
return loadBalancerBackendAddressPoolIds(List.of(loadBalancerBackendAddressPoolIds));
}
@CustomType.Setter
public Builder loadBalancerInboundNatRulesIds(List loadBalancerInboundNatRulesIds) {
if (loadBalancerInboundNatRulesIds == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineScaleSetNetworkInterfaceIpConfiguration", "loadBalancerInboundNatRulesIds");
}
this.loadBalancerInboundNatRulesIds = loadBalancerInboundNatRulesIds;
return this;
}
public Builder loadBalancerInboundNatRulesIds(String... loadBalancerInboundNatRulesIds) {
return loadBalancerInboundNatRulesIds(List.of(loadBalancerInboundNatRulesIds));
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineScaleSetNetworkInterfaceIpConfiguration", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder primary(Boolean primary) {
if (primary == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineScaleSetNetworkInterfaceIpConfiguration", "primary");
}
this.primary = primary;
return this;
}
@CustomType.Setter
public Builder publicIpAddresses(List publicIpAddresses) {
if (publicIpAddresses == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineScaleSetNetworkInterfaceIpConfiguration", "publicIpAddresses");
}
this.publicIpAddresses = publicIpAddresses;
return this;
}
public Builder publicIpAddresses(GetVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddress... publicIpAddresses) {
return publicIpAddresses(List.of(publicIpAddresses));
}
@CustomType.Setter
public Builder subnetId(String subnetId) {
if (subnetId == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineScaleSetNetworkInterfaceIpConfiguration", "subnetId");
}
this.subnetId = subnetId;
return this;
}
@CustomType.Setter
public Builder version(String version) {
if (version == null) {
throw new MissingRequiredPropertyException("GetVirtualMachineScaleSetNetworkInterfaceIpConfiguration", "version");
}
this.version = version;
return this;
}
public GetVirtualMachineScaleSetNetworkInterfaceIpConfiguration build() {
final var _resultValue = new GetVirtualMachineScaleSetNetworkInterfaceIpConfiguration();
_resultValue.applicationGatewayBackendAddressPoolIds = applicationGatewayBackendAddressPoolIds;
_resultValue.applicationSecurityGroupIds = applicationSecurityGroupIds;
_resultValue.loadBalancerBackendAddressPoolIds = loadBalancerBackendAddressPoolIds;
_resultValue.loadBalancerInboundNatRulesIds = loadBalancerInboundNatRulesIds;
_resultValue.name = name;
_resultValue.primary = primary;
_resultValue.publicIpAddresses = publicIpAddresses;
_resultValue.subnetId = subnetId;
_resultValue.version = version;
return _resultValue;
}
}
}