Class Tag
- java.lang.Object
-
- com.amazonaws.services.kinesis.model.Tag
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Tag extends Object implements Serializable, Cloneable
Metadata assigned to the stream, consisting of a key-value pair.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Tag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tag
clone()
boolean
equals(Object obj)
String
getKey()
A unique identifier for the tag.String
getValue()
An optional string, typically used to describe or define the tag.int
hashCode()
void
setKey(String key)
A unique identifier for the tag.void
setValue(String value)
An optional string, typically used to describe or define the tag.String
toString()
Returns a string representation of this object; useful for testing and debugging.Tag
withKey(String key)
A unique identifier for the tag.Tag
withValue(String value)
An optional string, typically used to describe or define the tag.
-
-
-
Method Detail
-
setKey
public void setKey(String key)
A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
- Parameters:
key
- A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
-
getKey
public String getKey()
A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
- Returns:
- A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
-
withKey
public Tag withKey(String key)
A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
- Parameters:
key
- A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValue
public void setValue(String value)
An optional string, typically used to describe or define the tag. Maximum length: 256 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
- Parameters:
value
- An optional string, typically used to describe or define the tag. Maximum length: 256 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
-
getValue
public String getValue()
An optional string, typically used to describe or define the tag. Maximum length: 256 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
- Returns:
- An optional string, typically used to describe or define the tag. Maximum length: 256 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
-
withValue
public Tag withValue(String value)
An optional string, typically used to describe or define the tag. Maximum length: 256 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
- Parameters:
value
- An optional string, typically used to describe or define the tag. Maximum length: 256 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-