@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Tag extends Object implements Serializable, Cloneable, StructuredPojo
A custom key-value pair associated with an ML object, such as an ML model.
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and 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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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.
|
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.
|
public void setKey(String key)
A unique identifier for the tag. Valid characters include Unicode letters, digits, white space, _, ., /, =, +, -, %, and @.
key
- A unique identifier for the tag. Valid characters include Unicode letters, digits, white space, _, ., /,
=, +, -, %, and @.public String getKey()
A unique identifier for the tag. Valid characters include Unicode letters, digits, white space, _, ., /, =, +, -, %, and @.
public Tag withKey(String key)
A unique identifier for the tag. Valid characters include Unicode letters, digits, white space, _, ., /, =, +, -, %, and @.
key
- A unique identifier for the tag. Valid characters include Unicode letters, digits, white space, _, ., /,
=, +, -, %, and @.public void setValue(String value)
An optional string, typically used to describe or define the tag. Valid characters include Unicode letters, digits, white space, _, ., /, =, +, -, %, and @.
value
- An optional string, typically used to describe or define the tag. Valid characters include Unicode
letters, digits, white space, _, ., /, =, +, -, %, and @.public String getValue()
An optional string, typically used to describe or define the tag. Valid characters include Unicode letters, digits, white space, _, ., /, =, +, -, %, and @.
public Tag withValue(String value)
An optional string, typically used to describe or define the tag. Valid characters include Unicode letters, digits, white space, _, ., /, =, +, -, %, and @.
value
- An optional string, typically used to describe or define the tag. Valid characters include Unicode
letters, digits, white space, _, ., /, =, +, -, %, and @.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.