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:
  • Constructor Details

    • Tag

      public Tag()
  • Method Details

    • 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 is auto-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 is auto-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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Tag clone()
      Overrides:
      clone in class Object