@Generated(value="software.amazon.awssdk:codegen") public final class CreateStreamRequest extends KinesisVideoRequest implements ToCopyableBuilder<CreateStreamRequest.Builder,CreateStreamRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
CreateStreamRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static CreateStreamRequest.Builder |
builder() |
Integer |
dataRetentionInHours()
The number of hours that you want to retain the data in the stream.
|
String |
deviceName()
The name of the device that is writing to the stream.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
kmsKeyId()
The ID of the AWS Key Management Service (AWS KMS) key that you want Kinesis Video Streams to use to encrypt
stream data.
|
String |
mediaType()
The media type of the stream.
|
static Class<? extends CreateStreamRequest.Builder> |
serializableBuilderClass() |
String |
streamName()
A name for the stream that you are creating.
|
CreateStreamRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public String deviceName()
The name of the device that is writing to the stream.
In the current implementation, Kinesis Video Streams does not use this name.
In the current implementation, Kinesis Video Streams does not use this name.
public String streamName()
A name for the stream that you are creating.
The stream name is an identifier for the stream, and must be unique for each account and region.
The stream name is an identifier for the stream, and must be unique for each account and region.
public String mediaType()
The media type of the stream. Consumers of the stream can use this information when processing the stream. For
more information about media types, see Media Types. If you choose to specify
the MediaType
, see Naming Requirements
for guidelines.
To play video on the console, the media must be H.264 encoded, and you need to specify this video type in this
parameter as video/h264
.
This parameter is optional; the default value is null
(or empty in JSON).
MediaType
, see Naming
Requirements for guidelines.
To play video on the console, the media must be H.264 encoded, and you need to specify this video type in
this parameter as video/h264
.
This parameter is optional; the default value is null
(or empty in JSON).
public String kmsKeyId()
The ID of the AWS Key Management Service (AWS KMS) key that you want Kinesis Video Streams to use to encrypt stream data.
If no key ID is specified, the default, Kinesis Video-managed key (aws/kinesisvideo
) is used.
For more information, see DescribeKey.
If no key ID is specified, the default, Kinesis Video-managed key (aws/kinesisvideo
) is
used.
For more information, see DescribeKey.
public Integer dataRetentionInHours()
The number of hours that you want to retain the data in the stream. Kinesis Video Streams retains the data in a data store that is associated with the stream.
The default value is 0, indicating that the stream does not persist data.
The default value is 0, indicating that the stream does not persist data.
public CreateStreamRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateStreamRequest.Builder,CreateStreamRequest>
toBuilder
in class KinesisVideoRequest
public static CreateStreamRequest.Builder builder()
public static Class<? extends CreateStreamRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.