pub struct Builder { /* private fields */ }
Expand description
A builder for DecreaseStreamRetentionPeriodInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn stream_name(self, input: impl Into<String>) -> Self
pub fn stream_name(self, input: impl Into<String>) -> Self
The name of the stream to modify.
sourcepub fn set_stream_name(self, input: Option<String>) -> Self
pub fn set_stream_name(self, input: Option<String>) -> Self
The name of the stream to modify.
sourcepub fn retention_period_hours(self, input: i32) -> Self
pub fn retention_period_hours(self, input: i32) -> Self
The new retention period of the stream, in hours. Must be less than the current retention period.
sourcepub fn set_retention_period_hours(self, input: Option<i32>) -> Self
pub fn set_retention_period_hours(self, input: Option<i32>) -> Self
The new retention period of the stream, in hours. Must be less than the current retention period.
sourcepub fn stream_arn(self, input: impl Into<String>) -> Self
pub fn stream_arn(self, input: impl Into<String>) -> Self
The ARN of the stream.
sourcepub fn set_stream_arn(self, input: Option<String>) -> Self
pub fn set_stream_arn(self, input: Option<String>) -> Self
The ARN of the stream.
sourcepub fn build(self) -> Result<DecreaseStreamRetentionPeriodInput, BuildError>
pub fn build(self) -> Result<DecreaseStreamRetentionPeriodInput, BuildError>
Consumes the builder and constructs a DecreaseStreamRetentionPeriodInput
.