public class Tag
extends java.lang.Object
implements java.io.Serializable
Metadata assigned to the stream, consisting of a key-value pair.
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKey()
A unique identifier for the tag.
|
java.lang.String |
getValue()
An optional string, typically used to describe or define the tag.
|
int |
hashCode() |
void |
setKey(java.lang.String key)
A unique identifier for the tag.
|
void |
setValue(java.lang.String value)
An optional string, typically used to describe or define the tag.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Tag |
withKey(java.lang.String key)
A unique identifier for the tag.
|
Tag |
withValue(java.lang.String value)
An optional string, typically used to describe or define the tag.
|
public java.lang.String getKey()
A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
Constraints:
Length: 1 - 128
A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
public void setKey(java.lang.String key)
A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
Constraints:
Length: 1 - 128
key
- A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
public Tag withKey(java.lang.String key)
A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
key
- A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
public java.lang.String getValue()
An optional string, typically used to describe or define the tag. Maximum length: 256 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
Constraints:
Length: 0 - 256
An optional string, typically used to describe or define the tag. Maximum length: 256 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
public void setValue(java.lang.String value)
An optional string, typically used to describe or define the tag. Maximum length: 256 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
Constraints:
Length: 0 - 256
value
- An optional string, typically used to describe or define the tag. Maximum length: 256 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
public Tag withValue(java.lang.String value)
An optional string, typically used to describe or define the tag. Maximum length: 256 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 256
value
- An optional string, typically used to describe or define the tag. Maximum length: 256 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
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.