public class CreateTagsRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.String> |
configurationIds
A list of configuration items that you want to tag.
|
private java.util.List<Tag> |
tags
Tags that you want to associate with one or more configuration items.
|
NOOP
Constructor and Description |
---|
CreateTagsRequest() |
Modifier and Type | Method and Description |
---|---|
CreateTagsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getConfigurationIds()
A list of configuration items that you want to tag.
|
java.util.List<Tag> |
getTags()
Tags that you want to associate with one or more configuration items.
|
int |
hashCode() |
void |
setConfigurationIds(java.util.Collection<java.lang.String> configurationIds)
A list of configuration items that you want to tag.
|
void |
setTags(java.util.Collection<Tag> tags)
Tags that you want to associate with one or more configuration items.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateTagsRequest |
withConfigurationIds(java.util.Collection<java.lang.String> configurationIds)
A list of configuration items that you want to tag.
|
CreateTagsRequest |
withConfigurationIds(java.lang.String... configurationIds)
A list of configuration items that you want to tag.
|
CreateTagsRequest |
withTags(java.util.Collection<Tag> tags)
Tags that you want to associate with one or more configuration items.
|
CreateTagsRequest |
withTags(Tag... tags)
Tags that you want to associate with one or more configuration items.
|
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.util.List<java.lang.String> configurationIds
A list of configuration items that you want to tag.
private java.util.List<Tag> tags
Tags that you want to associate with one or more configuration items. Specify the tags that you want to create in a key-value format. For example:
{"key": "serverType", "value": "webServer"}
public java.util.List<java.lang.String> getConfigurationIds()
A list of configuration items that you want to tag.
public void setConfigurationIds(java.util.Collection<java.lang.String> configurationIds)
A list of configuration items that you want to tag.
configurationIds
- A list of configuration items that you want to tag.public CreateTagsRequest withConfigurationIds(java.lang.String... configurationIds)
A list of configuration items that you want to tag.
NOTE: This method appends the values to the existing list (if
any). Use setConfigurationIds(java.util.Collection)
or
withConfigurationIds(java.util.Collection)
if you want to
override the existing values.
configurationIds
- A list of configuration items that you want to tag.public CreateTagsRequest withConfigurationIds(java.util.Collection<java.lang.String> configurationIds)
A list of configuration items that you want to tag.
configurationIds
- A list of configuration items that you want to tag.public java.util.List<Tag> getTags()
Tags that you want to associate with one or more configuration items. Specify the tags that you want to create in a key-value format. For example:
{"key": "serverType", "value": "webServer"}
{"key": "serverType", "value": "webServer"}
public void setTags(java.util.Collection<Tag> tags)
Tags that you want to associate with one or more configuration items. Specify the tags that you want to create in a key-value format. For example:
{"key": "serverType", "value": "webServer"}
tags
- Tags that you want to associate with one or more configuration
items. Specify the tags that you want to create in a
key-value format. For example:
{"key": "serverType", "value": "webServer"}
public CreateTagsRequest withTags(Tag... tags)
Tags that you want to associate with one or more configuration items. Specify the tags that you want to create in a key-value format. For example:
{"key": "serverType", "value": "webServer"}
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
- Tags that you want to associate with one or more configuration
items. Specify the tags that you want to create in a
key-value format. For example:
{"key": "serverType", "value": "webServer"}
public CreateTagsRequest withTags(java.util.Collection<Tag> tags)
Tags that you want to associate with one or more configuration items. Specify the tags that you want to create in a key-value format. For example:
{"key": "serverType", "value": "webServer"}
tags
- Tags that you want to associate with one or more configuration
items. Specify the tags that you want to create in a
key-value format. For example:
{"key": "serverType", "value": "webServer"}
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 CreateTagsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()