@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Tag extends Object implements Serializable, Cloneable
Describes a tag for an Auto Scaling group.
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and Description |
---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The tag key.
|
Boolean |
getPropagateAtLaunch()
Determines whether the tag is added to new instances as they are launched in the group.
|
String |
getResourceId()
The name of the group.
|
String |
getResourceType()
The type of resource.
|
String |
getValue()
The tag value.
|
int |
hashCode() |
Boolean |
isPropagateAtLaunch()
Determines whether the tag is added to new instances as they are launched in the group.
|
void |
setKey(String key)
The tag key.
|
void |
setPropagateAtLaunch(Boolean propagateAtLaunch)
Determines whether the tag is added to new instances as they are launched in the group.
|
void |
setResourceId(String resourceId)
The name of the group.
|
void |
setResourceType(String resourceType)
The type of resource.
|
void |
setValue(String value)
The tag value.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Tag |
withKey(String key)
The tag key.
|
Tag |
withPropagateAtLaunch(Boolean propagateAtLaunch)
Determines whether the tag is added to new instances as they are launched in the group.
|
Tag |
withResourceId(String resourceId)
The name of the group.
|
Tag |
withResourceType(String resourceType)
The type of resource.
|
Tag |
withValue(String value)
The tag value.
|
public void setResourceId(String resourceId)
The name of the group.
resourceId
- The name of the group.public String getResourceId()
The name of the group.
public Tag withResourceId(String resourceId)
The name of the group.
resourceId
- The name of the group.public void setResourceType(String resourceType)
The type of resource. The only supported value is auto-scaling-group
.
resourceType
- The type of resource. The only supported value is auto-scaling-group
.public String getResourceType()
The type of resource. The only supported value is auto-scaling-group
.
auto-scaling-group
.public Tag withResourceType(String resourceType)
The type of resource. The only supported value is auto-scaling-group
.
resourceType
- The type of resource. The only supported value is auto-scaling-group
.public void setKey(String key)
The tag key.
key
- The tag key.public String getKey()
The tag key.
public Tag withKey(String key)
The tag key.
key
- The tag key.public void setValue(String value)
The tag value.
value
- The tag value.public String getValue()
The tag value.
public Tag withValue(String value)
The tag value.
value
- The tag value.public void setPropagateAtLaunch(Boolean propagateAtLaunch)
Determines whether the tag is added to new instances as they are launched in the group.
propagateAtLaunch
- Determines whether the tag is added to new instances as they are launched in the group.public Boolean getPropagateAtLaunch()
Determines whether the tag is added to new instances as they are launched in the group.
public Tag withPropagateAtLaunch(Boolean propagateAtLaunch)
Determines whether the tag is added to new instances as they are launched in the group.
propagateAtLaunch
- Determines whether the tag is added to new instances as they are launched in the group.public Boolean isPropagateAtLaunch()
Determines whether the tag is added to new instances as they are launched in the group.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.