public class CreateOrUpdateTagsRequest extends AmazonWebServiceRequest implements java.io.Serializable
Creates or updates tags for the specified Auto Scaling group.
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 Amazon EC2 Auto Scaling User Guide.
Constructor and Description |
---|
CreateOrUpdateTagsRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<Tag> |
getTags()
One or more tags.
|
int |
hashCode() |
void |
setTags(java.util.Collection<Tag> tags)
One or more tags.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateOrUpdateTagsRequest |
withTags(java.util.Collection<Tag> tags)
One or more tags.
|
CreateOrUpdateTagsRequest |
withTags(Tag... tags)
One or more tags.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.util.List<Tag> getTags()
One or more tags.
One or more tags.
public void setTags(java.util.Collection<Tag> tags)
One or more tags.
tags
- One or more tags.
public CreateOrUpdateTagsRequest withTags(Tag... tags)
One or more tags.
Returns a reference to this object so that method calls can be chained together.
tags
- One or more tags.
public CreateOrUpdateTagsRequest withTags(java.util.Collection<Tag> tags)
One or more tags.
Returns a reference to this object so that method calls can be chained together.
tags
- One or more tags.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.