public class Tag
extends java.lang.Object
implements java.io.Serializable
The list of tags to be added to the specified topic.
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKey()
The required key portion of the tag.
|
java.lang.String |
getValue()
The optional value portion of the tag.
|
int |
hashCode() |
void |
setKey(java.lang.String key)
The required key portion of the tag.
|
void |
setValue(java.lang.String value)
The optional value portion 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 required key portion of the tag.
|
Tag |
withValue(java.lang.String value)
The optional value portion of the tag.
|
public java.lang.String getKey()
The required key portion of the tag.
Constraints:
Length: 1 - 128
The required key portion of the tag.
public void setKey(java.lang.String key)
The required key portion of the tag.
Constraints:
Length: 1 - 128
key
- The required key portion of the tag.
public Tag withKey(java.lang.String key)
The required key portion of the tag.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
key
- The required key portion of the tag.
public java.lang.String getValue()
The optional value portion of the tag.
Constraints:
Length: 0 - 256
The optional value portion of the tag.
public void setValue(java.lang.String value)
The optional value portion of the tag.
Constraints:
Length: 0 - 256
value
- The optional value portion of the tag.
public Tag withValue(java.lang.String value)
The optional value portion of the tag.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 256
value
- The optional value portion of the tag.
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.