public class Tag
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
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.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
key
The key name of a tag defined by a user.
|
private java.lang.String |
value
The optional value portion of a tag defined by a user.
|
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and Description |
---|---|
Tag |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKey()
The key name of a tag defined by a user.
|
java.lang.String |
getValue()
The optional value portion of a tag defined by a user.
|
int |
hashCode() |
void |
setKey(java.lang.String key)
The key name of a tag defined by a user.
|
void |
setValue(java.lang.String value)
The optional value portion of a tag defined by a user.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Tag |
withKey(java.lang.String key)
The key name of a tag defined by a user.
|
Tag |
withValue(java.lang.String value)
The optional value portion of a tag defined by a user.
|
private java.lang.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.
private java.lang.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.
public void setKey(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Tag clone()
clone
in class java.lang.Object