@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateTagsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateTagsRequest>
NOOP| Constructor and Description |
|---|
CreateTagsRequest()
Default constructor for CreateTagsRequest object.
|
CreateTagsRequest(List<String> resources,
List<Tag> tags)
Constructs a new CreateTagsRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
CreateTagsRequest |
clone() |
boolean |
equals(Object obj) |
Request<CreateTagsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
List<String> |
getResources()
The IDs of the resources, separated by spaces.
|
List<Tag> |
getTags()
The tags.
|
int |
hashCode() |
void |
setResources(Collection<String> resources)
The IDs of the resources, separated by spaces.
|
void |
setTags(Collection<Tag> tags)
The tags.
|
String |
toString()
Returns a string representation of this object.
|
CreateTagsRequest |
withResources(Collection<String> resources)
The IDs of the resources, separated by spaces.
|
CreateTagsRequest |
withResources(String... resources)
The IDs of the resources, separated by spaces.
|
CreateTagsRequest |
withTags(Collection<Tag> tags)
The tags.
|
CreateTagsRequest |
withTags(Tag... tags)
The tags.
|
addHandlerContext, copyBaseTo, 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, withSdkRequestTimeoutpublic CreateTagsRequest()
public CreateTagsRequest(List<String> resources, List<Tag> tags)
resources - The IDs of the resources, separated by spaces.
Constraints: Up to 1000 resource IDs. We recommend breaking up this request into smaller batches.
tags - The 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.public List<String> getResources()
The IDs of the resources, separated by spaces.
Constraints: Up to 1000 resource IDs. We recommend breaking up this request into smaller batches.
Constraints: Up to 1000 resource IDs. We recommend breaking up this request into smaller batches.
public void setResources(Collection<String> resources)
The IDs of the resources, separated by spaces.
Constraints: Up to 1000 resource IDs. We recommend breaking up this request into smaller batches.
resources - The IDs of the resources, separated by spaces.
Constraints: Up to 1000 resource IDs. We recommend breaking up this request into smaller batches.
public CreateTagsRequest withResources(String... resources)
The IDs of the resources, separated by spaces.
Constraints: Up to 1000 resource IDs. We recommend breaking up this request into smaller batches.
NOTE: This method appends the values to the existing list (if any). Use
setResources(java.util.Collection) or withResources(java.util.Collection) if you want to
override the existing values.
resources - The IDs of the resources, separated by spaces.
Constraints: Up to 1000 resource IDs. We recommend breaking up this request into smaller batches.
public CreateTagsRequest withResources(Collection<String> resources)
The IDs of the resources, separated by spaces.
Constraints: Up to 1000 resource IDs. We recommend breaking up this request into smaller batches.
resources - The IDs of the resources, separated by spaces.
Constraints: Up to 1000 resource IDs. We recommend breaking up this request into smaller batches.
public List<Tag> getTags()
The 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.
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.public void setTags(Collection<Tag> tags)
The 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.
tags - The 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.public CreateTagsRequest withTags(Tag... tags)
The 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) or withTags(java.util.Collection) if you want to override the
existing values.
tags - The 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.public CreateTagsRequest withTags(Collection<Tag> tags)
The 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.
tags - The 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.public Request<CreateTagsRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<CreateTagsRequest>public String toString()
toString in class ObjectObject.toString()public CreateTagsRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2023. All rights reserved.