public class TagResourceRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Adds the specified tags to the specified resource.
Some of the supported resource types are agents, routing profiles, queues, quick connects, contact flows, agent statuses, hours of operation, phone numbers, security profiles, and task templates. For a complete list, see Tagging resources in Amazon Connect.
For sample policies that use tags, see Amazon Connect Identity-Based Policy Examples in the Amazon Connect Administrator Guide.
| Constructor and Description |
|---|
TagResourceRequest() |
| Modifier and Type | Method and Description |
|---|---|
TagResourceRequest |
addtagsEntry(java.lang.String key,
java.lang.String value)
The tags used to organize, track, or control access for this resource.
|
TagResourceRequest |
cleartagsEntries()
Removes all the entries added into tags.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getResourceArn()
The Amazon Resource Name (ARN) of the resource.
|
java.util.Map<java.lang.String,java.lang.String> |
getTags()
The tags used to organize, track, or control access for this resource.
|
int |
hashCode() |
void |
setResourceArn(java.lang.String resourceArn)
The Amazon Resource Name (ARN) of the resource.
|
void |
setTags(java.util.Map<java.lang.String,java.lang.String> tags)
The tags used to organize, track, or control access for this resource.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TagResourceRequest |
withResourceArn(java.lang.String resourceArn)
The Amazon Resource Name (ARN) of the resource.
|
TagResourceRequest |
withTags(java.util.Map<java.lang.String,java.lang.String> tags)
The tags used to organize, track, or control access for this resource.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getResourceArn()
The Amazon Resource Name (ARN) of the resource.
The Amazon Resource Name (ARN) of the resource.
public void setResourceArn(java.lang.String resourceArn)
The Amazon Resource Name (ARN) of the resource.
resourceArn - The Amazon Resource Name (ARN) of the resource.
public TagResourceRequest withResourceArn(java.lang.String resourceArn)
The Amazon Resource Name (ARN) of the resource.
Returns a reference to this object so that method calls can be chained together.
resourceArn - The Amazon Resource Name (ARN) of the resource.
public java.util.Map<java.lang.String,java.lang.String> getTags()
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
public void setTags(java.util.Map<java.lang.String,java.lang.String> tags)
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
tags - The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
public TagResourceRequest withTags(java.util.Map<java.lang.String,java.lang.String> tags)
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
Returns a reference to this object so that method calls can be chained together.
tags - The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
public TagResourceRequest addtagsEntry(java.lang.String key, java.lang.String value)
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
The method adds a new key-value pair into tags parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into tags.value - The corresponding value of the entry to be added into tags.public TagResourceRequest cleartagsEntries()
Returns a reference to this object so that method calls can be chained together.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object