aws_sdk_rds/operation/modify_integration/_modify_integration_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 ModifyIntegrationInput {
6 /// <p>The unique identifier of the integration to modify.</p>
7 pub integration_identifier: ::std::option::Option<::std::string::String>,
8 /// <p>A new name for the integration.</p>
9 pub integration_name: ::std::option::Option<::std::string::String>,
10 /// <p>A new data filter for the integration. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Zero_ETL_Filtering.html">Data filtering for Aurora zero-ETL integrations with Amazon Redshift</a> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/zero-etl.filtering.html">Data filtering for Amazon RDS zero-ETL integrations with Amazon Redshift</a>.</p>
11 pub data_filter: ::std::option::Option<::std::string::String>,
12 /// <p>A new description for the integration.</p>
13 pub description: ::std::option::Option<::std::string::String>,
14}
15impl ModifyIntegrationInput {
16 /// <p>The unique identifier of the integration to modify.</p>
17 pub fn integration_identifier(&self) -> ::std::option::Option<&str> {
18 self.integration_identifier.as_deref()
19 }
20 /// <p>A new name for the integration.</p>
21 pub fn integration_name(&self) -> ::std::option::Option<&str> {
22 self.integration_name.as_deref()
23 }
24 /// <p>A new data filter for the integration. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Zero_ETL_Filtering.html">Data filtering for Aurora zero-ETL integrations with Amazon Redshift</a> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/zero-etl.filtering.html">Data filtering for Amazon RDS zero-ETL integrations with Amazon Redshift</a>.</p>
25 pub fn data_filter(&self) -> ::std::option::Option<&str> {
26 self.data_filter.as_deref()
27 }
28 /// <p>A new description for the integration.</p>
29 pub fn description(&self) -> ::std::option::Option<&str> {
30 self.description.as_deref()
31 }
32}
33impl ModifyIntegrationInput {
34 /// Creates a new builder-style object to manufacture [`ModifyIntegrationInput`](crate::operation::modify_integration::ModifyIntegrationInput).
35 pub fn builder() -> crate::operation::modify_integration::builders::ModifyIntegrationInputBuilder {
36 crate::operation::modify_integration::builders::ModifyIntegrationInputBuilder::default()
37 }
38}
39
40/// A builder for [`ModifyIntegrationInput`](crate::operation::modify_integration::ModifyIntegrationInput).
41#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
42#[non_exhaustive]
43pub struct ModifyIntegrationInputBuilder {
44 pub(crate) integration_identifier: ::std::option::Option<::std::string::String>,
45 pub(crate) integration_name: ::std::option::Option<::std::string::String>,
46 pub(crate) data_filter: ::std::option::Option<::std::string::String>,
47 pub(crate) description: ::std::option::Option<::std::string::String>,
48}
49impl ModifyIntegrationInputBuilder {
50 /// <p>The unique identifier of the integration to modify.</p>
51 /// This field is required.
52 pub fn integration_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
53 self.integration_identifier = ::std::option::Option::Some(input.into());
54 self
55 }
56 /// <p>The unique identifier of the integration to modify.</p>
57 pub fn set_integration_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
58 self.integration_identifier = input;
59 self
60 }
61 /// <p>The unique identifier of the integration to modify.</p>
62 pub fn get_integration_identifier(&self) -> &::std::option::Option<::std::string::String> {
63 &self.integration_identifier
64 }
65 /// <p>A new name for the integration.</p>
66 pub fn integration_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
67 self.integration_name = ::std::option::Option::Some(input.into());
68 self
69 }
70 /// <p>A new name for the integration.</p>
71 pub fn set_integration_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
72 self.integration_name = input;
73 self
74 }
75 /// <p>A new name for the integration.</p>
76 pub fn get_integration_name(&self) -> &::std::option::Option<::std::string::String> {
77 &self.integration_name
78 }
79 /// <p>A new data filter for the integration. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Zero_ETL_Filtering.html">Data filtering for Aurora zero-ETL integrations with Amazon Redshift</a> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/zero-etl.filtering.html">Data filtering for Amazon RDS zero-ETL integrations with Amazon Redshift</a>.</p>
80 pub fn data_filter(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
81 self.data_filter = ::std::option::Option::Some(input.into());
82 self
83 }
84 /// <p>A new data filter for the integration. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Zero_ETL_Filtering.html">Data filtering for Aurora zero-ETL integrations with Amazon Redshift</a> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/zero-etl.filtering.html">Data filtering for Amazon RDS zero-ETL integrations with Amazon Redshift</a>.</p>
85 pub fn set_data_filter(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
86 self.data_filter = input;
87 self
88 }
89 /// <p>A new data filter for the integration. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Zero_ETL_Filtering.html">Data filtering for Aurora zero-ETL integrations with Amazon Redshift</a> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/zero-etl.filtering.html">Data filtering for Amazon RDS zero-ETL integrations with Amazon Redshift</a>.</p>
90 pub fn get_data_filter(&self) -> &::std::option::Option<::std::string::String> {
91 &self.data_filter
92 }
93 /// <p>A new description for the integration.</p>
94 pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
95 self.description = ::std::option::Option::Some(input.into());
96 self
97 }
98 /// <p>A new description for the integration.</p>
99 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
100 self.description = input;
101 self
102 }
103 /// <p>A new description for the integration.</p>
104 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
105 &self.description
106 }
107 /// Consumes the builder and constructs a [`ModifyIntegrationInput`](crate::operation::modify_integration::ModifyIntegrationInput).
108 pub fn build(
109 self,
110 ) -> ::std::result::Result<crate::operation::modify_integration::ModifyIntegrationInput, ::aws_smithy_types::error::operation::BuildError> {
111 ::std::result::Result::Ok(crate::operation::modify_integration::ModifyIntegrationInput {
112 integration_identifier: self.integration_identifier,
113 integration_name: self.integration_name,
114 data_filter: self.data_filter,
115 description: self.description,
116 })
117 }
118}