@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TagDescription extends Object implements Serializable, Cloneable
Describes a tag.
Constructor and Description |
---|
TagDescription() |
Modifier and Type | Method and Description |
---|---|
TagDescription |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The tag key.
|
String |
getResourceId()
The ID of the resource.
|
String |
getResourceType()
The resource type.
|
String |
getValue()
The tag value.
|
int |
hashCode() |
void |
setKey(String key)
The tag key.
|
void |
setResourceId(String resourceId)
The ID of the resource.
|
void |
setResourceType(ResourceType resourceType)
The resource type.
|
void |
setResourceType(String resourceType)
The resource type.
|
void |
setValue(String value)
The tag value.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
TagDescription |
withKey(String key)
The tag key.
|
TagDescription |
withResourceId(String resourceId)
The ID of the resource.
|
TagDescription |
withResourceType(ResourceType resourceType)
The resource type.
|
TagDescription |
withResourceType(String resourceType)
The resource type.
|
TagDescription |
withValue(String value)
The tag value.
|
public void setKey(String key)
The tag key.
key
- The tag key.public String getKey()
The tag key.
public TagDescription withKey(String key)
The tag key.
key
- The tag key.public void setResourceId(String resourceId)
The ID of the resource. For example, ami-1a2b3c4d
.
resourceId
- The ID of the resource. For example, ami-1a2b3c4d
.public String getResourceId()
The ID of the resource. For example, ami-1a2b3c4d
.
ami-1a2b3c4d
.public TagDescription withResourceId(String resourceId)
The ID of the resource. For example, ami-1a2b3c4d
.
resourceId
- The ID of the resource. For example, ami-1a2b3c4d
.public void setResourceType(String resourceType)
The resource type.
resourceType
- The resource type.ResourceType
public String getResourceType()
The resource type.
ResourceType
public TagDescription withResourceType(String resourceType)
The resource type.
resourceType
- The resource type.ResourceType
public void setResourceType(ResourceType resourceType)
The resource type.
resourceType
- The resource type.ResourceType
public TagDescription withResourceType(ResourceType resourceType)
The resource type.
resourceType
- The resource type.ResourceType
public void setValue(String value)
The tag value.
value
- The tag value.public String getValue()
The tag value.
public TagDescription withValue(String value)
The tag value.
value
- The tag value.public String toString()
toString
in class Object
Object.toString()
public TagDescription clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.