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 ResourceTagSetclone()booleanequals(Object obj)StringgetResourceId()The ID for the specified resource.StringgetResourceType()The type of the resource.List<Tag>getTags()The tags associated with the specified resource.inthashCode()voidsetResourceId(String resourceId)The ID for the specified resource.voidsetResourceType(TagResourceType resourceType)The type of the resource.voidsetResourceType(String resourceType)The type of the resource.voidsetTags(Collection<Tag> tags)The tags associated with the specified resource.StringtoString()Returns a string representation of this object; useful for testing and debugging.ResourceTagSetwithResourceId(String resourceId)The ID for the specified resource.ResourceTagSetwithResourceType(TagResourceType resourceType)The type of the resource.ResourceTagSetwithResourceType(String resourceType)The type of the resource.ResourceTagSetwithTags(Tag... tags)The tags associated with the specified resource.ResourceTagSetwithTags(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ResourceTagSet clone()
-
-