Freigeben über


ReferencedPublicIpAddress Class

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

Implements

public final class ReferencedPublicIpAddress
implements JsonSerializable<ReferencedPublicIpAddress>

Reference to a public IP address.

Constructor Summary

Constructor Description
ReferencedPublicIpAddress()

Creates an instance of ReferencedPublicIpAddress class.

Method Summary

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

Reads an instance of ReferencedPublicIpAddress from the JsonReader.

String id()

Get the id property: The PublicIPAddress Reference.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ReferencedPublicIpAddress withId(String id)

Set the id property: The PublicIPAddress Reference.

Methods inherited from java.lang.Object

Constructor Details

ReferencedPublicIpAddress

public ReferencedPublicIpAddress()

Creates an instance of ReferencedPublicIpAddress class.

Method Details

fromJson

public static ReferencedPublicIpAddress fromJson(JsonReader jsonReader)

Reads an instance of ReferencedPublicIpAddress from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The PublicIPAddress Reference.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public ReferencedPublicIpAddress withId(String id)

Set the id property: The PublicIPAddress Reference.

Parameters:

id - the id value to set.

Returns:

the ReferencedPublicIpAddress object itself.

Applies to