public class CreateOrUpdateTagsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
CreateOrUpdateTags operation.
Creates or updates tags for the specified Auto Scaling group.
A tag is defined by its resource ID, resource type, key, value, and
propagate flag. The value and the propagate flag are optional
parameters. The only supported resource type is
auto-scaling-group , and the resource ID must be the name
of the group. The PropagateAtLaunch flag determines
whether the tag is added to instances launched in the group. Valid
values are true or false .
When you specify a tag with a key that already exists, the operation overwrites the previous tag definition, and you do not get an error message.
For more information, see Tagging Auto Scaling Groups and Instances in the Auto Scaling Developer Guide .
NOOP| Constructor and Description |
|---|
CreateOrUpdateTagsRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateOrUpdateTagsRequest |
clone() |
boolean |
equals(Object obj) |
List<Tag> |
getTags()
One or more tags.
|
int |
hashCode() |
void |
setTags(Collection<Tag> tags)
One or more tags.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateOrUpdateTagsRequest |
withTags(Collection<Tag> tags)
One or more tags.
|
CreateOrUpdateTagsRequest |
withTags(Tag... tags)
One or more tags.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic void setTags(Collection<Tag> tags)
tags - One or more tags.public CreateOrUpdateTagsRequest withTags(Tag... 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.
Returns a reference to this object so that method calls can be chained together.
tags - One or more tags.public CreateOrUpdateTagsRequest withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags - One or more tags.public String toString()
toString in class ObjectObject.toString()public CreateOrUpdateTagsRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.