public class AddTagsToStreamRequest extends AmazonWebServiceRequest implements Serializable
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.
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.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getStreamName()
The name of the stream.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
The name of the stream.
public void setStreamName(String streamName)
The name of the stream.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
streamName
- The name of the stream.
public AddTagsToStreamRequest withStreamName(String streamName)
The name of the stream.
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()
The set of key-value pairs to use to create the tags.
The set of key-value pairs to use to create the tags.
public void setTags(Map<String,String> tags)
The set of key-value pairs to use to create the tags.
tags
- The set of key-value pairs to use to create the tags.
public AddTagsToStreamRequest withTags(Map<String,String> tags)
The set of key-value pairs to use to create the tags.
Returns a reference to this object so that method calls can be chained together.
tags
- The set of key-value pairs to use to create the tags.
public AddTagsToStreamRequest addTagsEntry(String key, String value)
The set of key-value pairs to use to create the tags.
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 AddTagsToStreamRequest clearTagsEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2017. All rights reserved.