Class Tag


  • public class Tag
    extends Object
    To help you manage your Amazon EC2 instances, images, and other Amazon EC2 resources, you can assign your own metadata to each resource in the form of tags.
    See Also:
    doc
    • Field Detail

      • resourceId

        protected final String resourceId
      • resourceType

        protected final String resourceType
      • key

        protected final String key
      • value

        protected final com.google.common.base.Optional<String> value
    • Constructor Detail

      • Tag

        protected Tag​(String resourceId,
                      String resourceType,
                      String key,
                      com.google.common.base.Optional<String> value)
    • Method Detail

      • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • string

        protected com.google.common.base.MoreObjects.ToStringHelper string()