Class Tag
- java.lang.Object
-
- com.azure.resourcemanager.consumption.models.Tag
-
public final class Tag extends Object
The tag resource.
-
-
Constructor Summary
Constructors Constructor Description Tag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
key()
Get the key property: Tag key.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.
-
-
-
Method Detail
-
key
public String key()
Get the key property: Tag key.- Returns:
- the key value.
-
withKey
public Tag withKey(String key)
Set the key property: Tag key.- Parameters:
key
- the key value to set.- Returns:
- the Tag object itself.
-
withValue
public Tag withValue(List<String> value)
Set the value property: Tag values.- Parameters:
value
- the value value to set.- Returns:
- the Tag object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-