#[non_exhaustive]pub struct KinesisVideoStreamConfigBuilder { /* private fields */ }
Expand description
A builder for KinesisVideoStreamConfig
.
Implementations§
source§impl KinesisVideoStreamConfigBuilder
impl KinesisVideoStreamConfigBuilder
sourcepub fn prefix(self, input: impl Into<String>) -> Self
pub fn prefix(self, input: impl Into<String>) -> Self
The prefix of the video stream.
This field is required.sourcepub fn set_prefix(self, input: Option<String>) -> Self
pub fn set_prefix(self, input: Option<String>) -> Self
The prefix of the video stream.
sourcepub fn get_prefix(&self) -> &Option<String>
pub fn get_prefix(&self) -> &Option<String>
The prefix of the video stream.
sourcepub fn retention_period_hours(self, input: i32) -> Self
pub fn retention_period_hours(self, input: i32) -> Self
The number of hours data is retained 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.
This field is required.sourcepub fn set_retention_period_hours(self, input: Option<i32>) -> Self
pub fn set_retention_period_hours(self, input: Option<i32>) -> Self
The number of hours data is retained 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.
sourcepub fn get_retention_period_hours(&self) -> &Option<i32>
pub fn get_retention_period_hours(&self) -> &Option<i32>
The number of hours data is retained 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.
sourcepub fn encryption_config(self, input: EncryptionConfig) -> Self
pub fn encryption_config(self, input: EncryptionConfig) -> Self
The encryption configuration.
This field is required.sourcepub fn set_encryption_config(self, input: Option<EncryptionConfig>) -> Self
pub fn set_encryption_config(self, input: Option<EncryptionConfig>) -> Self
The encryption configuration.
sourcepub fn get_encryption_config(&self) -> &Option<EncryptionConfig>
pub fn get_encryption_config(&self) -> &Option<EncryptionConfig>
The encryption configuration.
sourcepub fn build(self) -> Result<KinesisVideoStreamConfig, BuildError>
pub fn build(self) -> Result<KinesisVideoStreamConfig, BuildError>
Consumes the builder and constructs a KinesisVideoStreamConfig
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for KinesisVideoStreamConfigBuilder
impl Clone for KinesisVideoStreamConfigBuilder
source§fn clone(&self) -> KinesisVideoStreamConfigBuilder
fn clone(&self) -> KinesisVideoStreamConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for KinesisVideoStreamConfigBuilder
impl Default for KinesisVideoStreamConfigBuilder
source§fn default() -> KinesisVideoStreamConfigBuilder
fn default() -> KinesisVideoStreamConfigBuilder
source§impl PartialEq for KinesisVideoStreamConfigBuilder
impl PartialEq for KinesisVideoStreamConfigBuilder
source§fn eq(&self, other: &KinesisVideoStreamConfigBuilder) -> bool
fn eq(&self, other: &KinesisVideoStreamConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.