@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TagResourceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
TagResourceRequest() |
Modifier and Type | Method and Description |
---|---|
TagResourceRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getResource()
The Amazon Resource Name (ARN) for the container.
|
List<Tag> |
getTags()
An array of key:value pairs that you want to add to the container.
|
int |
hashCode() |
void |
setResource(String resource)
The Amazon Resource Name (ARN) for the container.
|
void |
setTags(Collection<Tag> tags)
An array of key:value pairs that you want to add to the container.
|
String |
toString()
Returns a string representation of this object.
|
TagResourceRequest |
withResource(String resource)
The Amazon Resource Name (ARN) for the container.
|
TagResourceRequest |
withTags(Collection<Tag> tags)
An array of key:value pairs that you want to add to the container.
|
TagResourceRequest |
withTags(Tag... tags)
An array of key:value pairs that you want to add to the container.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setResource(String resource)
The Amazon Resource Name (ARN) for the container.
resource
- The Amazon Resource Name (ARN) for the container.public String getResource()
The Amazon Resource Name (ARN) for the container.
public TagResourceRequest withResource(String resource)
The Amazon Resource Name (ARN) for the container.
resource
- The Amazon Resource Name (ARN) for the container.public List<Tag> getTags()
An array of key:value pairs that you want to add to the container. You need to specify only the tags that you want to add or update. For example, suppose a container already has two tags (customer:CompanyA and priority:High). You want to change the priority tag and also add a third tag (type:Contract). For TagResource, you specify the following tags: priority:Medium, type:Contract. The result is that your container has three tags: customer:CompanyA, priority:Medium, and type:Contract.
public void setTags(Collection<Tag> tags)
An array of key:value pairs that you want to add to the container. You need to specify only the tags that you want to add or update. For example, suppose a container already has two tags (customer:CompanyA and priority:High). You want to change the priority tag and also add a third tag (type:Contract). For TagResource, you specify the following tags: priority:Medium, type:Contract. The result is that your container has three tags: customer:CompanyA, priority:Medium, and type:Contract.
tags
- An array of key:value pairs that you want to add to the container. You need to specify only the tags that
you want to add or update. For example, suppose a container already has two tags (customer:CompanyA and
priority:High). You want to change the priority tag and also add a third tag (type:Contract). For
TagResource, you specify the following tags: priority:Medium, type:Contract. The result is that your
container has three tags: customer:CompanyA, priority:Medium, and type:Contract.public TagResourceRequest withTags(Tag... tags)
An array of key:value pairs that you want to add to the container. You need to specify only the tags that you want to add or update. For example, suppose a container already has two tags (customer:CompanyA and priority:High). You want to change the priority tag and also add a third tag (type:Contract). For TagResource, you specify the following tags: priority:Medium, type:Contract. The result is that your container has three tags: customer:CompanyA, priority:Medium, and type:Contract.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- An array of key:value pairs that you want to add to the container. You need to specify only the tags that
you want to add or update. For example, suppose a container already has two tags (customer:CompanyA and
priority:High). You want to change the priority tag and also add a third tag (type:Contract). For
TagResource, you specify the following tags: priority:Medium, type:Contract. The result is that your
container has three tags: customer:CompanyA, priority:Medium, and type:Contract.public TagResourceRequest withTags(Collection<Tag> tags)
An array of key:value pairs that you want to add to the container. You need to specify only the tags that you want to add or update. For example, suppose a container already has two tags (customer:CompanyA and priority:High). You want to change the priority tag and also add a third tag (type:Contract). For TagResource, you specify the following tags: priority:Medium, type:Contract. The result is that your container has three tags: customer:CompanyA, priority:Medium, and type:Contract.
tags
- An array of key:value pairs that you want to add to the container. You need to specify only the tags that
you want to add or update. For example, suppose a container already has two tags (customer:CompanyA and
priority:High). You want to change the priority tag and also add a third tag (type:Contract). For
TagResource, you specify the following tags: priority:Medium, type:Contract. The result is that your
container has three tags: customer:CompanyA, priority:Medium, and type:Contract.public String toString()
toString
in class Object
Object.toString()
public TagResourceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()