#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateStreamOutput {
pub stream_id: ::std::option::Option<::std::string::String>,
pub stream_arn: ::std::option::Option<::std::string::String>,
pub description: ::std::option::Option<::std::string::String>,
pub stream_version: ::std::option::Option<i32>,
_request_id: Option<String>,
}
impl CreateStreamOutput {
pub fn stream_id(&self) -> ::std::option::Option<&str> {
self.stream_id.as_deref()
}
pub fn stream_arn(&self) -> ::std::option::Option<&str> {
self.stream_arn.as_deref()
}
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
pub fn stream_version(&self) -> ::std::option::Option<i32> {
self.stream_version
}
}
impl ::aws_types::request_id::RequestId for CreateStreamOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CreateStreamOutput {
pub fn builder() -> crate::operation::create_stream::builders::CreateStreamOutputBuilder {
crate::operation::create_stream::builders::CreateStreamOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct CreateStreamOutputBuilder {
pub(crate) stream_id: ::std::option::Option<::std::string::String>,
pub(crate) stream_arn: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) stream_version: ::std::option::Option<i32>,
_request_id: Option<String>,
}
impl CreateStreamOutputBuilder {
pub fn stream_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.stream_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_stream_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.stream_id = input;
self
}
pub fn get_stream_id(&self) -> &::std::option::Option<::std::string::String> {
&self.stream_id
}
pub fn stream_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.stream_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_stream_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.stream_arn = input;
self
}
pub fn get_stream_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.stream_arn
}
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
pub fn stream_version(mut self, input: i32) -> Self {
self.stream_version = ::std::option::Option::Some(input);
self
}
pub fn set_stream_version(mut self, input: ::std::option::Option<i32>) -> Self {
self.stream_version = input;
self
}
pub fn get_stream_version(&self) -> &::std::option::Option<i32> {
&self.stream_version
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::create_stream::CreateStreamOutput {
crate::operation::create_stream::CreateStreamOutput {
stream_id: self.stream_id,
stream_arn: self.stream_arn,
description: self.description,
stream_version: self.stream_version,
_request_id: self._request_id,
}
}
}