public class AddTagsToResourceRequest extends AmazonWebServiceRequest implements Serializable
AddTagsToResource operation.
Adds metadata tags to a DB Instance. These tags can also be used with cost allocation reporting to track cost associated with a DB Instance.
For an overview on tagging DB Instances, see DB Instance Tags.
| Constructor and Description |
|---|
AddTagsToResourceRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getResourceName()
The DB Instance the tags will be added to.
|
List<Tag> |
getTags()
The tags to be assigned to the DB Instance.
|
int |
hashCode() |
void |
setResourceName(String resourceName)
The DB Instance the tags will be added to.
|
void |
setTags(Collection<Tag> tags)
The tags to be assigned to the DB Instance.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AddTagsToResourceRequest |
withResourceName(String resourceName)
The DB Instance the tags will be added to.
|
AddTagsToResourceRequest |
withTags(Collection<Tag> tags)
The tags to be assigned to the DB Instance.
|
AddTagsToResourceRequest |
withTags(Tag... tags)
The tags to be assigned to the DB Instance.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic String getResourceName()
public void setResourceName(String resourceName)
resourceName - The DB Instance the tags will be added to. This value is an Amazon
Resource Name (ARN). For information about creating an ARN, see
Constructing an RDS Amazon Resource Name (ARN).public AddTagsToResourceRequest withResourceName(String resourceName)
Returns a reference to this object so that method calls can be chained together.
resourceName - The DB Instance the tags will be added to. This value is an Amazon
Resource Name (ARN). For information about creating an ARN, see
Constructing an RDS Amazon Resource Name (ARN).public List<Tag> getTags()
public void setTags(Collection<Tag> tags)
tags - The tags to be assigned to the DB Instance.public AddTagsToResourceRequest withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags - The tags to be assigned to the DB Instance.public AddTagsToResourceRequest withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags - The tags to be assigned to the DB Instance.public String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.