共用方式為


VirtualApplianceAdditionalNicProperties Class

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

Implements

public final class VirtualApplianceAdditionalNicProperties
implements JsonSerializable<VirtualApplianceAdditionalNicProperties>

Network Virtual Appliance Additional Nic Properties Network Virtual Appliance Additional NIC properties.

Constructor Summary

Constructor Description
VirtualApplianceAdditionalNicProperties()

Creates an instance of VirtualApplianceAdditionalNicProperties class.

Method Summary

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

Reads an instance of VirtualApplianceAdditionalNicProperties from the JsonReader.

Boolean hasPublicIp()

Get the hasPublicIp property: Flag (true or false) for Intent for Public Ip on additional nic.

String name()

Get the name property: Name of additional nic.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualApplianceAdditionalNicProperties withHasPublicIp(Boolean hasPublicIp)

Set the hasPublicIp property: Flag (true or false) for Intent for Public Ip on additional nic.

VirtualApplianceAdditionalNicProperties withName(String name)

Set the name property: Name of additional nic.

Methods inherited from java.lang.Object

Constructor Details

VirtualApplianceAdditionalNicProperties

public VirtualApplianceAdditionalNicProperties()

Creates an instance of VirtualApplianceAdditionalNicProperties class.

Method Details

fromJson

public static VirtualApplianceAdditionalNicProperties fromJson(JsonReader jsonReader)

Reads an instance of VirtualApplianceAdditionalNicProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

hasPublicIp

public Boolean hasPublicIp()

Get the hasPublicIp property: Flag (true or false) for Intent for Public Ip on additional nic.

Returns:

the hasPublicIp value.

name

public String name()

Get the name property: Name of additional nic.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withHasPublicIp

public VirtualApplianceAdditionalNicProperties withHasPublicIp(Boolean hasPublicIp)

Set the hasPublicIp property: Flag (true or false) for Intent for Public Ip on additional nic.

Parameters:

hasPublicIp - the hasPublicIp value to set.

Returns:

the VirtualApplianceAdditionalNicProperties object itself.

withName

public VirtualApplianceAdditionalNicProperties withName(String name)

Set the name property: Name of additional nic.

Parameters:

name - the name value to set.

Returns:

the VirtualApplianceAdditionalNicProperties object itself.

Applies to