aws_sdk_pi/operation/describe_dimension_keys/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::describe_dimension_keys::_describe_dimension_keys_output::DescribeDimensionKeysOutputBuilder;
3
4pub use crate::operation::describe_dimension_keys::_describe_dimension_keys_input::DescribeDimensionKeysInputBuilder;
5
6impl crate::operation::describe_dimension_keys::builders::DescribeDimensionKeysInputBuilder {
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_dimension_keys::DescribeDimensionKeysOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::describe_dimension_keys::DescribeDimensionKeysError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.describe_dimension_keys();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `DescribeDimensionKeys`.
24///
25/// <p>For a specific time period, retrieve the top <code>N</code> dimension keys for a metric.</p><note>
26/// <p>Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements, only the first 500 bytes are returned.</p>
27/// </note>
28#[derive(::std::clone::Clone, ::std::fmt::Debug)]
29pub struct DescribeDimensionKeysFluentBuilder {
30    handle: ::std::sync::Arc<crate::client::Handle>,
31    inner: crate::operation::describe_dimension_keys::builders::DescribeDimensionKeysInputBuilder,
32    config_override: ::std::option::Option<crate::config::Builder>,
33}
34impl
35    crate::client::customize::internal::CustomizableSend<
36        crate::operation::describe_dimension_keys::DescribeDimensionKeysOutput,
37        crate::operation::describe_dimension_keys::DescribeDimensionKeysError,
38    > for DescribeDimensionKeysFluentBuilder
39{
40    fn send(
41        self,
42        config_override: crate::config::Builder,
43    ) -> crate::client::customize::internal::BoxFuture<
44        crate::client::customize::internal::SendResult<
45            crate::operation::describe_dimension_keys::DescribeDimensionKeysOutput,
46            crate::operation::describe_dimension_keys::DescribeDimensionKeysError,
47        >,
48    > {
49        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
50    }
51}
52impl DescribeDimensionKeysFluentBuilder {
53    /// Creates a new `DescribeDimensionKeysFluentBuilder`.
54    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
55        Self {
56            handle,
57            inner: ::std::default::Default::default(),
58            config_override: ::std::option::Option::None,
59        }
60    }
61    /// Access the DescribeDimensionKeys as a reference.
62    pub fn as_input(&self) -> &crate::operation::describe_dimension_keys::builders::DescribeDimensionKeysInputBuilder {
63        &self.inner
64    }
65    /// Sends the request and returns the response.
66    ///
67    /// If an error occurs, an `SdkError` will be returned with additional details that
68    /// can be matched against.
69    ///
70    /// By default, any retryable failures will be retried twice. Retry behavior
71    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
72    /// set when configuring the client.
73    pub async fn send(
74        self,
75    ) -> ::std::result::Result<
76        crate::operation::describe_dimension_keys::DescribeDimensionKeysOutput,
77        ::aws_smithy_runtime_api::client::result::SdkError<
78            crate::operation::describe_dimension_keys::DescribeDimensionKeysError,
79            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
80        >,
81    > {
82        let input = self
83            .inner
84            .build()
85            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
86        let runtime_plugins = crate::operation::describe_dimension_keys::DescribeDimensionKeys::operation_runtime_plugins(
87            self.handle.runtime_plugins.clone(),
88            &self.handle.conf,
89            self.config_override,
90        );
91        crate::operation::describe_dimension_keys::DescribeDimensionKeys::orchestrate(&runtime_plugins, input).await
92    }
93
94    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
95    pub fn customize(
96        self,
97    ) -> crate::client::customize::CustomizableOperation<
98        crate::operation::describe_dimension_keys::DescribeDimensionKeysOutput,
99        crate::operation::describe_dimension_keys::DescribeDimensionKeysError,
100        Self,
101    > {
102        crate::client::customize::CustomizableOperation::new(self)
103    }
104    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
105        self.set_config_override(::std::option::Option::Some(config_override.into()));
106        self
107    }
108
109    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
110        self.config_override = config_override;
111        self
112    }
113    /// Create a paginator for this request
114    ///
115    /// Paginators are used by calling [`send().await`](crate::operation::describe_dimension_keys::paginator::DescribeDimensionKeysPaginator::send) which returns a [`PaginationStream`](aws_smithy_async::future::pagination_stream::PaginationStream).
116    pub fn into_paginator(self) -> crate::operation::describe_dimension_keys::paginator::DescribeDimensionKeysPaginator {
117        crate::operation::describe_dimension_keys::paginator::DescribeDimensionKeysPaginator::new(self.handle, self.inner)
118    }
119    /// <p>The Amazon Web Services service for which Performance Insights will return metrics. Valid values are as follows:</p>
120    /// <ul>
121    /// <li>
122    /// <p><code>RDS</code></p></li>
123    /// <li>
124    /// <p><code>DOCDB</code></p></li>
125    /// </ul>
126    pub fn service_type(mut self, input: crate::types::ServiceType) -> Self {
127        self.inner = self.inner.service_type(input);
128        self
129    }
130    /// <p>The Amazon Web Services service for which Performance Insights will return metrics. Valid values are as follows:</p>
131    /// <ul>
132    /// <li>
133    /// <p><code>RDS</code></p></li>
134    /// <li>
135    /// <p><code>DOCDB</code></p></li>
136    /// </ul>
137    pub fn set_service_type(mut self, input: ::std::option::Option<crate::types::ServiceType>) -> Self {
138        self.inner = self.inner.set_service_type(input);
139        self
140    }
141    /// <p>The Amazon Web Services service for which Performance Insights will return metrics. Valid values are as follows:</p>
142    /// <ul>
143    /// <li>
144    /// <p><code>RDS</code></p></li>
145    /// <li>
146    /// <p><code>DOCDB</code></p></li>
147    /// </ul>
148    pub fn get_service_type(&self) -> &::std::option::Option<crate::types::ServiceType> {
149        self.inner.get_service_type()
150    }
151    /// <p>An immutable, Amazon Web Services Region-unique identifier for a data source. Performance Insights gathers metrics from this data source.</p>
152    /// <p>To use an Amazon RDS instance as a data source, you specify its <code>DbiResourceId</code> value. For example, specify <code>db-FAIHNTYBKTGAUSUZQYPDS2GW4A</code>.</p>
153    pub fn identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
154        self.inner = self.inner.identifier(input.into());
155        self
156    }
157    /// <p>An immutable, Amazon Web Services Region-unique identifier for a data source. Performance Insights gathers metrics from this data source.</p>
158    /// <p>To use an Amazon RDS instance as a data source, you specify its <code>DbiResourceId</code> value. For example, specify <code>db-FAIHNTYBKTGAUSUZQYPDS2GW4A</code>.</p>
159    pub fn set_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
160        self.inner = self.inner.set_identifier(input);
161        self
162    }
163    /// <p>An immutable, Amazon Web Services Region-unique identifier for a data source. Performance Insights gathers metrics from this data source.</p>
164    /// <p>To use an Amazon RDS instance as a data source, you specify its <code>DbiResourceId</code> value. For example, specify <code>db-FAIHNTYBKTGAUSUZQYPDS2GW4A</code>.</p>
165    pub fn get_identifier(&self) -> &::std::option::Option<::std::string::String> {
166        self.inner.get_identifier()
167    }
168    /// <p>The date and time specifying the beginning of the requested time series data. You must specify a <code>StartTime</code> within the past 7 days. The value specified is <i>inclusive</i>, which means that data points equal to or greater than <code>StartTime</code> are returned.</p>
169    /// <p>The value for <code>StartTime</code> must be earlier than the value for <code>EndTime</code>.</p>
170    pub fn start_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
171        self.inner = self.inner.start_time(input);
172        self
173    }
174    /// <p>The date and time specifying the beginning of the requested time series data. You must specify a <code>StartTime</code> within the past 7 days. The value specified is <i>inclusive</i>, which means that data points equal to or greater than <code>StartTime</code> are returned.</p>
175    /// <p>The value for <code>StartTime</code> must be earlier than the value for <code>EndTime</code>.</p>
176    pub fn set_start_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
177        self.inner = self.inner.set_start_time(input);
178        self
179    }
180    /// <p>The date and time specifying the beginning of the requested time series data. You must specify a <code>StartTime</code> within the past 7 days. The value specified is <i>inclusive</i>, which means that data points equal to or greater than <code>StartTime</code> are returned.</p>
181    /// <p>The value for <code>StartTime</code> must be earlier than the value for <code>EndTime</code>.</p>
182    pub fn get_start_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
183        self.inner.get_start_time()
184    }
185    /// <p>The date and time specifying the end of the requested time series data. The value specified is <i>exclusive</i>, which means that data points less than (but not equal to) <code>EndTime</code> are returned.</p>
186    /// <p>The value for <code>EndTime</code> must be later than the value for <code>StartTime</code>.</p>
187    pub fn end_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
188        self.inner = self.inner.end_time(input);
189        self
190    }
191    /// <p>The date and time specifying the end of the requested time series data. The value specified is <i>exclusive</i>, which means that data points less than (but not equal to) <code>EndTime</code> are returned.</p>
192    /// <p>The value for <code>EndTime</code> must be later than the value for <code>StartTime</code>.</p>
193    pub fn set_end_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
194        self.inner = self.inner.set_end_time(input);
195        self
196    }
197    /// <p>The date and time specifying the end of the requested time series data. The value specified is <i>exclusive</i>, which means that data points less than (but not equal to) <code>EndTime</code> are returned.</p>
198    /// <p>The value for <code>EndTime</code> must be later than the value for <code>StartTime</code>.</p>
199    pub fn get_end_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
200        self.inner.get_end_time()
201    }
202    /// <p>The name of a Performance Insights metric to be measured.</p>
203    /// <p>Valid values for <code>Metric</code> are:</p>
204    /// <ul>
205    /// <li>
206    /// <p><code>db.load.avg</code> - A scaled representation of the number of active sessions for the database engine.</p></li>
207    /// <li>
208    /// <p><code>db.sampledload.avg</code> - The raw number of active sessions for the database engine.</p></li>
209    /// </ul>
210    /// <p>If the number of active sessions is less than an internal Performance Insights threshold, <code>db.load.avg</code> and <code>db.sampledload.avg</code> are the same value. If the number of active sessions is greater than the internal threshold, Performance Insights samples the active sessions, with <code>db.load.avg</code> showing the scaled values, <code>db.sampledload.avg</code> showing the raw values, and <code>db.sampledload.avg</code> less than <code>db.load.avg</code>. For most use cases, you can query <code>db.load.avg</code> only.</p>
211    pub fn metric(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
212        self.inner = self.inner.metric(input.into());
213        self
214    }
215    /// <p>The name of a Performance Insights metric to be measured.</p>
216    /// <p>Valid values for <code>Metric</code> are:</p>
217    /// <ul>
218    /// <li>
219    /// <p><code>db.load.avg</code> - A scaled representation of the number of active sessions for the database engine.</p></li>
220    /// <li>
221    /// <p><code>db.sampledload.avg</code> - The raw number of active sessions for the database engine.</p></li>
222    /// </ul>
223    /// <p>If the number of active sessions is less than an internal Performance Insights threshold, <code>db.load.avg</code> and <code>db.sampledload.avg</code> are the same value. If the number of active sessions is greater than the internal threshold, Performance Insights samples the active sessions, with <code>db.load.avg</code> showing the scaled values, <code>db.sampledload.avg</code> showing the raw values, and <code>db.sampledload.avg</code> less than <code>db.load.avg</code>. For most use cases, you can query <code>db.load.avg</code> only.</p>
224    pub fn set_metric(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
225        self.inner = self.inner.set_metric(input);
226        self
227    }
228    /// <p>The name of a Performance Insights metric to be measured.</p>
229    /// <p>Valid values for <code>Metric</code> are:</p>
230    /// <ul>
231    /// <li>
232    /// <p><code>db.load.avg</code> - A scaled representation of the number of active sessions for the database engine.</p></li>
233    /// <li>
234    /// <p><code>db.sampledload.avg</code> - The raw number of active sessions for the database engine.</p></li>
235    /// </ul>
236    /// <p>If the number of active sessions is less than an internal Performance Insights threshold, <code>db.load.avg</code> and <code>db.sampledload.avg</code> are the same value. If the number of active sessions is greater than the internal threshold, Performance Insights samples the active sessions, with <code>db.load.avg</code> showing the scaled values, <code>db.sampledload.avg</code> showing the raw values, and <code>db.sampledload.avg</code> less than <code>db.load.avg</code>. For most use cases, you can query <code>db.load.avg</code> only.</p>
237    pub fn get_metric(&self) -> &::std::option::Option<::std::string::String> {
238        self.inner.get_metric()
239    }
240    /// <p>The granularity, in seconds, of the data points returned from Performance Insights. A period can be as short as one second, or as long as one day (86400 seconds). Valid values are:</p>
241    /// <ul>
242    /// <li>
243    /// <p><code>1</code> (one second)</p></li>
244    /// <li>
245    /// <p><code>60</code> (one minute)</p></li>
246    /// <li>
247    /// <p><code>300</code> (five minutes)</p></li>
248    /// <li>
249    /// <p><code>3600</code> (one hour)</p></li>
250    /// <li>
251    /// <p><code>86400</code> (twenty-four hours)</p></li>
252    /// </ul>
253    /// <p>If you don't specify <code>PeriodInSeconds</code>, then Performance Insights chooses a value for you, with a goal of returning roughly 100-200 data points in the response.</p>
254    pub fn period_in_seconds(mut self, input: i32) -> Self {
255        self.inner = self.inner.period_in_seconds(input);
256        self
257    }
258    /// <p>The granularity, in seconds, of the data points returned from Performance Insights. A period can be as short as one second, or as long as one day (86400 seconds). Valid values are:</p>
259    /// <ul>
260    /// <li>
261    /// <p><code>1</code> (one second)</p></li>
262    /// <li>
263    /// <p><code>60</code> (one minute)</p></li>
264    /// <li>
265    /// <p><code>300</code> (five minutes)</p></li>
266    /// <li>
267    /// <p><code>3600</code> (one hour)</p></li>
268    /// <li>
269    /// <p><code>86400</code> (twenty-four hours)</p></li>
270    /// </ul>
271    /// <p>If you don't specify <code>PeriodInSeconds</code>, then Performance Insights chooses a value for you, with a goal of returning roughly 100-200 data points in the response.</p>
272    pub fn set_period_in_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
273        self.inner = self.inner.set_period_in_seconds(input);
274        self
275    }
276    /// <p>The granularity, in seconds, of the data points returned from Performance Insights. A period can be as short as one second, or as long as one day (86400 seconds). Valid values are:</p>
277    /// <ul>
278    /// <li>
279    /// <p><code>1</code> (one second)</p></li>
280    /// <li>
281    /// <p><code>60</code> (one minute)</p></li>
282    /// <li>
283    /// <p><code>300</code> (five minutes)</p></li>
284    /// <li>
285    /// <p><code>3600</code> (one hour)</p></li>
286    /// <li>
287    /// <p><code>86400</code> (twenty-four hours)</p></li>
288    /// </ul>
289    /// <p>If you don't specify <code>PeriodInSeconds</code>, then Performance Insights chooses a value for you, with a goal of returning roughly 100-200 data points in the response.</p>
290    pub fn get_period_in_seconds(&self) -> &::std::option::Option<i32> {
291        self.inner.get_period_in_seconds()
292    }
293    /// <p>A specification for how to aggregate the data points from a query result. You must specify a valid dimension group. Performance Insights returns all dimensions within this group, unless you provide the names of specific dimensions within this group. You can also request that Performance Insights return a limited number of values for a dimension.</p>
294    pub fn group_by(mut self, input: crate::types::DimensionGroup) -> Self {
295        self.inner = self.inner.group_by(input);
296        self
297    }
298    /// <p>A specification for how to aggregate the data points from a query result. You must specify a valid dimension group. Performance Insights returns all dimensions within this group, unless you provide the names of specific dimensions within this group. You can also request that Performance Insights return a limited number of values for a dimension.</p>
299    pub fn set_group_by(mut self, input: ::std::option::Option<crate::types::DimensionGroup>) -> Self {
300        self.inner = self.inner.set_group_by(input);
301        self
302    }
303    /// <p>A specification for how to aggregate the data points from a query result. You must specify a valid dimension group. Performance Insights returns all dimensions within this group, unless you provide the names of specific dimensions within this group. You can also request that Performance Insights return a limited number of values for a dimension.</p>
304    pub fn get_group_by(&self) -> &::std::option::Option<crate::types::DimensionGroup> {
305        self.inner.get_group_by()
306    }
307    ///
308    /// Appends an item to `AdditionalMetrics`.
309    ///
310    /// To override the contents of this collection use [`set_additional_metrics`](Self::set_additional_metrics).
311    ///
312    /// <p>Additional metrics for the top <code>N</code> dimension keys. If the specified dimension group in the <code>GroupBy</code> parameter is <code>db.sql_tokenized</code>, you can specify per-SQL metrics to get the values for the top <code>N</code> SQL digests. The response syntax is as follows: <code>"AdditionalMetrics" : { "<i>string</i>" : "<i>string</i>" }</code>.</p>
313    /// <p>The only supported statistic function is <code>.avg</code>.</p>
314    pub fn additional_metrics(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
315        self.inner = self.inner.additional_metrics(input.into());
316        self
317    }
318    /// <p>Additional metrics for the top <code>N</code> dimension keys. If the specified dimension group in the <code>GroupBy</code> parameter is <code>db.sql_tokenized</code>, you can specify per-SQL metrics to get the values for the top <code>N</code> SQL digests. The response syntax is as follows: <code>"AdditionalMetrics" : { "<i>string</i>" : "<i>string</i>" }</code>.</p>
319    /// <p>The only supported statistic function is <code>.avg</code>.</p>
320    pub fn set_additional_metrics(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
321        self.inner = self.inner.set_additional_metrics(input);
322        self
323    }
324    /// <p>Additional metrics for the top <code>N</code> dimension keys. If the specified dimension group in the <code>GroupBy</code> parameter is <code>db.sql_tokenized</code>, you can specify per-SQL metrics to get the values for the top <code>N</code> SQL digests. The response syntax is as follows: <code>"AdditionalMetrics" : { "<i>string</i>" : "<i>string</i>" }</code>.</p>
325    /// <p>The only supported statistic function is <code>.avg</code>.</p>
326    pub fn get_additional_metrics(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
327        self.inner.get_additional_metrics()
328    }
329    /// <p>For each dimension specified in <code>GroupBy</code>, specify a secondary dimension to further subdivide the partition keys in the response.</p>
330    pub fn partition_by(mut self, input: crate::types::DimensionGroup) -> Self {
331        self.inner = self.inner.partition_by(input);
332        self
333    }
334    /// <p>For each dimension specified in <code>GroupBy</code>, specify a secondary dimension to further subdivide the partition keys in the response.</p>
335    pub fn set_partition_by(mut self, input: ::std::option::Option<crate::types::DimensionGroup>) -> Self {
336        self.inner = self.inner.set_partition_by(input);
337        self
338    }
339    /// <p>For each dimension specified in <code>GroupBy</code>, specify a secondary dimension to further subdivide the partition keys in the response.</p>
340    pub fn get_partition_by(&self) -> &::std::option::Option<crate::types::DimensionGroup> {
341        self.inner.get_partition_by()
342    }
343    ///
344    /// Adds a key-value pair to `Filter`.
345    ///
346    /// To override the contents of this collection use [`set_filter`](Self::set_filter).
347    ///
348    /// <p>One or more filters to apply in the request. Restrictions:</p>
349    /// <ul>
350    /// <li>
351    /// <p>Any number of filters by the same dimension, as specified in the <code>GroupBy</code> or <code>Partition</code> parameters.</p></li>
352    /// <li>
353    /// <p>A single filter for any other dimension in this dimension group.</p></li>
354    /// </ul><note>
355    /// <p>The <code>db.sql.db_id</code> filter isn't available for RDS for SQL Server DB instances.</p>
356    /// </note>
357    pub fn filter(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
358        self.inner = self.inner.filter(k.into(), v.into());
359        self
360    }
361    /// <p>One or more filters to apply in the request. Restrictions:</p>
362    /// <ul>
363    /// <li>
364    /// <p>Any number of filters by the same dimension, as specified in the <code>GroupBy</code> or <code>Partition</code> parameters.</p></li>
365    /// <li>
366    /// <p>A single filter for any other dimension in this dimension group.</p></li>
367    /// </ul><note>
368    /// <p>The <code>db.sql.db_id</code> filter isn't available for RDS for SQL Server DB instances.</p>
369    /// </note>
370    pub fn set_filter(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
371        self.inner = self.inner.set_filter(input);
372        self
373    }
374    /// <p>One or more filters to apply in the request. Restrictions:</p>
375    /// <ul>
376    /// <li>
377    /// <p>Any number of filters by the same dimension, as specified in the <code>GroupBy</code> or <code>Partition</code> parameters.</p></li>
378    /// <li>
379    /// <p>A single filter for any other dimension in this dimension group.</p></li>
380    /// </ul><note>
381    /// <p>The <code>db.sql.db_id</code> filter isn't available for RDS for SQL Server DB instances.</p>
382    /// </note>
383    pub fn get_filter(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
384        self.inner.get_filter()
385    }
386    /// <p>The maximum number of items to return in the response. If more items exist than the specified <code>MaxRecords</code> value, a pagination token is included in the response so that the remaining results can be retrieved.</p>
387    pub fn max_results(mut self, input: i32) -> Self {
388        self.inner = self.inner.max_results(input);
389        self
390    }
391    /// <p>The maximum number of items to return in the response. If more items exist than the specified <code>MaxRecords</code> value, a pagination token is included in the response so that the remaining results can be retrieved.</p>
392    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
393        self.inner = self.inner.set_max_results(input);
394        self
395    }
396    /// <p>The maximum number of items to return in the response. If more items exist than the specified <code>MaxRecords</code> value, a pagination token is included in the response so that the remaining results can be retrieved.</p>
397    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
398        self.inner.get_max_results()
399    }
400    /// <p>An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by <code>MaxRecords</code>.</p>
401    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
402        self.inner = self.inner.next_token(input.into());
403        self
404    }
405    /// <p>An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by <code>MaxRecords</code>.</p>
406    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
407        self.inner = self.inner.set_next_token(input);
408        self
409    }
410    /// <p>An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by <code>MaxRecords</code>.</p>
411    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
412        self.inner.get_next_token()
413    }
414}