Class ResourceTagSet
- java.lang.Object
-
- com.amazonaws.services.route53.model.ResourceTagSet
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ResourceTagSet extends Object implements Serializable, Cloneable
A complex type containing a resource and its associated tags.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceTagSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(TagResourceType resourceType)
The type of the resource.void
setResourceType(String 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; useful for testing and debugging.ResourceTagSet
withResourceId(String resourceId)
The ID for the specified resource.ResourceTagSet
withResourceType(TagResourceType resourceType)
The type of the resource.ResourceTagSet
withResourceType(String resourceType)
The type of the resource.ResourceTagSet
withTags(Tag... tags)
The tags associated with the specified resource.ResourceTagSet
withTags(Collection<Tag> tags)
The tags associated with the specified resource.
-
-
-
Method Detail
-
setResourceType
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
.- Parameters:
resourceType
- The type of the resource.- The resource type for health checks is
healthcheck
.- The resource type for hosted zones is
hostedzone
.- See Also:
TagResourceType
-
getResourceType
public String getResourceType()
The type of the resource.
- The resource type for health checks is
healthcheck
.- The resource type for hosted zones is
hostedzone
.- Returns:
- The type of the resource.
- The resource type for health checks is
healthcheck
.- The resource type for hosted zones is
hostedzone
. - See Also:
TagResourceType
-
withResourceType
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
.- Parameters:
resourceType
- The type of the resource.- The resource type for health checks is
healthcheck
.- The resource type for hosted zones is
hostedzone
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TagResourceType
-
setResourceType
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
.- Parameters:
resourceType
- The type of the resource.- The resource type for health checks is
healthcheck
.- The resource type for hosted zones is
hostedzone
.- See Also:
TagResourceType
-
withResourceType
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
.- Parameters:
resourceType
- The type of the resource.- The resource type for health checks is
healthcheck
.- The resource type for hosted zones is
hostedzone
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TagResourceType
-
setResourceId
public void setResourceId(String resourceId)
The ID for the specified resource.
- Parameters:
resourceId
- The ID for the specified resource.
-
getResourceId
public String getResourceId()
The ID for the specified resource.
- Returns:
- The ID for the specified resource.
-
withResourceId
public ResourceTagSet withResourceId(String resourceId)
The ID for the specified resource.
- Parameters:
resourceId
- The ID for the specified resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
public List<Tag> getTags()
The tags associated with the specified resource.
- Returns:
- The tags associated with the specified resource.
-
setTags
public void setTags(Collection<Tag> tags)
The tags associated with the specified resource.
- Parameters:
tags
- The tags associated with the specified resource.
-
withTags
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)
orwithTags(java.util.Collection)
if you want to override the existing values.- Parameters:
tags
- The tags associated with the specified resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
public ResourceTagSet withTags(Collection<Tag> tags)
The tags associated with the specified resource.
- Parameters:
tags
- The tags associated with the specified resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ResourceTagSet clone()
-
-