@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)
Marshalls this structured data using the given
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 : Trinity
public 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 : Trinity
public 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 : Trinity
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.