public class AddTagsToStreamRequest extends AmazonWebServiceRequest implements Serializable
AddTagsToStream operation.
Adds or updates tags for the specified Amazon Kinesis stream. Each stream can have up to 10 tags.
If tags have already been assigned to the stream,
AddTagsToStream overwrites any existing tags that
correspond to the specified tag keys.
NOOP| Constructor and Description |
|---|
AddTagsToStreamRequest() |
| Modifier and Type | Method and Description |
|---|---|
AddTagsToStreamRequest |
addTagsEntry(String key,
String value)
The set of key-value pairs to use to create the tags.
|
AddTagsToStreamRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
boolean |
equals(Object obj) |
String |
getStreamName()
The name of the stream.
|
Map<String,String> |
getTags()
The set of key-value pairs to use to create the tags.
|
int |
hashCode() |
void |
setStreamName(String streamName)
The name of the stream.
|
void |
setTags(Map<String,String> tags)
The set of key-value pairs to use to create the tags.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AddTagsToStreamRequest |
withStreamName(String streamName)
The name of the stream.
|
AddTagsToStreamRequest |
withTags(Map<String,String> tags)
The set of key-value pairs to use to create the tags.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getStreamName()
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
public void setStreamName(String streamName)
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
streamName - The name of the stream.public AddTagsToStreamRequest withStreamName(String streamName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
streamName - The name of the stream.public Map<String,String> getTags()
Constraints:
Length: 1 - 10
public void setTags(Map<String,String> tags)
Constraints:
Length: 1 - 10
tags - The set of key-value pairs to use to create the tags.public AddTagsToStreamRequest withTags(Map<String,String> tags)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 10
tags - The set of key-value pairs to use to create the tags.public AddTagsToStreamRequest addTagsEntry(String key, String value)
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.
Constraints:
Length: 1 - 10
key - The key of the entry to be added into Tags.value - The corresponding value of the entry to be added into Tags.public AddTagsToStreamRequest clearTagsEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString in class ObjectObject.toString()Copyright © 2014. All rights reserved.