public class AddTagsToResourceRequest extends AmazonWebServiceRequest implements Serializable
AddTagsToResource operation
.
The AddTagsToResource action adds up to 10 cost allocation tags to the named resource. A cost allocation tag is a key-value pair where the key and value are case-sensitive. Cost allocation tags can be used to categorize and track your AWS costs.
When you apply tags to your ElastiCache resources, AWS generates a cost allocation report as a comma-separated value (CSV) file with your usage and costs aggregated by your tags. You can apply tags that represent business categories (such as cost centers, application names, or owners) to organize your costs across multiple services. For more information, see Using Cost Allocation Tags in Amazon ElastiCache .
NOOP
Constructor and Description |
---|
AddTagsToResourceRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getResourceName()
The name of the resource to which the tags are to be added, for
example
myCluster01 . |
List<Tag> |
getTags()
A list of cost allocation tags to be added to this resource.
|
int |
hashCode() |
void |
setResourceName(String resourceName)
The name of the resource to which the tags are to be added, for
example
myCluster01 . |
void |
setTags(Collection<Tag> tags)
A list of cost allocation tags to be added to this resource.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AddTagsToResourceRequest |
withResourceName(String resourceName)
The name of the resource to which the tags are to be added, for
example
myCluster01 . |
AddTagsToResourceRequest |
withTags(Collection<Tag> tags)
A list of cost allocation tags to be added to this resource.
|
AddTagsToResourceRequest |
withTags(Tag... tags)
A list of cost allocation tags to be added to this resource.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getResourceName()
myCluster01
.myCluster01
.public void setResourceName(String resourceName)
myCluster01
.resourceName
- The name of the resource to which the tags are to be added, for
example myCluster01
.public AddTagsToResourceRequest withResourceName(String resourceName)
myCluster01
.
Returns a reference to this object so that method calls can be chained together.
resourceName
- The name of the resource to which the tags are to be added, for
example myCluster01
.public List<Tag> getTags()
public void setTags(Collection<Tag> tags)
tags
- A list of cost allocation tags to be added to this resource. A tag is
a key-value pair. A tag key must be accompanied by a tag value.public AddTagsToResourceRequest withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A list of cost allocation tags to be added to this resource. A tag is
a key-value pair. A tag key must be accompanied by a tag value.public AddTagsToResourceRequest withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A list of cost allocation tags to be added to this resource. A tag is
a key-value pair. A tag key must be accompanied by a tag value.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.