IpAddress Class

  • java.lang.Object
    • com.azure.resourcemanager.largeinstance.models.IpAddress

Implements

public final class IpAddress
implements JsonSerializable<IpAddress>

Specifies the IP address of the network interface.

Constructor Summary

Constructor Description
IpAddress()

Creates an instance of IpAddress class.

Method Summary

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

Reads an instance of IpAddress from the JsonReader.

String ipAddress()

Get the ipAddress property: Specifies the IP address of the network interface.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

IpAddress withIpAddress(String ipAddress)

Set the ipAddress property: Specifies the IP address of the network interface.

Methods inherited from java.lang.Object

Constructor Details

IpAddress

public IpAddress()

Creates an instance of IpAddress class.

Method Details

fromJson

public static IpAddress fromJson(JsonReader jsonReader)

Reads an instance of IpAddress from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ipAddress

public String ipAddress()

Get the ipAddress property: Specifies the IP address of the network interface.

Returns:

the ipAddress value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIpAddress

public IpAddress withIpAddress(String ipAddress)

Set the ipAddress property: Specifies the IP address of the network interface.

Parameters:

ipAddress - the ipAddress value to set.

Returns:

the IpAddress object itself.

Applies to