Compartilhar via


VirtualApplianceIpConfigurationProperties Class

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

Implements

public final class VirtualApplianceIpConfigurationProperties
implements JsonSerializable<VirtualApplianceIpConfigurationProperties>

Represents a single IP configuration properties.

Constructor Summary

Constructor Description
VirtualApplianceIpConfigurationProperties()

Creates an instance of VirtualApplianceIpConfigurationProperties class.

Method Summary

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

Reads an instance of VirtualApplianceIpConfigurationProperties from the JsonReader.

Boolean primary()

Get the primary property: Whether or not this is primary IP configuration of the NIC.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualApplianceIpConfigurationProperties withPrimary(Boolean primary)

Set the primary property: Whether or not this is primary IP configuration of the NIC.

Methods inherited from java.lang.Object

Constructor Details

VirtualApplianceIpConfigurationProperties

public VirtualApplianceIpConfigurationProperties()

Creates an instance of VirtualApplianceIpConfigurationProperties class.

Method Details

fromJson

public static VirtualApplianceIpConfigurationProperties fromJson(JsonReader jsonReader)

Reads an instance of VirtualApplianceIpConfigurationProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

primary

public Boolean primary()

Get the primary property: Whether or not this is primary IP configuration of the NIC.

Returns:

the primary value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPrimary

public VirtualApplianceIpConfigurationProperties withPrimary(Boolean primary)

Set the primary property: Whether or not this is primary IP configuration of the NIC.

Parameters:

primary - the primary value to set.

Returns:

the VirtualApplianceIpConfigurationProperties object itself.

Applies to