public class TagResourceRequest extends AmazonWebServiceRequest implements java.io.Serializable
Adds to or modifies the tags of the given resource. Tags are metadata which can be used to manage a resource.
| Constructor and Description |
|---|
TagResourceRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getResourceArn()
The ARN of the resource.
|
java.util.List<Tag> |
getTags()
The new or modified tags for the resource.
|
int |
hashCode() |
void |
setResourceArn(java.lang.String resourceArn)
The ARN of the resource.
|
void |
setTags(java.util.Collection<Tag> tags)
The new or modified tags for the resource.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TagResourceRequest |
withResourceArn(java.lang.String resourceArn)
The ARN of the resource.
|
TagResourceRequest |
withTags(java.util.Collection<Tag> tags)
The new or modified tags for the resource.
|
TagResourceRequest |
withTags(Tag... tags)
The new or modified tags for the resource.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getResourceArn()
The ARN of the resource.
The ARN of the resource.
public void setResourceArn(java.lang.String resourceArn)
The ARN of the resource.
resourceArn - The ARN of the resource.
public TagResourceRequest withResourceArn(java.lang.String resourceArn)
The ARN of the resource.
Returns a reference to this object so that method calls can be chained together.
resourceArn - The ARN of the resource.
public java.util.List<Tag> getTags()
The new or modified tags for the resource.
The new or modified tags for the resource.
public void setTags(java.util.Collection<Tag> tags)
The new or modified tags for the resource.
tags - The new or modified tags for the resource.
public TagResourceRequest withTags(Tag... tags)
The new or modified tags for the resource.
Returns a reference to this object so that method calls can be chained together.
tags - The new or modified tags for the resource.
public TagResourceRequest withTags(java.util.Collection<Tag> tags)
The new or modified tags for the resource.
Returns a reference to this object so that method calls can be chained together.
tags - The new or modified tags for the resource.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.