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 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()
Copyright © 2018. All rights reserved.