aws_sdk_quicksight/operation/list_ingestions/
_list_ingestions_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct ListIngestionsInput {
6 pub data_set_id: ::std::option::Option<::std::string::String>,
8 pub next_token: ::std::option::Option<::std::string::String>,
10 pub aws_account_id: ::std::option::Option<::std::string::String>,
12 pub max_results: ::std::option::Option<i32>,
14}
15impl ListIngestionsInput {
16 pub fn data_set_id(&self) -> ::std::option::Option<&str> {
18 self.data_set_id.as_deref()
19 }
20 pub fn next_token(&self) -> ::std::option::Option<&str> {
22 self.next_token.as_deref()
23 }
24 pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
26 self.aws_account_id.as_deref()
27 }
28 pub fn max_results(&self) -> ::std::option::Option<i32> {
30 self.max_results
31 }
32}
33impl ListIngestionsInput {
34 pub fn builder() -> crate::operation::list_ingestions::builders::ListIngestionsInputBuilder {
36 crate::operation::list_ingestions::builders::ListIngestionsInputBuilder::default()
37 }
38}
39
40#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
42#[non_exhaustive]
43pub struct ListIngestionsInputBuilder {
44 pub(crate) data_set_id: ::std::option::Option<::std::string::String>,
45 pub(crate) next_token: ::std::option::Option<::std::string::String>,
46 pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
47 pub(crate) max_results: ::std::option::Option<i32>,
48}
49impl ListIngestionsInputBuilder {
50 pub fn data_set_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
53 self.data_set_id = ::std::option::Option::Some(input.into());
54 self
55 }
56 pub fn set_data_set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
58 self.data_set_id = input;
59 self
60 }
61 pub fn get_data_set_id(&self) -> &::std::option::Option<::std::string::String> {
63 &self.data_set_id
64 }
65 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
67 self.next_token = ::std::option::Option::Some(input.into());
68 self
69 }
70 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
72 self.next_token = input;
73 self
74 }
75 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
77 &self.next_token
78 }
79 pub fn aws_account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
82 self.aws_account_id = ::std::option::Option::Some(input.into());
83 self
84 }
85 pub fn set_aws_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
87 self.aws_account_id = input;
88 self
89 }
90 pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
92 &self.aws_account_id
93 }
94 pub fn max_results(mut self, input: i32) -> Self {
96 self.max_results = ::std::option::Option::Some(input);
97 self
98 }
99 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
101 self.max_results = input;
102 self
103 }
104 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
106 &self.max_results
107 }
108 pub fn build(
110 self,
111 ) -> ::std::result::Result<crate::operation::list_ingestions::ListIngestionsInput, ::aws_smithy_types::error::operation::BuildError> {
112 ::std::result::Result::Ok(crate::operation::list_ingestions::ListIngestionsInput {
113 data_set_id: self.data_set_id,
114 next_token: self.next_token,
115 aws_account_id: self.aws_account_id,
116 max_results: self.max_results,
117 })
118 }
119}