Share via


VirtualNetworkApplianceIpConfiguration Class

public final class VirtualNetworkApplianceIpConfiguration
extends SubResource

The virtual network appliance ip configuration.

Constructor Summary

Constructor Description
VirtualNetworkApplianceIpConfiguration()

Creates an instance of VirtualNetworkApplianceIpConfiguration class.

Method Summary

Modifier and Type Method and Description
String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

static VirtualNetworkApplianceIpConfiguration fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkApplianceIpConfiguration from the JsonReader.

String name()

Get the name property: The name of virtual network appliance ip configuration.

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)
String type()

Get the type property: The resource type.

void validate()

Validates the instance.

VirtualNetworkApplianceIpConfiguration withId(String id)
VirtualNetworkApplianceIpConfiguration withName(String name)

Set the name property: The name of virtual network appliance ip configuration.

VirtualNetworkApplianceIpConfiguration withPrimary(Boolean primary)

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

VirtualNetworkApplianceIpConfiguration withPrivateIpAddress(String privateIpAddress)

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

VirtualNetworkApplianceIpConfiguration withPrivateIpAddressVersion(IpVersion privateIpAddressVersion)

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

VirtualNetworkApplianceIpConfiguration withPrivateIpAllocationMethod(IpAllocationMethod privateIpAllocationMethod)

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

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

VirtualNetworkApplianceIpConfiguration

public VirtualNetworkApplianceIpConfiguration()

Creates an instance of VirtualNetworkApplianceIpConfiguration class.

Method Details

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

fromJson

public static VirtualNetworkApplianceIpConfiguration fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkApplianceIpConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualNetworkApplianceIpConfiguration 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 VirtualNetworkApplianceIpConfiguration.

name

public String name()

Get the name property: The name of virtual network appliance ip configuration.

Returns:

the name value.

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)

Overrides:

VirtualNetworkApplianceIpConfiguration.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The resource type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withId

public VirtualNetworkApplianceIpConfiguration withId(String id)

Overrides:

VirtualNetworkApplianceIpConfiguration.withId(String id)

Parameters:

id

withName

public VirtualNetworkApplianceIpConfiguration withName(String name)

Set the name property: The name of virtual network appliance ip configuration.

Parameters:

name - the name value to set.

Returns:

the VirtualNetworkApplianceIpConfiguration object itself.

withPrimary

public VirtualNetworkApplianceIpConfiguration withPrimary(Boolean primary)

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

Parameters:

primary - the primary value to set.

Returns:

the VirtualNetworkApplianceIpConfiguration object itself.

withPrivateIpAddress

public VirtualNetworkApplianceIpConfiguration withPrivateIpAddress(String privateIpAddress)

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

Parameters:

privateIpAddress - the privateIpAddress value to set.

Returns:

the VirtualNetworkApplianceIpConfiguration object itself.

withPrivateIpAddressVersion

public VirtualNetworkApplianceIpConfiguration 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 VirtualNetworkApplianceIpConfiguration object itself.

withPrivateIpAllocationMethod

public VirtualNetworkApplianceIpConfiguration withPrivateIpAllocationMethod(IpAllocationMethod privateIpAllocationMethod)

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

Parameters:

privateIpAllocationMethod - the privateIpAllocationMethod value to set.

Returns:

the VirtualNetworkApplianceIpConfiguration object itself.

Applies to