public class AddTagsToResourceRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
resourceArn
The Amazon Resource Name (ARN) of the AWS DMS resource the tag is to be
added to.
|
private java.util.List<Tag> |
tags
The tag to be assigned to the DMS 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 |
getResourceArn()
The Amazon Resource Name (ARN) of the AWS DMS resource the tag is to be
added to.
|
java.util.List<Tag> |
getTags()
The tag to be assigned to the DMS resource.
|
int |
hashCode() |
void |
setResourceArn(java.lang.String resourceArn)
The Amazon Resource Name (ARN) of the AWS DMS resource the tag is to be
added to.
|
void |
setTags(java.util.Collection<Tag> tags)
The tag to be assigned to the DMS resource.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AddTagsToResourceRequest |
withResourceArn(java.lang.String resourceArn)
The Amazon Resource Name (ARN) of the AWS DMS resource the tag is to be
added to.
|
AddTagsToResourceRequest |
withTags(java.util.Collection<Tag> tags)
The tag to be assigned to the DMS resource.
|
AddTagsToResourceRequest |
withTags(Tag... tags)
The tag to be assigned to the DMS 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 resourceArn
The Amazon Resource Name (ARN) of the AWS DMS resource the tag is to be added to. AWS DMS resources include a replication instance, endpoint, and a replication task.
private java.util.List<Tag> tags
The tag to be assigned to the DMS resource.
public void setResourceArn(java.lang.String resourceArn)
The Amazon Resource Name (ARN) of the AWS DMS resource the tag is to be added to. AWS DMS resources include a replication instance, endpoint, and a replication task.
resourceArn
- The Amazon Resource Name (ARN) of the AWS DMS resource the tag is
to be added to. AWS DMS resources include a replication instance,
endpoint, and a replication task.public java.lang.String getResourceArn()
The Amazon Resource Name (ARN) of the AWS DMS resource the tag is to be added to. AWS DMS resources include a replication instance, endpoint, and a replication task.
public AddTagsToResourceRequest withResourceArn(java.lang.String resourceArn)
The Amazon Resource Name (ARN) of the AWS DMS resource the tag is to be added to. AWS DMS resources include a replication instance, endpoint, and a replication task.
resourceArn
- The Amazon Resource Name (ARN) of the AWS DMS resource the tag is
to be added to. AWS DMS resources include a replication instance,
endpoint, and a replication task.public java.util.List<Tag> getTags()
The tag to be assigned to the DMS resource.
public void setTags(java.util.Collection<Tag> tags)
The tag to be assigned to the DMS resource.
tags
- The tag to be assigned to the DMS resource.public AddTagsToResourceRequest withTags(Tag... tags)
The tag to be assigned to the DMS 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 tag to be assigned to the DMS resource.public AddTagsToResourceRequest withTags(java.util.Collection<Tag> tags)
The tag to be assigned to the DMS resource.
tags
- The tag to be assigned to the DMS 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()