@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 |
getResourceShareArn()
Specifies the Amazon Resoure
Name (ARN) of the resource share that you want to add tags to.
|
List<Tag> |
getTags()
A list of one or more tag key and value pairs.
|
int |
hashCode() |
void |
setResourceShareArn(String resourceShareArn)
Specifies the Amazon Resoure
Name (ARN) of the resource share that you want to add tags to.
|
void |
setTags(Collection<Tag> tags)
A list of one or more tag key and value pairs.
|
String |
toString()
Returns a string representation of this object.
|
TagResourceRequest |
withResourceShareArn(String resourceShareArn)
Specifies the Amazon Resoure
Name (ARN) of the resource share that you want to add tags to.
|
TagResourceRequest |
withTags(Collection<Tag> tags)
A list of one or more tag key and value pairs.
|
TagResourceRequest |
withTags(Tag... tags)
A list of one or more tag key and value pairs.
|
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 setResourceShareArn(String resourceShareArn)
Specifies the Amazon Resoure Name (ARN) of the resource share that you want to add tags to.
resourceShareArn - Specifies the Amazon
Resoure Name (ARN) of the resource share that you want to add tags to.public String getResourceShareArn()
Specifies the Amazon Resoure Name (ARN) of the resource share that you want to add tags to.
public TagResourceRequest withResourceShareArn(String resourceShareArn)
Specifies the Amazon Resoure Name (ARN) of the resource share that you want to add tags to.
resourceShareArn - Specifies the Amazon
Resoure Name (ARN) of the resource share that you want to add tags to.public List<Tag> getTags()
A list of one or more tag key and value pairs. The tag key must be present and not be an empty string. The tag value must be present but can be an empty string.
public void setTags(Collection<Tag> tags)
A list of one or more tag key and value pairs. The tag key must be present and not be an empty string. The tag value must be present but can be an empty string.
tags - A list of one or more tag key and value pairs. The tag key must be present and not be an empty string. The
tag value must be present but can be an empty string.public TagResourceRequest withTags(Tag... tags)
A list of one or more tag key and value pairs. The tag key must be present and not be an empty string. The tag value must be present but can be an empty string.
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 - A list of one or more tag key and value pairs. The tag key must be present and not be an empty string. The
tag value must be present but can be an empty string.public TagResourceRequest withTags(Collection<Tag> tags)
A list of one or more tag key and value pairs. The tag key must be present and not be an empty string. The tag value must be present but can be an empty string.
tags - A list of one or more tag key and value pairs. The tag key must be present and not be an empty string. The
tag value must be present but can be an empty string.public String toString()
toString in class ObjectObject.toString()public TagResourceRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2023. All rights reserved.