aws_sdk_quicksight/operation/list_ingestions/
_list_ingestions_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct ListIngestionsInput {
6    /// <p>The ID of the dataset used in the ingestion.</p>
7    pub data_set_id: ::std::option::Option<::std::string::String>,
8    /// <p>The token for the next set of results, or null if there are no more results.</p>
9    pub next_token: ::std::option::Option<::std::string::String>,
10    /// <p>The Amazon Web Services account ID.</p>
11    pub aws_account_id: ::std::option::Option<::std::string::String>,
12    /// <p>The maximum number of results to be returned per request.</p>
13    pub max_results: ::std::option::Option<i32>,
14}
15impl ListIngestionsInput {
16    /// <p>The ID of the dataset used in the ingestion.</p>
17    pub fn data_set_id(&self) -> ::std::option::Option<&str> {
18        self.data_set_id.as_deref()
19    }
20    /// <p>The token for the next set of results, or null if there are no more results.</p>
21    pub fn next_token(&self) -> ::std::option::Option<&str> {
22        self.next_token.as_deref()
23    }
24    /// <p>The Amazon Web Services account ID.</p>
25    pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
26        self.aws_account_id.as_deref()
27    }
28    /// <p>The maximum number of results to be returned per request.</p>
29    pub fn max_results(&self) -> ::std::option::Option<i32> {
30        self.max_results
31    }
32}
33impl ListIngestionsInput {
34    /// Creates a new builder-style object to manufacture [`ListIngestionsInput`](crate::operation::list_ingestions::ListIngestionsInput).
35    pub fn builder() -> crate::operation::list_ingestions::builders::ListIngestionsInputBuilder {
36        crate::operation::list_ingestions::builders::ListIngestionsInputBuilder::default()
37    }
38}
39
40/// A builder for [`ListIngestionsInput`](crate::operation::list_ingestions::ListIngestionsInput).
41#[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    /// <p>The ID of the dataset used in the ingestion.</p>
51    /// This field is required.
52    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    /// <p>The ID of the dataset used in the ingestion.</p>
57    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    /// <p>The ID of the dataset used in the ingestion.</p>
62    pub fn get_data_set_id(&self) -> &::std::option::Option<::std::string::String> {
63        &self.data_set_id
64    }
65    /// <p>The token for the next set of results, or null if there are no more results.</p>
66    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    /// <p>The token for the next set of results, or null if there are no more results.</p>
71    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
72        self.next_token = input;
73        self
74    }
75    /// <p>The token for the next set of results, or null if there are no more results.</p>
76    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
77        &self.next_token
78    }
79    /// <p>The Amazon Web Services account ID.</p>
80    /// This field is required.
81    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    /// <p>The Amazon Web Services account ID.</p>
86    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    /// <p>The Amazon Web Services account ID.</p>
91    pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
92        &self.aws_account_id
93    }
94    /// <p>The maximum number of results to be returned per request.</p>
95    pub fn max_results(mut self, input: i32) -> Self {
96        self.max_results = ::std::option::Option::Some(input);
97        self
98    }
99    /// <p>The maximum number of results to be returned per request.</p>
100    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
101        self.max_results = input;
102        self
103    }
104    /// <p>The maximum number of results to be returned per request.</p>
105    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
106        &self.max_results
107    }
108    /// Consumes the builder and constructs a [`ListIngestionsInput`](crate::operation::list_ingestions::ListIngestionsInput).
109    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}