@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Tag extends Object implements Serializable, Cloneable, StructuredPojo
A tag (key-value pair) for an OpenSearch Ingestion pipeline.
| Constructor and Description |
|---|
Tag() |
| Modifier and Type | Method and Description |
|---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The tag key.
|
String |
getValue()
The value assigned to the corresponding tag key.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setKey(String key)
The tag key.
|
void |
setValue(String value)
The value assigned to the corresponding tag key.
|
String |
toString()
Returns a string representation of this object.
|
Tag |
withKey(String key)
The tag key.
|
Tag |
withValue(String value)
The value assigned to the corresponding tag key.
|
public void setKey(String key)
The tag key. Tag keys must be unique for the pipeline to which they are attached.
key - The tag key. Tag keys must be unique for the pipeline to which they are attached.public String getKey()
The tag key. Tag keys must be unique for the pipeline to which they are attached.
public Tag withKey(String key)
The tag key. Tag keys must be unique for the pipeline to which they are attached.
key - The tag key. Tag keys must be unique for the pipeline to which they are attached.public void setValue(String value)
The value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set.
For example, you can have a key value pair in a tag set of project : Trinity and
cost-center : Trinity
value - The value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a
tag set. For example, you can have a key value pair in a tag set of project : Trinity and
cost-center : Trinitypublic String getValue()
The value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set.
For example, you can have a key value pair in a tag set of project : Trinity and
cost-center : Trinity
project : Trinity and
cost-center : Trinitypublic Tag withValue(String value)
The value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set.
For example, you can have a key value pair in a tag set of project : Trinity and
cost-center : Trinity
value - The value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a
tag set. For example, you can have a key value pair in a tag set of project : Trinity and
cost-center : Trinitypublic String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2025. All rights reserved.