Condividi tramite


VirtualMachineNetworkInterfaceIpConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.VirtualMachineNetworkInterfaceIpConfiguration

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 VirtualMachineNetworkInterfaceIpConfiguration class.

Method Summary

Modifier and Type Method and Description
List<SubResource> applicationGatewayBackendAddressPools()

Get the applicationGatewayBackendAddressPools property: Specifies an array of references to backend address pools of application gateways.

List<SubResource> applicationSecurityGroups()

Get the applicationSecurityGroups property: Specifies an array of references to application security group.

static VirtualMachineNetworkInterfaceIpConfiguration fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineNetworkInterfaceIpConfiguration from the JsonReader.

List<SubResource> loadBalancerBackendAddressPools()

Get the loadBalancerBackendAddressPools property: Specifies an array of references to backend address pools of load balancers.

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.

IpVersions privateIpAddressVersion()

Get the privateIpAddressVersion property: Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6.

VirtualMachinePublicIpAddressConfiguration publicIpAddressConfiguration()

Get the publicIpAddressConfiguration property: The publicIPAddressConfiguration.

SubResource subnet()

Get the subnet property: Specifies the identifier of the subnet.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualMachineNetworkInterfaceIpConfiguration withApplicationGatewayBackendAddressPools(List<SubResource> applicationGatewayBackendAddressPools)

Set the applicationGatewayBackendAddressPools property: Specifies an array of references to backend address pools of application gateways.

VirtualMachineNetworkInterfaceIpConfiguration withApplicationSecurityGroups(List<SubResource> applicationSecurityGroups)

Set the applicationSecurityGroups property: Specifies an array of references to application security group.

VirtualMachineNetworkInterfaceIpConfiguration withLoadBalancerBackendAddressPools(List<SubResource> loadBalancerBackendAddressPools)

Set the loadBalancerBackendAddressPools property: Specifies an array of references to backend address pools of load balancers.

VirtualMachineNetworkInterfaceIpConfiguration withName(String name)

Set the name property: The IP configuration name.

VirtualMachineNetworkInterfaceIpConfiguration withPrimary(Boolean primary)

Set the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.

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.

VirtualMachineNetworkInterfaceIpConfiguration withPublicIpAddressConfiguration(VirtualMachinePublicIpAddressConfiguration publicIpAddressConfiguration)

Set the publicIpAddressConfiguration property: The publicIPAddressConfiguration.

VirtualMachineNetworkInterfaceIpConfiguration 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<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.

applicationSecurityGroups

public List<SubResource> applicationSecurityGroups()

Get the applicationSecurityGroups property: Specifies an array of references to application security group.

Returns:

the applicationSecurityGroups value.

fromJson

public static VirtualMachineNetworkInterfaceIpConfiguration fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineNetworkInterfaceIpConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualMachineNetworkInterfaceIpConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

loadBalancerBackendAddressPools

public List<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.

name

public String name()

Get the name property: The IP configuration name.

Returns:

the name value.

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.

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.

publicIpAddressConfiguration

public VirtualMachinePublicIpAddressConfiguration publicIpAddressConfiguration()

Get the publicIpAddressConfiguration property: The publicIPAddressConfiguration.

Returns:

the publicIpAddressConfiguration value.

subnet

public SubResource subnet()

Get the subnet property: Specifies the identifier of the subnet.

Returns:

the subnet value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withApplicationGatewayBackendAddressPools

public VirtualMachineNetworkInterfaceIpConfiguration withApplicationGatewayBackendAddressPools(List<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 VirtualMachineNetworkInterfaceIpConfiguration object itself.

withApplicationSecurityGroups

public VirtualMachineNetworkInterfaceIpConfiguration withApplicationSecurityGroups(List<SubResource> applicationSecurityGroups)

Set the applicationSecurityGroups property: Specifies an array of references to application security group.

Parameters:

applicationSecurityGroups - the applicationSecurityGroups value to set.

Returns:

the VirtualMachineNetworkInterfaceIpConfiguration object itself.

withLoadBalancerBackendAddressPools

public VirtualMachineNetworkInterfaceIpConfiguration withLoadBalancerBackendAddressPools(List<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 VirtualMachineNetworkInterfaceIpConfiguration object itself.

withName

public VirtualMachineNetworkInterfaceIpConfiguration withName(String name)

Set the name property: The IP configuration name.

Parameters:

name - the name value to set.

Returns:

the VirtualMachineNetworkInterfaceIpConfiguration object itself.

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:

primary - the primary value to set.

Returns:

the VirtualMachineNetworkInterfaceIpConfiguration object itself.

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:

privateIpAddressVersion - the privateIpAddressVersion value to set.

Returns:

the VirtualMachineNetworkInterfaceIpConfiguration object itself.

withPublicIpAddressConfiguration

public VirtualMachineNetworkInterfaceIpConfiguration withPublicIpAddressConfiguration(VirtualMachinePublicIpAddressConfiguration publicIpAddressConfiguration)

Set the publicIpAddressConfiguration property: The publicIPAddressConfiguration.

Parameters:

publicIpAddressConfiguration - the publicIpAddressConfiguration value to set.

Returns:

the VirtualMachineNetworkInterfaceIpConfiguration object itself.

withSubnet

public VirtualMachineNetworkInterfaceIpConfiguration withSubnet(SubResource subnet)

Set the subnet property: Specifies the identifier of the subnet.

Parameters:

subnet - the subnet value to set.

Returns:

the VirtualMachineNetworkInterfaceIpConfiguration object itself.

Applies to