@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() |
boolean |
equals(Object obj) |
String |
getResourceId()
The ID of the resource to add a tag to.
|
List<Tag> |
getTags()
The tag to add to the specified resource.
|
int |
hashCode() |
void |
setResourceId(String resourceId)
The ID of the resource to add a tag to.
|
void |
setTags(Collection<Tag> tags)
The tag to add to the specified resource.
|
String |
toString()
Returns a string representation of this object.
|
TagResourceRequest |
withResourceId(String resourceId)
The ID of the resource to add a tag to.
|
TagResourceRequest |
withTags(Collection<Tag> tags)
The tag to add to the specified resource.
|
TagResourceRequest |
withTags(Tag... tags)
The tag to add to the specified resource.
|
addHandlerContext, copyBaseTo, 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, withSdkRequestTimeoutpublic void setResourceId(String resourceId)
The ID of the resource to add a tag to.
resourceId - The ID of the resource to add a tag to.public String getResourceId()
The ID of the resource to add a tag to.
public TagResourceRequest withResourceId(String resourceId)
The ID of the resource to add a tag to.
resourceId - The ID of the resource to add a tag to.public List<Tag> getTags()
The tag to add to the specified resource. Specifying the tag key is required. You can set the value of a tag to an empty string, but you can't set the value of a tag to null.
public void setTags(Collection<Tag> tags)
The tag to add to the specified resource. Specifying the tag key is required. You can set the value of a tag to an empty string, but you can't set the value of a tag to null.
tags - The tag to add to the specified resource. Specifying the tag key is required. You can set the value of a
tag to an empty string, but you can't set the value of a tag to null.public TagResourceRequest withTags(Tag... tags)
The tag to add to the specified resource. Specifying the tag key is required. You can set the value of a tag to an empty string, but you can't set the value of a tag to null.
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 - The tag to add to the specified resource. Specifying the tag key is required. You can set the value of a
tag to an empty string, but you can't set the value of a tag to null.public TagResourceRequest withTags(Collection<Tag> tags)
The tag to add to the specified resource. Specifying the tag key is required. You can set the value of a tag to an empty string, but you can't set the value of a tag to null.
tags - The tag to add to the specified resource. Specifying the tag key is required. You can set the value of a
tag to an empty string, but you can't set the value of a tag to null.public String toString()
toString in class ObjectObject.toString()public TagResourceRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2020. All rights reserved.