Class VirtualMachineNetworkInterfaceIpConfigurationProperties
- java.lang.Object
-
- com.azure.resourcemanager.compute.fluent.models.VirtualMachineNetworkInterfaceIpConfigurationProperties
-
public final class VirtualMachineNetworkInterfaceIpConfigurationProperties extends Object
Describes a virtual machine network interface IP configuration properties.
-
-
Constructor Summary
Constructors Constructor Description VirtualMachineNetworkInterfaceIpConfigurationProperties()
-
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.Booleanprimary()Get the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.IpVersionsprivateIpAddressVersion()Get the privateIpAddressVersion property: Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6.VirtualMachinePublicIpAddressConfigurationpublicIpAddressConfiguration()Get the publicIpAddressConfiguration property: The publicIPAddressConfiguration.com.azure.core.management.SubResourcesubnet()Get the subnet property: Specifies the identifier of the subnet.voidvalidate()Validates the instance.VirtualMachineNetworkInterfaceIpConfigurationPropertieswithApplicationGatewayBackendAddressPools(List<com.azure.core.management.SubResource> applicationGatewayBackendAddressPools)Set the applicationGatewayBackendAddressPools property: Specifies an array of references to backend address pools of application gateways.VirtualMachineNetworkInterfaceIpConfigurationPropertieswithApplicationSecurityGroups(List<com.azure.core.management.SubResource> applicationSecurityGroups)Set the applicationSecurityGroups property: Specifies an array of references to application security group.VirtualMachineNetworkInterfaceIpConfigurationPropertieswithLoadBalancerBackendAddressPools(List<com.azure.core.management.SubResource> loadBalancerBackendAddressPools)Set the loadBalancerBackendAddressPools property: Specifies an array of references to backend address pools of load balancers.VirtualMachineNetworkInterfaceIpConfigurationPropertieswithPrimary(Boolean primary)Set the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.VirtualMachineNetworkInterfaceIpConfigurationPropertieswithPrivateIpAddressVersion(IpVersions privateIpAddressVersion)Set the privateIpAddressVersion property: Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6.VirtualMachineNetworkInterfaceIpConfigurationPropertieswithPublicIpAddressConfiguration(VirtualMachinePublicIpAddressConfiguration publicIpAddressConfiguration)Set the publicIpAddressConfiguration property: The publicIPAddressConfiguration.VirtualMachineNetworkInterfaceIpConfigurationPropertieswithSubnet(com.azure.core.management.SubResource subnet)Set the subnet property: Specifies the identifier of the subnet.
-
-
-
Method Detail
-
subnet
public com.azure.core.management.SubResource subnet()
Get the subnet property: Specifies the identifier of the subnet.- Returns:
- the subnet value.
-
withSubnet
public VirtualMachineNetworkInterfaceIpConfigurationProperties withSubnet(com.azure.core.management.SubResource subnet)
Set the subnet property: Specifies the identifier of the subnet.- Parameters:
subnet- the subnet value to set.- Returns:
- the VirtualMachineNetworkInterfaceIpConfigurationProperties 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 VirtualMachineNetworkInterfaceIpConfigurationProperties 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 VirtualMachineNetworkInterfaceIpConfigurationProperties object itself.
-
publicIpAddressConfiguration
public VirtualMachinePublicIpAddressConfiguration publicIpAddressConfiguration()
Get the publicIpAddressConfiguration property: The publicIPAddressConfiguration.- Returns:
- the publicIpAddressConfiguration value.
-
withPublicIpAddressConfiguration
public VirtualMachineNetworkInterfaceIpConfigurationProperties withPublicIpAddressConfiguration(VirtualMachinePublicIpAddressConfiguration publicIpAddressConfiguration)
Set the publicIpAddressConfiguration property: The publicIPAddressConfiguration.- Parameters:
publicIpAddressConfiguration- the publicIpAddressConfiguration value to set.- Returns:
- the VirtualMachineNetworkInterfaceIpConfigurationProperties object itself.
-
privateIpAddressVersion
public IpVersions 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 VirtualMachineNetworkInterfaceIpConfigurationProperties withPrivateIpAddressVersion(IpVersions 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 VirtualMachineNetworkInterfaceIpConfigurationProperties 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 VirtualMachineNetworkInterfaceIpConfigurationProperties 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 VirtualMachineNetworkInterfaceIpConfigurationProperties 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 virtual machine can reference backend address pools of multiple application gateways. Multiple virtual machines cannot use the same application gateway.- Returns:
- the applicationGatewayBackendAddressPools value.
-
withApplicationGatewayBackendAddressPools
public VirtualMachineNetworkInterfaceIpConfigurationProperties 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 virtual machine can reference backend address pools of multiple application gateways. Multiple virtual machines cannot use the same application gateway.- Parameters:
applicationGatewayBackendAddressPools- the applicationGatewayBackendAddressPools value to set.- Returns:
- the VirtualMachineNetworkInterfaceIpConfigurationProperties 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 virtual machine can reference backend address pools of one public and one internal load balancer. [Multiple virtual machines cannot use the same basic sku load balancer].- Returns:
- the loadBalancerBackendAddressPools value.
-
withLoadBalancerBackendAddressPools
public VirtualMachineNetworkInterfaceIpConfigurationProperties 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 virtual machine can reference backend address pools of one public and one internal load balancer. [Multiple virtual machines cannot use the same basic sku load balancer].- Parameters:
loadBalancerBackendAddressPools- the loadBalancerBackendAddressPools value to set.- Returns:
- the VirtualMachineNetworkInterfaceIpConfigurationProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-