aws_sdk_databasemigration/operation/describe_replication_task_assessment_results/
_describe_replication_task_assessment_results_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 DescribeReplicationTaskAssessmentResultsInput {
7    /// <p>The Amazon Resource Name (ARN) string that uniquely identifies the task. When this input parameter is specified, the API returns only one result and ignore the values of the <code>MaxRecords</code> and <code>Marker</code> parameters.</p>
8    pub replication_task_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 DescribeReplicationTaskAssessmentResultsInput {
17    /// <p>The Amazon Resource Name (ARN) string that uniquely identifies the task. When this input parameter is specified, the API returns only one result and ignore the values of the <code>MaxRecords</code> and <code>Marker</code> parameters.</p>
18    pub fn replication_task_arn(&self) -> ::std::option::Option<&str> {
19        self.replication_task_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 DescribeReplicationTaskAssessmentResultsInput {
33    /// Creates a new builder-style object to manufacture [`DescribeReplicationTaskAssessmentResultsInput`](crate::operation::describe_replication_task_assessment_results::DescribeReplicationTaskAssessmentResultsInput).
34    pub fn builder() -> crate::operation::describe_replication_task_assessment_results::builders::DescribeReplicationTaskAssessmentResultsInputBuilder
35    {
36        crate::operation::describe_replication_task_assessment_results::builders::DescribeReplicationTaskAssessmentResultsInputBuilder::default()
37    }
38}
39
40/// A builder for [`DescribeReplicationTaskAssessmentResultsInput`](crate::operation::describe_replication_task_assessment_results::DescribeReplicationTaskAssessmentResultsInput).
41#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
42#[non_exhaustive]
43pub struct DescribeReplicationTaskAssessmentResultsInputBuilder {
44    pub(crate) replication_task_arn: ::std::option::Option<::std::string::String>,
45    pub(crate) max_records: ::std::option::Option<i32>,
46    pub(crate) marker: ::std::option::Option<::std::string::String>,
47}
48impl DescribeReplicationTaskAssessmentResultsInputBuilder {
49    /// <p>The Amazon Resource Name (ARN) string that uniquely identifies the task. When this input parameter is specified, the API returns only one result and ignore the values of the <code>MaxRecords</code> and <code>Marker</code> parameters.</p>
50    pub fn replication_task_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
51        self.replication_task_arn = ::std::option::Option::Some(input.into());
52        self
53    }
54    /// <p>The Amazon Resource Name (ARN) string that uniquely identifies the task. When this input parameter is specified, the API returns only one result and ignore the values of the <code>MaxRecords</code> and <code>Marker</code> parameters.</p>
55    pub fn set_replication_task_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
56        self.replication_task_arn = input;
57        self
58    }
59    /// <p>The Amazon Resource Name (ARN) string that uniquely identifies the task. When this input parameter is specified, the API returns only one result and ignore the values of the <code>MaxRecords</code> and <code>Marker</code> parameters.</p>
60    pub fn get_replication_task_arn(&self) -> &::std::option::Option<::std::string::String> {
61        &self.replication_task_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 [`DescribeReplicationTaskAssessmentResultsInput`](crate::operation::describe_replication_task_assessment_results::DescribeReplicationTaskAssessmentResultsInput).
98    pub fn build(
99        self,
100    ) -> ::std::result::Result<
101        crate::operation::describe_replication_task_assessment_results::DescribeReplicationTaskAssessmentResultsInput,
102        ::aws_smithy_types::error::operation::BuildError,
103    > {
104        ::std::result::Result::Ok(
105            crate::operation::describe_replication_task_assessment_results::DescribeReplicationTaskAssessmentResultsInput {
106                replication_task_arn: self.replication_task_arn,
107                max_records: self.max_records,
108                marker: self.marker,
109            },
110        )
111    }
112}