public class CreateOrUpdateTagsRequest extends AmazonWebServiceRequest implements Serializable
CreateOrUpdateTags operation.
Creates new tags or updates existing tags for an Auto Scaling group.
NOTE: A tag's definition is composed of a resource ID, resource type, key and value, and the propagate flag. Value and the propagate flag are optional parameters. See the Request Parameters for more information.
For information on creating tags for your Auto Scaling group, see Tag Your Auto Scaling Groups and Amazon EC2 Instances .
| Constructor and Description |
|---|
CreateOrUpdateTagsRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<Tag> |
getTags()
The tag to be created or updated.
|
int |
hashCode() |
void |
setTags(Collection<Tag> tags)
The tag to be created or updated.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateOrUpdateTagsRequest |
withTags(Collection<Tag> tags)
The tag to be created or updated.
|
CreateOrUpdateTagsRequest |
withTags(Tag... tags)
The tag to be created or updated.
|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollectorpublic List<Tag> getTags()
auto-scaling-group is the only supported resource type.
The valid value for the resource ID is groupname. The
PropagateAtLaunch flag defines whether the new tag will
be applied to instances launched by the Auto Scaling group. Valid
values are true or false. However, instances
that are already running will not get the new or updated tag.
Likewise, when you modify a tag, the updated version will be applied
only to new instances launched by the Auto Scaling group after the
change. Running instances that had the previous version of the tag
will continue to have the older tag.
When you create a tag and a tag of the same name already exists, the operation overwrites the previous tag definition, but you will not get an error message.
auto-scaling-group is the only supported resource type.
The valid value for the resource ID is groupname. The
PropagateAtLaunch flag defines whether the new tag will
be applied to instances launched by the Auto Scaling group. Valid
values are true or false. However, instances
that are already running will not get the new or updated tag.
Likewise, when you modify a tag, the updated version will be applied
only to new instances launched by the Auto Scaling group after the
change. Running instances that had the previous version of the tag
will continue to have the older tag.
When you create a tag and a tag of the same name already exists, the operation overwrites the previous tag definition, but you will not get an error message.
public void setTags(Collection<Tag> tags)
auto-scaling-group is the only supported resource type.
The valid value for the resource ID is groupname. The
PropagateAtLaunch flag defines whether the new tag will
be applied to instances launched by the Auto Scaling group. Valid
values are true or false. However, instances
that are already running will not get the new or updated tag.
Likewise, when you modify a tag, the updated version will be applied
only to new instances launched by the Auto Scaling group after the
change. Running instances that had the previous version of the tag
will continue to have the older tag.
When you create a tag and a tag of the same name already exists, the operation overwrites the previous tag definition, but you will not get an error message.
tags - The tag to be created or updated. Each tag should be defined by its
resource type, resource ID, key, value, and a propagate flag. The
resource type and resource ID identify the type and name of resource
for which the tag is created. Currently,
auto-scaling-group is the only supported resource type.
The valid value for the resource ID is groupname. The
PropagateAtLaunch flag defines whether the new tag will
be applied to instances launched by the Auto Scaling group. Valid
values are true or false. However, instances
that are already running will not get the new or updated tag.
Likewise, when you modify a tag, the updated version will be applied
only to new instances launched by the Auto Scaling group after the
change. Running instances that had the previous version of the tag
will continue to have the older tag.
When you create a tag and a tag of the same name already exists, the operation overwrites the previous tag definition, but you will not get an error message.
public CreateOrUpdateTagsRequest withTags(Tag... tags)
auto-scaling-group is the only supported resource type.
The valid value for the resource ID is groupname. The
PropagateAtLaunch flag defines whether the new tag will
be applied to instances launched by the Auto Scaling group. Valid
values are true or false. However, instances
that are already running will not get the new or updated tag.
Likewise, when you modify a tag, the updated version will be applied
only to new instances launched by the Auto Scaling group after the
change. Running instances that had the previous version of the tag
will continue to have the older tag.
When you create a tag and a tag of the same name already exists, the operation overwrites the previous tag definition, but you will not get an error message.
Returns a reference to this object so that method calls can be chained together.
tags - The tag to be created or updated. Each tag should be defined by its
resource type, resource ID, key, value, and a propagate flag. The
resource type and resource ID identify the type and name of resource
for which the tag is created. Currently,
auto-scaling-group is the only supported resource type.
The valid value for the resource ID is groupname. The
PropagateAtLaunch flag defines whether the new tag will
be applied to instances launched by the Auto Scaling group. Valid
values are true or false. However, instances
that are already running will not get the new or updated tag.
Likewise, when you modify a tag, the updated version will be applied
only to new instances launched by the Auto Scaling group after the
change. Running instances that had the previous version of the tag
will continue to have the older tag.
When you create a tag and a tag of the same name already exists, the operation overwrites the previous tag definition, but you will not get an error message.
public CreateOrUpdateTagsRequest withTags(Collection<Tag> tags)
auto-scaling-group is the only supported resource type.
The valid value for the resource ID is groupname. The
PropagateAtLaunch flag defines whether the new tag will
be applied to instances launched by the Auto Scaling group. Valid
values are true or false. However, instances
that are already running will not get the new or updated tag.
Likewise, when you modify a tag, the updated version will be applied
only to new instances launched by the Auto Scaling group after the
change. Running instances that had the previous version of the tag
will continue to have the older tag.
When you create a tag and a tag of the same name already exists, the operation overwrites the previous tag definition, but you will not get an error message.
Returns a reference to this object so that method calls can be chained together.
tags - The tag to be created or updated. Each tag should be defined by its
resource type, resource ID, key, value, and a propagate flag. The
resource type and resource ID identify the type and name of resource
for which the tag is created. Currently,
auto-scaling-group is the only supported resource type.
The valid value for the resource ID is groupname. The
PropagateAtLaunch flag defines whether the new tag will
be applied to instances launched by the Auto Scaling group. Valid
values are true or false. However, instances
that are already running will not get the new or updated tag.
Likewise, when you modify a tag, the updated version will be applied
only to new instances launched by the Auto Scaling group after the
change. Running instances that had the previous version of the tag
will continue to have the older tag.
When you create a tag and a tag of the same name already exists, the operation overwrites the previous tag definition, but you will not get an error message.
public String toString()
toString in class ObjectObject.toString()Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.