Package org.jclouds.ec2.domain
Class Tag
- java.lang.Object
-
- org.jclouds.ec2.domain.Tag
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Tag.Builder
static class
Tag.ResourceType
Describes the well-known resource types that can be tagged.
-
Field Summary
Fields Modifier and Type Field Description protected String
key
protected String
resourceId
protected String
resourceType
protected com.google.common.base.Optional<String>
value
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Tag.Builder
builder()
boolean
equals(Object obj)
String
getKey()
The tag key.String
getResourceId()
The resource ID ex.String
getResourceType()
The resource type.com.google.common.base.Optional<String>
getValue()
The tag value.int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
Tag.Builder
toBuilder()
String
toString()
-
-
-
Method Detail
-
builder
public static Tag.Builder builder()
-
toBuilder
public Tag.Builder toBuilder()
-
getResourceId
public String getResourceId()
The resource ID ex. i-erf235
-
getResourceType
public String getResourceType()
The resource type. ex. customer-gateway, dhcp-options, image, instance, internet-gateway, network-acl, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, volume, vpc, vpn-connection, vpn-gateway
-
getKey
public String getKey()
The tag key.
-
getValue
public com.google.common.base.Optional<String> getValue()
The tag value.
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-