public class Tag extends Object implements Serializable
The tag applied to an Auto Scaling group.
| Constructor and Description |
|---|
Tag() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getKey()
The key of the tag.
|
Boolean |
getPropagateAtLaunch()
Specifies whether the new tag will be applied to instances launched
after the tag is created.
|
String |
getResourceId()
The name of the Auto Scaling group.
|
String |
getResourceType()
The kind of resource to which the tag is applied.
|
String |
getValue()
The value of the tag.
|
int |
hashCode() |
Boolean |
isPropagateAtLaunch()
Specifies whether the new tag will be applied to instances launched
after the tag is created.
|
void |
setKey(String key)
The key of the tag.
|
void |
setPropagateAtLaunch(Boolean propagateAtLaunch)
Specifies whether the new tag will be applied to instances launched
after the tag is created.
|
void |
setResourceId(String resourceId)
The name of the Auto Scaling group.
|
void |
setResourceType(String resourceType)
The kind of resource to which the tag is applied.
|
void |
setValue(String value)
The value of the tag.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Tag |
withKey(String key)
The key of the tag.
|
Tag |
withPropagateAtLaunch(Boolean propagateAtLaunch)
Specifies whether the new tag will be applied to instances launched
after the tag is created.
|
Tag |
withResourceId(String resourceId)
The name of the Auto Scaling group.
|
Tag |
withResourceType(String resourceType)
The kind of resource to which the tag is applied.
|
Tag |
withValue(String value)
The value of the tag.
|
public String getResourceId()
Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setResourceId(String resourceId)
Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
resourceId - The name of the Auto Scaling group.public Tag withResourceId(String resourceId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
resourceId - The name of the Auto Scaling group.public String getResourceType()
auto-scaling-group resource type.
Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
auto-scaling-group resource type.public void setResourceType(String resourceType)
auto-scaling-group resource type.
Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
resourceType - The kind of resource to which the tag is applied. Currently, Auto
Scaling supports the auto-scaling-group resource type.public Tag withResourceType(String resourceType)
auto-scaling-group resource type.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
resourceType - The kind of resource to which the tag is applied. Currently, Auto
Scaling supports the auto-scaling-group resource type.public String getKey()
Constraints:
Length: 1 - 128
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setKey(String key)
Constraints:
Length: 1 - 128
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
key - The key of the tag.public Tag withKey(String key)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
key - The key of the tag.public String getValue()
Constraints:
Length: 0 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setValue(String value)
Constraints:
Length: 0 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
value - The value of the tag.public Tag withValue(String value)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
value - The value of the tag.public Boolean isPropagateAtLaunch()
public void setPropagateAtLaunch(Boolean propagateAtLaunch)
propagateAtLaunch - Specifies whether the new tag will be applied to instances launched
after the tag is created. The same behavior applies to updates: If you
change a tag, the changed tag will be applied to all instances
launched after you made the change.public Tag withPropagateAtLaunch(Boolean propagateAtLaunch)
Returns a reference to this object so that method calls can be chained together.
propagateAtLaunch - Specifies whether the new tag will be applied to instances launched
after the tag is created. The same behavior applies to updates: If you
change a tag, the changed tag will be applied to all instances
launched after you made the change.public Boolean getPropagateAtLaunch()
public String toString()
toString in class ObjectObject.toString()Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.