MachineIpAddress Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.MachineIpAddress

Implements

public final class MachineIpAddress
implements JsonSerializable<MachineIpAddress>

The machine IP address details.

Constructor Summary

Constructor Description
MachineIpAddress()

Creates an instance of MachineIpAddress class.

Method Summary

Modifier and Type Method and Description
IpFamily family()

Get the family property: To determine if address belongs IPv4 or IPv6 family.

static MachineIpAddress fromJson(JsonReader jsonReader)

Reads an instance of MachineIpAddress from the JsonReader.

String ip()

Get the ip property: IPv4 or IPv6 address of the machine.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

MachineIpAddress

public MachineIpAddress()

Creates an instance of MachineIpAddress class.

Method Details

family

public IpFamily family()

Get the family property: To determine if address belongs IPv4 or IPv6 family.

Returns:

the family value.

fromJson

public static MachineIpAddress fromJson(JsonReader jsonReader)

Reads an instance of MachineIpAddress from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ip

public String ip()

Get the ip property: IPv4 or IPv6 address of the machine.

Returns:

the ip value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to