Compartilhar via


VirtualApplianceNetworkInterfaceConfiguration Class

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

Implements

public final class VirtualApplianceNetworkInterfaceConfiguration
implements JsonSerializable<VirtualApplianceNetworkInterfaceConfiguration>

Represents a single NIC configuration.

Constructor Summary

Constructor Description
VirtualApplianceNetworkInterfaceConfiguration()

Creates an instance of VirtualApplianceNetworkInterfaceConfiguration class.

Method Summary

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

Reads an instance of VirtualApplianceNetworkInterfaceConfiguration from the JsonReader.

NicTypeInRequest nicType()

Get the nicType property: NIC type.

VirtualApplianceNetworkInterfaceConfigurationProperties properties()

Get the properties property: Represents a single NIC configuration properties.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualApplianceNetworkInterfaceConfiguration withNicType(NicTypeInRequest nicType)

Set the nicType property: NIC type.

VirtualApplianceNetworkInterfaceConfiguration withProperties(VirtualApplianceNetworkInterfaceConfigurationProperties properties)

Set the properties property: Represents a single NIC configuration properties.

Methods inherited from java.lang.Object

Constructor Details

VirtualApplianceNetworkInterfaceConfiguration

public VirtualApplianceNetworkInterfaceConfiguration()

Creates an instance of VirtualApplianceNetworkInterfaceConfiguration class.

Method Details

fromJson

public static VirtualApplianceNetworkInterfaceConfiguration fromJson(JsonReader jsonReader)

Reads an instance of VirtualApplianceNetworkInterfaceConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

nicType

public NicTypeInRequest nicType()

Get the nicType property: NIC type. This should be either PublicNic or PrivateNic.

Returns:

the nicType value.

properties

public VirtualApplianceNetworkInterfaceConfigurationProperties properties()

Get the properties property: Represents a single NIC configuration properties.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withNicType

public VirtualApplianceNetworkInterfaceConfiguration withNicType(NicTypeInRequest nicType)

Set the nicType property: NIC type. This should be either PublicNic or PrivateNic.

Parameters:

nicType - the nicType value to set.

Returns:

the VirtualApplianceNetworkInterfaceConfiguration object itself.

withProperties

public VirtualApplianceNetworkInterfaceConfiguration withProperties(VirtualApplianceNetworkInterfaceConfigurationProperties properties)

Set the properties property: Represents a single NIC configuration properties.

Parameters:

properties - the properties value to set.

Returns:

the VirtualApplianceNetworkInterfaceConfiguration object itself.

Applies to