Partager via


VirtualApplianceNicProperties Class

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

Implements

public final class VirtualApplianceNicProperties
implements JsonSerializable<VirtualApplianceNicProperties>

Network Virtual Appliance NIC properties.

Constructor Summary

Constructor Description
VirtualApplianceNicProperties()

Creates an instance of VirtualApplianceNicProperties class.

Method Summary

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

Reads an instance of VirtualApplianceNicProperties from the JsonReader.

String instanceName()

Get the instanceName property: Instance on which nic is attached.

String name()

Get the name property: NIC name.

NicTypeInResponse nicType()

Get the nicType property: NIC type - PublicNic, PrivateNic, or AdditionalNic.

String privateIpAddress()

Get the privateIpAddress property: Private IP address.

String publicIpAddress()

Get the publicIpAddress property: Public IP address.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

VirtualApplianceNicProperties

public VirtualApplianceNicProperties()

Creates an instance of VirtualApplianceNicProperties class.

Method Details

fromJson

public static VirtualApplianceNicProperties fromJson(JsonReader jsonReader)

Reads an instance of VirtualApplianceNicProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

instanceName

public String instanceName()

Get the instanceName property: Instance on which nic is attached.

Returns:

the instanceName value.

name

public String name()

Get the name property: NIC name.

Returns:

the name value.

nicType

public NicTypeInResponse nicType()

Get the nicType property: NIC type - PublicNic, PrivateNic, or AdditionalNic.

Returns:

the nicType value.

privateIpAddress

public String privateIpAddress()

Get the privateIpAddress property: Private IP address.

Returns:

the privateIpAddress value.

publicIpAddress

public String publicIpAddress()

Get the publicIpAddress property: Public IP address.

Returns:

the publicIpAddress value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to