aws_sdk_databasemigration/operation/modify_endpoint/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::modify_endpoint::_modify_endpoint_output::ModifyEndpointOutputBuilder;
3
4pub use crate::operation::modify_endpoint::_modify_endpoint_input::ModifyEndpointInputBuilder;
5
6impl crate::operation::modify_endpoint::builders::ModifyEndpointInputBuilder {
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::modify_endpoint::ModifyEndpointOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::modify_endpoint::ModifyEndpointError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.modify_endpoint();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `ModifyEndpoint`.
24///
25/// <p>Modifies the specified endpoint.</p><note>
26/// <p>For a MySQL source or target endpoint, don't explicitly specify the database using the <code>DatabaseName</code> request parameter on the <code>ModifyEndpoint</code> API call. Specifying <code>DatabaseName</code> when you modify a MySQL endpoint replicates all the task tables to this single database. For MySQL endpoints, you specify the database only when you specify the schema in the table-mapping rules of the DMS task.</p>
27/// </note>
28#[derive(::std::clone::Clone, ::std::fmt::Debug)]
29pub struct ModifyEndpointFluentBuilder {
30 handle: ::std::sync::Arc<crate::client::Handle>,
31 inner: crate::operation::modify_endpoint::builders::ModifyEndpointInputBuilder,
32 config_override: ::std::option::Option<crate::config::Builder>,
33}
34impl
35 crate::client::customize::internal::CustomizableSend<
36 crate::operation::modify_endpoint::ModifyEndpointOutput,
37 crate::operation::modify_endpoint::ModifyEndpointError,
38 > for ModifyEndpointFluentBuilder
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::modify_endpoint::ModifyEndpointOutput,
46 crate::operation::modify_endpoint::ModifyEndpointError,
47 >,
48 > {
49 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
50 }
51}
52impl ModifyEndpointFluentBuilder {
53 /// Creates a new `ModifyEndpointFluentBuilder`.
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 ModifyEndpoint as a reference.
62 pub fn as_input(&self) -> &crate::operation::modify_endpoint::builders::ModifyEndpointInputBuilder {
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::modify_endpoint::ModifyEndpointOutput,
77 ::aws_smithy_runtime_api::client::result::SdkError<
78 crate::operation::modify_endpoint::ModifyEndpointError,
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::modify_endpoint::ModifyEndpoint::operation_runtime_plugins(
87 self.handle.runtime_plugins.clone(),
88 &self.handle.conf,
89 self.config_override,
90 );
91 crate::operation::modify_endpoint::ModifyEndpoint::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::modify_endpoint::ModifyEndpointOutput,
99 crate::operation::modify_endpoint::ModifyEndpointError,
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 /// <p>The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.</p>
114 pub fn endpoint_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
115 self.inner = self.inner.endpoint_arn(input.into());
116 self
117 }
118 /// <p>The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.</p>
119 pub fn set_endpoint_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
120 self.inner = self.inner.set_endpoint_arn(input);
121 self
122 }
123 /// <p>The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.</p>
124 pub fn get_endpoint_arn(&self) -> &::std::option::Option<::std::string::String> {
125 self.inner.get_endpoint_arn()
126 }
127 /// <p>The database endpoint identifier. Identifiers must begin with a letter and must contain only ASCII letters, digits, and hyphens. They can't end with a hyphen or contain two consecutive hyphens.</p>
128 pub fn endpoint_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
129 self.inner = self.inner.endpoint_identifier(input.into());
130 self
131 }
132 /// <p>The database endpoint identifier. Identifiers must begin with a letter and must contain only ASCII letters, digits, and hyphens. They can't end with a hyphen or contain two consecutive hyphens.</p>
133 pub fn set_endpoint_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
134 self.inner = self.inner.set_endpoint_identifier(input);
135 self
136 }
137 /// <p>The database endpoint identifier. Identifiers must begin with a letter and must contain only ASCII letters, digits, and hyphens. They can't end with a hyphen or contain two consecutive hyphens.</p>
138 pub fn get_endpoint_identifier(&self) -> &::std::option::Option<::std::string::String> {
139 self.inner.get_endpoint_identifier()
140 }
141 /// <p>The type of endpoint. Valid values are <code>source</code> and <code>target</code>.</p>
142 pub fn endpoint_type(mut self, input: crate::types::ReplicationEndpointTypeValue) -> Self {
143 self.inner = self.inner.endpoint_type(input);
144 self
145 }
146 /// <p>The type of endpoint. Valid values are <code>source</code> and <code>target</code>.</p>
147 pub fn set_endpoint_type(mut self, input: ::std::option::Option<crate::types::ReplicationEndpointTypeValue>) -> Self {
148 self.inner = self.inner.set_endpoint_type(input);
149 self
150 }
151 /// <p>The type of endpoint. Valid values are <code>source</code> and <code>target</code>.</p>
152 pub fn get_endpoint_type(&self) -> &::std::option::Option<crate::types::ReplicationEndpointTypeValue> {
153 self.inner.get_endpoint_type()
154 }
155 /// <p>The database engine name. Valid values, depending on the EndpointType, include <code>"mysql"</code>, <code>"oracle"</code>, <code>"postgres"</code>, <code>"mariadb"</code>, <code>"aurora"</code>, <code>"aurora-postgresql"</code>, <code>"redshift"</code>, <code>"s3"</code>, <code>"db2"</code>, <code>"db2-zos"</code>, <code>"azuredb"</code>, <code>"sybase"</code>, <code>"dynamodb"</code>, <code>"mongodb"</code>, <code>"kinesis"</code>, <code>"kafka"</code>, <code>"elasticsearch"</code>, <code>"documentdb"</code>, <code>"sqlserver"</code>, <code>"neptune"</code>, and <code>"babelfish"</code>.</p>
156 pub fn engine_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
157 self.inner = self.inner.engine_name(input.into());
158 self
159 }
160 /// <p>The database engine name. Valid values, depending on the EndpointType, include <code>"mysql"</code>, <code>"oracle"</code>, <code>"postgres"</code>, <code>"mariadb"</code>, <code>"aurora"</code>, <code>"aurora-postgresql"</code>, <code>"redshift"</code>, <code>"s3"</code>, <code>"db2"</code>, <code>"db2-zos"</code>, <code>"azuredb"</code>, <code>"sybase"</code>, <code>"dynamodb"</code>, <code>"mongodb"</code>, <code>"kinesis"</code>, <code>"kafka"</code>, <code>"elasticsearch"</code>, <code>"documentdb"</code>, <code>"sqlserver"</code>, <code>"neptune"</code>, and <code>"babelfish"</code>.</p>
161 pub fn set_engine_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
162 self.inner = self.inner.set_engine_name(input);
163 self
164 }
165 /// <p>The database engine name. Valid values, depending on the EndpointType, include <code>"mysql"</code>, <code>"oracle"</code>, <code>"postgres"</code>, <code>"mariadb"</code>, <code>"aurora"</code>, <code>"aurora-postgresql"</code>, <code>"redshift"</code>, <code>"s3"</code>, <code>"db2"</code>, <code>"db2-zos"</code>, <code>"azuredb"</code>, <code>"sybase"</code>, <code>"dynamodb"</code>, <code>"mongodb"</code>, <code>"kinesis"</code>, <code>"kafka"</code>, <code>"elasticsearch"</code>, <code>"documentdb"</code>, <code>"sqlserver"</code>, <code>"neptune"</code>, and <code>"babelfish"</code>.</p>
166 pub fn get_engine_name(&self) -> &::std::option::Option<::std::string::String> {
167 self.inner.get_engine_name()
168 }
169 /// <p>The user name to be used to login to the endpoint database.</p>
170 pub fn username(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
171 self.inner = self.inner.username(input.into());
172 self
173 }
174 /// <p>The user name to be used to login to the endpoint database.</p>
175 pub fn set_username(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
176 self.inner = self.inner.set_username(input);
177 self
178 }
179 /// <p>The user name to be used to login to the endpoint database.</p>
180 pub fn get_username(&self) -> &::std::option::Option<::std::string::String> {
181 self.inner.get_username()
182 }
183 /// <p>The password to be used to login to the endpoint database.</p>
184 pub fn password(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
185 self.inner = self.inner.password(input.into());
186 self
187 }
188 /// <p>The password to be used to login to the endpoint database.</p>
189 pub fn set_password(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
190 self.inner = self.inner.set_password(input);
191 self
192 }
193 /// <p>The password to be used to login to the endpoint database.</p>
194 pub fn get_password(&self) -> &::std::option::Option<::std::string::String> {
195 self.inner.get_password()
196 }
197 /// <p>The name of the server where the endpoint database resides.</p>
198 pub fn server_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
199 self.inner = self.inner.server_name(input.into());
200 self
201 }
202 /// <p>The name of the server where the endpoint database resides.</p>
203 pub fn set_server_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
204 self.inner = self.inner.set_server_name(input);
205 self
206 }
207 /// <p>The name of the server where the endpoint database resides.</p>
208 pub fn get_server_name(&self) -> &::std::option::Option<::std::string::String> {
209 self.inner.get_server_name()
210 }
211 /// <p>The port used by the endpoint database.</p>
212 pub fn port(mut self, input: i32) -> Self {
213 self.inner = self.inner.port(input);
214 self
215 }
216 /// <p>The port used by the endpoint database.</p>
217 pub fn set_port(mut self, input: ::std::option::Option<i32>) -> Self {
218 self.inner = self.inner.set_port(input);
219 self
220 }
221 /// <p>The port used by the endpoint database.</p>
222 pub fn get_port(&self) -> &::std::option::Option<i32> {
223 self.inner.get_port()
224 }
225 /// <p>The name of the endpoint database. For a MySQL source or target endpoint, do not specify DatabaseName.</p>
226 pub fn database_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
227 self.inner = self.inner.database_name(input.into());
228 self
229 }
230 /// <p>The name of the endpoint database. For a MySQL source or target endpoint, do not specify DatabaseName.</p>
231 pub fn set_database_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
232 self.inner = self.inner.set_database_name(input);
233 self
234 }
235 /// <p>The name of the endpoint database. For a MySQL source or target endpoint, do not specify DatabaseName.</p>
236 pub fn get_database_name(&self) -> &::std::option::Option<::std::string::String> {
237 self.inner.get_database_name()
238 }
239 /// <p>Additional attributes associated with the connection. To reset this parameter, pass the empty string ("") as an argument.</p>
240 pub fn extra_connection_attributes(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
241 self.inner = self.inner.extra_connection_attributes(input.into());
242 self
243 }
244 /// <p>Additional attributes associated with the connection. To reset this parameter, pass the empty string ("") as an argument.</p>
245 pub fn set_extra_connection_attributes(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
246 self.inner = self.inner.set_extra_connection_attributes(input);
247 self
248 }
249 /// <p>Additional attributes associated with the connection. To reset this parameter, pass the empty string ("") as an argument.</p>
250 pub fn get_extra_connection_attributes(&self) -> &::std::option::Option<::std::string::String> {
251 self.inner.get_extra_connection_attributes()
252 }
253 /// <p>The Amazon Resource Name (ARN) of the certificate used for SSL connection.</p>
254 pub fn certificate_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
255 self.inner = self.inner.certificate_arn(input.into());
256 self
257 }
258 /// <p>The Amazon Resource Name (ARN) of the certificate used for SSL connection.</p>
259 pub fn set_certificate_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
260 self.inner = self.inner.set_certificate_arn(input);
261 self
262 }
263 /// <p>The Amazon Resource Name (ARN) of the certificate used for SSL connection.</p>
264 pub fn get_certificate_arn(&self) -> &::std::option::Option<::std::string::String> {
265 self.inner.get_certificate_arn()
266 }
267 /// <p>The SSL mode used to connect to the endpoint. The default value is <code>none</code>.</p>
268 pub fn ssl_mode(mut self, input: crate::types::DmsSslModeValue) -> Self {
269 self.inner = self.inner.ssl_mode(input);
270 self
271 }
272 /// <p>The SSL mode used to connect to the endpoint. The default value is <code>none</code>.</p>
273 pub fn set_ssl_mode(mut self, input: ::std::option::Option<crate::types::DmsSslModeValue>) -> Self {
274 self.inner = self.inner.set_ssl_mode(input);
275 self
276 }
277 /// <p>The SSL mode used to connect to the endpoint. The default value is <code>none</code>.</p>
278 pub fn get_ssl_mode(&self) -> &::std::option::Option<crate::types::DmsSslModeValue> {
279 self.inner.get_ssl_mode()
280 }
281 /// <p>The Amazon Resource Name (ARN) for the IAM role you want to use to modify the endpoint. The role must allow the <code>iam:PassRole</code> action.</p>
282 pub fn service_access_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
283 self.inner = self.inner.service_access_role_arn(input.into());
284 self
285 }
286 /// <p>The Amazon Resource Name (ARN) for the IAM role you want to use to modify the endpoint. The role must allow the <code>iam:PassRole</code> action.</p>
287 pub fn set_service_access_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
288 self.inner = self.inner.set_service_access_role_arn(input);
289 self
290 }
291 /// <p>The Amazon Resource Name (ARN) for the IAM role you want to use to modify the endpoint. The role must allow the <code>iam:PassRole</code> action.</p>
292 pub fn get_service_access_role_arn(&self) -> &::std::option::Option<::std::string::String> {
293 self.inner.get_service_access_role_arn()
294 }
295 /// <p>The external table definition.</p>
296 pub fn external_table_definition(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
297 self.inner = self.inner.external_table_definition(input.into());
298 self
299 }
300 /// <p>The external table definition.</p>
301 pub fn set_external_table_definition(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
302 self.inner = self.inner.set_external_table_definition(input);
303 self
304 }
305 /// <p>The external table definition.</p>
306 pub fn get_external_table_definition(&self) -> &::std::option::Option<::std::string::String> {
307 self.inner.get_external_table_definition()
308 }
309 /// <p>Settings in JSON format for the target Amazon DynamoDB endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.DynamoDB.html#CHAP_Target.DynamoDB.ObjectMapping">Using Object Mapping to Migrate Data to DynamoDB</a> in the <i>Database Migration Service User Guide.</i></p>
310 pub fn dynamo_db_settings(mut self, input: crate::types::DynamoDbSettings) -> Self {
311 self.inner = self.inner.dynamo_db_settings(input);
312 self
313 }
314 /// <p>Settings in JSON format for the target Amazon DynamoDB endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.DynamoDB.html#CHAP_Target.DynamoDB.ObjectMapping">Using Object Mapping to Migrate Data to DynamoDB</a> in the <i>Database Migration Service User Guide.</i></p>
315 pub fn set_dynamo_db_settings(mut self, input: ::std::option::Option<crate::types::DynamoDbSettings>) -> Self {
316 self.inner = self.inner.set_dynamo_db_settings(input);
317 self
318 }
319 /// <p>Settings in JSON format for the target Amazon DynamoDB endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.DynamoDB.html#CHAP_Target.DynamoDB.ObjectMapping">Using Object Mapping to Migrate Data to DynamoDB</a> in the <i>Database Migration Service User Guide.</i></p>
320 pub fn get_dynamo_db_settings(&self) -> &::std::option::Option<crate::types::DynamoDbSettings> {
321 self.inner.get_dynamo_db_settings()
322 }
323 /// <p>Settings in JSON format for the target Amazon S3 endpoint. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.S3.html#CHAP_Target.S3.Configuring">Extra Connection Attributes When Using Amazon S3 as a Target for DMS</a> in the <i>Database Migration Service User Guide.</i></p>
324 pub fn s3_settings(mut self, input: crate::types::S3Settings) -> Self {
325 self.inner = self.inner.s3_settings(input);
326 self
327 }
328 /// <p>Settings in JSON format for the target Amazon S3 endpoint. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.S3.html#CHAP_Target.S3.Configuring">Extra Connection Attributes When Using Amazon S3 as a Target for DMS</a> in the <i>Database Migration Service User Guide.</i></p>
329 pub fn set_s3_settings(mut self, input: ::std::option::Option<crate::types::S3Settings>) -> Self {
330 self.inner = self.inner.set_s3_settings(input);
331 self
332 }
333 /// <p>Settings in JSON format for the target Amazon S3 endpoint. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.S3.html#CHAP_Target.S3.Configuring">Extra Connection Attributes When Using Amazon S3 as a Target for DMS</a> in the <i>Database Migration Service User Guide.</i></p>
334 pub fn get_s3_settings(&self) -> &::std::option::Option<crate::types::S3Settings> {
335 self.inner.get_s3_settings()
336 }
337 /// <p>The settings in JSON format for the DMS transfer type of source endpoint.</p>
338 /// <p>Attributes include the following:</p>
339 /// <ul>
340 /// <li>
341 /// <p>serviceAccessRoleArn - The Amazon Resource Name (ARN) used by the service access IAM role. The role must allow the <code>iam:PassRole</code> action.</p></li>
342 /// <li>
343 /// <p>BucketName - The name of the S3 bucket to use.</p></li>
344 /// </ul>
345 /// <p>Shorthand syntax for these settings is as follows: <code>ServiceAccessRoleArn=string ,BucketName=string</code></p>
346 /// <p>JSON syntax for these settings is as follows: <code>{ "ServiceAccessRoleArn": "string", "BucketName": "string"} </code></p>
347 pub fn dms_transfer_settings(mut self, input: crate::types::DmsTransferSettings) -> Self {
348 self.inner = self.inner.dms_transfer_settings(input);
349 self
350 }
351 /// <p>The settings in JSON format for the DMS transfer type of source endpoint.</p>
352 /// <p>Attributes include the following:</p>
353 /// <ul>
354 /// <li>
355 /// <p>serviceAccessRoleArn - The Amazon Resource Name (ARN) used by the service access IAM role. The role must allow the <code>iam:PassRole</code> action.</p></li>
356 /// <li>
357 /// <p>BucketName - The name of the S3 bucket to use.</p></li>
358 /// </ul>
359 /// <p>Shorthand syntax for these settings is as follows: <code>ServiceAccessRoleArn=string ,BucketName=string</code></p>
360 /// <p>JSON syntax for these settings is as follows: <code>{ "ServiceAccessRoleArn": "string", "BucketName": "string"} </code></p>
361 pub fn set_dms_transfer_settings(mut self, input: ::std::option::Option<crate::types::DmsTransferSettings>) -> Self {
362 self.inner = self.inner.set_dms_transfer_settings(input);
363 self
364 }
365 /// <p>The settings in JSON format for the DMS transfer type of source endpoint.</p>
366 /// <p>Attributes include the following:</p>
367 /// <ul>
368 /// <li>
369 /// <p>serviceAccessRoleArn - The Amazon Resource Name (ARN) used by the service access IAM role. The role must allow the <code>iam:PassRole</code> action.</p></li>
370 /// <li>
371 /// <p>BucketName - The name of the S3 bucket to use.</p></li>
372 /// </ul>
373 /// <p>Shorthand syntax for these settings is as follows: <code>ServiceAccessRoleArn=string ,BucketName=string</code></p>
374 /// <p>JSON syntax for these settings is as follows: <code>{ "ServiceAccessRoleArn": "string", "BucketName": "string"} </code></p>
375 pub fn get_dms_transfer_settings(&self) -> &::std::option::Option<crate::types::DmsTransferSettings> {
376 self.inner.get_dms_transfer_settings()
377 }
378 /// <p>Settings in JSON format for the source MongoDB endpoint. For more information about the available settings, see the configuration properties section in <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MongoDB.html#CHAP_Source.MongoDB.Configuration">Endpoint configuration settings when using MongoDB as a source for Database Migration Service</a> in the <i>Database Migration Service User Guide.</i></p>
379 pub fn mongo_db_settings(mut self, input: crate::types::MongoDbSettings) -> Self {
380 self.inner = self.inner.mongo_db_settings(input);
381 self
382 }
383 /// <p>Settings in JSON format for the source MongoDB endpoint. For more information about the available settings, see the configuration properties section in <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MongoDB.html#CHAP_Source.MongoDB.Configuration">Endpoint configuration settings when using MongoDB as a source for Database Migration Service</a> in the <i>Database Migration Service User Guide.</i></p>
384 pub fn set_mongo_db_settings(mut self, input: ::std::option::Option<crate::types::MongoDbSettings>) -> Self {
385 self.inner = self.inner.set_mongo_db_settings(input);
386 self
387 }
388 /// <p>Settings in JSON format for the source MongoDB endpoint. For more information about the available settings, see the configuration properties section in <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MongoDB.html#CHAP_Source.MongoDB.Configuration">Endpoint configuration settings when using MongoDB as a source for Database Migration Service</a> in the <i>Database Migration Service User Guide.</i></p>
389 pub fn get_mongo_db_settings(&self) -> &::std::option::Option<crate::types::MongoDbSettings> {
390 self.inner.get_mongo_db_settings()
391 }
392 /// <p>Settings in JSON format for the target endpoint for Amazon Kinesis Data Streams. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kinesis.html#CHAP_Target.Kinesis.ObjectMapping">Using object mapping to migrate data to a Kinesis data stream</a> in the <i>Database Migration Service User Guide.</i></p>
393 pub fn kinesis_settings(mut self, input: crate::types::KinesisSettings) -> Self {
394 self.inner = self.inner.kinesis_settings(input);
395 self
396 }
397 /// <p>Settings in JSON format for the target endpoint for Amazon Kinesis Data Streams. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kinesis.html#CHAP_Target.Kinesis.ObjectMapping">Using object mapping to migrate data to a Kinesis data stream</a> in the <i>Database Migration Service User Guide.</i></p>
398 pub fn set_kinesis_settings(mut self, input: ::std::option::Option<crate::types::KinesisSettings>) -> Self {
399 self.inner = self.inner.set_kinesis_settings(input);
400 self
401 }
402 /// <p>Settings in JSON format for the target endpoint for Amazon Kinesis Data Streams. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kinesis.html#CHAP_Target.Kinesis.ObjectMapping">Using object mapping to migrate data to a Kinesis data stream</a> in the <i>Database Migration Service User Guide.</i></p>
403 pub fn get_kinesis_settings(&self) -> &::std::option::Option<crate::types::KinesisSettings> {
404 self.inner.get_kinesis_settings()
405 }
406 /// <p>Settings in JSON format for the target Apache Kafka endpoint. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kafka.html#CHAP_Target.Kafka.ObjectMapping">Using object mapping to migrate data to a Kafka topic</a> in the <i>Database Migration Service User Guide.</i></p>
407 pub fn kafka_settings(mut self, input: crate::types::KafkaSettings) -> Self {
408 self.inner = self.inner.kafka_settings(input);
409 self
410 }
411 /// <p>Settings in JSON format for the target Apache Kafka endpoint. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kafka.html#CHAP_Target.Kafka.ObjectMapping">Using object mapping to migrate data to a Kafka topic</a> in the <i>Database Migration Service User Guide.</i></p>
412 pub fn set_kafka_settings(mut self, input: ::std::option::Option<crate::types::KafkaSettings>) -> Self {
413 self.inner = self.inner.set_kafka_settings(input);
414 self
415 }
416 /// <p>Settings in JSON format for the target Apache Kafka endpoint. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kafka.html#CHAP_Target.Kafka.ObjectMapping">Using object mapping to migrate data to a Kafka topic</a> in the <i>Database Migration Service User Guide.</i></p>
417 pub fn get_kafka_settings(&self) -> &::std::option::Option<crate::types::KafkaSettings> {
418 self.inner.get_kafka_settings()
419 }
420 /// <p>Settings in JSON format for the target OpenSearch endpoint. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Elasticsearch.html#CHAP_Target.Elasticsearch.Configuration">Extra Connection Attributes When Using OpenSearch as a Target for DMS</a> in the <i>Database Migration Service User Guide.</i></p>
421 pub fn elasticsearch_settings(mut self, input: crate::types::ElasticsearchSettings) -> Self {
422 self.inner = self.inner.elasticsearch_settings(input);
423 self
424 }
425 /// <p>Settings in JSON format for the target OpenSearch endpoint. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Elasticsearch.html#CHAP_Target.Elasticsearch.Configuration">Extra Connection Attributes When Using OpenSearch as a Target for DMS</a> in the <i>Database Migration Service User Guide.</i></p>
426 pub fn set_elasticsearch_settings(mut self, input: ::std::option::Option<crate::types::ElasticsearchSettings>) -> Self {
427 self.inner = self.inner.set_elasticsearch_settings(input);
428 self
429 }
430 /// <p>Settings in JSON format for the target OpenSearch endpoint. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Elasticsearch.html#CHAP_Target.Elasticsearch.Configuration">Extra Connection Attributes When Using OpenSearch as a Target for DMS</a> in the <i>Database Migration Service User Guide.</i></p>
431 pub fn get_elasticsearch_settings(&self) -> &::std::option::Option<crate::types::ElasticsearchSettings> {
432 self.inner.get_elasticsearch_settings()
433 }
434 /// <p>Settings in JSON format for the target Amazon Neptune endpoint. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Neptune.html#CHAP_Target.Neptune.EndpointSettings">Specifying graph-mapping rules using Gremlin and R2RML for Amazon Neptune as a target</a> in the <i>Database Migration Service User Guide.</i></p>
435 pub fn neptune_settings(mut self, input: crate::types::NeptuneSettings) -> Self {
436 self.inner = self.inner.neptune_settings(input);
437 self
438 }
439 /// <p>Settings in JSON format for the target Amazon Neptune endpoint. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Neptune.html#CHAP_Target.Neptune.EndpointSettings">Specifying graph-mapping rules using Gremlin and R2RML for Amazon Neptune as a target</a> in the <i>Database Migration Service User Guide.</i></p>
440 pub fn set_neptune_settings(mut self, input: ::std::option::Option<crate::types::NeptuneSettings>) -> Self {
441 self.inner = self.inner.set_neptune_settings(input);
442 self
443 }
444 /// <p>Settings in JSON format for the target Amazon Neptune endpoint. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Neptune.html#CHAP_Target.Neptune.EndpointSettings">Specifying graph-mapping rules using Gremlin and R2RML for Amazon Neptune as a target</a> in the <i>Database Migration Service User Guide.</i></p>
445 pub fn get_neptune_settings(&self) -> &::std::option::Option<crate::types::NeptuneSettings> {
446 self.inner.get_neptune_settings()
447 }
448 /// <p>Provides information that defines an Amazon Redshift endpoint.</p>
449 pub fn redshift_settings(mut self, input: crate::types::RedshiftSettings) -> Self {
450 self.inner = self.inner.redshift_settings(input);
451 self
452 }
453 /// <p>Provides information that defines an Amazon Redshift endpoint.</p>
454 pub fn set_redshift_settings(mut self, input: ::std::option::Option<crate::types::RedshiftSettings>) -> Self {
455 self.inner = self.inner.set_redshift_settings(input);
456 self
457 }
458 /// <p>Provides information that defines an Amazon Redshift endpoint.</p>
459 pub fn get_redshift_settings(&self) -> &::std::option::Option<crate::types::RedshiftSettings> {
460 self.inner.get_redshift_settings()
461 }
462 /// <p>Settings in JSON format for the source and target PostgreSQL endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.PostgreSQL.html#CHAP_Source.PostgreSQL.ConnectionAttrib">Extra connection attributes when using PostgreSQL as a source for DMS</a> and <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.PostgreSQL.html#CHAP_Target.PostgreSQL.ConnectionAttrib"> Extra connection attributes when using PostgreSQL as a target for DMS</a> in the <i>Database Migration Service User Guide.</i></p>
463 pub fn postgre_sql_settings(mut self, input: crate::types::PostgreSqlSettings) -> Self {
464 self.inner = self.inner.postgre_sql_settings(input);
465 self
466 }
467 /// <p>Settings in JSON format for the source and target PostgreSQL endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.PostgreSQL.html#CHAP_Source.PostgreSQL.ConnectionAttrib">Extra connection attributes when using PostgreSQL as a source for DMS</a> and <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.PostgreSQL.html#CHAP_Target.PostgreSQL.ConnectionAttrib"> Extra connection attributes when using PostgreSQL as a target for DMS</a> in the <i>Database Migration Service User Guide.</i></p>
468 pub fn set_postgre_sql_settings(mut self, input: ::std::option::Option<crate::types::PostgreSqlSettings>) -> Self {
469 self.inner = self.inner.set_postgre_sql_settings(input);
470 self
471 }
472 /// <p>Settings in JSON format for the source and target PostgreSQL endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.PostgreSQL.html#CHAP_Source.PostgreSQL.ConnectionAttrib">Extra connection attributes when using PostgreSQL as a source for DMS</a> and <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.PostgreSQL.html#CHAP_Target.PostgreSQL.ConnectionAttrib"> Extra connection attributes when using PostgreSQL as a target for DMS</a> in the <i>Database Migration Service User Guide.</i></p>
473 pub fn get_postgre_sql_settings(&self) -> &::std::option::Option<crate::types::PostgreSqlSettings> {
474 self.inner.get_postgre_sql_settings()
475 }
476 /// <p>Settings in JSON format for the source and target MySQL endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MySQL.html#CHAP_Source.MySQL.ConnectionAttrib">Extra connection attributes when using MySQL as a source for DMS</a> and <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.MySQL.html#CHAP_Target.MySQL.ConnectionAttrib">Extra connection attributes when using a MySQL-compatible database as a target for DMS</a> in the <i>Database Migration Service User Guide.</i></p>
477 pub fn my_sql_settings(mut self, input: crate::types::MySqlSettings) -> Self {
478 self.inner = self.inner.my_sql_settings(input);
479 self
480 }
481 /// <p>Settings in JSON format for the source and target MySQL endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MySQL.html#CHAP_Source.MySQL.ConnectionAttrib">Extra connection attributes when using MySQL as a source for DMS</a> and <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.MySQL.html#CHAP_Target.MySQL.ConnectionAttrib">Extra connection attributes when using a MySQL-compatible database as a target for DMS</a> in the <i>Database Migration Service User Guide.</i></p>
482 pub fn set_my_sql_settings(mut self, input: ::std::option::Option<crate::types::MySqlSettings>) -> Self {
483 self.inner = self.inner.set_my_sql_settings(input);
484 self
485 }
486 /// <p>Settings in JSON format for the source and target MySQL endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MySQL.html#CHAP_Source.MySQL.ConnectionAttrib">Extra connection attributes when using MySQL as a source for DMS</a> and <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.MySQL.html#CHAP_Target.MySQL.ConnectionAttrib">Extra connection attributes when using a MySQL-compatible database as a target for DMS</a> in the <i>Database Migration Service User Guide.</i></p>
487 pub fn get_my_sql_settings(&self) -> &::std::option::Option<crate::types::MySqlSettings> {
488 self.inner.get_my_sql_settings()
489 }
490 /// <p>Settings in JSON format for the source and target Oracle endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.html#CHAP_Source.Oracle.ConnectionAttrib">Extra connection attributes when using Oracle as a source for DMS</a> and <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Oracle.html#CHAP_Target.Oracle.ConnectionAttrib"> Extra connection attributes when using Oracle as a target for DMS</a> in the <i>Database Migration Service User Guide.</i></p>
491 pub fn oracle_settings(mut self, input: crate::types::OracleSettings) -> Self {
492 self.inner = self.inner.oracle_settings(input);
493 self
494 }
495 /// <p>Settings in JSON format for the source and target Oracle endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.html#CHAP_Source.Oracle.ConnectionAttrib">Extra connection attributes when using Oracle as a source for DMS</a> and <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Oracle.html#CHAP_Target.Oracle.ConnectionAttrib"> Extra connection attributes when using Oracle as a target for DMS</a> in the <i>Database Migration Service User Guide.</i></p>
496 pub fn set_oracle_settings(mut self, input: ::std::option::Option<crate::types::OracleSettings>) -> Self {
497 self.inner = self.inner.set_oracle_settings(input);
498 self
499 }
500 /// <p>Settings in JSON format for the source and target Oracle endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.html#CHAP_Source.Oracle.ConnectionAttrib">Extra connection attributes when using Oracle as a source for DMS</a> and <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Oracle.html#CHAP_Target.Oracle.ConnectionAttrib"> Extra connection attributes when using Oracle as a target for DMS</a> in the <i>Database Migration Service User Guide.</i></p>
501 pub fn get_oracle_settings(&self) -> &::std::option::Option<crate::types::OracleSettings> {
502 self.inner.get_oracle_settings()
503 }
504 /// <p>Settings in JSON format for the source and target SAP ASE endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.SAP.html#CHAP_Source.SAP.ConnectionAttrib">Extra connection attributes when using SAP ASE as a source for DMS</a> and <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.SAP.html#CHAP_Target.SAP.ConnectionAttrib">Extra connection attributes when using SAP ASE as a target for DMS</a> in the <i>Database Migration Service User Guide.</i></p>
505 pub fn sybase_settings(mut self, input: crate::types::SybaseSettings) -> Self {
506 self.inner = self.inner.sybase_settings(input);
507 self
508 }
509 /// <p>Settings in JSON format for the source and target SAP ASE endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.SAP.html#CHAP_Source.SAP.ConnectionAttrib">Extra connection attributes when using SAP ASE as a source for DMS</a> and <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.SAP.html#CHAP_Target.SAP.ConnectionAttrib">Extra connection attributes when using SAP ASE as a target for DMS</a> in the <i>Database Migration Service User Guide.</i></p>
510 pub fn set_sybase_settings(mut self, input: ::std::option::Option<crate::types::SybaseSettings>) -> Self {
511 self.inner = self.inner.set_sybase_settings(input);
512 self
513 }
514 /// <p>Settings in JSON format for the source and target SAP ASE endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.SAP.html#CHAP_Source.SAP.ConnectionAttrib">Extra connection attributes when using SAP ASE as a source for DMS</a> and <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.SAP.html#CHAP_Target.SAP.ConnectionAttrib">Extra connection attributes when using SAP ASE as a target for DMS</a> in the <i>Database Migration Service User Guide.</i></p>
515 pub fn get_sybase_settings(&self) -> &::std::option::Option<crate::types::SybaseSettings> {
516 self.inner.get_sybase_settings()
517 }
518 /// <p>Settings in JSON format for the source and target Microsoft SQL Server endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.SQLServer.html#CHAP_Source.SQLServer.ConnectionAttrib">Extra connection attributes when using SQL Server as a source for DMS</a> and <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.SQLServer.html#CHAP_Target.SQLServer.ConnectionAttrib"> Extra connection attributes when using SQL Server as a target for DMS</a> in the <i>Database Migration Service User Guide.</i></p>
519 pub fn microsoft_sql_server_settings(mut self, input: crate::types::MicrosoftSqlServerSettings) -> Self {
520 self.inner = self.inner.microsoft_sql_server_settings(input);
521 self
522 }
523 /// <p>Settings in JSON format for the source and target Microsoft SQL Server endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.SQLServer.html#CHAP_Source.SQLServer.ConnectionAttrib">Extra connection attributes when using SQL Server as a source for DMS</a> and <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.SQLServer.html#CHAP_Target.SQLServer.ConnectionAttrib"> Extra connection attributes when using SQL Server as a target for DMS</a> in the <i>Database Migration Service User Guide.</i></p>
524 pub fn set_microsoft_sql_server_settings(mut self, input: ::std::option::Option<crate::types::MicrosoftSqlServerSettings>) -> Self {
525 self.inner = self.inner.set_microsoft_sql_server_settings(input);
526 self
527 }
528 /// <p>Settings in JSON format for the source and target Microsoft SQL Server endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.SQLServer.html#CHAP_Source.SQLServer.ConnectionAttrib">Extra connection attributes when using SQL Server as a source for DMS</a> and <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.SQLServer.html#CHAP_Target.SQLServer.ConnectionAttrib"> Extra connection attributes when using SQL Server as a target for DMS</a> in the <i>Database Migration Service User Guide.</i></p>
529 pub fn get_microsoft_sql_server_settings(&self) -> &::std::option::Option<crate::types::MicrosoftSqlServerSettings> {
530 self.inner.get_microsoft_sql_server_settings()
531 }
532 /// <p>Settings in JSON format for the source IBM Db2 LUW endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.DB2.html#CHAP_Source.DB2.ConnectionAttrib">Extra connection attributes when using Db2 LUW as a source for DMS</a> in the <i>Database Migration Service User Guide.</i></p>
533 pub fn ibm_db2_settings(mut self, input: crate::types::IbmDb2Settings) -> Self {
534 self.inner = self.inner.ibm_db2_settings(input);
535 self
536 }
537 /// <p>Settings in JSON format for the source IBM Db2 LUW endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.DB2.html#CHAP_Source.DB2.ConnectionAttrib">Extra connection attributes when using Db2 LUW as a source for DMS</a> in the <i>Database Migration Service User Guide.</i></p>
538 pub fn set_ibm_db2_settings(mut self, input: ::std::option::Option<crate::types::IbmDb2Settings>) -> Self {
539 self.inner = self.inner.set_ibm_db2_settings(input);
540 self
541 }
542 /// <p>Settings in JSON format for the source IBM Db2 LUW endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.DB2.html#CHAP_Source.DB2.ConnectionAttrib">Extra connection attributes when using Db2 LUW as a source for DMS</a> in the <i>Database Migration Service User Guide.</i></p>
543 pub fn get_ibm_db2_settings(&self) -> &::std::option::Option<crate::types::IbmDb2Settings> {
544 self.inner.get_ibm_db2_settings()
545 }
546 /// <p>Settings in JSON format for the source DocumentDB endpoint. For more information about the available settings, see the configuration properties section in <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.DocumentDB.html"> Using DocumentDB as a Target for Database Migration Service </a> in the <i>Database Migration Service User Guide.</i></p>
547 pub fn doc_db_settings(mut self, input: crate::types::DocDbSettings) -> Self {
548 self.inner = self.inner.doc_db_settings(input);
549 self
550 }
551 /// <p>Settings in JSON format for the source DocumentDB endpoint. For more information about the available settings, see the configuration properties section in <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.DocumentDB.html"> Using DocumentDB as a Target for Database Migration Service </a> in the <i>Database Migration Service User Guide.</i></p>
552 pub fn set_doc_db_settings(mut self, input: ::std::option::Option<crate::types::DocDbSettings>) -> Self {
553 self.inner = self.inner.set_doc_db_settings(input);
554 self
555 }
556 /// <p>Settings in JSON format for the source DocumentDB endpoint. For more information about the available settings, see the configuration properties section in <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.DocumentDB.html"> Using DocumentDB as a Target for Database Migration Service </a> in the <i>Database Migration Service User Guide.</i></p>
557 pub fn get_doc_db_settings(&self) -> &::std::option::Option<crate::types::DocDbSettings> {
558 self.inner.get_doc_db_settings()
559 }
560 /// <p>Settings in JSON format for the Redis target endpoint.</p>
561 pub fn redis_settings(mut self, input: crate::types::RedisSettings) -> Self {
562 self.inner = self.inner.redis_settings(input);
563 self
564 }
565 /// <p>Settings in JSON format for the Redis target endpoint.</p>
566 pub fn set_redis_settings(mut self, input: ::std::option::Option<crate::types::RedisSettings>) -> Self {
567 self.inner = self.inner.set_redis_settings(input);
568 self
569 }
570 /// <p>Settings in JSON format for the Redis target endpoint.</p>
571 pub fn get_redis_settings(&self) -> &::std::option::Option<crate::types::RedisSettings> {
572 self.inner.get_redis_settings()
573 }
574 /// <p>If this attribute is Y, the current call to <code>ModifyEndpoint</code> replaces all existing endpoint settings with the exact settings that you specify in this call. If this attribute is N, the current call to <code>ModifyEndpoint</code> does two things:</p>
575 /// <ul>
576 /// <li>
577 /// <p>It replaces any endpoint settings that already exist with new values, for settings with the same names.</p></li>
578 /// <li>
579 /// <p>It creates new endpoint settings that you specify in the call, for settings with different names.</p></li>
580 /// </ul>
581 /// <p>For example, if you call <code>create-endpoint ... --endpoint-settings '{"a":1}' ...</code>, the endpoint has the following endpoint settings: <code>'{"a":1}'</code>. If you then call <code>modify-endpoint ... --endpoint-settings '{"b":2}' ...</code> for the same endpoint, the endpoint has the following settings: <code>'{"a":1,"b":2}'</code>.</p>
582 /// <p>However, suppose that you follow this with a call to <code>modify-endpoint ... --endpoint-settings '{"b":2}' --exact-settings ...</code> for that same endpoint again. Then the endpoint has the following settings: <code>'{"b":2}'</code>. All existing settings are replaced with the exact settings that you specify.</p>
583 pub fn exact_settings(mut self, input: bool) -> Self {
584 self.inner = self.inner.exact_settings(input);
585 self
586 }
587 /// <p>If this attribute is Y, the current call to <code>ModifyEndpoint</code> replaces all existing endpoint settings with the exact settings that you specify in this call. If this attribute is N, the current call to <code>ModifyEndpoint</code> does two things:</p>
588 /// <ul>
589 /// <li>
590 /// <p>It replaces any endpoint settings that already exist with new values, for settings with the same names.</p></li>
591 /// <li>
592 /// <p>It creates new endpoint settings that you specify in the call, for settings with different names.</p></li>
593 /// </ul>
594 /// <p>For example, if you call <code>create-endpoint ... --endpoint-settings '{"a":1}' ...</code>, the endpoint has the following endpoint settings: <code>'{"a":1}'</code>. If you then call <code>modify-endpoint ... --endpoint-settings '{"b":2}' ...</code> for the same endpoint, the endpoint has the following settings: <code>'{"a":1,"b":2}'</code>.</p>
595 /// <p>However, suppose that you follow this with a call to <code>modify-endpoint ... --endpoint-settings '{"b":2}' --exact-settings ...</code> for that same endpoint again. Then the endpoint has the following settings: <code>'{"b":2}'</code>. All existing settings are replaced with the exact settings that you specify.</p>
596 pub fn set_exact_settings(mut self, input: ::std::option::Option<bool>) -> Self {
597 self.inner = self.inner.set_exact_settings(input);
598 self
599 }
600 /// <p>If this attribute is Y, the current call to <code>ModifyEndpoint</code> replaces all existing endpoint settings with the exact settings that you specify in this call. If this attribute is N, the current call to <code>ModifyEndpoint</code> does two things:</p>
601 /// <ul>
602 /// <li>
603 /// <p>It replaces any endpoint settings that already exist with new values, for settings with the same names.</p></li>
604 /// <li>
605 /// <p>It creates new endpoint settings that you specify in the call, for settings with different names.</p></li>
606 /// </ul>
607 /// <p>For example, if you call <code>create-endpoint ... --endpoint-settings '{"a":1}' ...</code>, the endpoint has the following endpoint settings: <code>'{"a":1}'</code>. If you then call <code>modify-endpoint ... --endpoint-settings '{"b":2}' ...</code> for the same endpoint, the endpoint has the following settings: <code>'{"a":1,"b":2}'</code>.</p>
608 /// <p>However, suppose that you follow this with a call to <code>modify-endpoint ... --endpoint-settings '{"b":2}' --exact-settings ...</code> for that same endpoint again. Then the endpoint has the following settings: <code>'{"b":2}'</code>. All existing settings are replaced with the exact settings that you specify.</p>
609 pub fn get_exact_settings(&self) -> &::std::option::Option<bool> {
610 self.inner.get_exact_settings()
611 }
612 /// <p>Settings in JSON format for the source GCP MySQL endpoint.</p>
613 pub fn gcp_my_sql_settings(mut self, input: crate::types::GcpMySqlSettings) -> Self {
614 self.inner = self.inner.gcp_my_sql_settings(input);
615 self
616 }
617 /// <p>Settings in JSON format for the source GCP MySQL endpoint.</p>
618 pub fn set_gcp_my_sql_settings(mut self, input: ::std::option::Option<crate::types::GcpMySqlSettings>) -> Self {
619 self.inner = self.inner.set_gcp_my_sql_settings(input);
620 self
621 }
622 /// <p>Settings in JSON format for the source GCP MySQL endpoint.</p>
623 pub fn get_gcp_my_sql_settings(&self) -> &::std::option::Option<crate::types::GcpMySqlSettings> {
624 self.inner.get_gcp_my_sql_settings()
625 }
626 /// <p>Settings in JSON format for the target Amazon Timestream endpoint.</p>
627 pub fn timestream_settings(mut self, input: crate::types::TimestreamSettings) -> Self {
628 self.inner = self.inner.timestream_settings(input);
629 self
630 }
631 /// <p>Settings in JSON format for the target Amazon Timestream endpoint.</p>
632 pub fn set_timestream_settings(mut self, input: ::std::option::Option<crate::types::TimestreamSettings>) -> Self {
633 self.inner = self.inner.set_timestream_settings(input);
634 self
635 }
636 /// <p>Settings in JSON format for the target Amazon Timestream endpoint.</p>
637 pub fn get_timestream_settings(&self) -> &::std::option::Option<crate::types::TimestreamSettings> {
638 self.inner.get_timestream_settings()
639 }
640}