aws_sdk_databasemigration/operation/describe_schemas/
_describe_schemas_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p></p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct DescribeSchemasInput {
7    /// <p>The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.</p>
8    pub endpoint_arn: ::std::option::Option<::std::string::String>,
9    /// <p>The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.</p>
10    /// <p>Default: 100</p>
11    /// <p>Constraints: Minimum 20, maximum 100.</p>
12    pub max_records: ::std::option::Option<i32>,
13    /// <p>An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>.</p>
14    pub marker: ::std::option::Option<::std::string::String>,
15}
16impl DescribeSchemasInput {
17    /// <p>The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.</p>
18    pub fn endpoint_arn(&self) -> ::std::option::Option<&str> {
19        self.endpoint_arn.as_deref()
20    }
21    /// <p>The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.</p>
22    /// <p>Default: 100</p>
23    /// <p>Constraints: Minimum 20, maximum 100.</p>
24    pub fn max_records(&self) -> ::std::option::Option<i32> {
25        self.max_records
26    }
27    /// <p>An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>.</p>
28    pub fn marker(&self) -> ::std::option::Option<&str> {
29        self.marker.as_deref()
30    }
31}
32impl DescribeSchemasInput {
33    /// Creates a new builder-style object to manufacture [`DescribeSchemasInput`](crate::operation::describe_schemas::DescribeSchemasInput).
34    pub fn builder() -> crate::operation::describe_schemas::builders::DescribeSchemasInputBuilder {
35        crate::operation::describe_schemas::builders::DescribeSchemasInputBuilder::default()
36    }
37}
38
39/// A builder for [`DescribeSchemasInput`](crate::operation::describe_schemas::DescribeSchemasInput).
40#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
41#[non_exhaustive]
42pub struct DescribeSchemasInputBuilder {
43    pub(crate) endpoint_arn: ::std::option::Option<::std::string::String>,
44    pub(crate) max_records: ::std::option::Option<i32>,
45    pub(crate) marker: ::std::option::Option<::std::string::String>,
46}
47impl DescribeSchemasInputBuilder {
48    /// <p>The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.</p>
49    /// This field is required.
50    pub fn endpoint_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
51        self.endpoint_arn = ::std::option::Option::Some(input.into());
52        self
53    }
54    /// <p>The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.</p>
55    pub fn set_endpoint_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
56        self.endpoint_arn = input;
57        self
58    }
59    /// <p>The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.</p>
60    pub fn get_endpoint_arn(&self) -> &::std::option::Option<::std::string::String> {
61        &self.endpoint_arn
62    }
63    /// <p>The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.</p>
64    /// <p>Default: 100</p>
65    /// <p>Constraints: Minimum 20, maximum 100.</p>
66    pub fn max_records(mut self, input: i32) -> Self {
67        self.max_records = ::std::option::Option::Some(input);
68        self
69    }
70    /// <p>The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.</p>
71    /// <p>Default: 100</p>
72    /// <p>Constraints: Minimum 20, maximum 100.</p>
73    pub fn set_max_records(mut self, input: ::std::option::Option<i32>) -> Self {
74        self.max_records = input;
75        self
76    }
77    /// <p>The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.</p>
78    /// <p>Default: 100</p>
79    /// <p>Constraints: Minimum 20, maximum 100.</p>
80    pub fn get_max_records(&self) -> &::std::option::Option<i32> {
81        &self.max_records
82    }
83    /// <p>An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>.</p>
84    pub fn marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
85        self.marker = ::std::option::Option::Some(input.into());
86        self
87    }
88    /// <p>An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>.</p>
89    pub fn set_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
90        self.marker = input;
91        self
92    }
93    /// <p>An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>.</p>
94    pub fn get_marker(&self) -> &::std::option::Option<::std::string::String> {
95        &self.marker
96    }
97    /// Consumes the builder and constructs a [`DescribeSchemasInput`](crate::operation::describe_schemas::DescribeSchemasInput).
98    pub fn build(
99        self,
100    ) -> ::std::result::Result<crate::operation::describe_schemas::DescribeSchemasInput, ::aws_smithy_types::error::operation::BuildError> {
101        ::std::result::Result::Ok(crate::operation::describe_schemas::DescribeSchemasInput {
102            endpoint_arn: self.endpoint_arn,
103            max_records: self.max_records,
104            marker: self.marker,
105        })
106    }
107}