aws-sdk-dsql 1.58.0

AWS SDK for Amazon Aurora DSQL
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetStreamInput {
    /// <p>The ID of the cluster containing the stream to retrieve.</p>
    pub cluster_identifier: ::std::option::Option<::std::string::String>,
    /// <p>The ID of the stream to retrieve.</p>
    pub stream_identifier: ::std::option::Option<::std::string::String>,
}
impl GetStreamInput {
    /// <p>The ID of the cluster containing the stream to retrieve.</p>
    pub fn cluster_identifier(&self) -> ::std::option::Option<&str> {
        self.cluster_identifier.as_deref()
    }
    /// <p>The ID of the stream to retrieve.</p>
    pub fn stream_identifier(&self) -> ::std::option::Option<&str> {
        self.stream_identifier.as_deref()
    }
}
impl GetStreamInput {
    /// Creates a new builder-style object to manufacture [`GetStreamInput`](crate::operation::get_stream::GetStreamInput).
    pub fn builder() -> crate::operation::get_stream::builders::GetStreamInputBuilder {
        crate::operation::get_stream::builders::GetStreamInputBuilder::default()
    }
}

/// A builder for [`GetStreamInput`](crate::operation::get_stream::GetStreamInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetStreamInputBuilder {
    pub(crate) cluster_identifier: ::std::option::Option<::std::string::String>,
    pub(crate) stream_identifier: ::std::option::Option<::std::string::String>,
}
impl GetStreamInputBuilder {
    /// <p>The ID of the cluster containing the stream to retrieve.</p>
    /// This field is required.
    pub fn cluster_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.cluster_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the cluster containing the stream to retrieve.</p>
    pub fn set_cluster_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.cluster_identifier = input;
        self
    }
    /// <p>The ID of the cluster containing the stream to retrieve.</p>
    pub fn get_cluster_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.cluster_identifier
    }
    /// <p>The ID of the stream to retrieve.</p>
    /// This field is required.
    pub fn stream_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.stream_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the stream to retrieve.</p>
    pub fn set_stream_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.stream_identifier = input;
        self
    }
    /// <p>The ID of the stream to retrieve.</p>
    pub fn get_stream_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.stream_identifier
    }
    /// Consumes the builder and constructs a [`GetStreamInput`](crate::operation::get_stream::GetStreamInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::get_stream::GetStreamInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_stream::GetStreamInput {
            cluster_identifier: self.cluster_identifier,
            stream_identifier: self.stream_identifier,
        })
    }
}