@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ChangeTagsForResourceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
A complex type that contains information about the tags that you want to add, edit, or delete.
NOOP
Constructor and Description |
---|
ChangeTagsForResourceRequest() |
Modifier and Type | Method and Description |
---|---|
ChangeTagsForResourceRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<Tag> |
getAddTags()
A complex type that contains a list of the tags that you want to add to the specified health check or hosted zone
and/or the tags that you want to edit
Value for. |
List<String> |
getRemoveTagKeys()
A complex type that contains a list of the tags that you want to delete from the specified health check or hosted
zone.
|
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 the tags that you want to add to the specified health check or hosted zone
and/or the tags that you want to edit
Value for. |
void |
setRemoveTagKeys(Collection<String> removeTagKeys)
A complex type that contains a list of the tags that you want to delete from the specified health check or hosted
zone.
|
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.
|
ChangeTagsForResourceRequest |
withAddTags(Collection<Tag> addTags)
A complex type that contains a list of the tags that you want to add to the specified health check or hosted zone
and/or the tags that you want to edit
Value for. |
ChangeTagsForResourceRequest |
withAddTags(Tag... addTags)
A complex type that contains a list of the tags that you want to add to the specified health check or hosted zone
and/or the tags that you want to edit
Value for. |
ChangeTagsForResourceRequest |
withRemoveTagKeys(Collection<String> removeTagKeys)
A complex type that contains a list of the tags that you want to delete from the specified health check or hosted
zone.
|
ChangeTagsForResourceRequest |
withRemoveTagKeys(String... removeTagKeys)
A complex type that contains a list of the tags that you want to delete from the specified health check or hosted
zone.
|
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.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, 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 the tags that you want to add to the specified health check or hosted zone
and/or the tags that you want to edit Value
for.
You can add a maximum of 10 tags to a health check or a hosted zone.
Value
for.
You can add a maximum of 10 tags to a health check or a hosted zone.
public void setAddTags(Collection<Tag> addTags)
A complex type that contains a list of the tags that you want to add to the specified health check or hosted zone
and/or the tags that you want to edit Value
for.
You can add a maximum of 10 tags to a health check or a hosted zone.
addTags
- A complex type that contains a list of the tags that you want to add to the specified health check or
hosted zone and/or the tags that you want to edit Value
for.
You can add a maximum of 10 tags to a health check or a hosted zone.
public ChangeTagsForResourceRequest withAddTags(Tag... addTags)
A complex type that contains a list of the tags that you want to add to the specified health check or hosted zone
and/or the tags that you want to edit Value
for.
You can add a maximum of 10 tags to a health check or a hosted zone.
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 the tags that you want to add to the specified health check or
hosted zone and/or the tags that you want to edit Value
for.
You can add a maximum of 10 tags to a health check or a hosted zone.
public ChangeTagsForResourceRequest withAddTags(Collection<Tag> addTags)
A complex type that contains a list of the tags that you want to add to the specified health check or hosted zone
and/or the tags that you want to edit Value
for.
You can add a maximum of 10 tags to a health check or a hosted zone.
addTags
- A complex type that contains a list of the tags that you want to add to the specified health check or
hosted zone and/or the tags that you want to edit Value
for.
You can add a maximum of 10 tags to a health check or a hosted zone.
public List<String> getRemoveTagKeys()
A complex type that contains a list of the tags that you want to delete from the specified health check or hosted zone. You can specify up to 10 keys.
public void setRemoveTagKeys(Collection<String> removeTagKeys)
A complex type that contains a list of the tags that you want to delete from the specified health check or hosted zone. You can specify up to 10 keys.
removeTagKeys
- A complex type that contains a list of the tags that you want to delete from the specified health check or
hosted zone. You can specify up to 10 keys.public ChangeTagsForResourceRequest withRemoveTagKeys(String... removeTagKeys)
A complex type that contains a list of the tags that you want to delete from the specified health check or hosted zone. You can specify up to 10 keys.
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 complex type that contains a list of the tags that you want to delete from the specified health check or
hosted zone. You can specify up to 10 keys.public ChangeTagsForResourceRequest withRemoveTagKeys(Collection<String> removeTagKeys)
A complex type that contains a list of the tags that you want to delete from the specified health check or hosted zone. You can specify up to 10 keys.
removeTagKeys
- A complex type that contains a list of the tags that you want to delete from the specified health check or
hosted zone. You can specify up to 10 keys.public String toString()
toString
in class Object
Object.toString()
public ChangeTagsForResourceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()