public class ListTagsForResourceRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
A complex type containing information about a request for a list of the tags that are associated with an individual resource.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
resourceId
The ID of the resource for which you want to retrieve tags.
|
private java.lang.String |
resourceType
The type of the resource.
|
NOOP
Constructor and Description |
---|
ListTagsForResourceRequest() |
Modifier and Type | Method and Description |
---|---|
ListTagsForResourceRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getResourceId()
The ID of the resource for which you want to retrieve tags.
|
java.lang.String |
getResourceType()
The type of the resource.
|
int |
hashCode() |
void |
setResourceId(java.lang.String resourceId)
The ID of the resource for which you want to retrieve tags.
|
void |
setResourceType(java.lang.String resourceType)
The type of the resource.
|
void |
setResourceType(TagResourceType resourceType)
The type of the resource.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListTagsForResourceRequest |
withResourceId(java.lang.String resourceId)
The ID of the resource for which you want to retrieve tags.
|
ListTagsForResourceRequest |
withResourceType(java.lang.String resourceType)
The type of the resource.
|
ListTagsForResourceRequest |
withResourceType(TagResourceType resourceType)
The type of the resource.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
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 of the resource for which you want to retrieve tags.
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 ListTagsForResourceRequest 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 ListTagsForResourceRequest 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 of the resource for which you want to retrieve tags.
resourceId
- The ID of the resource for which you want to retrieve tags.public java.lang.String getResourceId()
The ID of the resource for which you want to retrieve tags.
public ListTagsForResourceRequest withResourceId(java.lang.String resourceId)
The ID of the resource for which you want to retrieve tags.
resourceId
- The ID of the resource for which you want to retrieve tags.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 ListTagsForResourceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()