Class CreateTagsRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<CreateTagsRequest>
,Serializable
,Cloneable
Contains the parameters for CreateTags.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for CreateTagsRequest object.CreateTagsRequest
(List<String> resources, List<Tag> tags) Constructs a new CreateTagsRequest object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
This method is intended for internal use only.The IDs of one or more resources to tag.getTags()
One or more tags.int
hashCode()
void
setResources
(Collection<String> resources) The IDs of one or more resources to tag.void
setTags
(Collection<Tag> tags) One or more tags.toString()
Returns a string representation of this object; useful for testing and debugging.withResources
(String... resources) The IDs of one or more resources to tag.withResources
(Collection<String> resources) The IDs of one or more resources to tag.One or more tags.withTags
(Collection<Tag> tags) One or more tags.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
Constructor Details
-
CreateTagsRequest
public CreateTagsRequest()Default constructor for CreateTagsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
CreateTagsRequest
Constructs a new CreateTagsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
resources
- The IDs of one or more resources to tag. For example, ami-1a2b3c4d.tags
- One or more tags. Thevalue
parameter is required, but if you don't want the tag to have a value, specify the parameter with no value, and we set the value to an empty string.
-
-
Method Details
-
getResources
The IDs of one or more resources to tag. For example, ami-1a2b3c4d.
- Returns:
- The IDs of one or more resources to tag. For example, ami-1a2b3c4d.
-
setResources
The IDs of one or more resources to tag. For example, ami-1a2b3c4d.
- Parameters:
resources
- The IDs of one or more resources to tag. For example, ami-1a2b3c4d.
-
withResources
The IDs of one or more resources to tag. For example, ami-1a2b3c4d.
NOTE: This method appends the values to the existing list (if any). Use
setResources(java.util.Collection)
orwithResources(java.util.Collection)
if you want to override the existing values.- Parameters:
resources
- The IDs of one or more resources to tag. For example, ami-1a2b3c4d.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withResources
The IDs of one or more resources to tag. For example, ami-1a2b3c4d.
- Parameters:
resources
- The IDs of one or more resources to tag. For example, ami-1a2b3c4d.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
One or more tags. The
value
parameter is required, but if you don't want the tag to have a value, specify the parameter with no value, and we set the value to an empty string.- Returns:
- One or more tags. The
value
parameter is required, but if you don't want the tag to have a value, specify the parameter with no value, and we set the value to an empty string.
-
setTags
One or more tags. The
value
parameter is required, but if you don't want the tag to have a value, specify the parameter with no value, and we set the value to an empty string.- Parameters:
tags
- One or more tags. Thevalue
parameter is required, but if you don't want the tag to have a value, specify the parameter with no value, and we set the value to an empty string.
-
withTags
One or more tags. The
value
parameter is required, but if you don't want the tag to have a value, specify the parameter with no value, and we set the value to an empty string.NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
orwithTags(java.util.Collection)
if you want to override the existing values.- Parameters:
tags
- One or more tags. Thevalue
parameter is required, but if you don't want the tag to have a value, specify the parameter with no value, and we set the value to an empty string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
One or more tags. The
value
parameter is required, but if you don't want the tag to have a value, specify the parameter with no value, and we set the value to an empty string.- Parameters:
tags
- One or more tags. Thevalue
parameter is required, but if you don't want the tag to have a value, specify the parameter with no value, and we set the value to an empty string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<CreateTagsRequest>
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-