Package com.amazonaws.services.ec2.model
Class TagDescription
java.lang.Object
com.amazonaws.services.ec2.model.TagDescription
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a tag.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getKey()
The tag key.The ID of the resource.The resource type.getValue()
The tag value.int
hashCode()
void
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
The tag value.toString()
Returns a string representation of this object; useful for testing and debugging.The tag key.withResourceId
(String resourceId) The ID of the resource.withResourceType
(ResourceType resourceType) The resource type.withResourceType
(String resourceType) The resource type.The tag value.
-
Constructor Details
-
TagDescription
public TagDescription()
-
-
Method Details
-
setResourceId
The ID of the resource. For example,
ami-1a2b3c4d
.- Parameters:
resourceId
- The ID of the resource. For example,ami-1a2b3c4d
.
-
getResourceId
The ID of the resource. For example,
ami-1a2b3c4d
.- Returns:
- The ID of the resource. For example,
ami-1a2b3c4d
.
-
withResourceId
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
The resource type.
- Parameters:
resourceType
- The resource type.- See Also:
-
getResourceType
The resource type.
- Returns:
- The resource type.
- See Also:
-
withResourceType
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:
-
setResourceType
The resource type.
- Parameters:
resourceType
- The resource type.- See Also:
-
withResourceType
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:
-
setKey
The tag key.
- Parameters:
key
- The tag key.
-
getKey
The tag key.
- Returns:
- The tag key.
-
withKey
The tag key.
- Parameters:
key
- The tag key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValue
The tag value.
- Parameters:
value
- The tag value.
-
getValue
The tag value.
- Returns:
- The tag value.
-
withValue
The tag value.
- Parameters:
value
- The tag value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-