com.amazonaws.services.autoscaling.model
Class Tag

java.lang.Object
  extended by com.amazonaws.services.autoscaling.model.Tag

public class Tag
extends Object

The tag applied to an Auto Scaling group.


Constructor Summary
Tag()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tag

public Tag()
Method Detail

getResourceId

public String getResourceId()
The name of the Auto Scaling group.

Constraints:
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
The name of the Auto Scaling group.

setResourceId

public void setResourceId(String resourceId)
The name of the Auto Scaling group.

Constraints:
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
resourceId - The name of the Auto Scaling group.

withResourceId

public Tag withResourceId(String resourceId)
The name of the Auto Scaling group.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
resourceId - The name of the Auto Scaling group.
Returns:
A reference to this updated object so that method calls can be chained together.

getResourceType

public String getResourceType()
The kind of resource to which the tag is applied. Currently, Auto Scaling supports the auto-scaling-group resource type.

Constraints:
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
The kind of resource to which the tag is applied. Currently, Auto Scaling supports the auto-scaling-group resource type.

setResourceType

public void setResourceType(String resourceType)
The kind of resource to which the tag is applied. Currently, Auto Scaling supports the auto-scaling-group resource type.

Constraints:
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
resourceType - The kind of resource to which the tag is applied. Currently, Auto Scaling supports the auto-scaling-group resource type.

withResourceType

public Tag withResourceType(String resourceType)
The kind of resource to which the tag is applied. Currently, Auto Scaling supports the auto-scaling-group resource type.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
resourceType - The kind of resource to which the tag is applied. Currently, Auto Scaling supports the auto-scaling-group resource type.
Returns:
A reference to this updated object so that method calls can be chained together.

getKey

public String getKey()
The key of the tag.

Constraints:
Length: 1 - 128
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
The key of the tag.

setKey

public void setKey(String key)
The key of the tag.

Constraints:
Length: 1 - 128
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
key - The key of the tag.

withKey

public Tag withKey(String key)
The key of the tag.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 128
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
key - The key of the tag.
Returns:
A reference to this updated object so that method calls can be chained together.

getValue

public String getValue()
The value of the tag.

Constraints:
Length: 0 - 256
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
The value of the tag.

setValue

public void setValue(String value)
The value of the tag.

Constraints:
Length: 0 - 256
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
value - The value of the tag.

withValue

public Tag withValue(String value)
The value of the tag.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 256
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
value - The value of the tag.
Returns:
A reference to this updated object so that method calls can be chained together.

isPropagateAtLaunch

public Boolean isPropagateAtLaunch()
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.

Returns:
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.

setPropagateAtLaunch

public void setPropagateAtLaunch(Boolean 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.

Parameters:
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.

withPropagateAtLaunch

public Tag withPropagateAtLaunch(Boolean 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getPropagateAtLaunch

public Boolean getPropagateAtLaunch()
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.

Returns:
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.

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:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.