public class ResourceTagSet
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A complex type containing a resource and its associated tags.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
resourceId
The ID for the specified resource.
|
private java.lang.String |
resourceType
The type of the resource.
|
private SdkInternalList<Tag> |
tags
The tags associated with the specified resource.
|
Constructor and Description |
---|
ResourceTagSet() |
Modifier and Type | Method and Description |
---|---|
ResourceTagSet |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getResourceId()
The ID for the specified resource.
|
java.lang.String |
getResourceType()
The type of the resource.
|
java.util.List<Tag> |
getTags()
The tags associated with the specified resource.
|
int |
hashCode() |
void |
setResourceId(java.lang.String resourceId)
The ID for the specified resource.
|
void |
setResourceType(java.lang.String resourceType)
The type of the resource.
|
void |
setResourceType(TagResourceType resourceType)
The type of the resource.
|
void |
setTags(java.util.Collection<Tag> tags)
The tags associated with the specified resource.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ResourceTagSet |
withResourceId(java.lang.String resourceId)
The ID for the specified resource.
|
ResourceTagSet |
withResourceType(java.lang.String resourceType)
The type of the resource.
|
ResourceTagSet |
withResourceType(TagResourceType resourceType)
The type of the resource.
|
ResourceTagSet |
withTags(java.util.Collection<Tag> tags)
The tags associated with the specified resource.
|
ResourceTagSet |
withTags(Tag... tags)
The tags associated with the specified resource.
|
private java.lang.String resourceType
The type of the resource.
- The resource type for health checks is healthcheck
.
- The resource type for hosted zones is hostedzone
.
private java.lang.String resourceId
The ID for the specified resource.
private SdkInternalList<Tag> tags
The tags associated with the specified resource.
public void setResourceType(java.lang.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 java.lang.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(java.lang.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(java.lang.String resourceId)
The ID for the specified resource.
resourceId
- The ID for the specified resource.public java.lang.String getResourceId()
The ID for the specified resource.
public ResourceTagSet withResourceId(java.lang.String resourceId)
The ID for the specified resource.
resourceId
- The ID for the specified resource.public java.util.List<Tag> getTags()
The tags associated with the specified resource.
public void setTags(java.util.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(java.util.Collection<Tag> tags)
The tags associated with the specified resource.
tags
- The tags associated with the specified resource.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ResourceTagSet clone()
clone
in class java.lang.Object