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 TagDescriptionclone()booleanequals(Object obj)StringgetKey()The tag key.BooleangetPropagateAtLaunch()Determines whether the tag is added to new instances as they are launched in the group.StringgetResourceId()The name of the group.StringgetResourceType()The type of resource.StringgetValue()The tag value.inthashCode()BooleanisPropagateAtLaunch()Determines whether the tag is added to new instances as they are launched in the group.voidsetKey(String key)The tag key.voidsetPropagateAtLaunch(Boolean propagateAtLaunch)Determines whether the tag is added to new instances as they are launched in the group.voidsetResourceId(String resourceId)The name of the group.voidsetResourceType(String resourceType)The type of resource.voidsetValue(String value)The tag value.StringtoString()Returns a string representation of this object; useful for testing and debugging.TagDescriptionwithKey(String key)The tag key.TagDescriptionwithPropagateAtLaunch(Boolean propagateAtLaunch)Determines whether the tag is added to new instances as they are launched in the group.TagDescriptionwithResourceId(String resourceId)The name of the group.TagDescriptionwithResourceType(String resourceType)The type of resource.TagDescriptionwithValue(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public TagDescription clone()
-
-