Class ChangeTagsForResourceRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
A complex type containing information about a request to add, change, or delete the tags that are associated with a resource.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
A complex type that contains a list ofTag
elements.A list ofTag
keys that you want to remove from the specified resource.The ID of the resource for which you want to add, change, or delete tags.The type of the resource.int
hashCode()
void
setAddTags
(Collection<Tag> addTags) A complex type that contains a list ofTag
elements.void
setRemoveTagKeys
(Collection<String> removeTagKeys) A list ofTag
keys that you want to remove from the specified resource.void
setResourceId
(String resourceId) The ID of the resource for which you want to add, change, or delete tags.void
setResourceType
(TagResourceType resourceType) The type of the resource.void
setResourceType
(String resourceType) The type of the resource.toString()
Returns a string representation of this object; useful for testing and debugging.withAddTags
(Tag... addTags) A complex type that contains a list ofTag
elements.withAddTags
(Collection<Tag> addTags) A complex type that contains a list ofTag
elements.withRemoveTagKeys
(String... removeTagKeys) A list ofTag
keys that you want to remove from the specified resource.withRemoveTagKeys
(Collection<String> removeTagKeys) A list ofTag
keys that you want to remove from the specified resource.withResourceId
(String resourceId) The ID of the resource for which you want to add, change, or delete tags.withResourceType
(TagResourceType resourceType) The type of the resource.withResourceType
(String resourceType) The type of the resource.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
Constructor Details
-
ChangeTagsForResourceRequest
public ChangeTagsForResourceRequest()
-
-
Method Details
-
setResourceType
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:
-
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:
-
withResourceType
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:
-
setResourceType
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:
-
withResourceType
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:
-
setResourceId
The ID of the resource for which you want to add, change, or delete tags.
- Parameters:
resourceId
- The ID of the resource for which you want to add, change, or delete tags.
-
getResourceId
The ID of the resource for which you want to add, change, or delete tags.
- Returns:
- The ID of the resource for which you want to add, change, or delete tags.
-
withResourceId
The ID of the resource for which you want to add, change, or delete tags.
- Parameters:
resourceId
- The ID of the resource for which you want to add, change, or delete tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAddTags
A complex type that contains a list of
Tag
elements. EachTag
element identifies a tag that you want to add or update for the specified resource.- Returns:
- A complex type that contains a list of
Tag
elements. EachTag
element identifies a tag that you want to add or update for the specified resource.
-
setAddTags
A complex type that contains a list of
Tag
elements. EachTag
element identifies a tag that you want to add or update for the specified resource.- Parameters:
addTags
- A complex type that contains a list ofTag
elements. EachTag
element identifies a tag that you want to add or update for the specified resource.
-
withAddTags
A complex type that contains a list of
Tag
elements. EachTag
element identifies a tag that you want to add or update for the specified resource.NOTE: This method appends the values to the existing list (if any). Use
setAddTags(java.util.Collection)
orwithAddTags(java.util.Collection)
if you want to override the existing values.- Parameters:
addTags
- A complex type that contains a list ofTag
elements. EachTag
element identifies a tag that you want to add or update for the specified resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAddTags
A complex type that contains a list of
Tag
elements. EachTag
element identifies a tag that you want to add or update for the specified resource.- Parameters:
addTags
- A complex type that contains a list ofTag
elements. EachTag
element identifies a tag that you want to add or update for the specified resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getRemoveTagKeys
A list of
Tag
keys that you want to remove from the specified resource.- Returns:
- A list of
Tag
keys that you want to remove from the specified resource.
-
setRemoveTagKeys
A list of
Tag
keys that you want to remove from the specified resource.- Parameters:
removeTagKeys
- A list ofTag
keys that you want to remove from the specified resource.
-
withRemoveTagKeys
A list of
Tag
keys that you want to remove from the specified resource.NOTE: This method appends the values to the existing list (if any). Use
setRemoveTagKeys(java.util.Collection)
orwithRemoveTagKeys(java.util.Collection)
if you want to override the existing values.- Parameters:
removeTagKeys
- A list ofTag
keys that you want to remove from the specified resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRemoveTagKeys
A list of
Tag
keys that you want to remove from the specified resource.- Parameters:
removeTagKeys
- A list ofTag
keys that you want to remove from the specified resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-