aws_sdk_redshift/operation/describe_integrations/
_describe_integrations_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 DescribeIntegrationsInput {
6    /// <p>The unique identifier of the integration.</p>
7    pub integration_arn: ::std::option::Option<::std::string::String>,
8    /// <p>The maximum number of response records to return in each call. If the number of remaining response records exceeds the specified <code>MaxRecords</code> value, a value is returned in a <code>marker</code> field of the response. You can retrieve the next set of records by retrying the command with the returned marker value.</p>
9    /// <p>Default: <code>100</code></p>
10    /// <p>Constraints: minimum 20, maximum 100.</p>
11    pub max_records: ::std::option::Option<i32>,
12    /// <p>An optional pagination token provided by a previous <code>DescribeIntegrations</code> request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>.</p>
13    pub marker: ::std::option::Option<::std::string::String>,
14    /// <p>A filter that specifies one or more resources to return.</p>
15    pub filters: ::std::option::Option<::std::vec::Vec<crate::types::DescribeIntegrationsFilter>>,
16}
17impl DescribeIntegrationsInput {
18    /// <p>The unique identifier of the integration.</p>
19    pub fn integration_arn(&self) -> ::std::option::Option<&str> {
20        self.integration_arn.as_deref()
21    }
22    /// <p>The maximum number of response records to return in each call. If the number of remaining response records exceeds the specified <code>MaxRecords</code> value, a value is returned in a <code>marker</code> field of the response. You can retrieve the next set of records by retrying the command with the returned marker value.</p>
23    /// <p>Default: <code>100</code></p>
24    /// <p>Constraints: minimum 20, maximum 100.</p>
25    pub fn max_records(&self) -> ::std::option::Option<i32> {
26        self.max_records
27    }
28    /// <p>An optional pagination token provided by a previous <code>DescribeIntegrations</code> request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>.</p>
29    pub fn marker(&self) -> ::std::option::Option<&str> {
30        self.marker.as_deref()
31    }
32    /// <p>A filter that specifies one or more resources to return.</p>
33    ///
34    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.filters.is_none()`.
35    pub fn filters(&self) -> &[crate::types::DescribeIntegrationsFilter] {
36        self.filters.as_deref().unwrap_or_default()
37    }
38}
39impl DescribeIntegrationsInput {
40    /// Creates a new builder-style object to manufacture [`DescribeIntegrationsInput`](crate::operation::describe_integrations::DescribeIntegrationsInput).
41    pub fn builder() -> crate::operation::describe_integrations::builders::DescribeIntegrationsInputBuilder {
42        crate::operation::describe_integrations::builders::DescribeIntegrationsInputBuilder::default()
43    }
44}
45
46/// A builder for [`DescribeIntegrationsInput`](crate::operation::describe_integrations::DescribeIntegrationsInput).
47#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
48#[non_exhaustive]
49pub struct DescribeIntegrationsInputBuilder {
50    pub(crate) integration_arn: ::std::option::Option<::std::string::String>,
51    pub(crate) max_records: ::std::option::Option<i32>,
52    pub(crate) marker: ::std::option::Option<::std::string::String>,
53    pub(crate) filters: ::std::option::Option<::std::vec::Vec<crate::types::DescribeIntegrationsFilter>>,
54}
55impl DescribeIntegrationsInputBuilder {
56    /// <p>The unique identifier of the integration.</p>
57    pub fn integration_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
58        self.integration_arn = ::std::option::Option::Some(input.into());
59        self
60    }
61    /// <p>The unique identifier of the integration.</p>
62    pub fn set_integration_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
63        self.integration_arn = input;
64        self
65    }
66    /// <p>The unique identifier of the integration.</p>
67    pub fn get_integration_arn(&self) -> &::std::option::Option<::std::string::String> {
68        &self.integration_arn
69    }
70    /// <p>The maximum number of response records to return in each call. If the number of remaining response records exceeds the specified <code>MaxRecords</code> value, a value is returned in a <code>marker</code> field of the response. You can retrieve the next set of records by retrying the command with the returned marker value.</p>
71    /// <p>Default: <code>100</code></p>
72    /// <p>Constraints: minimum 20, maximum 100.</p>
73    pub fn max_records(mut self, input: i32) -> Self {
74        self.max_records = ::std::option::Option::Some(input);
75        self
76    }
77    /// <p>The maximum number of response records to return in each call. If the number of remaining response records exceeds the specified <code>MaxRecords</code> value, a value is returned in a <code>marker</code> field of the response. You can retrieve the next set of records by retrying the command with the returned marker value.</p>
78    /// <p>Default: <code>100</code></p>
79    /// <p>Constraints: minimum 20, maximum 100.</p>
80    pub fn set_max_records(mut self, input: ::std::option::Option<i32>) -> Self {
81        self.max_records = input;
82        self
83    }
84    /// <p>The maximum number of response records to return in each call. If the number of remaining response records exceeds the specified <code>MaxRecords</code> value, a value is returned in a <code>marker</code> field of the response. You can retrieve the next set of records by retrying the command with the returned marker value.</p>
85    /// <p>Default: <code>100</code></p>
86    /// <p>Constraints: minimum 20, maximum 100.</p>
87    pub fn get_max_records(&self) -> &::std::option::Option<i32> {
88        &self.max_records
89    }
90    /// <p>An optional pagination token provided by a previous <code>DescribeIntegrations</code> request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>.</p>
91    pub fn marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
92        self.marker = ::std::option::Option::Some(input.into());
93        self
94    }
95    /// <p>An optional pagination token provided by a previous <code>DescribeIntegrations</code> request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>.</p>
96    pub fn set_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
97        self.marker = input;
98        self
99    }
100    /// <p>An optional pagination token provided by a previous <code>DescribeIntegrations</code> request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>.</p>
101    pub fn get_marker(&self) -> &::std::option::Option<::std::string::String> {
102        &self.marker
103    }
104    /// Appends an item to `filters`.
105    ///
106    /// To override the contents of this collection use [`set_filters`](Self::set_filters).
107    ///
108    /// <p>A filter that specifies one or more resources to return.</p>
109    pub fn filters(mut self, input: crate::types::DescribeIntegrationsFilter) -> Self {
110        let mut v = self.filters.unwrap_or_default();
111        v.push(input);
112        self.filters = ::std::option::Option::Some(v);
113        self
114    }
115    /// <p>A filter that specifies one or more resources to return.</p>
116    pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::DescribeIntegrationsFilter>>) -> Self {
117        self.filters = input;
118        self
119    }
120    /// <p>A filter that specifies one or more resources to return.</p>
121    pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::DescribeIntegrationsFilter>> {
122        &self.filters
123    }
124    /// Consumes the builder and constructs a [`DescribeIntegrationsInput`](crate::operation::describe_integrations::DescribeIntegrationsInput).
125    pub fn build(
126        self,
127    ) -> ::std::result::Result<crate::operation::describe_integrations::DescribeIntegrationsInput, ::aws_smithy_types::error::operation::BuildError>
128    {
129        ::std::result::Result::Ok(crate::operation::describe_integrations::DescribeIntegrationsInput {
130            integration_arn: self.integration_arn,
131            max_records: self.max_records,
132            marker: self.marker,
133            filters: self.filters,
134        })
135    }
136}