public class ChangeTagsForResourceRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
A complex type containing information about a request to add, change, or delete the tags that are associated with a resource.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<Tag> |
addTags
A complex type that contains a list of
Tag elements. |
private SdkInternalList<java.lang.String> |
removeTagKeys
A list of
Tag keys that you want to remove from the
specified resource. |
private java.lang.String |
resourceId
The ID of the resource for which you want to add, change, or delete tags.
|
private java.lang.String |
resourceType
The type of the resource.
|
NOOP
Constructor and Description |
---|
ChangeTagsForResourceRequest() |
Modifier and Type | Method and Description |
---|---|
ChangeTagsForResourceRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<Tag> |
getAddTags()
A complex type that contains a list of
Tag elements. |
java.util.List<java.lang.String> |
getRemoveTagKeys()
A list of
Tag keys that you want to remove from the
specified resource. |
java.lang.String |
getResourceId()
The ID of the resource for which you want to add, change, or delete tags.
|
java.lang.String |
getResourceType()
The type of the resource.
|
int |
hashCode() |
void |
setAddTags(java.util.Collection<Tag> addTags)
A complex type that contains a list of
Tag elements. |
void |
setRemoveTagKeys(java.util.Collection<java.lang.String> removeTagKeys)
A list of
Tag keys that you want to remove from the
specified resource. |
void |
setResourceId(java.lang.String resourceId)
The ID of the resource for which you want to add, change, or delete 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.
|
ChangeTagsForResourceRequest |
withAddTags(java.util.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(java.util.Collection<java.lang.String> removeTagKeys)
A list of
Tag keys that you want to remove from the
specified resource. |
ChangeTagsForResourceRequest |
withRemoveTagKeys(java.lang.String... removeTagKeys)
A list of
Tag keys that you want to remove from the
specified resource. |
ChangeTagsForResourceRequest |
withResourceId(java.lang.String resourceId)
The ID of the resource for which you want to add, change, or delete tags.
|
ChangeTagsForResourceRequest |
withResourceType(java.lang.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
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 add, change, or delete tags.
private SdkInternalList<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.
private SdkInternalList<java.lang.String> removeTagKeys
A list of Tag
keys that you want to remove from the
specified resource.
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 ChangeTagsForResourceRequest 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 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(java.lang.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 java.lang.String getResourceId()
The ID of the resource for which you want to add, change, or delete tags.
public ChangeTagsForResourceRequest withResourceId(java.lang.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 java.util.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(java.util.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(java.util.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 java.util.List<java.lang.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(java.util.Collection<java.lang.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(java.lang.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(java.util.Collection<java.lang.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 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 ChangeTagsForResourceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()