public class AddTagsToResourceRequest extends AmazonWebServiceRequest implements java.io.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.
| コンストラクタと説明 |
|---|
AddTagsToResourceRequest() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getResourceName()
The DB Instance the tags will be added to.
|
java.util.List<Tag> |
getTags()
The tags to be assigned to the DB Instance.
|
int |
hashCode() |
void |
setResourceName(java.lang.String resourceName)
The DB Instance the tags will be added to.
|
void |
setTags(java.util.Collection<Tag> tags)
The tags to be assigned to the DB Instance.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AddTagsToResourceRequest |
withResourceName(java.lang.String resourceName)
The DB Instance the tags will be added to.
|
AddTagsToResourceRequest |
withTags(java.util.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 java.lang.String getResourceName()
public void setResourceName(java.lang.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(java.lang.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 java.util.List<Tag> getTags()
public void setTags(java.util.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(java.util.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 java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object