public class ResourceTagSet extends Object implements Serializable
A complex type containing a resource and its associated tags.
| Constructor and Description |
|---|
ResourceTagSet() |
| Modifier and Type | Method and Description |
|---|---|
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; useful for testing and
debugging.
|
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 String getResourceType()
healthcheck.
Constraints:
Allowed Values: healthcheck
healthcheck.TagResourceTypepublic void setResourceType(String resourceType)
healthcheck.
Constraints:
Allowed Values: healthcheck
resourceType - The type of the resource. The resource type for health checks is
healthcheck.TagResourceTypepublic ResourceTagSet withResourceType(String resourceType)
healthcheck.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: healthcheck
resourceType - The type of the resource. The resource type for health checks is
healthcheck.TagResourceTypepublic void setResourceType(TagResourceType resourceType)
healthcheck.
Constraints:
Allowed Values: healthcheck
resourceType - The type of the resource. The resource type for health checks is
healthcheck.TagResourceTypepublic ResourceTagSet withResourceType(TagResourceType resourceType)
healthcheck.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: healthcheck
resourceType - The type of the resource. The resource type for health checks is
healthcheck.TagResourceTypepublic String getResourceId()
Constraints:
Length: 0 - 64
public void setResourceId(String resourceId)
Constraints:
Length: 0 - 64
resourceId - The ID for the specified resource.public ResourceTagSet withResourceId(String resourceId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 64
resourceId - The ID for the specified resource.public List<Tag> getTags()
Constraints:
Length: 1 - 10
public void setTags(Collection<Tag> tags)
Constraints:
Length: 1 - 10
tags - The tags associated with the specified resource.public ResourceTagSet withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 10
tags - The tags associated with the specified resource.public ResourceTagSet withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 10
tags - The tags associated with the specified resource.public String toString()
toString in class ObjectObject.toString()Copyright © 2014. All rights reserved.