public class AddTagsToResourceRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
resourceName
The Amazon RDS resource the tags will be added to.
|
private SdkInternalList<Tag> |
tags
The tags to be assigned to the Amazon RDS resource.
|
NOOP
Constructor and Description |
---|
AddTagsToResourceRequest() |
Modifier and Type | Method and Description |
---|---|
AddTagsToResourceRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getResourceName()
The Amazon RDS resource the tags will be added to.
|
java.util.List<Tag> |
getTags()
The tags to be assigned to the Amazon RDS resource.
|
int |
hashCode() |
void |
setResourceName(java.lang.String resourceName)
The Amazon RDS resource the tags will be added to.
|
void |
setTags(java.util.Collection<Tag> tags)
The tags to be assigned to the Amazon RDS resource.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AddTagsToResourceRequest |
withResourceName(java.lang.String resourceName)
The Amazon RDS resource the tags will be added to.
|
AddTagsToResourceRequest |
withTags(java.util.Collection<Tag> tags)
The tags to be assigned to the Amazon RDS resource.
|
AddTagsToResourceRequest |
withTags(Tag... tags)
The tags to be assigned to the Amazon RDS resource.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String resourceName
The Amazon RDS resource 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).
private SdkInternalList<Tag> tags
The tags to be assigned to the Amazon RDS resource.
public void setResourceName(java.lang.String resourceName)
The Amazon RDS resource 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).
resourceName
- The Amazon RDS resource 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.lang.String getResourceName()
The Amazon RDS resource 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)
The Amazon RDS resource 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).
resourceName
- The Amazon RDS resource 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()
The tags to be assigned to the Amazon RDS resource.
public void setTags(java.util.Collection<Tag> tags)
The tags to be assigned to the Amazon RDS resource.
tags
- The tags to be assigned to the Amazon RDS resource.public AddTagsToResourceRequest withTags(Tag... tags)
The tags to be assigned to the Amazon RDS resource.
NOTE: This method appends the values to the existing list (if
any). Use setTags(java.util.Collection)
or
withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags to be assigned to the Amazon RDS resource.public AddTagsToResourceRequest withTags(java.util.Collection<Tag> tags)
The tags to be assigned to the Amazon RDS resource.
tags
- The tags to be assigned to the Amazon RDS resource.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AddTagsToResourceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()