|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.amazonaws.services.ec2.model.Tag
public class Tag
Describes a tag.
| Constructor Summary | |
|---|---|
Tag()
Default constructor for a new Tag object. |
|
Tag(java.lang.String key)
Constructs a new Tag object. |
|
Tag(java.lang.String key,
java.lang.String value)
Constructs a new Tag object. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getKey()
The key of the tag. |
java.lang.String |
getValue()
The value of the tag. |
int |
hashCode()
|
void |
setKey(java.lang.String key)
The key of the tag. |
void |
setValue(java.lang.String value)
The value of the tag. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
Tag |
withKey(java.lang.String key)
The key of the tag. |
Tag |
withValue(java.lang.String value)
The value of the tag. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Tag()
public Tag(java.lang.String key,
java.lang.String value)
key - The key of the tag. Constraints: Tag keys are
case-sensitive and accept a maximum of 127 Unicode characters. May not
begin with aws:
value - The value of the tag. Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
public Tag(java.lang.String key)
key - The key of the tag. Constraints: Tag keys are
case-sensitive and accept a maximum of 127 Unicode characters. May not
begin with aws:
| Method Detail |
|---|
public java.lang.String getKey()
Constraints: Tag keys are case-sensitive and
accept a maximum of 127 Unicode characters. May not begin with
aws:
Constraints: Tag keys are case-sensitive and
accept a maximum of 127 Unicode characters. May not begin with
aws:
public void setKey(java.lang.String key)
Constraints: Tag keys are case-sensitive and
accept a maximum of 127 Unicode characters. May not begin with
aws:
key - The key of the tag. Constraints: Tag keys are case-sensitive and
accept a maximum of 127 Unicode characters. May not begin with
aws:
public Tag withKey(java.lang.String key)
Constraints: Tag keys are case-sensitive and
accept a maximum of 127 Unicode characters. May not begin with
aws:
Returns a reference to this object so that method calls can be chained together.
key - The key of the tag. Constraints: Tag keys are case-sensitive and
accept a maximum of 127 Unicode characters. May not begin with
aws:
public java.lang.String getValue()
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
public void setValue(java.lang.String value)
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
value - The value of the tag. Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
public Tag withValue(java.lang.String value)
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
Returns a reference to this object so that method calls can be chained together.
value - The value of the tag. Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||