aws_sdk_dynamodbstreams/operation/list_streams/
_list_streams_input.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct ListStreamsInput {
7 pub table_name: ::std::option::Option<::std::string::String>,
9 pub limit: ::std::option::Option<i32>,
11 pub exclusive_start_stream_arn: ::std::option::Option<::std::string::String>,
13}
14impl ListStreamsInput {
15 pub fn table_name(&self) -> ::std::option::Option<&str> {
17 self.table_name.as_deref()
18 }
19 pub fn limit(&self) -> ::std::option::Option<i32> {
21 self.limit
22 }
23 pub fn exclusive_start_stream_arn(&self) -> ::std::option::Option<&str> {
25 self.exclusive_start_stream_arn.as_deref()
26 }
27}
28impl ListStreamsInput {
29 pub fn builder() -> crate::operation::list_streams::builders::ListStreamsInputBuilder {
31 crate::operation::list_streams::builders::ListStreamsInputBuilder::default()
32 }
33}
34
35#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
37#[non_exhaustive]
38pub struct ListStreamsInputBuilder {
39 pub(crate) table_name: ::std::option::Option<::std::string::String>,
40 pub(crate) limit: ::std::option::Option<i32>,
41 pub(crate) exclusive_start_stream_arn: ::std::option::Option<::std::string::String>,
42}
43impl ListStreamsInputBuilder {
44 pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
46 self.table_name = ::std::option::Option::Some(input.into());
47 self
48 }
49 pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51 self.table_name = input;
52 self
53 }
54 pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
56 &self.table_name
57 }
58 pub fn limit(mut self, input: i32) -> Self {
60 self.limit = ::std::option::Option::Some(input);
61 self
62 }
63 pub fn set_limit(mut self, input: ::std::option::Option<i32>) -> Self {
65 self.limit = input;
66 self
67 }
68 pub fn get_limit(&self) -> &::std::option::Option<i32> {
70 &self.limit
71 }
72 pub fn exclusive_start_stream_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
74 self.exclusive_start_stream_arn = ::std::option::Option::Some(input.into());
75 self
76 }
77 pub fn set_exclusive_start_stream_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
79 self.exclusive_start_stream_arn = input;
80 self
81 }
82 pub fn get_exclusive_start_stream_arn(&self) -> &::std::option::Option<::std::string::String> {
84 &self.exclusive_start_stream_arn
85 }
86 pub fn build(self) -> ::std::result::Result<crate::operation::list_streams::ListStreamsInput, ::aws_smithy_types::error::operation::BuildError> {
88 ::std::result::Result::Ok(crate::operation::list_streams::ListStreamsInput {
89 table_name: self.table_name,
90 limit: self.limit,
91 exclusive_start_stream_arn: self.exclusive_start_stream_arn,
92 })
93 }
94}