Tag Class
- java.
lang. Object - com.
azure. resourcemanager. consumption. models. Tag
- com.
Implements
public final class Tag
implements JsonSerializable<Tag>
The tag resource.
Constructor Summary
Constructor | Description |
---|---|
Tag() |
Creates an instance of Tag class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
static Tag |
fromJson(JsonReader jsonReader)
Reads an instance of Tag from the Json |
String |
key()
Get the key property: Tag key. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
List<String> |
value()
Get the value property: Tag values. |
Tag |
withKey(String key)
Set the key property: Tag key. |
Tag |
withValue(List<String> value)
Set the value property: Tag values. |
Methods inherited from java.lang.Object
Constructor Details
Tag
public Tag()
Creates an instance of Tag class.
Method Details
fromJson
public static Tag fromJson(JsonReader jsonReader)
Reads an instance of Tag from the JsonReader.
Parameters:
Returns:
Throws:
key
public String key()
Get the key property: Tag key.
Returns:
toJson
validate
public void validate()
Validates the instance.
value
public List
Get the value property: Tag values.
Returns:
withKey
public Tag withKey(String key)
Set the key property: Tag key.
Parameters:
Returns:
withValue
public Tag withValue(List
Set the value property: Tag values.
Parameters:
Returns:
Applies to
Azure SDK for Java