Partager via


IpTag Class

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

Implements

public final class IpTag
implements JsonSerializable<IpTag>

Contains the IPTag associated with the object.

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 ipTagType()

Get the ipTagType property: The IP tag type.

String tag()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

IpTag withIpTagType(String ipTagType)

Set the ipTagType property: The IP tag type.

IpTag withTag(String tag)

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

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.

ipTagType

public String ipTagType()

Get the ipTagType property: The IP tag type. Example: RoutingPreference.

Returns:

the ipTagType value.

tag

public String tag()

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

Returns:

the tag value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIpTagType

public IpTag withIpTagType(String ipTagType)

Set the ipTagType property: The IP tag type. Example: RoutingPreference.

Parameters:

ipTagType - the ipTagType value to set.

Returns:

the IpTag object itself.

withTag

public IpTag withTag(String tag)

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

Parameters:

tag - the tag value to set.

Returns:

the IpTag object itself.

Applies to