public class TagStreamRequest extends AmazonWebServiceRequest implements Serializable
Adds one or more tags to a stream. A tag is a key-value pair (the value is optional) that you can define and assign to AWS resources. If you specify a tag that already exists, the tag value is replaced with the value that you specify in the request. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide.
You must provide either the StreamName or the
StreamARN.
This operation requires permission for the
KinesisVideo:TagStream action.
Kinesis video streams support up to 50 tags.
| Constructor and Description |
|---|
TagStreamRequest() |
| Modifier and Type | Method and Description |
|---|---|
TagStreamRequest |
addTagsEntry(String key,
String value)
A list of tags to associate with the specified stream.
|
TagStreamRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
boolean |
equals(Object obj) |
String |
getStreamARN()
The Amazon Resource Name (ARN) of the resource that you want to add the
tag or tags to.
|
String |
getStreamName()
The name of the stream that you want to add the tag or tags to.
|
Map<String,String> |
getTags()
A list of tags to associate with the specified stream.
|
int |
hashCode() |
void |
setStreamARN(String streamARN)
The Amazon Resource Name (ARN) of the resource that you want to add the
tag or tags to.
|
void |
setStreamName(String streamName)
The name of the stream that you want to add the tag or tags to.
|
void |
setTags(Map<String,String> tags)
A list of tags to associate with the specified stream.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TagStreamRequest |
withStreamARN(String streamARN)
The Amazon Resource Name (ARN) of the resource that you want to add the
tag or tags to.
|
TagStreamRequest |
withStreamName(String streamName)
The name of the stream that you want to add the tag or tags to.
|
TagStreamRequest |
withTags(Map<String,String> tags)
A list of tags to associate with the specified stream.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getStreamARN()
The Amazon Resource Name (ARN) of the resource that you want to add the tag or tags to.
Constraints:
Length: 1 - 1024
Pattern:
arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+
The Amazon Resource Name (ARN) of the resource that you want to add the tag or tags to.
public void setStreamARN(String streamARN)
The Amazon Resource Name (ARN) of the resource that you want to add the tag or tags to.
Constraints:
Length: 1 - 1024
Pattern:
arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+
streamARN - The Amazon Resource Name (ARN) of the resource that you want to add the tag or tags to.
public TagStreamRequest withStreamARN(String streamARN)
The Amazon Resource Name (ARN) of the resource that you want to add the tag or tags to.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1024
Pattern:
arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+
streamARN - The Amazon Resource Name (ARN) of the resource that you want to add the tag or tags to.
public String getStreamName()
The name of the stream that you want to add the tag or tags to.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
The name of the stream that you want to add the tag or tags to.
public void setStreamName(String streamName)
The name of the stream that you want to add the tag or tags to.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
streamName - The name of the stream that you want to add the tag or tags to.
public TagStreamRequest withStreamName(String streamName)
The name of the stream that you want to add the tag or tags to.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
streamName - The name of the stream that you want to add the tag or tags to.
public Map<String,String> getTags()
A list of tags to associate with the specified stream. Each tag is a key-value pair (the value is optional).
A list of tags to associate with the specified stream. Each tag is a key-value pair (the value is optional).
public void setTags(Map<String,String> tags)
A list of tags to associate with the specified stream. Each tag is a key-value pair (the value is optional).
tags - A list of tags to associate with the specified stream. Each tag is a key-value pair (the value is optional).
public TagStreamRequest withTags(Map<String,String> tags)
A list of tags to associate with the specified stream. Each tag is a key-value pair (the value is optional).
Returns a reference to this object so that method calls can be chained together.
tags - A list of tags to associate with the specified stream. Each tag is a key-value pair (the value is optional).
public TagStreamRequest addTagsEntry(String key, String value)
A list of tags to associate with the specified stream. Each tag is a key-value pair (the value is optional).
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 TagStreamRequest clearTagsEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.