@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()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAccountId()
The Amazon Web Services account ID that created the S3 resource that you're trying to add tags to or the
requester's account ID.
|
String |
getResourceArn()
The Amazon Resource Name (ARN) of the S3 resource that you're trying to add tags to.
|
List<Tag> |
getTags()
The Amazon Web Services resource tags that you want to add to the specified S3 resource.
|
int |
hashCode() |
void |
setAccountId(String accountId)
The Amazon Web Services account ID that created the S3 resource that you're trying to add tags to or the
requester's account ID.
|
void |
setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the S3 resource that you're trying to add tags to.
|
void |
setTags(Collection<Tag> tags)
The Amazon Web Services resource tags that you want to add to the specified S3 resource.
|
String |
toString()
Returns a string representation of this object.
|
TagResourceRequest |
withAccountId(String accountId)
The Amazon Web Services account ID that created the S3 resource that you're trying to add tags to or the
requester's account ID.
|
TagResourceRequest |
withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the S3 resource that you're trying to add tags to.
|
TagResourceRequest |
withTags(Collection<Tag> tags)
The Amazon Web Services resource tags that you want to add to the specified S3 resource.
|
TagResourceRequest |
withTags(Tag... tags)
The Amazon Web Services resource tags that you want to add to the specified S3 resource.
|
addHandlerContext, 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, withSdkRequestTimeout
public void setAccountId(String accountId)
The Amazon Web Services account ID that created the S3 resource that you're trying to add tags to or the requester's account ID.
accountId
- The Amazon Web Services account ID that created the S3 resource that you're trying to add tags to or the
requester's account ID.public String getAccountId()
The Amazon Web Services account ID that created the S3 resource that you're trying to add tags to or the requester's account ID.
public TagResourceRequest withAccountId(String accountId)
The Amazon Web Services account ID that created the S3 resource that you're trying to add tags to or the requester's account ID.
accountId
- The Amazon Web Services account ID that created the S3 resource that you're trying to add tags to or the
requester's account ID.public void setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the S3 resource that you're trying to add tags to. The tagged resource can be an S3 Storage Lens group or S3 Access Grants instance, registered location, or grant.
resourceArn
- The Amazon Resource Name (ARN) of the S3 resource that you're trying to add tags to. The tagged resource
can be an S3 Storage Lens group or S3 Access Grants instance, registered location, or grant.public String getResourceArn()
The Amazon Resource Name (ARN) of the S3 resource that you're trying to add tags to. The tagged resource can be an S3 Storage Lens group or S3 Access Grants instance, registered location, or grant.
public TagResourceRequest withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the S3 resource that you're trying to add tags to. The tagged resource can be an S3 Storage Lens group or S3 Access Grants instance, registered location, or grant.
resourceArn
- The Amazon Resource Name (ARN) of the S3 resource that you're trying to add tags to. The tagged resource
can be an S3 Storage Lens group or S3 Access Grants instance, registered location, or grant.public List<Tag> getTags()
The Amazon Web Services resource tags that you want to add to the specified S3 resource.
public void setTags(Collection<Tag> tags)
The Amazon Web Services resource tags that you want to add to the specified S3 resource.
tags
- The Amazon Web Services resource tags that you want to add to the specified S3 resource.public TagResourceRequest withTags(Tag... tags)
The Amazon Web Services resource tags that you want to add to the specified S3 resource.
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 Amazon Web Services resource tags that you want to add to the specified S3 resource.public TagResourceRequest withTags(Collection<Tag> tags)
The Amazon Web Services resource tags that you want to add to the specified S3 resource.
tags
- The Amazon Web Services resource tags that you want to add to the specified S3 resource.public String toString()
toString
in class Object
Object.toString()
public TagResourceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()