public class Tag
extends java.lang.Object
implements java.io.Serializable
A set of key/value pairs that are used to manage the resource.
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKey()
The tag's key.
|
java.lang.String |
getValue()
The tag's value.
|
int |
hashCode() |
void |
setKey(java.lang.String key)
The tag's key.
|
void |
setValue(java.lang.String value)
The tag's value.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Tag |
withKey(java.lang.String key)
The tag's key.
|
Tag |
withValue(java.lang.String value)
The tag's value.
|
public java.lang.String getKey()
The tag's key.
Constraints:
Length: 1 - 128
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$
The tag's key.
public void setKey(java.lang.String key)
The tag's key.
Constraints:
Length: 1 - 128
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$
key
- The tag's key.
public Tag withKey(java.lang.String key)
The tag's key.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$
key
- The tag's key.
public java.lang.String getValue()
The tag's value.
Constraints:
Length: 1 - 256
The tag's value.
public void setValue(java.lang.String value)
The tag's value.
Constraints:
Length: 1 - 256
value
- The tag's value.
public Tag withValue(java.lang.String value)
The tag's value.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
value
- The tag's value.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.