aws_sdk_glue/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 Amazon Resource Name (ARN) for the integration.</p>
7    pub integration_identifier: ::std::option::Option<::std::string::String>,
8    /// <p>A value that indicates the starting point for the next set of response records in a subsequent request.</p>
9    pub marker: ::std::option::Option<::std::string::String>,
10    /// <p>The total number of items to return in the output.</p>
11    pub max_records: ::std::option::Option<i32>,
12    /// <p>A list of key and values, to filter down the results. Supported keys are "Status", "IntegrationName", and "SourceArn". IntegrationName is limited to only one value.</p>
13    pub filters: ::std::option::Option<::std::vec::Vec<crate::types::IntegrationFilter>>,
14}
15impl DescribeIntegrationsInput {
16    /// <p>The Amazon Resource Name (ARN) for the integration.</p>
17    pub fn integration_identifier(&self) -> ::std::option::Option<&str> {
18        self.integration_identifier.as_deref()
19    }
20    /// <p>A value that indicates the starting point for the next set of response records in a subsequent request.</p>
21    pub fn marker(&self) -> ::std::option::Option<&str> {
22        self.marker.as_deref()
23    }
24    /// <p>The total number of items to return in the output.</p>
25    pub fn max_records(&self) -> ::std::option::Option<i32> {
26        self.max_records
27    }
28    /// <p>A list of key and values, to filter down the results. Supported keys are "Status", "IntegrationName", and "SourceArn". IntegrationName is limited to only one value.</p>
29    ///
30    /// 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()`.
31    pub fn filters(&self) -> &[crate::types::IntegrationFilter] {
32        self.filters.as_deref().unwrap_or_default()
33    }
34}
35impl DescribeIntegrationsInput {
36    /// Creates a new builder-style object to manufacture [`DescribeIntegrationsInput`](crate::operation::describe_integrations::DescribeIntegrationsInput).
37    pub fn builder() -> crate::operation::describe_integrations::builders::DescribeIntegrationsInputBuilder {
38        crate::operation::describe_integrations::builders::DescribeIntegrationsInputBuilder::default()
39    }
40}
41
42/// A builder for [`DescribeIntegrationsInput`](crate::operation::describe_integrations::DescribeIntegrationsInput).
43#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
44#[non_exhaustive]
45pub struct DescribeIntegrationsInputBuilder {
46    pub(crate) integration_identifier: ::std::option::Option<::std::string::String>,
47    pub(crate) marker: ::std::option::Option<::std::string::String>,
48    pub(crate) max_records: ::std::option::Option<i32>,
49    pub(crate) filters: ::std::option::Option<::std::vec::Vec<crate::types::IntegrationFilter>>,
50}
51impl DescribeIntegrationsInputBuilder {
52    /// <p>The Amazon Resource Name (ARN) for the integration.</p>
53    pub fn integration_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
54        self.integration_identifier = ::std::option::Option::Some(input.into());
55        self
56    }
57    /// <p>The Amazon Resource Name (ARN) for the integration.</p>
58    pub fn set_integration_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
59        self.integration_identifier = input;
60        self
61    }
62    /// <p>The Amazon Resource Name (ARN) for the integration.</p>
63    pub fn get_integration_identifier(&self) -> &::std::option::Option<::std::string::String> {
64        &self.integration_identifier
65    }
66    /// <p>A value that indicates the starting point for the next set of response records in a subsequent request.</p>
67    pub fn marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
68        self.marker = ::std::option::Option::Some(input.into());
69        self
70    }
71    /// <p>A value that indicates the starting point for the next set of response records in a subsequent request.</p>
72    pub fn set_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
73        self.marker = input;
74        self
75    }
76    /// <p>A value that indicates the starting point for the next set of response records in a subsequent request.</p>
77    pub fn get_marker(&self) -> &::std::option::Option<::std::string::String> {
78        &self.marker
79    }
80    /// <p>The total number of items to return in the output.</p>
81    pub fn max_records(mut self, input: i32) -> Self {
82        self.max_records = ::std::option::Option::Some(input);
83        self
84    }
85    /// <p>The total number of items to return in the output.</p>
86    pub fn set_max_records(mut self, input: ::std::option::Option<i32>) -> Self {
87        self.max_records = input;
88        self
89    }
90    /// <p>The total number of items to return in the output.</p>
91    pub fn get_max_records(&self) -> &::std::option::Option<i32> {
92        &self.max_records
93    }
94    /// Appends an item to `filters`.
95    ///
96    /// To override the contents of this collection use [`set_filters`](Self::set_filters).
97    ///
98    /// <p>A list of key and values, to filter down the results. Supported keys are "Status", "IntegrationName", and "SourceArn". IntegrationName is limited to only one value.</p>
99    pub fn filters(mut self, input: crate::types::IntegrationFilter) -> Self {
100        let mut v = self.filters.unwrap_or_default();
101        v.push(input);
102        self.filters = ::std::option::Option::Some(v);
103        self
104    }
105    /// <p>A list of key and values, to filter down the results. Supported keys are "Status", "IntegrationName", and "SourceArn". IntegrationName is limited to only one value.</p>
106    pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::IntegrationFilter>>) -> Self {
107        self.filters = input;
108        self
109    }
110    /// <p>A list of key and values, to filter down the results. Supported keys are "Status", "IntegrationName", and "SourceArn". IntegrationName is limited to only one value.</p>
111    pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::IntegrationFilter>> {
112        &self.filters
113    }
114    /// Consumes the builder and constructs a [`DescribeIntegrationsInput`](crate::operation::describe_integrations::DescribeIntegrationsInput).
115    pub fn build(
116        self,
117    ) -> ::std::result::Result<crate::operation::describe_integrations::DescribeIntegrationsInput, ::aws_smithy_types::error::operation::BuildError>
118    {
119        ::std::result::Result::Ok(crate::operation::describe_integrations::DescribeIntegrationsInput {
120            integration_identifier: self.integration_identifier,
121            marker: self.marker,
122            max_records: self.max_records,
123            filters: self.filters,
124        })
125    }
126}