Skip to main content

aws_sdk_databasemigration/operation/describe_endpoint_settings/
_describe_endpoint_settings_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 DescribeEndpointSettingsInput {
6    /// <p>The database engine used for your source or target endpoint.</p>
7    pub engine_name: ::std::option::Option<::std::string::String>,
8    /// <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>
9    pub max_records: ::std::option::Option<i32>,
10    /// <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>
11    pub marker: ::std::option::Option<::std::string::String>,
12}
13impl DescribeEndpointSettingsInput {
14    /// <p>The database engine used for your source or target endpoint.</p>
15    pub fn engine_name(&self) -> ::std::option::Option<&str> {
16        self.engine_name.as_deref()
17    }
18    /// <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>
19    pub fn max_records(&self) -> ::std::option::Option<i32> {
20        self.max_records
21    }
22    /// <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>
23    pub fn marker(&self) -> ::std::option::Option<&str> {
24        self.marker.as_deref()
25    }
26}
27impl DescribeEndpointSettingsInput {
28    /// Creates a new builder-style object to manufacture [`DescribeEndpointSettingsInput`](crate::operation::describe_endpoint_settings::DescribeEndpointSettingsInput).
29    pub fn builder() -> crate::operation::describe_endpoint_settings::builders::DescribeEndpointSettingsInputBuilder {
30        crate::operation::describe_endpoint_settings::builders::DescribeEndpointSettingsInputBuilder::default()
31    }
32}
33
34/// A builder for [`DescribeEndpointSettingsInput`](crate::operation::describe_endpoint_settings::DescribeEndpointSettingsInput).
35#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct DescribeEndpointSettingsInputBuilder {
38    pub(crate) engine_name: ::std::option::Option<::std::string::String>,
39    pub(crate) max_records: ::std::option::Option<i32>,
40    pub(crate) marker: ::std::option::Option<::std::string::String>,
41}
42impl DescribeEndpointSettingsInputBuilder {
43    /// <p>The database engine used for your source or target endpoint.</p>
44    /// This field is required.
45    pub fn engine_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
46        self.engine_name = ::std::option::Option::Some(input.into());
47        self
48    }
49    /// <p>The database engine used for your source or target endpoint.</p>
50    pub fn set_engine_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51        self.engine_name = input;
52        self
53    }
54    /// <p>The database engine used for your source or target endpoint.</p>
55    pub fn get_engine_name(&self) -> &::std::option::Option<::std::string::String> {
56        &self.engine_name
57    }
58    /// <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>
59    pub fn max_records(mut self, input: i32) -> Self {
60        self.max_records = ::std::option::Option::Some(input);
61        self
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    pub fn set_max_records(mut self, input: ::std::option::Option<i32>) -> Self {
65        self.max_records = input;
66        self
67    }
68    /// <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>
69    pub fn get_max_records(&self) -> &::std::option::Option<i32> {
70        &self.max_records
71    }
72    /// <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>
73    pub fn marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
74        self.marker = ::std::option::Option::Some(input.into());
75        self
76    }
77    /// <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>
78    pub fn set_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
79        self.marker = input;
80        self
81    }
82    /// <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>
83    pub fn get_marker(&self) -> &::std::option::Option<::std::string::String> {
84        &self.marker
85    }
86    /// Consumes the builder and constructs a [`DescribeEndpointSettingsInput`](crate::operation::describe_endpoint_settings::DescribeEndpointSettingsInput).
87    pub fn build(
88        self,
89    ) -> ::std::result::Result<
90        crate::operation::describe_endpoint_settings::DescribeEndpointSettingsInput,
91        ::aws_smithy_types::error::operation::BuildError,
92    > {
93        ::std::result::Result::Ok(crate::operation::describe_endpoint_settings::DescribeEndpointSettingsInput {
94            engine_name: self.engine_name,
95            max_records: self.max_records,
96            marker: self.marker,
97        })
98    }
99}