Skip to main content

aws_sdk_databasemigration/operation/describe_fleet_advisor_schema_object_summary/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::describe_fleet_advisor_schema_object_summary::_describe_fleet_advisor_schema_object_summary_input::DescribeFleetAdvisorSchemaObjectSummaryInputBuilder;
3
4pub use crate::operation::describe_fleet_advisor_schema_object_summary::_describe_fleet_advisor_schema_object_summary_output::DescribeFleetAdvisorSchemaObjectSummaryOutputBuilder;
5
6impl crate::operation::describe_fleet_advisor_schema_object_summary::builders::DescribeFleetAdvisorSchemaObjectSummaryInputBuilder {
7    /// Sends a request with this input using the given client.
8    pub async fn send_with(
9        self,
10        client: &crate::Client,
11    ) -> ::std::result::Result<
12        crate::operation::describe_fleet_advisor_schema_object_summary::DescribeFleetAdvisorSchemaObjectSummaryOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::describe_fleet_advisor_schema_object_summary::DescribeFleetAdvisorSchemaObjectSummaryError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.describe_fleet_advisor_schema_object_summary();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `DescribeFleetAdvisorSchemaObjectSummary`.
24///
25/// <important>
26/// <p>End of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/dms_fleet.advisor-end-of-support.html">Amazon Web Services DMS Fleet Advisor end of support</a>.</p>
27/// </important>
28/// <p>Provides descriptions of the schemas discovered by your Fleet Advisor collectors.</p>
29#[derive(::std::clone::Clone, ::std::fmt::Debug)]
30pub struct DescribeFleetAdvisorSchemaObjectSummaryFluentBuilder {
31    handle: ::std::sync::Arc<crate::client::Handle>,
32    inner: crate::operation::describe_fleet_advisor_schema_object_summary::builders::DescribeFleetAdvisorSchemaObjectSummaryInputBuilder,
33    config_override: ::std::option::Option<crate::config::Builder>,
34}
35impl
36    crate::client::customize::internal::CustomizableSend<
37        crate::operation::describe_fleet_advisor_schema_object_summary::DescribeFleetAdvisorSchemaObjectSummaryOutput,
38        crate::operation::describe_fleet_advisor_schema_object_summary::DescribeFleetAdvisorSchemaObjectSummaryError,
39    > for DescribeFleetAdvisorSchemaObjectSummaryFluentBuilder
40{
41    fn send(
42        self,
43        config_override: crate::config::Builder,
44    ) -> crate::client::customize::internal::BoxFuture<
45        crate::client::customize::internal::SendResult<
46            crate::operation::describe_fleet_advisor_schema_object_summary::DescribeFleetAdvisorSchemaObjectSummaryOutput,
47            crate::operation::describe_fleet_advisor_schema_object_summary::DescribeFleetAdvisorSchemaObjectSummaryError,
48        >,
49    > {
50        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
51    }
52}
53impl DescribeFleetAdvisorSchemaObjectSummaryFluentBuilder {
54    /// Creates a new `DescribeFleetAdvisorSchemaObjectSummaryFluentBuilder`.
55    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
56        Self {
57            handle,
58            inner: ::std::default::Default::default(),
59            config_override: ::std::option::Option::None,
60        }
61    }
62    /// Access the DescribeFleetAdvisorSchemaObjectSummary as a reference.
63    pub fn as_input(
64        &self,
65    ) -> &crate::operation::describe_fleet_advisor_schema_object_summary::builders::DescribeFleetAdvisorSchemaObjectSummaryInputBuilder {
66        &self.inner
67    }
68    /// Sends the request and returns the response.
69    ///
70    /// If an error occurs, an `SdkError` will be returned with additional details that
71    /// can be matched against.
72    ///
73    /// By default, any retryable failures will be retried twice. Retry behavior
74    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
75    /// set when configuring the client.
76    pub async fn send(
77        self,
78    ) -> ::std::result::Result<
79        crate::operation::describe_fleet_advisor_schema_object_summary::DescribeFleetAdvisorSchemaObjectSummaryOutput,
80        ::aws_smithy_runtime_api::client::result::SdkError<
81            crate::operation::describe_fleet_advisor_schema_object_summary::DescribeFleetAdvisorSchemaObjectSummaryError,
82            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
83        >,
84    > {
85        let input = self
86            .inner
87            .build()
88            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
89        let runtime_plugins =
90            crate::operation::describe_fleet_advisor_schema_object_summary::DescribeFleetAdvisorSchemaObjectSummary::operation_runtime_plugins(
91                self.handle.runtime_plugins.clone(),
92                &self.handle.conf,
93                self.config_override,
94            );
95        crate::operation::describe_fleet_advisor_schema_object_summary::DescribeFleetAdvisorSchemaObjectSummary::orchestrate(&runtime_plugins, input)
96            .await
97    }
98
99    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
100    pub fn customize(
101        self,
102    ) -> crate::client::customize::CustomizableOperation<
103        crate::operation::describe_fleet_advisor_schema_object_summary::DescribeFleetAdvisorSchemaObjectSummaryOutput,
104        crate::operation::describe_fleet_advisor_schema_object_summary::DescribeFleetAdvisorSchemaObjectSummaryError,
105        Self,
106    > {
107        crate::client::customize::CustomizableOperation::new(self)
108    }
109    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
110        self.set_config_override(::std::option::Option::Some(config_override.into()));
111        self
112    }
113
114    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
115        self.config_override = config_override;
116        self
117    }
118    /// Create a paginator for this request
119    ///
120    /// Paginators are used by calling [`send().await`](crate::operation::describe_fleet_advisor_schema_object_summary::paginator::DescribeFleetAdvisorSchemaObjectSummaryPaginator::send) which returns a [`PaginationStream`](aws_smithy_async::future::pagination_stream::PaginationStream).
121    pub fn into_paginator(
122        self,
123    ) -> crate::operation::describe_fleet_advisor_schema_object_summary::paginator::DescribeFleetAdvisorSchemaObjectSummaryPaginator {
124        crate::operation::describe_fleet_advisor_schema_object_summary::paginator::DescribeFleetAdvisorSchemaObjectSummaryPaginator::new(
125            self.handle,
126            self.inner,
127        )
128    }
129    ///
130    /// Appends an item to `Filters`.
131    ///
132    /// To override the contents of this collection use [`set_filters`](Self::set_filters).
133    ///
134    /// <p>If you specify any of the following filters, the output includes information for only those schema objects that meet the filter criteria:</p>
135    /// <ul>
136    /// <li>
137    /// <p><code>schema-id</code> – The ID of the schema, for example <code>d4610ac5-e323-4ad9-bc50-eaf7249dfe9d</code>.</p></li>
138    /// </ul>
139    /// <p>Example: <code>describe-fleet-advisor-schema-object-summary --filter Name="schema-id",Values="50"</code></p>
140    pub fn filters(mut self, input: crate::types::Filter) -> Self {
141        self.inner = self.inner.filters(input);
142        self
143    }
144    /// <p>If you specify any of the following filters, the output includes information for only those schema objects that meet the filter criteria:</p>
145    /// <ul>
146    /// <li>
147    /// <p><code>schema-id</code> – The ID of the schema, for example <code>d4610ac5-e323-4ad9-bc50-eaf7249dfe9d</code>.</p></li>
148    /// </ul>
149    /// <p>Example: <code>describe-fleet-advisor-schema-object-summary --filter Name="schema-id",Values="50"</code></p>
150    pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>) -> Self {
151        self.inner = self.inner.set_filters(input);
152        self
153    }
154    /// <p>If you specify any of the following filters, the output includes information for only those schema objects that meet the filter criteria:</p>
155    /// <ul>
156    /// <li>
157    /// <p><code>schema-id</code> – The ID of the schema, for example <code>d4610ac5-e323-4ad9-bc50-eaf7249dfe9d</code>.</p></li>
158    /// </ul>
159    /// <p>Example: <code>describe-fleet-advisor-schema-object-summary --filter Name="schema-id",Values="50"</code></p>
160    pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Filter>> {
161        self.inner.get_filters()
162    }
163    /// <important>
164    /// <p>End of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/dms_fleet.advisor-end-of-support.html">Amazon Web Services DMS Fleet Advisor end of support</a>.</p>
165    /// </important>
166    /// <p>Sets the maximum number of records returned in the response.</p>
167    pub fn max_records(mut self, input: i32) -> Self {
168        self.inner = self.inner.max_records(input);
169        self
170    }
171    /// <important>
172    /// <p>End of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/dms_fleet.advisor-end-of-support.html">Amazon Web Services DMS Fleet Advisor end of support</a>.</p>
173    /// </important>
174    /// <p>Sets the maximum number of records returned in the response.</p>
175    pub fn set_max_records(mut self, input: ::std::option::Option<i32>) -> Self {
176        self.inner = self.inner.set_max_records(input);
177        self
178    }
179    /// <important>
180    /// <p>End of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/dms_fleet.advisor-end-of-support.html">Amazon Web Services DMS Fleet Advisor end of support</a>.</p>
181    /// </important>
182    /// <p>Sets the maximum number of records returned in the response.</p>
183    pub fn get_max_records(&self) -> &::std::option::Option<i32> {
184        self.inner.get_max_records()
185    }
186    /// <p>If <code>NextToken</code> is returned by a previous response, there are more results available. The value of <code>NextToken</code> is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.</p>
187    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
188        self.inner = self.inner.next_token(input.into());
189        self
190    }
191    /// <p>If <code>NextToken</code> is returned by a previous response, there are more results available. The value of <code>NextToken</code> is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.</p>
192    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
193        self.inner = self.inner.set_next_token(input);
194        self
195    }
196    /// <p>If <code>NextToken</code> is returned by a previous response, there are more results available. The value of <code>NextToken</code> is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.</p>
197    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
198        self.inner.get_next_token()
199    }
200}