Class ChangeTagsForResourceRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.route53.model.ChangeTagsForResourceRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class ChangeTagsForResourceRequest extends AmazonWebServiceRequest implements 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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description ChangeTagsForResourceRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChangeTagsForResourceRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
List<Tag>
getAddTags()
A complex type that contains a list ofTag
elements.List<String>
getRemoveTagKeys()
A list ofTag
keys that you want to remove from the specified resource.String
getResourceId()
The ID of the resource for which you want to add, change, or delete tags.String
getResourceType()
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.String
toString()
Returns a string representation of this object; useful for testing and debugging.ChangeTagsForResourceRequest
withAddTags(Tag... addTags)
A complex type that contains a list ofTag
elements.ChangeTagsForResourceRequest
withAddTags(Collection<Tag> addTags)
A complex type that contains a list ofTag
elements.ChangeTagsForResourceRequest
withRemoveTagKeys(String... removeTagKeys)
A list ofTag
keys that you want to remove from the specified resource.ChangeTagsForResourceRequest
withRemoveTagKeys(Collection<String> removeTagKeys)
A list ofTag
keys that you want to remove from the specified resource.ChangeTagsForResourceRequest
withResourceId(String resourceId)
The ID of the resource for which you want to add, change, or delete tags.ChangeTagsForResourceRequest
withResourceType(TagResourceType resourceType)
The type of the resource.ChangeTagsForResourceRequest
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
-
-
-
-
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 ChangeTagsForResourceRequest 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 ChangeTagsForResourceRequest 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 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
public String 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
public ChangeTagsForResourceRequest withResourceId(String resourceId)
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
public List<Tag> 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
public void setAddTags(Collection<Tag> addTags)
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
public ChangeTagsForResourceRequest withAddTags(Tag... addTags)
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
public ChangeTagsForResourceRequest withAddTags(Collection<Tag> addTags)
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
public List<String> 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
public void setRemoveTagKeys(Collection<String> removeTagKeys)
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
public ChangeTagsForResourceRequest withRemoveTagKeys(String... removeTagKeys)
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
public ChangeTagsForResourceRequest withRemoveTagKeys(Collection<String> removeTagKeys)
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
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 ChangeTagsForResourceRequest 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:
Object.clone()
-
-