aws_sdk_datazone/operation/list_data_source_runs/_list_data_source_runs_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 ListDataSourceRunsInput {
6 /// <p>The identifier of the Amazon DataZone domain in which to invoke the <code>ListDataSourceRuns</code> action.</p>
7 pub domain_identifier: ::std::option::Option<::std::string::String>,
8 /// <p>The identifier of the data source.</p>
9 pub data_source_identifier: ::std::option::Option<::std::string::String>,
10 /// <p>The status of the data source.</p>
11 pub status: ::std::option::Option<crate::types::DataSourceRunStatus>,
12 /// <p>When the number of runs is greater than the default value for the <code>MaxResults</code> parameter, or if you explicitly specify a value for <code>MaxResults</code> that is less than the number of runs, the response includes a pagination token named <code>NextToken</code>. You can specify this <code>NextToken</code> value in a subsequent call to <code>ListDataSourceRuns</code> to list the next set of runs.</p>
13 pub next_token: ::std::option::Option<::std::string::String>,
14 /// <p>The maximum number of runs to return in a single call to <code>ListDataSourceRuns</code>. When the number of runs to be listed is greater than the value of <code>MaxResults</code>, the response contains a <code>NextToken</code> value that you can use in a subsequent call to <code>ListDataSourceRuns</code> to list the next set of runs.</p>
15 pub max_results: ::std::option::Option<i32>,
16}
17impl ListDataSourceRunsInput {
18 /// <p>The identifier of the Amazon DataZone domain in which to invoke the <code>ListDataSourceRuns</code> action.</p>
19 pub fn domain_identifier(&self) -> ::std::option::Option<&str> {
20 self.domain_identifier.as_deref()
21 }
22 /// <p>The identifier of the data source.</p>
23 pub fn data_source_identifier(&self) -> ::std::option::Option<&str> {
24 self.data_source_identifier.as_deref()
25 }
26 /// <p>The status of the data source.</p>
27 pub fn status(&self) -> ::std::option::Option<&crate::types::DataSourceRunStatus> {
28 self.status.as_ref()
29 }
30 /// <p>When the number of runs is greater than the default value for the <code>MaxResults</code> parameter, or if you explicitly specify a value for <code>MaxResults</code> that is less than the number of runs, the response includes a pagination token named <code>NextToken</code>. You can specify this <code>NextToken</code> value in a subsequent call to <code>ListDataSourceRuns</code> to list the next set of runs.</p>
31 pub fn next_token(&self) -> ::std::option::Option<&str> {
32 self.next_token.as_deref()
33 }
34 /// <p>The maximum number of runs to return in a single call to <code>ListDataSourceRuns</code>. When the number of runs to be listed is greater than the value of <code>MaxResults</code>, the response contains a <code>NextToken</code> value that you can use in a subsequent call to <code>ListDataSourceRuns</code> to list the next set of runs.</p>
35 pub fn max_results(&self) -> ::std::option::Option<i32> {
36 self.max_results
37 }
38}
39impl ListDataSourceRunsInput {
40 /// Creates a new builder-style object to manufacture [`ListDataSourceRunsInput`](crate::operation::list_data_source_runs::ListDataSourceRunsInput).
41 pub fn builder() -> crate::operation::list_data_source_runs::builders::ListDataSourceRunsInputBuilder {
42 crate::operation::list_data_source_runs::builders::ListDataSourceRunsInputBuilder::default()
43 }
44}
45
46/// A builder for [`ListDataSourceRunsInput`](crate::operation::list_data_source_runs::ListDataSourceRunsInput).
47#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
48#[non_exhaustive]
49pub struct ListDataSourceRunsInputBuilder {
50 pub(crate) domain_identifier: ::std::option::Option<::std::string::String>,
51 pub(crate) data_source_identifier: ::std::option::Option<::std::string::String>,
52 pub(crate) status: ::std::option::Option<crate::types::DataSourceRunStatus>,
53 pub(crate) next_token: ::std::option::Option<::std::string::String>,
54 pub(crate) max_results: ::std::option::Option<i32>,
55}
56impl ListDataSourceRunsInputBuilder {
57 /// <p>The identifier of the Amazon DataZone domain in which to invoke the <code>ListDataSourceRuns</code> action.</p>
58 /// This field is required.
59 pub fn domain_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
60 self.domain_identifier = ::std::option::Option::Some(input.into());
61 self
62 }
63 /// <p>The identifier of the Amazon DataZone domain in which to invoke the <code>ListDataSourceRuns</code> action.</p>
64 pub fn set_domain_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
65 self.domain_identifier = input;
66 self
67 }
68 /// <p>The identifier of the Amazon DataZone domain in which to invoke the <code>ListDataSourceRuns</code> action.</p>
69 pub fn get_domain_identifier(&self) -> &::std::option::Option<::std::string::String> {
70 &self.domain_identifier
71 }
72 /// <p>The identifier of the data source.</p>
73 /// This field is required.
74 pub fn data_source_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
75 self.data_source_identifier = ::std::option::Option::Some(input.into());
76 self
77 }
78 /// <p>The identifier of the data source.</p>
79 pub fn set_data_source_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
80 self.data_source_identifier = input;
81 self
82 }
83 /// <p>The identifier of the data source.</p>
84 pub fn get_data_source_identifier(&self) -> &::std::option::Option<::std::string::String> {
85 &self.data_source_identifier
86 }
87 /// <p>The status of the data source.</p>
88 pub fn status(mut self, input: crate::types::DataSourceRunStatus) -> Self {
89 self.status = ::std::option::Option::Some(input);
90 self
91 }
92 /// <p>The status of the data source.</p>
93 pub fn set_status(mut self, input: ::std::option::Option<crate::types::DataSourceRunStatus>) -> Self {
94 self.status = input;
95 self
96 }
97 /// <p>The status of the data source.</p>
98 pub fn get_status(&self) -> &::std::option::Option<crate::types::DataSourceRunStatus> {
99 &self.status
100 }
101 /// <p>When the number of runs is greater than the default value for the <code>MaxResults</code> parameter, or if you explicitly specify a value for <code>MaxResults</code> that is less than the number of runs, the response includes a pagination token named <code>NextToken</code>. You can specify this <code>NextToken</code> value in a subsequent call to <code>ListDataSourceRuns</code> to list the next set of runs.</p>
102 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
103 self.next_token = ::std::option::Option::Some(input.into());
104 self
105 }
106 /// <p>When the number of runs is greater than the default value for the <code>MaxResults</code> parameter, or if you explicitly specify a value for <code>MaxResults</code> that is less than the number of runs, the response includes a pagination token named <code>NextToken</code>. You can specify this <code>NextToken</code> value in a subsequent call to <code>ListDataSourceRuns</code> to list the next set of runs.</p>
107 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
108 self.next_token = input;
109 self
110 }
111 /// <p>When the number of runs is greater than the default value for the <code>MaxResults</code> parameter, or if you explicitly specify a value for <code>MaxResults</code> that is less than the number of runs, the response includes a pagination token named <code>NextToken</code>. You can specify this <code>NextToken</code> value in a subsequent call to <code>ListDataSourceRuns</code> to list the next set of runs.</p>
112 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
113 &self.next_token
114 }
115 /// <p>The maximum number of runs to return in a single call to <code>ListDataSourceRuns</code>. When the number of runs to be listed is greater than the value of <code>MaxResults</code>, the response contains a <code>NextToken</code> value that you can use in a subsequent call to <code>ListDataSourceRuns</code> to list the next set of runs.</p>
116 pub fn max_results(mut self, input: i32) -> Self {
117 self.max_results = ::std::option::Option::Some(input);
118 self
119 }
120 /// <p>The maximum number of runs to return in a single call to <code>ListDataSourceRuns</code>. When the number of runs to be listed is greater than the value of <code>MaxResults</code>, the response contains a <code>NextToken</code> value that you can use in a subsequent call to <code>ListDataSourceRuns</code> to list the next set of runs.</p>
121 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
122 self.max_results = input;
123 self
124 }
125 /// <p>The maximum number of runs to return in a single call to <code>ListDataSourceRuns</code>. When the number of runs to be listed is greater than the value of <code>MaxResults</code>, the response contains a <code>NextToken</code> value that you can use in a subsequent call to <code>ListDataSourceRuns</code> to list the next set of runs.</p>
126 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
127 &self.max_results
128 }
129 /// Consumes the builder and constructs a [`ListDataSourceRunsInput`](crate::operation::list_data_source_runs::ListDataSourceRunsInput).
130 pub fn build(
131 self,
132 ) -> ::std::result::Result<crate::operation::list_data_source_runs::ListDataSourceRunsInput, ::aws_smithy_types::error::operation::BuildError>
133 {
134 ::std::result::Result::Ok(crate::operation::list_data_source_runs::ListDataSourceRunsInput {
135 domain_identifier: self.domain_identifier,
136 data_source_identifier: self.data_source_identifier,
137 status: self.status,
138 next_token: self.next_token,
139 max_results: self.max_results,
140 })
141 }
142}