public class TagKeyOnly
extends java.lang.Object
implements java.io.Serializable
The key of a tag.
Constructor and Description |
---|
TagKeyOnly() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKey()
The name of the key.
|
int |
hashCode() |
void |
setKey(java.lang.String key)
The name of the key.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TagKeyOnly |
withKey(java.lang.String key)
The name of the key.
|
public java.lang.String getKey()
The name of the key.
Constraints:
Length: 1 - 128
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$
The name of the key.
public void setKey(java.lang.String key)
The name of the key.
Constraints:
Length: 1 - 128
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$
key
- The name of the key.
public TagKeyOnly withKey(java.lang.String key)
The name of the 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 name of the key.
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 © 2010 Amazon Web Services, Inc. All Rights Reserved.