Struct aws_sdk_kinesis::input::delete_stream_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for DeleteStreamInput
.
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 delete.
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 delete.
sourcepub fn enforce_consumer_deletion(self, input: bool) -> Self
pub fn enforce_consumer_deletion(self, input: bool) -> Self
If this parameter is unset (null
) or if you set it to false
, and the stream has registered consumers, the call to DeleteStream
fails with a ResourceInUseException
.
sourcepub fn set_enforce_consumer_deletion(self, input: Option<bool>) -> Self
pub fn set_enforce_consumer_deletion(self, input: Option<bool>) -> Self
If this parameter is unset (null
) or if you set it to false
, and the stream has registered consumers, the call to DeleteStream
fails with a ResourceInUseException
.
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<DeleteStreamInput, BuildError>
pub fn build(self) -> Result<DeleteStreamInput, BuildError>
Consumes the builder and constructs a DeleteStreamInput
.