@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Tag extends Object implements Serializable, Cloneable, StructuredPojo
This property corresponds to the AWS CloudFormation Tag Data Type.
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and Description |
---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
This property corresponds to the content of the same name for the AWS CloudFormation Tag Data Type.
|
String |
getValue()
This property corresponds to the content of the same name for the AWS CloudFormation Tag Data Type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
This property corresponds to the content of the same name for the AWS CloudFormation Tag Data Type.
|
void |
setValue(String value)
This property corresponds to the content of the same name for the AWS CloudFormation Tag Data Type.
|
String |
toString()
Returns a string representation of this object.
|
Tag |
withKey(String key)
This property corresponds to the content of the same name for the AWS CloudFormation Tag Data Type.
|
Tag |
withValue(String value)
This property corresponds to the content of the same name for the AWS CloudFormation Tag Data Type.
|
public void setKey(String key)
This property corresponds to the content of the same name for the AWS CloudFormation Tag Data Type.
key
- This property corresponds to the content of the same name for the AWS CloudFormation Tag Data Type.public String getKey()
This property corresponds to the content of the same name for the AWS CloudFormation Tag Data Type.
public Tag withKey(String key)
This property corresponds to the content of the same name for the AWS CloudFormation Tag Data Type.
key
- This property corresponds to the content of the same name for the AWS CloudFormation Tag Data Type.public void setValue(String value)
This property corresponds to the content of the same name for the AWS CloudFormation Tag Data Type.
value
- This property corresponds to the content of the same name for the AWS CloudFormation Tag Data Type.public String getValue()
This property corresponds to the content of the same name for the AWS CloudFormation Tag Data Type.
public Tag withValue(String value)
This property corresponds to the content of the same name for the AWS CloudFormation Tag Data Type.
value
- This property corresponds to the content of the same name for the AWS CloudFormation Tag Data Type.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.