public class Tag extends Object implements Serializable, 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 .
| 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 |
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; useful for testing and
debugging.
|
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 String getKey()
Constraints:
Length: 1 - 128
public void setKey(String key)
Constraints:
Length: 1 - 128
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 Tag withKey(String key)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
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 getValue()
Constraints:
Length: 0 - 256
public void setValue(String value)
Constraints:
Length: 0 - 256
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 Tag withValue(String value)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 256
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 ObjectObject.toString()Copyright © 2015. All rights reserved.