public class TagDescription
extends java.lang.Object
implements java.io.Serializable
Describes a tag.
Constructor and Description |
---|
TagDescription() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKey()
The tag key.
|
java.lang.String |
getResourceId()
The ID of the resource.
|
java.lang.String |
getResourceType()
The resource type.
|
java.lang.String |
getValue()
The tag value.
|
int |
hashCode() |
void |
setKey(java.lang.String key)
The tag key.
|
void |
setResourceId(java.lang.String resourceId)
The ID of the resource.
|
void |
setResourceType(ResourceType resourceType)
The resource type.
|
void |
setResourceType(java.lang.String resourceType)
The resource type.
|
void |
setValue(java.lang.String value)
The tag 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 key.
|
TagDescription |
withResourceId(java.lang.String resourceId)
The ID of the resource.
|
TagDescription |
withResourceType(ResourceType resourceType)
The resource type.
|
TagDescription |
withResourceType(java.lang.String resourceType)
The resource type.
|
TagDescription |
withValue(java.lang.String value)
The tag value.
|
public java.lang.String getResourceId()
ami-1a2b3c4d
.ami-1a2b3c4d
.public void setResourceId(java.lang.String resourceId)
ami-1a2b3c4d
.resourceId
- The ID of the resource. For example, ami-1a2b3c4d
.public TagDescription withResourceId(java.lang.String resourceId)
ami-1a2b3c4d
.
Returns a reference to this object so that method calls can be chained together.
resourceId
- The ID of the resource. For example, ami-1a2b3c4d
.public java.lang.String getResourceType()
Constraints:
Allowed Values: customer-gateway, dhcp-options, image, instance, internet-gateway, network-acl, network-interface, reserved-instances, route-table, snapshot, spot-instances-request, subnet, security-group, volume, vpc, vpn-connection, vpn-gateway
ResourceType
public void setResourceType(java.lang.String resourceType)
Constraints:
Allowed Values: customer-gateway, dhcp-options, image, instance, internet-gateway, network-acl, network-interface, reserved-instances, route-table, snapshot, spot-instances-request, subnet, security-group, volume, vpc, vpn-connection, vpn-gateway
resourceType
- The resource type.ResourceType
public 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, internet-gateway, network-acl, network-interface, reserved-instances, route-table, snapshot, spot-instances-request, subnet, security-group, volume, vpc, vpn-connection, vpn-gateway
resourceType
- The resource type.ResourceType
public void setResourceType(ResourceType resourceType)
Constraints:
Allowed Values: customer-gateway, dhcp-options, image, instance, internet-gateway, network-acl, network-interface, reserved-instances, route-table, snapshot, spot-instances-request, subnet, security-group, volume, vpc, vpn-connection, vpn-gateway
resourceType
- The resource type.ResourceType
public 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, internet-gateway, network-acl, network-interface, reserved-instances, route-table, snapshot, spot-instances-request, subnet, security-group, volume, vpc, vpn-connection, vpn-gateway
resourceType
- The resource type.ResourceType
public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- The tag 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 key.public java.lang.String getValue()
public void setValue(java.lang.String value)
value
- The tag 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 value.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.