@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AddTagsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
AddTagsRequest() |
Modifier and Type | Method and Description |
---|---|
AddTagsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<String> |
getResourceArns()
The Amazon Resource Name (ARN) of the resource.
|
List<Tag> |
getTags()
The tags.
|
int |
hashCode() |
void |
setResourceArns(Collection<String> resourceArns)
The Amazon Resource Name (ARN) of the resource.
|
void |
setTags(Collection<Tag> tags)
The tags.
|
String |
toString()
Returns a string representation of this object.
|
AddTagsRequest |
withResourceArns(Collection<String> resourceArns)
The Amazon Resource Name (ARN) of the resource.
|
AddTagsRequest |
withResourceArns(String... resourceArns)
The Amazon Resource Name (ARN) of the resource.
|
AddTagsRequest |
withTags(Collection<Tag> tags)
The tags.
|
AddTagsRequest |
withTags(Tag... tags)
The tags.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public List<String> getResourceArns()
The Amazon Resource Name (ARN) of the resource.
public void setResourceArns(Collection<String> resourceArns)
The Amazon Resource Name (ARN) of the resource.
resourceArns
- The Amazon Resource Name (ARN) of the resource.public AddTagsRequest withResourceArns(String... resourceArns)
The Amazon Resource Name (ARN) of the resource.
NOTE: This method appends the values to the existing list (if any). Use
setResourceArns(java.util.Collection)
or withResourceArns(java.util.Collection)
if you want to
override the existing values.
resourceArns
- The Amazon Resource Name (ARN) of the resource.public AddTagsRequest withResourceArns(Collection<String> resourceArns)
The Amazon Resource Name (ARN) of the resource.
resourceArns
- The Amazon Resource Name (ARN) of the resource.public void setTags(Collection<Tag> tags)
The tags.
tags
- The tags.public AddTagsRequest withTags(Tag... tags)
The tags.
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.public AddTagsRequest withTags(Collection<Tag> tags)
The tags.
tags
- The tags.public String toString()
toString
in class Object
Object.toString()
public AddTagsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()