Package com.amazonaws.services.ec2.model
Class TagDescription
- java.lang.Object
-
- com.amazonaws.services.ec2.model.TagDescription
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class TagDescription extends Object implements Serializable, Cloneable
Describes a tag.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TagDescription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
setResourceId
public void setResourceId(String resourceId)
The ID of the resource. For example,
ami-1a2b3c4d
.- Parameters:
resourceId
- The ID of the resource. For example,ami-1a2b3c4d
.
-
getResourceId
public String getResourceId()
The ID of the resource. For example,
ami-1a2b3c4d
.- Returns:
- The ID of the resource. For example,
ami-1a2b3c4d
.
-
withResourceId
public TagDescription withResourceId(String resourceId)
The ID of the resource. For example,
ami-1a2b3c4d
.- Parameters:
resourceId
- The ID of the resource. For example,ami-1a2b3c4d
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setResourceType
public void setResourceType(String resourceType)
The resource type.
- Parameters:
resourceType
- The resource type.- See Also:
ResourceType
-
getResourceType
public String getResourceType()
The resource type.
- Returns:
- The resource type.
- See Also:
ResourceType
-
withResourceType
public TagDescription withResourceType(String resourceType)
The resource type.
- Parameters:
resourceType
- The resource type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceType
-
setResourceType
public void setResourceType(ResourceType resourceType)
The resource type.
- Parameters:
resourceType
- The resource type.- See Also:
ResourceType
-
withResourceType
public TagDescription withResourceType(ResourceType resourceType)
The resource type.
- Parameters:
resourceType
- The resource type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceType
-
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 TagDescription 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 TagDescription 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.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public TagDescription clone()
-
-