Class VirtualMachineScaleSetIpConfiguration
- java.lang.Object
-
- com.azure.core.management.SubResource
-
- com.azure.resourcemanager.compute.models.VirtualMachineScaleSetIpConfiguration
-
public final class VirtualMachineScaleSetIpConfiguration extends com.azure.core.management.SubResourceDescribes a virtual machine scale set network profile's IP configuration.
-
-
Constructor Summary
Constructors Constructor Description VirtualMachineScaleSetIpConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<com.azure.core.management.SubResource>applicationGatewayBackendAddressPools()Get the applicationGatewayBackendAddressPools property: Specifies an array of references to backend address pools of application gateways.List<com.azure.core.management.SubResource>applicationSecurityGroups()Get the applicationSecurityGroups property: Specifies an array of references to application security group.List<com.azure.core.management.SubResource>loadBalancerBackendAddressPools()Get the loadBalancerBackendAddressPools property: Specifies an array of references to backend address pools of load balancers.List<com.azure.core.management.SubResource>loadBalancerInboundNatPools()Get the loadBalancerInboundNatPools property: Specifies an array of references to inbound Nat pools of the load balancers.Stringname()Get the name property: The IP configuration name.Booleanprimary()Get the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.IpVersionprivateIpAddressVersion()Get the privateIpAddressVersion property: Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6.VirtualMachineScaleSetPublicIpAddressConfigurationpublicIpAddressConfiguration()Get the publicIpAddressConfiguration property: The publicIPAddressConfiguration.ApiEntityReferencesubnet()Get the subnet property: Specifies the identifier of the subnet.voidvalidate()Validates the instance.VirtualMachineScaleSetIpConfigurationwithApplicationGatewayBackendAddressPools(List<com.azure.core.management.SubResource> applicationGatewayBackendAddressPools)Set the applicationGatewayBackendAddressPools property: Specifies an array of references to backend address pools of application gateways.VirtualMachineScaleSetIpConfigurationwithApplicationSecurityGroups(List<com.azure.core.management.SubResource> applicationSecurityGroups)Set the applicationSecurityGroups property: Specifies an array of references to application security group.VirtualMachineScaleSetIpConfigurationwithId(String id)VirtualMachineScaleSetIpConfigurationwithLoadBalancerBackendAddressPools(List<com.azure.core.management.SubResource> loadBalancerBackendAddressPools)Set the loadBalancerBackendAddressPools property: Specifies an array of references to backend address pools of load balancers.VirtualMachineScaleSetIpConfigurationwithLoadBalancerInboundNatPools(List<com.azure.core.management.SubResource> loadBalancerInboundNatPools)Set the loadBalancerInboundNatPools property: Specifies an array of references to inbound Nat pools of the load balancers.VirtualMachineScaleSetIpConfigurationwithName(String name)Set the name property: The IP configuration name.VirtualMachineScaleSetIpConfigurationwithPrimary(Boolean primary)Set the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.VirtualMachineScaleSetIpConfigurationwithPrivateIpAddressVersion(IpVersion privateIpAddressVersion)Set the privateIpAddressVersion property: Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6.VirtualMachineScaleSetIpConfigurationwithPublicIpAddressConfiguration(VirtualMachineScaleSetPublicIpAddressConfiguration publicIpAddressConfiguration)Set the publicIpAddressConfiguration property: The publicIPAddressConfiguration.VirtualMachineScaleSetIpConfigurationwithSubnet(ApiEntityReference subnet)Set the subnet property: Specifies the identifier of the subnet.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The IP configuration name.- Returns:
- the name value.
-
withName
public VirtualMachineScaleSetIpConfiguration withName(String name)
Set the name property: The IP configuration name.- Parameters:
name- the name value to set.- Returns:
- the VirtualMachineScaleSetIpConfiguration object itself.
-
withId
public VirtualMachineScaleSetIpConfiguration withId(String id)
- Overrides:
withIdin classcom.azure.core.management.SubResource
-
subnet
public ApiEntityReference subnet()
Get the subnet property: Specifies the identifier of the subnet.- Returns:
- the subnet value.
-
withSubnet
public VirtualMachineScaleSetIpConfiguration withSubnet(ApiEntityReference subnet)
Set the subnet property: Specifies the identifier of the subnet.- Parameters:
subnet- the subnet value to set.- Returns:
- the VirtualMachineScaleSetIpConfiguration object itself.
-
primary
public Boolean primary()
Get the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.- Returns:
- the primary value.
-
withPrimary
public VirtualMachineScaleSetIpConfiguration withPrimary(Boolean primary)
Set the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.- Parameters:
primary- the primary value to set.- Returns:
- the VirtualMachineScaleSetIpConfiguration object itself.
-
publicIpAddressConfiguration
public VirtualMachineScaleSetPublicIpAddressConfiguration publicIpAddressConfiguration()
Get the publicIpAddressConfiguration property: The publicIPAddressConfiguration.- Returns:
- the publicIpAddressConfiguration value.
-
withPublicIpAddressConfiguration
public VirtualMachineScaleSetIpConfiguration withPublicIpAddressConfiguration(VirtualMachineScaleSetPublicIpAddressConfiguration publicIpAddressConfiguration)
Set the publicIpAddressConfiguration property: The publicIPAddressConfiguration.- Parameters:
publicIpAddressConfiguration- the publicIpAddressConfiguration value to set.- Returns:
- the VirtualMachineScaleSetIpConfiguration object itself.
-
privateIpAddressVersion
public IpVersion privateIpAddressVersion()
Get the privateIpAddressVersion property: Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'.- Returns:
- the privateIpAddressVersion value.
-
withPrivateIpAddressVersion
public VirtualMachineScaleSetIpConfiguration withPrivateIpAddressVersion(IpVersion privateIpAddressVersion)
Set the privateIpAddressVersion property: Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'.- Parameters:
privateIpAddressVersion- the privateIpAddressVersion value to set.- Returns:
- the VirtualMachineScaleSetIpConfiguration object itself.
-
applicationGatewayBackendAddressPools
public List<com.azure.core.management.SubResource> applicationGatewayBackendAddressPools()
Get the applicationGatewayBackendAddressPools property: 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 cannot use the same application gateway.- Returns:
- the applicationGatewayBackendAddressPools value.
-
withApplicationGatewayBackendAddressPools
public VirtualMachineScaleSetIpConfiguration withApplicationGatewayBackendAddressPools(List<com.azure.core.management.SubResource> applicationGatewayBackendAddressPools)
Set the applicationGatewayBackendAddressPools property: 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 cannot use the same application gateway.- Parameters:
applicationGatewayBackendAddressPools- the applicationGatewayBackendAddressPools value to set.- Returns:
- the VirtualMachineScaleSetIpConfiguration object itself.
-
applicationSecurityGroups
public List<com.azure.core.management.SubResource> applicationSecurityGroups()
Get the applicationSecurityGroups property: Specifies an array of references to application security group.- Returns:
- the applicationSecurityGroups value.
-
withApplicationSecurityGroups
public VirtualMachineScaleSetIpConfiguration withApplicationSecurityGroups(List<com.azure.core.management.SubResource> applicationSecurityGroups)
Set the applicationSecurityGroups property: Specifies an array of references to application security group.- Parameters:
applicationSecurityGroups- the applicationSecurityGroups value to set.- Returns:
- the VirtualMachineScaleSetIpConfiguration object itself.
-
loadBalancerBackendAddressPools
public List<com.azure.core.management.SubResource> loadBalancerBackendAddressPools()
Get the loadBalancerBackendAddressPools property: 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 basic sku load balancer.- Returns:
- the loadBalancerBackendAddressPools value.
-
withLoadBalancerBackendAddressPools
public VirtualMachineScaleSetIpConfiguration withLoadBalancerBackendAddressPools(List<com.azure.core.management.SubResource> loadBalancerBackendAddressPools)
Set the loadBalancerBackendAddressPools property: 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 basic sku load balancer.- Parameters:
loadBalancerBackendAddressPools- the loadBalancerBackendAddressPools value to set.- Returns:
- the VirtualMachineScaleSetIpConfiguration object itself.
-
loadBalancerInboundNatPools
public List<com.azure.core.management.SubResource> loadBalancerInboundNatPools()
Get the loadBalancerInboundNatPools property: Specifies an array of references to inbound Nat pools of the 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 basic sku load balancer.- Returns:
- the loadBalancerInboundNatPools value.
-
withLoadBalancerInboundNatPools
public VirtualMachineScaleSetIpConfiguration withLoadBalancerInboundNatPools(List<com.azure.core.management.SubResource> loadBalancerInboundNatPools)
Set the loadBalancerInboundNatPools property: Specifies an array of references to inbound Nat pools of the 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 basic sku load balancer.- Parameters:
loadBalancerInboundNatPools- the loadBalancerInboundNatPools value to set.- Returns:
- the VirtualMachineScaleSetIpConfiguration object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-