VirtualNetworkApplianceCapabilityProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.VirtualNetworkApplianceCapabilityProperties

Implements

public final class VirtualNetworkApplianceCapabilityProperties
implements JsonSerializable<VirtualNetworkApplianceCapabilityProperties>

Properties common to every virtual network appliance capability, independent of kind.

Constructor Summary

Constructor Description
VirtualNetworkApplianceCapabilityProperties()

Creates an instance of VirtualNetworkApplianceCapabilityProperties class.

Method Summary

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

Reads an instance of VirtualNetworkApplianceCapabilityProperties from the JsonReader.

VirtualNetworkApplianceCapabilityIpVersion ipVersion()

Get the ipVersion property: The IP version the capability applies to.

String linkedResourceId()

Get the linkedResourceId property: The Azure resource ID of the owning virtual network.

CommonProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the capability resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualNetworkApplianceCapabilityProperties withIpVersion(VirtualNetworkApplianceCapabilityIpVersion ipVersion)

Set the ipVersion property: The IP version the capability applies to.

Methods inherited from java.lang.Object

Constructor Details

VirtualNetworkApplianceCapabilityProperties

public VirtualNetworkApplianceCapabilityProperties()

Creates an instance of VirtualNetworkApplianceCapabilityProperties class.

Method Details

fromJson

public static VirtualNetworkApplianceCapabilityProperties fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkApplianceCapabilityProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ipVersion

public VirtualNetworkApplianceCapabilityIpVersion ipVersion()

Get the ipVersion property: The IP version the capability applies to. Private Link Gateway FastPath (`PLGatewayFastpath`) only accepts `DualStack`; Private Link Gateway (`PLGateway`) and Private Link IP-forwarders (`PLIPForwarders`) only accept `IPv6`. Not applicable to `NAT64`, which is property-less and must omit this value. The service validates the value against the resource's `kind` when the capability is created or updated.

Returns:

the ipVersion value.

linkedResourceId

public String linkedResourceId()

Get the linkedResourceId property: The Azure resource ID of the owning virtual network. System-derived and read-only.

Returns:

the linkedResourceId value.

provisioningState

public CommonProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the capability resource.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIpVersion

public VirtualNetworkApplianceCapabilityProperties withIpVersion(VirtualNetworkApplianceCapabilityIpVersion ipVersion)

Set the ipVersion property: The IP version the capability applies to. Private Link Gateway FastPath (`PLGatewayFastpath`) only accepts `DualStack`; Private Link Gateway (`PLGateway`) and Private Link IP-forwarders (`PLIPForwarders`) only accept `IPv6`. Not applicable to `NAT64`, which is property-less and must omit this value. The service validates the value against the resource's `kind` when the capability is created or updated.

Parameters:

ipVersion - the ipVersion value to set.

Returns:

the VirtualNetworkApplianceCapabilityProperties object itself.

Applies to