public class TagDescription
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a tag for an Auto Scaling group.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
key
The tag key.
|
private java.lang.Boolean |
propagateAtLaunch
Determines whether the tag is added to new instances as they are launched
in the group.
|
private java.lang.String |
resourceId
The name of the group.
|
private java.lang.String |
resourceType
The type of resource.
|
private java.lang.String |
value
The tag value.
|
Constructor and Description |
---|
TagDescription() |
Modifier and Type | Method and Description |
---|---|
TagDescription |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKey()
The tag key.
|
java.lang.Boolean |
getPropagateAtLaunch()
Determines whether the tag is added to new instances as they are launched
in the group.
|
java.lang.String |
getResourceId()
The name of the group.
|
java.lang.String |
getResourceType()
The type of resource.
|
java.lang.String |
getValue()
The tag value.
|
int |
hashCode() |
java.lang.Boolean |
isPropagateAtLaunch()
Determines whether the tag is added to new instances as they are launched
in the group.
|
void |
setKey(java.lang.String key)
The tag key.
|
void |
setPropagateAtLaunch(java.lang.Boolean propagateAtLaunch)
Determines whether the tag is added to new instances as they are launched
in the group.
|
void |
setResourceId(java.lang.String resourceId)
The name of the group.
|
void |
setResourceType(java.lang.String resourceType)
The type of resource.
|
void |
setValue(java.lang.String value)
The tag value.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TagDescription |
withKey(java.lang.String key)
The tag key.
|
TagDescription |
withPropagateAtLaunch(java.lang.Boolean propagateAtLaunch)
Determines whether the tag is added to new instances as they are launched
in the group.
|
TagDescription |
withResourceId(java.lang.String resourceId)
The name of the group.
|
TagDescription |
withResourceType(java.lang.String resourceType)
The type of resource.
|
TagDescription |
withValue(java.lang.String value)
The tag value.
|
private java.lang.String resourceId
The name of the group.
private java.lang.String resourceType
The type of resource. The only supported value is
auto-scaling-group
.
private java.lang.String key
The tag key.
private java.lang.String value
The tag value.
private java.lang.Boolean propagateAtLaunch
Determines whether the tag is added to new instances as they are launched in the group.
public void setResourceId(java.lang.String resourceId)
The name of the group.
resourceId
- The name of the group.public java.lang.String getResourceId()
The name of the group.
public TagDescription withResourceId(java.lang.String resourceId)
The name of the group.
resourceId
- The name of the group.public void setResourceType(java.lang.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 java.lang.String getResourceType()
The type of resource. The only supported value is
auto-scaling-group
.
auto-scaling-group
.public TagDescription withResourceType(java.lang.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(java.lang.String key)
The tag key.
key
- The tag key.public java.lang.String getKey()
The tag key.
public TagDescription withKey(java.lang.String key)
The tag key.
key
- The tag key.public void setValue(java.lang.String value)
The tag value.
value
- The tag value.public java.lang.String getValue()
The tag value.
public TagDescription withValue(java.lang.String value)
The tag value.
value
- The tag value.public void setPropagateAtLaunch(java.lang.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 java.lang.Boolean getPropagateAtLaunch()
Determines whether the tag is added to new instances as they are launched in the group.
public TagDescription withPropagateAtLaunch(java.lang.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 java.lang.Boolean isPropagateAtLaunch()
Determines whether the tag is added to new instances as they are launched in the group.
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 TagDescription clone()
clone
in class java.lang.Object