public class AddTagsToStreamRequest extends AmazonWebServiceRequest implements java.io.Serializable
Adds or updates tags for the specified Kinesis data 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.
AddTagsToStream has a limit of five transactions per second per account.
Constructor and Description |
---|
AddTagsToStreamRequest() |
Modifier and Type | Method and Description |
---|---|
AddTagsToStreamRequest |
addTagsEntry(java.lang.String key,
java.lang.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(java.lang.Object obj) |
java.lang.String |
getStreamName()
The name of the stream.
|
java.util.Map<java.lang.String,java.lang.String> |
getTags()
The set of key-value pairs to use to create the tags.
|
int |
hashCode() |
void |
setStreamName(java.lang.String streamName)
The name of the stream.
|
void |
setTags(java.util.Map<java.lang.String,java.lang.String> tags)
The set of key-value pairs to use to create the tags.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AddTagsToStreamRequest |
withStreamName(java.lang.String streamName)
The name of the stream.
|
AddTagsToStreamRequest |
withTags(java.util.Map<java.lang.String,java.lang.String> tags)
The set of key-value pairs to use to create the tags.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getStreamName()
The name of the stream.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
The name of the stream.
public void setStreamName(java.lang.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(java.lang.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 java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.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(java.lang.String key, java.lang.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 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.