Class TagDescription
- java.lang.Object
-
- com.amazonaws.services.autoscaling.model.TagDescription
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class TagDescription extends Object implements Serializable, Cloneable
Describes a tag for an Auto Scaling group.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TagDescription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TagDescription
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.TagDescription
withKey(String key)
The tag key.TagDescription
withPropagateAtLaunch(Boolean propagateAtLaunch)
Determines whether the tag is added to new instances as they are launched in the group.TagDescription
withResourceId(String resourceId)
The name of the group.TagDescription
withResourceType(String resourceType)
The type of resource.TagDescription
withValue(String value)
The tag value.
-
-
-
Method Detail
-
setResourceId
public void setResourceId(String resourceId)
The name of the group.
- Parameters:
resourceId
- The name of the group.
-
getResourceId
public String getResourceId()
The name of the group.
- Returns:
- The name of the group.
-
withResourceId
public TagDescription withResourceId(String resourceId)
The name of the group.
- Parameters:
resourceId
- The name of the group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setResourceType
public void setResourceType(String resourceType)
The type of resource. The only supported value is
auto-scaling-group
.- Parameters:
resourceType
- The type of resource. The only supported value isauto-scaling-group
.
-
getResourceType
public String getResourceType()
The type of resource. The only supported value is
auto-scaling-group
.- Returns:
- The type of resource. The only supported value is
auto-scaling-group
.
-
withResourceType
public TagDescription withResourceType(String resourceType)
The type of resource. The only supported value is
auto-scaling-group
.- Parameters:
resourceType
- The type of resource. The only supported value isauto-scaling-group
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setKey
public void setKey(String key)
The tag key.
- Parameters:
key
- The tag key.
-
getKey
public String getKey()
The tag key.
- Returns:
- The tag key.
-
withKey
public TagDescription withKey(String key)
The tag key.
- Parameters:
key
- The tag key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValue
public void setValue(String value)
The tag value.
- Parameters:
value
- The tag value.
-
getValue
public String getValue()
The tag value.
- Returns:
- The tag value.
-
withValue
public TagDescription withValue(String value)
The tag value.
- Parameters:
value
- The tag value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPropagateAtLaunch
public void setPropagateAtLaunch(Boolean propagateAtLaunch)
Determines whether the tag is added to new instances as they are launched in the group.
- Parameters:
propagateAtLaunch
- Determines whether the tag is added to new instances as they are launched in the group.
-
getPropagateAtLaunch
public Boolean getPropagateAtLaunch()
Determines whether the tag is added to new instances as they are launched in the group.
- Returns:
- Determines whether the tag is added to new instances as they are launched in the group.
-
withPropagateAtLaunch
public TagDescription withPropagateAtLaunch(Boolean propagateAtLaunch)
Determines whether the tag is added to new instances as they are launched in the group.
- Parameters:
propagateAtLaunch
- Determines whether the tag is added to new instances as they are launched in the group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isPropagateAtLaunch
public Boolean isPropagateAtLaunch()
Determines whether the tag is added to new instances as they are launched in the group.
- Returns:
- Determines whether the tag is added to new instances as they are launched in the group.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public TagDescription clone()
-
-