IPTag Class

  • java.lang.Object
    • com.azure.compute.batch.models.IPTag

Implements

public final class IPTag
implements JsonSerializable<IPTag>

Contains the IP tag associated with the public IP address.

Constructor Summary

Constructor Description
IPTag()

Creates an instance of IPTag class.

Method Summary

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

Reads an instance of IPTag from the JsonReader.

String getIpTagType()

Get the ipTagType property: The IP Tag type.

String getTag()

Get the tag property: The value of the IP tag associated with the public IP.

IPTag setIpTagType(String ipTagType)

Set the ipTagType property: The IP Tag type.

IPTag setTag(String tag)

Set the tag property: The value of the IP tag associated with the public IP.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

IPTag

public IPTag()

Creates an instance of IPTag class.

Method Details

fromJson

public static IPTag fromJson(JsonReader jsonReader)

Reads an instance of IPTag from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getIpTagType

public String getIpTagType()

Get the ipTagType property: The IP Tag type. Example: FirstPartyUsage.

Returns:

the ipTagType value.

getTag

public String getTag()

Get the tag property: The value of the IP tag associated with the public IP. Example: SQL.

Returns:

the tag value.

setIpTagType

public IPTag setIpTagType(String ipTagType)

Set the ipTagType property: The IP Tag type. Example: FirstPartyUsage.

Parameters:

ipTagType - the ipTagType value to set.

Returns:

the IPTag object itself.

setTag

public IPTag setTag(String tag)

Set the tag property: The value of the IP tag associated with the public IP. Example: SQL.

Parameters:

tag - the tag value to set.

Returns:

the IPTag object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to