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 ChangeTagsForResourceRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)List<Tag>getAddTags()A complex type that contains a list ofTagelements.List<String>getRemoveTagKeys()A list ofTagkeys that you want to remove from the specified resource.StringgetResourceId()The ID of the resource for which you want to add, change, or delete tags.StringgetResourceType()The type of the resource.inthashCode()voidsetAddTags(Collection<Tag> addTags)A complex type that contains a list ofTagelements.voidsetRemoveTagKeys(Collection<String> removeTagKeys)A list ofTagkeys that you want to remove from the specified resource.voidsetResourceId(String resourceId)The ID of the resource for which you want to add, change, or delete tags.voidsetResourceType(TagResourceType resourceType)The type of the resource.voidsetResourceType(String resourceType)The type of the resource.StringtoString()Returns a string representation of this object; useful for testing and debugging.ChangeTagsForResourceRequestwithAddTags(Tag... addTags)A complex type that contains a list ofTagelements.ChangeTagsForResourceRequestwithAddTags(Collection<Tag> addTags)A complex type that contains a list ofTagelements.ChangeTagsForResourceRequestwithRemoveTagKeys(String... removeTagKeys)A list ofTagkeys that you want to remove from the specified resource.ChangeTagsForResourceRequestwithRemoveTagKeys(Collection<String> removeTagKeys)A list ofTagkeys that you want to remove from the specified resource.ChangeTagsForResourceRequestwithResourceId(String resourceId)The ID of the resource for which you want to add, change, or delete tags.ChangeTagsForResourceRequestwithResourceType(TagResourceType resourceType)The type of the resource.ChangeTagsForResourceRequestwithResourceType(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
Tagelements. EachTagelement identifies a tag that you want to add or update for the specified resource.- Returns:
- A complex type that contains a list of
Tagelements. EachTagelement 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
Tagelements. EachTagelement identifies a tag that you want to add or update for the specified resource.- Parameters:
addTags- A complex type that contains a list ofTagelements. EachTagelement 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
Tagelements. EachTagelement 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 ofTagelements. EachTagelement 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
Tagelements. EachTagelement identifies a tag that you want to add or update for the specified resource.- Parameters:
addTags- A complex type that contains a list ofTagelements. EachTagelement 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
Tagkeys that you want to remove from the specified resource.- Returns:
- A list of
Tagkeys that you want to remove from the specified resource.
-
setRemoveTagKeys
public void setRemoveTagKeys(Collection<String> removeTagKeys)
A list of
Tagkeys that you want to remove from the specified resource.- Parameters:
removeTagKeys- A list ofTagkeys that you want to remove from the specified resource.
-
withRemoveTagKeys
public ChangeTagsForResourceRequest withRemoveTagKeys(String... removeTagKeys)
A list of
Tagkeys 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 ofTagkeys 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
Tagkeys that you want to remove from the specified resource.- Parameters:
removeTagKeys- A list ofTagkeys 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ChangeTagsForResourceRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-