Class Tag
- java.lang.Object
-
- com.amazonaws.services.autoscaling.model.Tag
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Tag extends Object implements Serializable, Cloneable
Describes a tag for an Auto Scaling group.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Tag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
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 Tag 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 Tag 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 Tag 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 Tag 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 Tag 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()
-
-