public class TagDescription
extends java.lang.Object
implements java.io.Serializable
Provides information about an Amazon EC2 resource Tag.
| コンストラクタと説明 |
|---|
TagDescription() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKey()
The tag's key.
|
java.lang.String |
getResourceId()
The resource ID for the tag.
|
java.lang.String |
getResourceType()
The type of resource identified by the associated resource ID (ex:
instance, AMI, EBS volume, etc).
|
java.lang.String |
getValue()
The tag's value.
|
int |
hashCode() |
void |
setKey(java.lang.String key)
The tag's key.
|
void |
setResourceId(java.lang.String resourceId)
The resource ID for the tag.
|
void |
setResourceType(ResourceType resourceType)
The type of resource identified by the associated resource ID (ex:
instance, AMI, EBS volume, etc).
|
void |
setResourceType(java.lang.String resourceType)
The type of resource identified by the associated resource ID (ex:
instance, AMI, EBS volume, etc).
|
void |
setValue(java.lang.String value)
The tag's value.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TagDescription |
withKey(java.lang.String key)
The tag's key.
|
TagDescription |
withResourceId(java.lang.String resourceId)
The resource ID for the tag.
|
TagDescription |
withResourceType(ResourceType resourceType)
The type of resource identified by the associated resource ID (ex:
instance, AMI, EBS volume, etc).
|
TagDescription |
withResourceType(java.lang.String resourceType)
The type of resource identified by the associated resource ID (ex:
instance, AMI, EBS volume, etc).
|
TagDescription |
withValue(java.lang.String value)
The tag's value.
|
public java.lang.String getResourceId()
public void setResourceId(java.lang.String resourceId)
resourceId - The resource ID for the tag.public TagDescription withResourceId(java.lang.String resourceId)
Returns a reference to this object so that method calls can be chained together.
resourceId - The resource ID for the tag.public java.lang.String getResourceType()
Constraints:
Allowed Values: customer-gateway, dhcp-options, image, instance, snapshot, spot-instances-request, subnet, volume, vpc, vpn-connection, vpn-gateway
ResourceTypepublic void setResourceType(java.lang.String resourceType)
Constraints:
Allowed Values: customer-gateway, dhcp-options, image, instance, snapshot, spot-instances-request, subnet, volume, vpc, vpn-connection, vpn-gateway
resourceType - The type of resource identified by the associated resource ID (ex:
instance, AMI, EBS volume, etc).ResourceTypepublic TagDescription withResourceType(java.lang.String resourceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: customer-gateway, dhcp-options, image, instance, snapshot, spot-instances-request, subnet, volume, vpc, vpn-connection, vpn-gateway
resourceType - The type of resource identified by the associated resource ID (ex:
instance, AMI, EBS volume, etc).ResourceTypepublic void setResourceType(ResourceType resourceType)
Constraints:
Allowed Values: customer-gateway, dhcp-options, image, instance, snapshot, spot-instances-request, subnet, volume, vpc, vpn-connection, vpn-gateway
resourceType - The type of resource identified by the associated resource ID (ex:
instance, AMI, EBS volume, etc).ResourceTypepublic TagDescription withResourceType(ResourceType resourceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: customer-gateway, dhcp-options, image, instance, snapshot, spot-instances-request, subnet, volume, vpc, vpn-connection, vpn-gateway
resourceType - The type of resource identified by the associated resource ID (ex:
instance, AMI, EBS volume, etc).ResourceTypepublic java.lang.String getKey()
public void setKey(java.lang.String key)
key - The tag's key.public TagDescription withKey(java.lang.String key)
Returns a reference to this object so that method calls can be chained together.
key - The tag's key.public java.lang.String getValue()
public void setValue(java.lang.String value)
value - The tag's value.public TagDescription withValue(java.lang.String value)
Returns a reference to this object so that method calls can be chained together.
value - The tag's value.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object