@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourceTagSet extends Object implements Serializable, Cloneable
A complex type containing a resource and its associated tags.
Constructor and Description |
---|
ResourceTagSet() |
Modifier and Type | Method and Description |
---|---|
ResourceTagSet |
clone() |
boolean |
equals(Object obj) |
String |
getResourceId()
The ID for the specified resource.
|
String |
getResourceType()
The type of the resource.
|
List<Tag> |
getTags()
The tags associated with the specified resource.
|
int |
hashCode() |
void |
setResourceId(String resourceId)
The ID for the specified resource.
|
void |
setResourceType(String resourceType)
The type of the resource.
|
void |
setResourceType(TagResourceType resourceType)
The type of the resource.
|
void |
setTags(Collection<Tag> tags)
The tags associated with the specified resource.
|
String |
toString()
Returns a string representation of this object.
|
ResourceTagSet |
withResourceId(String resourceId)
The ID for the specified resource.
|
ResourceTagSet |
withResourceType(String resourceType)
The type of the resource.
|
ResourceTagSet |
withResourceType(TagResourceType resourceType)
The type of the resource.
|
ResourceTagSet |
withTags(Collection<Tag> tags)
The tags associated with the specified resource.
|
ResourceTagSet |
withTags(Tag... tags)
The tags associated with the specified resource.
|
public void setResourceType(String resourceType)
The type of the resource.
The resource type for health checks is healthcheck
.
The resource type for hosted zones is hostedzone
.
resourceType
- The type of the resource.
The resource type for health checks is healthcheck
.
The resource type for hosted zones is hostedzone
.
TagResourceType
public String getResourceType()
The type of the resource.
The resource type for health checks is healthcheck
.
The resource type for hosted zones is hostedzone
.
The resource type for health checks is healthcheck
.
The resource type for hosted zones is hostedzone
.
TagResourceType
public ResourceTagSet withResourceType(String resourceType)
The type of the resource.
The resource type for health checks is healthcheck
.
The resource type for hosted zones is hostedzone
.
resourceType
- The type of the resource.
The resource type for health checks is healthcheck
.
The resource type for hosted zones is hostedzone
.
TagResourceType
public void setResourceType(TagResourceType resourceType)
The type of the resource.
The resource type for health checks is healthcheck
.
The resource type for hosted zones is hostedzone
.
resourceType
- The type of the resource.
The resource type for health checks is healthcheck
.
The resource type for hosted zones is hostedzone
.
TagResourceType
public ResourceTagSet withResourceType(TagResourceType resourceType)
The type of the resource.
The resource type for health checks is healthcheck
.
The resource type for hosted zones is hostedzone
.
resourceType
- The type of the resource.
The resource type for health checks is healthcheck
.
The resource type for hosted zones is hostedzone
.
TagResourceType
public void setResourceId(String resourceId)
The ID for the specified resource.
resourceId
- The ID for the specified resource.public String getResourceId()
The ID for the specified resource.
public ResourceTagSet withResourceId(String resourceId)
The ID for the specified resource.
resourceId
- The ID for the specified resource.public List<Tag> getTags()
The tags associated with the specified resource.
public void setTags(Collection<Tag> tags)
The tags associated with the specified resource.
tags
- The tags associated with the specified resource.public ResourceTagSet withTags(Tag... tags)
The tags associated with the specified resource.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags associated with the specified resource.public ResourceTagSet withTags(Collection<Tag> tags)
The tags associated with the specified resource.
tags
- The tags associated with the specified resource.public String toString()
toString
in class Object
Object.toString()
public ResourceTagSet clone()