Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.cloudformation.model
Class Tag

java.lang.Object
  extended by com.amazonaws.services.cloudformation.model.Tag
All Implemented Interfaces:
Serializable

public class Tag
extends Object
implements Serializable

The Tag type is used by CreateStack in the Tags parameter. It allows you to specify a key/value pair that can be used to store information related to cost allocation for an AWS CloudFormation stack.

See Also:
Serialized Form

Constructor Summary
Tag()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getKey()
          Required.
 String getValue()
          Required.
 int hashCode()
           
 void setKey(String key)
          Required.
 void setValue(String value)
          Required.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Tag withKey(String key)
          Required.
 Tag withValue(String value)
          Required.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tag

public Tag()
Method Detail

getKey

public String getKey()
Required. A string used to identify this tag. You can specify a maximum of 128 characters for a tag key. Tags owned by Amazon Web Services (AWS) have the reserved prefix: aws:.

Returns:
Required. A string used to identify this tag. You can specify a maximum of 128 characters for a tag key. Tags owned by Amazon Web Services (AWS) have the reserved prefix: aws:.

setKey

public void setKey(String key)
Required. A string used to identify this tag. You can specify a maximum of 128 characters for a tag key. Tags owned by Amazon Web Services (AWS) have the reserved prefix: aws:.

Parameters:
key - Required. A string used to identify this tag. You can specify a maximum of 128 characters for a tag key. Tags owned by Amazon Web Services (AWS) have the reserved prefix: aws:.

withKey

public Tag withKey(String key)
Required. A string used to identify this tag. You can specify a maximum of 128 characters for a tag key. Tags owned by Amazon Web Services (AWS) have the reserved prefix: aws:.

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

Parameters:
key - Required. A string used to identify this tag. You can specify a maximum of 128 characters for a tag key. Tags owned by Amazon Web Services (AWS) have the reserved prefix: aws:.
Returns:
A reference to this updated object so that method calls can be chained together.

getValue

public String getValue()
Required. A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value.

Returns:
Required. A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value.

setValue

public void setValue(String value)
Required. A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value.

Parameters:
value - Required. A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value.

withValue

public Tag withValue(String value)
Required. A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value.

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

Parameters:
value - Required. A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value.
Returns:
A reference to this updated object so that method calls can be chained together.

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.