public class TagResourceRequest extends AmazonWebServiceRequest implements java.io.Serializable
Adds the specified tags to the specified resource.
The supported resource types are users, routing profiles, quick connects, and contact flows.
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)
One or more tags.
|
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()
One or more tags.
|
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)
One or more tags.
|
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)
One or more tags.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public 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()
One or more tags. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
One or more tags. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
public void setTags(java.util.Map<java.lang.String,java.lang.String> tags)
One or more tags. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
tags
- One or more tags. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
public TagResourceRequest withTags(java.util.Map<java.lang.String,java.lang.String> tags)
One or more tags. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
Returns a reference to this object so that method calls can be chained together.
tags
- One or more tags. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
public TagResourceRequest addtagsEntry(java.lang.String key, java.lang.String value)
One or more tags. 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.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.