VirtualMachineNetworkInterfaceIpConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. VirtualMachineNetworkInterfaceIpConfiguration
- com.
Implements
public final class VirtualMachineNetworkInterfaceIpConfiguration
implements JsonSerializable<VirtualMachineNetworkInterfaceIpConfiguration>
Describes a virtual machine network profile's IP configuration.
Constructor Summary
Constructor | Description |
---|---|
VirtualMachineNetworkInterfaceIpConfiguration() |
Creates an instance of Virtual |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Sub |
applicationGatewayBackendAddressPools()
Get the application |
List<Sub |
applicationSecurityGroups()
Get the application |
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
List<Sub |
loadBalancerBackendAddressPools()
Get the load |
String |
name()
Get the name property: The IP configuration name. |
Boolean |
primary()
Get the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface. |
Ip |
privateIpAddressVersion()
Get the private |
Virtual |
publicIpAddressConfiguration()
Get the public |
Sub |
subnet()
Get the subnet property: Specifies the identifier of the subnet. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Virtual |
withApplicationGatewayBackendAddressPools(List<SubResource> applicationGatewayBackendAddressPools)
Set the application |
Virtual |
withApplicationSecurityGroups(List<SubResource> applicationSecurityGroups)
Set the application |
Virtual |
withLoadBalancerBackendAddressPools(List<SubResource> loadBalancerBackendAddressPools)
Set the load |
Virtual |
withName(String name)
Set the name property: The IP configuration name. |
Virtual |
withPrimary(Boolean primary)
Set the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface. |
Virtual |
withPrivateIpAddressVersion(IpVersions privateIpAddressVersion)
Set the private |
Virtual |
withPublicIpAddressConfiguration(VirtualMachinePublicIpAddressConfiguration publicIpAddressConfiguration)
Set the public |
Virtual |
withSubnet(SubResource subnet)
Set the subnet property: Specifies the identifier of the subnet. |
Methods inherited from java.lang.Object
Constructor Details
VirtualMachineNetworkInterfaceIpConfiguration
public VirtualMachineNetworkInterfaceIpConfiguration()
Creates an instance of VirtualMachineNetworkInterfaceIpConfiguration class.
Method Details
applicationGatewayBackendAddressPools
public List
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:
applicationSecurityGroups
public List
Get the applicationSecurityGroups property: Specifies an array of references to application security group.
Returns:
fromJson
public static VirtualMachineNetworkInterfaceIpConfiguration fromJson(JsonReader jsonReader)
Reads an instance of VirtualMachineNetworkInterfaceIpConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
loadBalancerBackendAddressPools
public List
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:
name
public String name()
Get the name property: The IP configuration name.
Returns:
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:
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:
publicIpAddressConfiguration
public VirtualMachinePublicIpAddressConfiguration publicIpAddressConfiguration()
Get the publicIpAddressConfiguration property: The publicIPAddressConfiguration.
Returns:
subnet
public SubResource subnet()
Get the subnet property: Specifies the identifier of the subnet.
Returns:
toJson
validate
public void validate()
Validates the instance.
withApplicationGatewayBackendAddressPools
public VirtualMachineNetworkInterfaceIpConfiguration withApplicationGatewayBackendAddressPools(List
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:
Returns:
withApplicationSecurityGroups
public VirtualMachineNetworkInterfaceIpConfiguration withApplicationSecurityGroups(List
Set the applicationSecurityGroups property: Specifies an array of references to application security group.
Parameters:
Returns:
withLoadBalancerBackendAddressPools
public VirtualMachineNetworkInterfaceIpConfiguration withLoadBalancerBackendAddressPools(List
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:
Returns:
withName
public VirtualMachineNetworkInterfaceIpConfiguration withName(String name)
Set the name property: The IP configuration name.
Parameters:
Returns:
withPrimary
public VirtualMachineNetworkInterfaceIpConfiguration withPrimary(Boolean primary)
Set the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.
Parameters:
Returns:
withPrivateIpAddressVersion
public VirtualMachineNetworkInterfaceIpConfiguration 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:
Returns:
withPublicIpAddressConfiguration
public VirtualMachineNetworkInterfaceIpConfiguration withPublicIpAddressConfiguration(VirtualMachinePublicIpAddressConfiguration publicIpAddressConfiguration)
Set the publicIpAddressConfiguration property: The publicIPAddressConfiguration.
Parameters:
Returns:
withSubnet
public VirtualMachineNetworkInterfaceIpConfiguration withSubnet(SubResource subnet)
Set the subnet property: Specifies the identifier of the subnet.
Parameters:
Returns:
Applies to
Azure SDK for Java