@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 |
getResourceArn()
Specifies the Amazon
Resource Name (ARN) of the managed permission that you want to add tags to.
|
String |
getResourceShareArn()
Specifies the Amazon
Resource 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 |
setResourceArn(String resourceArn)
Specifies the Amazon
Resource Name (ARN) of the managed permission that you want to add tags to.
|
void |
setResourceShareArn(String resourceShareArn)
Specifies the Amazon
Resource 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 |
withResourceArn(String resourceArn)
Specifies the Amazon
Resource Name (ARN) of the managed permission that you want to add tags to.
|
TagResourceRequest |
withResourceShareArn(String resourceShareArn)
Specifies the Amazon
Resource 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
Resource Name (ARN) of the resource share that you want to add tags to. You must specify either
resourceShareArn, or resourceArn, but not both.
resourceShareArn - Specifies the Amazon
Resource Name (ARN) of the resource share that you want to add tags to. You must specify either
resourceShareArn, or resourceArn, but not both.public String getResourceShareArn()
Specifies the Amazon
Resource Name (ARN) of the resource share that you want to add tags to. You must specify either
resourceShareArn, or resourceArn, but not both.
resourceShareArn, or resourceArn, but not both.public TagResourceRequest withResourceShareArn(String resourceShareArn)
Specifies the Amazon
Resource Name (ARN) of the resource share that you want to add tags to. You must specify either
resourceShareArn, or resourceArn, but not both.
resourceShareArn - Specifies the Amazon
Resource Name (ARN) of the resource share that you want to add tags to. You must specify either
resourceShareArn, or resourceArn, but not both.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 void setResourceArn(String resourceArn)
Specifies the Amazon
Resource Name (ARN) of the managed permission that you want to add tags to. You must specify either
resourceArn, or resourceShareArn, but not both.
resourceArn - Specifies the Amazon
Resource Name (ARN) of the managed permission that you want to add tags to. You must specify
either resourceArn, or resourceShareArn, but not both.public String getResourceArn()
Specifies the Amazon
Resource Name (ARN) of the managed permission that you want to add tags to. You must specify either
resourceArn, or resourceShareArn, but not both.
resourceArn, or resourceShareArn, but not both.public TagResourceRequest withResourceArn(String resourceArn)
Specifies the Amazon
Resource Name (ARN) of the managed permission that you want to add tags to. You must specify either
resourceArn, or resourceShareArn, but not both.
resourceArn - Specifies the Amazon
Resource Name (ARN) of the managed permission that you want to add tags to. You must specify
either resourceArn, or resourceShareArn, but not both.public String toString()
toString in class ObjectObject.toString()public TagResourceRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2024. All rights reserved.