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 TagDescriptionclone()booleanequals(Object obj)StringgetKey()The tag key.StringgetResourceId()The ID of the resource.StringgetResourceType()The resource type.StringgetValue()The tag value.inthashCode()voidsetKey(String key)The tag key.voidsetResourceId(String resourceId)The ID of the resource.voidsetResourceType(ResourceType resourceType)The resource type.voidsetResourceType(String resourceType)The resource type.voidsetValue(String value)The tag value.StringtoString()Returns a string representation of this object; useful for testing and debugging.TagDescriptionwithKey(String key)The tag key.TagDescriptionwithResourceId(String resourceId)The ID of the resource.TagDescriptionwithResourceType(ResourceType resourceType)The resource type.TagDescriptionwithResourceType(String resourceType)The resource type.TagDescriptionwithValue(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public TagDescription clone()
-
-