Share via


PublicIpReference Class

public final class PublicIpReference
extends AzureResourceReference

Defines reference to a public IP.

Constructor Summary

Constructor Description
PublicIpReference()

Creates an instance of PublicIpReference class.

Method Summary

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

Reads an instance of PublicIpReference from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PublicIpReference withSourceArmResourceId(String sourceArmResourceId)

Set the sourceArmResourceId property: Gets the ARM resource ID of the tracked resource being referenced.

Methods inherited from AzureResourceReference

Methods inherited from java.lang.Object

Constructor Details

PublicIpReference

public PublicIpReference()

Creates an instance of PublicIpReference class.

Method Details

fromJson

public static PublicIpReference fromJson(JsonReader jsonReader)

Reads an instance of PublicIpReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PublicIpReference if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

PublicIpReference.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

PublicIpReference.validate()

withSourceArmResourceId

public PublicIpReference withSourceArmResourceId(String sourceArmResourceId)

Set the sourceArmResourceId property: Gets the ARM resource ID of the tracked resource being referenced.

Overrides:

PublicIpReference.withSourceArmResourceId(String sourceArmResourceId)

Parameters:

sourceArmResourceId

Applies to