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.
NOOP
Constructor and Description |
---|
ChangeTagsForResourceRequest() |
Modifier and Type | Method and Description |
---|---|
ChangeTagsForResourceRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
List<Tag> |
getAddTags()
A complex type that contains a list of
Tag elements. |
List<String> |
getRemoveTagKeys()
A list of
Tag 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 of
Tag elements. |
void |
setRemoveTagKeys(Collection<String> removeTagKeys)
A list of
Tag 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(String resourceType)
The type of the resource.
|
void |
setResourceType(TagResourceType resourceType)
The type of the resource.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ChangeTagsForResourceRequest |
withAddTags(Collection<Tag> addTags)
A complex type that contains a list of
Tag elements. |
ChangeTagsForResourceRequest |
withAddTags(Tag... addTags)
A complex type that contains a list of
Tag elements. |
ChangeTagsForResourceRequest |
withRemoveTagKeys(Collection<String> removeTagKeys)
A list of
Tag keys that you want to remove from the
specified resource. |
ChangeTagsForResourceRequest |
withRemoveTagKeys(String... removeTagKeys)
A list of
Tag 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(String resourceType)
The type of the resource.
|
ChangeTagsForResourceRequest |
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
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
.
resourceType
- The type of the resource.
- The resource type for health checks is healthcheck
.
- The resource type for hosted zones is hostedzone
.
TagResourceType
public 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 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
.
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 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
.
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(String resourceId)
The ID of the resource for which you want to add, change, or delete tags.
resourceId
- The ID of the resource for which you want to add, change, or
delete tags.public String getResourceId()
The ID of the resource for which you want to add, change, or delete tags.
public ChangeTagsForResourceRequest withResourceId(String resourceId)
The ID of the resource for which you want to add, change, or delete tags.
resourceId
- The ID of the resource for which you want to add, change, or
delete tags.public List<Tag> getAddTags()
A complex type that contains a list of Tag
elements. Each
Tag
element identifies a tag that you want to add or update
for the specified resource.
Tag
elements.
Each Tag
element identifies a tag that you want to
add or update for the specified resource.public void setAddTags(Collection<Tag> addTags)
A complex type that contains a list of Tag
elements. Each
Tag
element identifies a tag that you want to add or update
for the specified resource.
addTags
- A complex type that contains a list of Tag
elements.
Each Tag
element identifies a tag that you want to
add or update for the specified resource.public ChangeTagsForResourceRequest withAddTags(Tag... addTags)
A complex type that contains a list of Tag
elements. Each
Tag
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)
or
withAddTags(java.util.Collection)
if you want to override the
existing values.
addTags
- A complex type that contains a list of Tag
elements.
Each Tag
element identifies a tag that you want to
add or update for the specified resource.public ChangeTagsForResourceRequest withAddTags(Collection<Tag> addTags)
A complex type that contains a list of Tag
elements. Each
Tag
element identifies a tag that you want to add or update
for the specified resource.
addTags
- A complex type that contains a list of Tag
elements.
Each Tag
element identifies a tag that you want to
add or update for the specified resource.public List<String> getRemoveTagKeys()
A list of Tag
keys that you want to remove from the
specified resource.
Tag
keys that you want to remove from the
specified resource.public void setRemoveTagKeys(Collection<String> removeTagKeys)
A list of Tag
keys that you want to remove from the
specified resource.
removeTagKeys
- A list of Tag
keys that you want to remove from the
specified resource.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)
or
withRemoveTagKeys(java.util.Collection)
if you want to override
the existing values.
removeTagKeys
- A list of Tag
keys that you want to remove from the
specified resource.public ChangeTagsForResourceRequest withRemoveTagKeys(Collection<String> removeTagKeys)
A list of Tag
keys that you want to remove from the
specified resource.
removeTagKeys
- A list of Tag
keys that you want to remove from the
specified resource.public String toString()
toString
in class Object
Object.toString()
public ChangeTagsForResourceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2018. All rights reserved.