Partager via


VirtualNetworkApplianceIpConfigurationProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.network.fluent.models.VirtualNetworkApplianceIpConfigurationProperties

Implements

public final class VirtualNetworkApplianceIpConfigurationProperties
implements JsonSerializable<VirtualNetworkApplianceIpConfigurationProperties>

Properties of virtual network appliance IP configuration.

Constructor Summary

Constructor Description
VirtualNetworkApplianceIpConfigurationProperties()

Creates an instance of VirtualNetworkApplianceIpConfigurationProperties class.

Method Summary

Modifier and Type Method and Description
static VirtualNetworkApplianceIpConfigurationProperties fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkApplianceIpConfigurationProperties from the JsonReader.

Boolean primary()

Get the primary property: Whether the ip configuration is primary or not.

String privateIpAddress()

Get the privateIpAddress property: The private IP address of the IP configuration.

IpVersion privateIpAddressVersion()

Get the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6.

IpAllocationMethod privateIpAllocationMethod()

Get the privateIpAllocationMethod property: The private IP address allocation method.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the private link service IP configuration resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualNetworkApplianceIpConfigurationProperties withPrimary(Boolean primary)

Set the primary property: Whether the ip configuration is primary or not.

VirtualNetworkApplianceIpConfigurationProperties withPrivateIpAddress(String privateIpAddress)

Set the privateIpAddress property: The private IP address of the IP configuration.

VirtualNetworkApplianceIpConfigurationProperties withPrivateIpAddressVersion(IpVersion privateIpAddressVersion)

Set the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6.

VirtualNetworkApplianceIpConfigurationProperties withPrivateIpAllocationMethod(IpAllocationMethod privateIpAllocationMethod)

Set the privateIpAllocationMethod property: The private IP address allocation method.

Methods inherited from java.lang.Object

Constructor Details

VirtualNetworkApplianceIpConfigurationProperties

public VirtualNetworkApplianceIpConfigurationProperties()

Creates an instance of VirtualNetworkApplianceIpConfigurationProperties class.

Method Details

fromJson

public static VirtualNetworkApplianceIpConfigurationProperties fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkApplianceIpConfigurationProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the VirtualNetworkApplianceIpConfigurationProperties.

primary

public Boolean primary()

Get the primary property: Whether the ip configuration is primary or not.

Returns:

the primary value.

privateIpAddress

public String privateIpAddress()

Get the privateIpAddress property: The private IP address of the IP configuration.

Returns:

the privateIpAddress value.

privateIpAddressVersion

public IpVersion privateIpAddressVersion()

Get the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4.

Returns:

the privateIpAddressVersion value.

privateIpAllocationMethod

public IpAllocationMethod privateIpAllocationMethod()

Get the privateIpAllocationMethod property: The private IP address allocation method.

Returns:

the privateIpAllocationMethod value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the private link service IP configuration resource.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPrimary

public VirtualNetworkApplianceIpConfigurationProperties withPrimary(Boolean primary)

Set the primary property: Whether the ip configuration is primary or not.

Parameters:

primary - the primary value to set.

Returns:

the VirtualNetworkApplianceIpConfigurationProperties object itself.

withPrivateIpAddress

public VirtualNetworkApplianceIpConfigurationProperties withPrivateIpAddress(String privateIpAddress)

Set the privateIpAddress property: The private IP address of the IP configuration.

Parameters:

privateIpAddress - the privateIpAddress value to set.

Returns:

the VirtualNetworkApplianceIpConfigurationProperties object itself.

withPrivateIpAddressVersion

public VirtualNetworkApplianceIpConfigurationProperties withPrivateIpAddressVersion(IpVersion privateIpAddressVersion)

Set the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4.

Parameters:

privateIpAddressVersion - the privateIpAddressVersion value to set.

Returns:

the VirtualNetworkApplianceIpConfigurationProperties object itself.

withPrivateIpAllocationMethod

public VirtualNetworkApplianceIpConfigurationProperties withPrivateIpAllocationMethod(IpAllocationMethod privateIpAllocationMethod)

Set the privateIpAllocationMethod property: The private IP address allocation method.

Parameters:

privateIpAllocationMethod - the privateIpAllocationMethod value to set.

Returns:

the VirtualNetworkApplianceIpConfigurationProperties object itself.

Applies to