public class TagResourceRequest extends AmazonWebServiceRequest implements java.io.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(java.lang.Object obj) |
java.lang.String |
getResourceArn()
Identifies the Amazon DynamoDB resource to which tags should be added.
|
java.util.List<Tag> |
getTags()
The tags to be assigned to the Amazon DynamoDB resource.
|
int |
hashCode() |
void |
setResourceArn(java.lang.String resourceArn)
Identifies the Amazon DynamoDB resource to which tags should be added.
|
void |
setTags(java.util.Collection<Tag> tags)
The tags to be assigned to the Amazon DynamoDB resource.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TagResourceRequest |
withResourceArn(java.lang.String resourceArn)
Identifies the Amazon DynamoDB resource to which tags should be added.
|
TagResourceRequest |
withTags(java.util.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, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.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(java.lang.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(java.lang.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 java.util.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(java.util.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(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.