@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Tag extends Object implements Serializable, Cloneable, StructuredPojo
Tags are key/value pairs defined by a user and associated with a pipeline to control access. AWS Data Pipeline allows you to associate ten tags per pipeline. For more information, see Controlling User Access to Pipelines in the AWS Data Pipeline Developer Guide.
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and Description |
---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The key name of a tag defined by a user.
|
String |
getValue()
The optional value portion of a tag defined by a user.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
The key name of a tag defined by a user.
|
void |
setValue(String value)
The optional value portion of a tag defined by a user.
|
String |
toString()
Returns a string representation of this object.
|
Tag |
withKey(String key)
The key name of a tag defined by a user.
|
Tag |
withValue(String value)
The optional value portion of a tag defined by a user.
|
public void setKey(String key)
The key name of a tag defined by a user. For more information, see Controlling User Access to Pipelines in the AWS Data Pipeline Developer Guide.
key
- The key name of a tag defined by a user. For more information, see Controlling
User Access to Pipelines in the AWS Data Pipeline Developer Guide.public String getKey()
The key name of a tag defined by a user. For more information, see Controlling User Access to Pipelines in the AWS Data Pipeline Developer Guide.
public Tag withKey(String key)
The key name of a tag defined by a user. For more information, see Controlling User Access to Pipelines in the AWS Data Pipeline Developer Guide.
key
- The key name of a tag defined by a user. For more information, see Controlling
User Access to Pipelines in the AWS Data Pipeline Developer Guide.public void setValue(String value)
The optional value portion of a tag defined by a user. For more information, see Controlling User Access to Pipelines in the AWS Data Pipeline Developer Guide.
value
- The optional value portion of a tag defined by a user. For more information, see Controlling
User Access to Pipelines in the AWS Data Pipeline Developer Guide.public String getValue()
The optional value portion of a tag defined by a user. For more information, see Controlling User Access to Pipelines in the AWS Data Pipeline Developer Guide.
public Tag withValue(String value)
The optional value portion of a tag defined by a user. For more information, see Controlling User Access to Pipelines in the AWS Data Pipeline Developer Guide.
value
- The optional value portion of a tag defined by a user. For more information, see Controlling
User Access to Pipelines in the AWS Data Pipeline Developer Guide.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.