public class TagResourceRequest extends AmazonWebServiceRequest implements Serializable
Associate a set of tags with an Amazon DynamoDB resource. You can then activate these user-defined tags so that they appear on the Billing and Cost Management console for cost allocation tracking. You can call TagResource up to 5 times per second, per account.
For an overview on tagging DynamoDB resources, see Tagging for DynamoDB in the Amazon DynamoDB Developer Guide.
| Constructor and Description |
|---|
TagResourceRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getResourceArn()
Identifies the Amazon DynamoDB resource to which tags should be added.
|
List<Tag> |
getTags()
The tags to be assigned to the Amazon DynamoDB resource.
|
int |
hashCode() |
void |
setResourceArn(String resourceArn)
Identifies the Amazon DynamoDB resource to which tags should be added.
|
void |
setTags(Collection<Tag> tags)
The tags to be assigned to the Amazon DynamoDB resource.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TagResourceRequest |
withResourceArn(String resourceArn)
Identifies the Amazon DynamoDB resource to which tags should be added.
|
TagResourceRequest |
withTags(Collection<Tag> tags)
The tags to be assigned to the Amazon DynamoDB resource.
|
TagResourceRequest |
withTags(Tag... tags)
The tags to be assigned to the Amazon DynamoDB resource.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getResourceArn()
Identifies the Amazon DynamoDB resource to which tags should be added. This value is an Amazon Resource Name (ARN).
Constraints:
Length: 1 - 1283
Identifies the Amazon DynamoDB resource to which tags should be added. This value is an Amazon Resource Name (ARN).
public void setResourceArn(String resourceArn)
Identifies the Amazon DynamoDB resource to which tags should be added. This value is an Amazon Resource Name (ARN).
Constraints:
Length: 1 - 1283
resourceArn - Identifies the Amazon DynamoDB resource to which tags should be added. This value is an Amazon Resource Name (ARN).
public TagResourceRequest withResourceArn(String resourceArn)
Identifies the Amazon DynamoDB resource to which tags should be added. This value is an Amazon Resource Name (ARN).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1283
resourceArn - Identifies the Amazon DynamoDB resource to which tags should be added. This value is an Amazon Resource Name (ARN).
public List<Tag> getTags()
The tags to be assigned to the Amazon DynamoDB resource.
The tags to be assigned to the Amazon DynamoDB resource.
public void setTags(Collection<Tag> tags)
The tags to be assigned to the Amazon DynamoDB resource.
tags - The tags to be assigned to the Amazon DynamoDB resource.
public TagResourceRequest withTags(Tag... tags)
The tags to be assigned to the Amazon DynamoDB resource.
Returns a reference to this object so that method calls can be chained together.
tags - The tags to be assigned to the Amazon DynamoDB resource.
public TagResourceRequest withTags(Collection<Tag> tags)
The tags to be assigned to the Amazon DynamoDB resource.
Returns a reference to this object so that method calls can be chained together.
tags - The tags to be assigned to the Amazon DynamoDB resource.
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.