#[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 ==
.impl StructuralPartialEq for KinesisVideoStreamConfigBuilder
Auto Trait Implementations§
impl Freeze for KinesisVideoStreamConfigBuilder
impl RefUnwindSafe for KinesisVideoStreamConfigBuilder
impl Send for KinesisVideoStreamConfigBuilder
impl Sync for KinesisVideoStreamConfigBuilder
impl Unpin for KinesisVideoStreamConfigBuilder
impl UnwindSafe for KinesisVideoStreamConfigBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more