public class TagResourceRequest extends AmazonWebServiceRequest implements java.io.Serializable
Add tags to the specified Amazon SNS topic. For an overview, see Amazon SNS Tags in the Amazon SNS Developer Guide.
When you use topic tags, keep the following guidelines in mind:
Adding more than 50 tags to a topic isn't recommended.
Tags don't have any semantic meaning. Amazon SNS interprets tags as character strings.
Tags are case-sensitive.
A new tag with a key identical to that of an existing tag overwrites the existing tag.
Tagging actions are limited to 10 TPS per AWS account, per AWS region. If your application requires a higher throughput, file a technical support request.
Constructor and Description |
---|
TagResourceRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getResourceArn()
The ARN of the topic to which to add tags.
|
java.util.List<Tag> |
getTags()
The tags to be added to the specified topic.
|
int |
hashCode() |
void |
setResourceArn(java.lang.String resourceArn)
The ARN of the topic to which to add tags.
|
void |
setTags(java.util.Collection<Tag> tags)
The tags to be added to the specified topic.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TagResourceRequest |
withResourceArn(java.lang.String resourceArn)
The ARN of the topic to which to add tags.
|
TagResourceRequest |
withTags(java.util.Collection<Tag> tags)
The tags to be added to the specified topic.
|
TagResourceRequest |
withTags(Tag... tags)
The tags to be added to the specified topic.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getResourceArn()
The ARN of the topic to which to add tags.
Constraints:
Length: 1 - 1011
The ARN of the topic to which to add tags.
public void setResourceArn(java.lang.String resourceArn)
The ARN of the topic to which to add tags.
Constraints:
Length: 1 - 1011
resourceArn
- The ARN of the topic to which to add tags.
public TagResourceRequest withResourceArn(java.lang.String resourceArn)
The ARN of the topic to which to add tags.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1011
resourceArn
- The ARN of the topic to which to add tags.
public java.util.List<Tag> getTags()
The tags to be added to the specified topic. A tag consists of a required key and an optional value.
The tags to be added to the specified topic. A tag consists of a required key and an optional value.
public void setTags(java.util.Collection<Tag> tags)
The tags to be added to the specified topic. A tag consists of a required key and an optional value.
tags
- The tags to be added to the specified topic. A tag consists of a required key and an optional value.
public TagResourceRequest withTags(Tag... tags)
The tags to be added to the specified topic. A tag consists of a required key and an optional value.
Returns a reference to this object so that method calls can be chained together.
tags
- The tags to be added to the specified topic. A tag consists of a required key and an optional value.
public TagResourceRequest withTags(java.util.Collection<Tag> tags)
The tags to be added to the specified topic. A tag consists of a required key and an optional value.
Returns a reference to this object so that method calls can be chained together.
tags
- The tags to be added to the specified topic. A tag consists of a required key and an optional value.
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.