public class TagResourceRequest extends AmazonWebServiceRequest implements 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(Object obj) |
String |
getResourceArn()
The ARN of the resource.
|
List<Tag> |
getTags()
The new or modified tags for the resource.
|
int |
hashCode() |
void |
setResourceArn(String resourceArn)
The ARN of the resource.
|
void |
setTags(Collection<Tag> tags)
The new or modified tags for the resource.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TagResourceRequest |
withResourceArn(String resourceArn)
The ARN of the resource.
|
TagResourceRequest |
withTags(Collection<Tag> tags)
The new or modified tags for the resource.
|
TagResourceRequest |
withTags(Tag... tags)
The new or modified tags for the resource.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getResourceArn()
The ARN of the resource.
The ARN of the resource.
public void setResourceArn(String resourceArn)
The ARN of the resource.
resourceArn - The ARN of the resource.
public TagResourceRequest withResourceArn(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 List<Tag> getTags()
The new or modified tags for the resource.
The new or modified tags for the resource.
public void setTags(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(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 String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.