Skip to main content

aws_sdk_context/operation/update_connection/
_update_connection_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>A connection, as returned by CreateConnection, GetConnection, and UpdateConnection. <code>id</code>, <code>arn</code>, <code>name</code>, <code>dataSource</code>, <code>status</code>, <code>createdAt</code>, and <code>updatedAt</code> are always present. Every other member is optional.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct UpdateConnectionOutput {
7    /// <p>The ID of the connection.</p>
8    pub id: ::std::string::String,
9    /// <p>The ARN of the connection.</p>
10    pub arn: ::std::string::String,
11    /// <p>The name of the connection. You set it when you create the connection and can change it with UpdateConnection. Uses the same constraints as an agent context name. Always present.</p>
12    pub name: ::std::string::String,
13    /// <p>The typed reference to the external data source that this connection binds to. Its <code>type</code>, the authoritative kind of data source, is in <code>dataSource.type</code>.</p>
14    pub data_source: ::std::option::Option<crate::types::DataSourceReference>,
15    /// <p>The hierarchical subset of the data source this connection ingests.</p>
16    pub scope: ::std::option::Option<crate::types::DataSourceScope>,
17    /// <p>Per-connection access configuration: the IAM role used for data access.</p>
18    pub access_config: ::std::option::Option<crate::types::AccessConfig>,
19    /// <p>The effective sync schedule. Present for <code>DATABRICKS</code> and <code>SNOWFLAKE</code> connections (<code>DAILY</code> if you didn't specify one). Absent for <code>GLUE_DATA_CATALOG</code> and <code>BEDROCK_KNOWLEDGE_BASE</code> connections, which are event-driven.</p>
20    pub sync_schedule: ::std::option::Option<crate::types::SyncSchedule>,
21    /// <p>The connection's ingestion configuration (the IAM role a data producer assumes to push into this connection). Absent when no ingestion role is configured.</p>
22    pub ingestion_config: ::std::option::Option<crate::types::IngestionConfig>,
23    /// <p>The AWS Glue connection for each <code>redshiftNamespace</code>, each <code>rdsInstance</code> and <code>rdsDatabase</code> pair, or each <code>snowflakeDatabase</code> in <code>scope</code>. Absent when none is configured.</p>
24    pub glue_connection_mappings: ::std::option::Option<::std::vec::Vec<crate::types::GlueConnectionMapping>>,
25    /// <p>The connection's status. Valid values:</p>
26    /// <ul>
27    /// <li>
28    /// <p><code>CREATING</code> - Validation or provisioning is still in progress.</p></li>
29    /// <li>
30    /// <p><code>ACTIVE</code> - The data source is reachable and, for a <code>DATABRICKS</code> or <code>SNOWFLAKE</code> connection, AWS Glue has provisioned catalog synchronization and returned its crawler ARN. This doesn't mean that a crawl has started or completed.</p></li>
31    /// <li>
32    /// <p><code>UPDATING</code> - The connection is being updated.</p></li>
33    /// <li>
34    /// <p><code>DELETING</code> - The connection is being deleted.</p></li>
35    /// <li>
36    /// <p><code>FAILED</code> - Validation or provisioning failed, and the connection can't recover.</p></li>
37    /// </ul>
38    pub status: crate::types::ConnectionStatus,
39    /// <p>The reason the connection is FAILED. Absent in every other status.</p>
40    pub failure: ::std::option::Option<crate::types::ConnectionFailure>,
41    /// <p>The last milestone a third-party connection's lifecycle reached. Present in two statuses: CREATING, where it shows the resources provisioned so far, and DELETING, where it shows the resources removed so far. Absent in every other status and while nothing has been done yet in the current direction. CREATING at GLUE_CONNECTION_VALIDATED on a connection created with <code>publish: false</code> means it is waiting for UpdateConnection <code>publish: true</code>.</p>
42    pub sub_status: ::std::option::Option<crate::types::ResourceSubStatus>,
43    /// <p>The date and time when the connection was created.</p>
44    pub created_at: ::aws_smithy_types::DateTime,
45    /// <p>When the resource last changed. Equal to <code>createdAt</code> until the first update.</p>
46    pub updated_at: ::aws_smithy_types::DateTime,
47    _request_id: Option<String>,
48}
49impl UpdateConnectionOutput {
50    /// <p>The ID of the connection.</p>
51    pub fn id(&self) -> &str {
52        use std::ops::Deref;
53        self.id.deref()
54    }
55    /// <p>The ARN of the connection.</p>
56    pub fn arn(&self) -> &str {
57        use std::ops::Deref;
58        self.arn.deref()
59    }
60    /// <p>The name of the connection. You set it when you create the connection and can change it with UpdateConnection. Uses the same constraints as an agent context name. Always present.</p>
61    pub fn name(&self) -> &str {
62        use std::ops::Deref;
63        self.name.deref()
64    }
65    /// <p>The typed reference to the external data source that this connection binds to. Its <code>type</code>, the authoritative kind of data source, is in <code>dataSource.type</code>.</p>
66    pub fn data_source(&self) -> ::std::option::Option<&crate::types::DataSourceReference> {
67        self.data_source.as_ref()
68    }
69    /// <p>The hierarchical subset of the data source this connection ingests.</p>
70    pub fn scope(&self) -> ::std::option::Option<&crate::types::DataSourceScope> {
71        self.scope.as_ref()
72    }
73    /// <p>Per-connection access configuration: the IAM role used for data access.</p>
74    pub fn access_config(&self) -> ::std::option::Option<&crate::types::AccessConfig> {
75        self.access_config.as_ref()
76    }
77    /// <p>The effective sync schedule. Present for <code>DATABRICKS</code> and <code>SNOWFLAKE</code> connections (<code>DAILY</code> if you didn't specify one). Absent for <code>GLUE_DATA_CATALOG</code> and <code>BEDROCK_KNOWLEDGE_BASE</code> connections, which are event-driven.</p>
78    pub fn sync_schedule(&self) -> ::std::option::Option<&crate::types::SyncSchedule> {
79        self.sync_schedule.as_ref()
80    }
81    /// <p>The connection's ingestion configuration (the IAM role a data producer assumes to push into this connection). Absent when no ingestion role is configured.</p>
82    pub fn ingestion_config(&self) -> ::std::option::Option<&crate::types::IngestionConfig> {
83        self.ingestion_config.as_ref()
84    }
85    /// <p>The AWS Glue connection for each <code>redshiftNamespace</code>, each <code>rdsInstance</code> and <code>rdsDatabase</code> pair, or each <code>snowflakeDatabase</code> in <code>scope</code>. Absent when none is configured.</p>
86    ///
87    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.glue_connection_mappings.is_none()`.
88    pub fn glue_connection_mappings(&self) -> &[crate::types::GlueConnectionMapping] {
89        self.glue_connection_mappings.as_deref().unwrap_or_default()
90    }
91    /// <p>The connection's status. Valid values:</p>
92    /// <ul>
93    /// <li>
94    /// <p><code>CREATING</code> - Validation or provisioning is still in progress.</p></li>
95    /// <li>
96    /// <p><code>ACTIVE</code> - The data source is reachable and, for a <code>DATABRICKS</code> or <code>SNOWFLAKE</code> connection, AWS Glue has provisioned catalog synchronization and returned its crawler ARN. This doesn't mean that a crawl has started or completed.</p></li>
97    /// <li>
98    /// <p><code>UPDATING</code> - The connection is being updated.</p></li>
99    /// <li>
100    /// <p><code>DELETING</code> - The connection is being deleted.</p></li>
101    /// <li>
102    /// <p><code>FAILED</code> - Validation or provisioning failed, and the connection can't recover.</p></li>
103    /// </ul>
104    pub fn status(&self) -> &crate::types::ConnectionStatus {
105        &self.status
106    }
107    /// <p>The reason the connection is FAILED. Absent in every other status.</p>
108    pub fn failure(&self) -> ::std::option::Option<&crate::types::ConnectionFailure> {
109        self.failure.as_ref()
110    }
111    /// <p>The last milestone a third-party connection's lifecycle reached. Present in two statuses: CREATING, where it shows the resources provisioned so far, and DELETING, where it shows the resources removed so far. Absent in every other status and while nothing has been done yet in the current direction. CREATING at GLUE_CONNECTION_VALIDATED on a connection created with <code>publish: false</code> means it is waiting for UpdateConnection <code>publish: true</code>.</p>
112    pub fn sub_status(&self) -> ::std::option::Option<&crate::types::ResourceSubStatus> {
113        self.sub_status.as_ref()
114    }
115    /// <p>The date and time when the connection was created.</p>
116    pub fn created_at(&self) -> &::aws_smithy_types::DateTime {
117        &self.created_at
118    }
119    /// <p>When the resource last changed. Equal to <code>createdAt</code> until the first update.</p>
120    pub fn updated_at(&self) -> &::aws_smithy_types::DateTime {
121        &self.updated_at
122    }
123}
124impl ::aws_types::request_id::RequestId for UpdateConnectionOutput {
125    fn request_id(&self) -> Option<&str> {
126        self._request_id.as_deref()
127    }
128}
129impl UpdateConnectionOutput {
130    /// Creates a new builder-style object to manufacture [`UpdateConnectionOutput`](crate::operation::update_connection::UpdateConnectionOutput).
131    pub fn builder() -> crate::operation::update_connection::builders::UpdateConnectionOutputBuilder {
132        crate::operation::update_connection::builders::UpdateConnectionOutputBuilder::default()
133    }
134}
135
136/// A builder for [`UpdateConnectionOutput`](crate::operation::update_connection::UpdateConnectionOutput).
137#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
138#[non_exhaustive]
139pub struct UpdateConnectionOutputBuilder {
140    pub(crate) id: ::std::option::Option<::std::string::String>,
141    pub(crate) arn: ::std::option::Option<::std::string::String>,
142    pub(crate) name: ::std::option::Option<::std::string::String>,
143    pub(crate) data_source: ::std::option::Option<crate::types::DataSourceReference>,
144    pub(crate) scope: ::std::option::Option<crate::types::DataSourceScope>,
145    pub(crate) access_config: ::std::option::Option<crate::types::AccessConfig>,
146    pub(crate) sync_schedule: ::std::option::Option<crate::types::SyncSchedule>,
147    pub(crate) ingestion_config: ::std::option::Option<crate::types::IngestionConfig>,
148    pub(crate) glue_connection_mappings: ::std::option::Option<::std::vec::Vec<crate::types::GlueConnectionMapping>>,
149    pub(crate) status: ::std::option::Option<crate::types::ConnectionStatus>,
150    pub(crate) failure: ::std::option::Option<crate::types::ConnectionFailure>,
151    pub(crate) sub_status: ::std::option::Option<crate::types::ResourceSubStatus>,
152    pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
153    pub(crate) updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
154    _request_id: Option<String>,
155}
156impl UpdateConnectionOutputBuilder {
157    /// <p>The ID of the connection.</p>
158    /// This field is required.
159    pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
160        self.id = ::std::option::Option::Some(input.into());
161        self
162    }
163    /// <p>The ID of the connection.</p>
164    pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
165        self.id = input;
166        self
167    }
168    /// <p>The ID of the connection.</p>
169    pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
170        &self.id
171    }
172    /// <p>The ARN of the connection.</p>
173    /// This field is required.
174    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
175        self.arn = ::std::option::Option::Some(input.into());
176        self
177    }
178    /// <p>The ARN of the connection.</p>
179    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
180        self.arn = input;
181        self
182    }
183    /// <p>The ARN of the connection.</p>
184    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
185        &self.arn
186    }
187    /// <p>The name of the connection. You set it when you create the connection and can change it with UpdateConnection. Uses the same constraints as an agent context name. Always present.</p>
188    /// This field is required.
189    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
190        self.name = ::std::option::Option::Some(input.into());
191        self
192    }
193    /// <p>The name of the connection. You set it when you create the connection and can change it with UpdateConnection. Uses the same constraints as an agent context name. Always present.</p>
194    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
195        self.name = input;
196        self
197    }
198    /// <p>The name of the connection. You set it when you create the connection and can change it with UpdateConnection. Uses the same constraints as an agent context name. Always present.</p>
199    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
200        &self.name
201    }
202    /// <p>The typed reference to the external data source that this connection binds to. Its <code>type</code>, the authoritative kind of data source, is in <code>dataSource.type</code>.</p>
203    /// This field is required.
204    pub fn data_source(mut self, input: crate::types::DataSourceReference) -> Self {
205        self.data_source = ::std::option::Option::Some(input);
206        self
207    }
208    /// <p>The typed reference to the external data source that this connection binds to. Its <code>type</code>, the authoritative kind of data source, is in <code>dataSource.type</code>.</p>
209    pub fn set_data_source(mut self, input: ::std::option::Option<crate::types::DataSourceReference>) -> Self {
210        self.data_source = input;
211        self
212    }
213    /// <p>The typed reference to the external data source that this connection binds to. Its <code>type</code>, the authoritative kind of data source, is in <code>dataSource.type</code>.</p>
214    pub fn get_data_source(&self) -> &::std::option::Option<crate::types::DataSourceReference> {
215        &self.data_source
216    }
217    /// <p>The hierarchical subset of the data source this connection ingests.</p>
218    pub fn scope(mut self, input: crate::types::DataSourceScope) -> Self {
219        self.scope = ::std::option::Option::Some(input);
220        self
221    }
222    /// <p>The hierarchical subset of the data source this connection ingests.</p>
223    pub fn set_scope(mut self, input: ::std::option::Option<crate::types::DataSourceScope>) -> Self {
224        self.scope = input;
225        self
226    }
227    /// <p>The hierarchical subset of the data source this connection ingests.</p>
228    pub fn get_scope(&self) -> &::std::option::Option<crate::types::DataSourceScope> {
229        &self.scope
230    }
231    /// <p>Per-connection access configuration: the IAM role used for data access.</p>
232    pub fn access_config(mut self, input: crate::types::AccessConfig) -> Self {
233        self.access_config = ::std::option::Option::Some(input);
234        self
235    }
236    /// <p>Per-connection access configuration: the IAM role used for data access.</p>
237    pub fn set_access_config(mut self, input: ::std::option::Option<crate::types::AccessConfig>) -> Self {
238        self.access_config = input;
239        self
240    }
241    /// <p>Per-connection access configuration: the IAM role used for data access.</p>
242    pub fn get_access_config(&self) -> &::std::option::Option<crate::types::AccessConfig> {
243        &self.access_config
244    }
245    /// <p>The effective sync schedule. Present for <code>DATABRICKS</code> and <code>SNOWFLAKE</code> connections (<code>DAILY</code> if you didn't specify one). Absent for <code>GLUE_DATA_CATALOG</code> and <code>BEDROCK_KNOWLEDGE_BASE</code> connections, which are event-driven.</p>
246    pub fn sync_schedule(mut self, input: crate::types::SyncSchedule) -> Self {
247        self.sync_schedule = ::std::option::Option::Some(input);
248        self
249    }
250    /// <p>The effective sync schedule. Present for <code>DATABRICKS</code> and <code>SNOWFLAKE</code> connections (<code>DAILY</code> if you didn't specify one). Absent for <code>GLUE_DATA_CATALOG</code> and <code>BEDROCK_KNOWLEDGE_BASE</code> connections, which are event-driven.</p>
251    pub fn set_sync_schedule(mut self, input: ::std::option::Option<crate::types::SyncSchedule>) -> Self {
252        self.sync_schedule = input;
253        self
254    }
255    /// <p>The effective sync schedule. Present for <code>DATABRICKS</code> and <code>SNOWFLAKE</code> connections (<code>DAILY</code> if you didn't specify one). Absent for <code>GLUE_DATA_CATALOG</code> and <code>BEDROCK_KNOWLEDGE_BASE</code> connections, which are event-driven.</p>
256    pub fn get_sync_schedule(&self) -> &::std::option::Option<crate::types::SyncSchedule> {
257        &self.sync_schedule
258    }
259    /// <p>The connection's ingestion configuration (the IAM role a data producer assumes to push into this connection). Absent when no ingestion role is configured.</p>
260    pub fn ingestion_config(mut self, input: crate::types::IngestionConfig) -> Self {
261        self.ingestion_config = ::std::option::Option::Some(input);
262        self
263    }
264    /// <p>The connection's ingestion configuration (the IAM role a data producer assumes to push into this connection). Absent when no ingestion role is configured.</p>
265    pub fn set_ingestion_config(mut self, input: ::std::option::Option<crate::types::IngestionConfig>) -> Self {
266        self.ingestion_config = input;
267        self
268    }
269    /// <p>The connection's ingestion configuration (the IAM role a data producer assumes to push into this connection). Absent when no ingestion role is configured.</p>
270    pub fn get_ingestion_config(&self) -> &::std::option::Option<crate::types::IngestionConfig> {
271        &self.ingestion_config
272    }
273    /// Appends an item to `glue_connection_mappings`.
274    ///
275    /// To override the contents of this collection use [`set_glue_connection_mappings`](Self::set_glue_connection_mappings).
276    ///
277    /// <p>The AWS Glue connection for each <code>redshiftNamespace</code>, each <code>rdsInstance</code> and <code>rdsDatabase</code> pair, or each <code>snowflakeDatabase</code> in <code>scope</code>. Absent when none is configured.</p>
278    pub fn glue_connection_mappings(mut self, input: crate::types::GlueConnectionMapping) -> Self {
279        let mut v = self.glue_connection_mappings.unwrap_or_default();
280        v.push(input);
281        self.glue_connection_mappings = ::std::option::Option::Some(v);
282        self
283    }
284    /// <p>The AWS Glue connection for each <code>redshiftNamespace</code>, each <code>rdsInstance</code> and <code>rdsDatabase</code> pair, or each <code>snowflakeDatabase</code> in <code>scope</code>. Absent when none is configured.</p>
285    pub fn set_glue_connection_mappings(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::GlueConnectionMapping>>) -> Self {
286        self.glue_connection_mappings = input;
287        self
288    }
289    /// <p>The AWS Glue connection for each <code>redshiftNamespace</code>, each <code>rdsInstance</code> and <code>rdsDatabase</code> pair, or each <code>snowflakeDatabase</code> in <code>scope</code>. Absent when none is configured.</p>
290    pub fn get_glue_connection_mappings(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::GlueConnectionMapping>> {
291        &self.glue_connection_mappings
292    }
293    /// <p>The connection's status. Valid values:</p>
294    /// <ul>
295    /// <li>
296    /// <p><code>CREATING</code> - Validation or provisioning is still in progress.</p></li>
297    /// <li>
298    /// <p><code>ACTIVE</code> - The data source is reachable and, for a <code>DATABRICKS</code> or <code>SNOWFLAKE</code> connection, AWS Glue has provisioned catalog synchronization and returned its crawler ARN. This doesn't mean that a crawl has started or completed.</p></li>
299    /// <li>
300    /// <p><code>UPDATING</code> - The connection is being updated.</p></li>
301    /// <li>
302    /// <p><code>DELETING</code> - The connection is being deleted.</p></li>
303    /// <li>
304    /// <p><code>FAILED</code> - Validation or provisioning failed, and the connection can't recover.</p></li>
305    /// </ul>
306    /// This field is required.
307    pub fn status(mut self, input: crate::types::ConnectionStatus) -> Self {
308        self.status = ::std::option::Option::Some(input);
309        self
310    }
311    /// <p>The connection's status. Valid values:</p>
312    /// <ul>
313    /// <li>
314    /// <p><code>CREATING</code> - Validation or provisioning is still in progress.</p></li>
315    /// <li>
316    /// <p><code>ACTIVE</code> - The data source is reachable and, for a <code>DATABRICKS</code> or <code>SNOWFLAKE</code> connection, AWS Glue has provisioned catalog synchronization and returned its crawler ARN. This doesn't mean that a crawl has started or completed.</p></li>
317    /// <li>
318    /// <p><code>UPDATING</code> - The connection is being updated.</p></li>
319    /// <li>
320    /// <p><code>DELETING</code> - The connection is being deleted.</p></li>
321    /// <li>
322    /// <p><code>FAILED</code> - Validation or provisioning failed, and the connection can't recover.</p></li>
323    /// </ul>
324    pub fn set_status(mut self, input: ::std::option::Option<crate::types::ConnectionStatus>) -> Self {
325        self.status = input;
326        self
327    }
328    /// <p>The connection's status. Valid values:</p>
329    /// <ul>
330    /// <li>
331    /// <p><code>CREATING</code> - Validation or provisioning is still in progress.</p></li>
332    /// <li>
333    /// <p><code>ACTIVE</code> - The data source is reachable and, for a <code>DATABRICKS</code> or <code>SNOWFLAKE</code> connection, AWS Glue has provisioned catalog synchronization and returned its crawler ARN. This doesn't mean that a crawl has started or completed.</p></li>
334    /// <li>
335    /// <p><code>UPDATING</code> - The connection is being updated.</p></li>
336    /// <li>
337    /// <p><code>DELETING</code> - The connection is being deleted.</p></li>
338    /// <li>
339    /// <p><code>FAILED</code> - Validation or provisioning failed, and the connection can't recover.</p></li>
340    /// </ul>
341    pub fn get_status(&self) -> &::std::option::Option<crate::types::ConnectionStatus> {
342        &self.status
343    }
344    /// <p>The reason the connection is FAILED. Absent in every other status.</p>
345    pub fn failure(mut self, input: crate::types::ConnectionFailure) -> Self {
346        self.failure = ::std::option::Option::Some(input);
347        self
348    }
349    /// <p>The reason the connection is FAILED. Absent in every other status.</p>
350    pub fn set_failure(mut self, input: ::std::option::Option<crate::types::ConnectionFailure>) -> Self {
351        self.failure = input;
352        self
353    }
354    /// <p>The reason the connection is FAILED. Absent in every other status.</p>
355    pub fn get_failure(&self) -> &::std::option::Option<crate::types::ConnectionFailure> {
356        &self.failure
357    }
358    /// <p>The last milestone a third-party connection's lifecycle reached. Present in two statuses: CREATING, where it shows the resources provisioned so far, and DELETING, where it shows the resources removed so far. Absent in every other status and while nothing has been done yet in the current direction. CREATING at GLUE_CONNECTION_VALIDATED on a connection created with <code>publish: false</code> means it is waiting for UpdateConnection <code>publish: true</code>.</p>
359    pub fn sub_status(mut self, input: crate::types::ResourceSubStatus) -> Self {
360        self.sub_status = ::std::option::Option::Some(input);
361        self
362    }
363    /// <p>The last milestone a third-party connection's lifecycle reached. Present in two statuses: CREATING, where it shows the resources provisioned so far, and DELETING, where it shows the resources removed so far. Absent in every other status and while nothing has been done yet in the current direction. CREATING at GLUE_CONNECTION_VALIDATED on a connection created with <code>publish: false</code> means it is waiting for UpdateConnection <code>publish: true</code>.</p>
364    pub fn set_sub_status(mut self, input: ::std::option::Option<crate::types::ResourceSubStatus>) -> Self {
365        self.sub_status = input;
366        self
367    }
368    /// <p>The last milestone a third-party connection's lifecycle reached. Present in two statuses: CREATING, where it shows the resources provisioned so far, and DELETING, where it shows the resources removed so far. Absent in every other status and while nothing has been done yet in the current direction. CREATING at GLUE_CONNECTION_VALIDATED on a connection created with <code>publish: false</code> means it is waiting for UpdateConnection <code>publish: true</code>.</p>
369    pub fn get_sub_status(&self) -> &::std::option::Option<crate::types::ResourceSubStatus> {
370        &self.sub_status
371    }
372    /// <p>The date and time when the connection was created.</p>
373    /// This field is required.
374    pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
375        self.created_at = ::std::option::Option::Some(input);
376        self
377    }
378    /// <p>The date and time when the connection was created.</p>
379    pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
380        self.created_at = input;
381        self
382    }
383    /// <p>The date and time when the connection was created.</p>
384    pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
385        &self.created_at
386    }
387    /// <p>When the resource last changed. Equal to <code>createdAt</code> until the first update.</p>
388    /// This field is required.
389    pub fn updated_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
390        self.updated_at = ::std::option::Option::Some(input);
391        self
392    }
393    /// <p>When the resource last changed. Equal to <code>createdAt</code> until the first update.</p>
394    pub fn set_updated_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
395        self.updated_at = input;
396        self
397    }
398    /// <p>When the resource last changed. Equal to <code>createdAt</code> until the first update.</p>
399    pub fn get_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
400        &self.updated_at
401    }
402    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
403        self._request_id = Some(request_id.into());
404        self
405    }
406
407    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
408        self._request_id = request_id;
409        self
410    }
411    /// Consumes the builder and constructs a [`UpdateConnectionOutput`](crate::operation::update_connection::UpdateConnectionOutput).
412    /// This method will fail if any of the following fields are not set:
413    /// - [`id`](crate::operation::update_connection::builders::UpdateConnectionOutputBuilder::id)
414    /// - [`arn`](crate::operation::update_connection::builders::UpdateConnectionOutputBuilder::arn)
415    /// - [`name`](crate::operation::update_connection::builders::UpdateConnectionOutputBuilder::name)
416    /// - [`status`](crate::operation::update_connection::builders::UpdateConnectionOutputBuilder::status)
417    /// - [`created_at`](crate::operation::update_connection::builders::UpdateConnectionOutputBuilder::created_at)
418    /// - [`updated_at`](crate::operation::update_connection::builders::UpdateConnectionOutputBuilder::updated_at)
419    pub fn build(
420        self,
421    ) -> ::std::result::Result<crate::operation::update_connection::UpdateConnectionOutput, ::aws_smithy_types::error::operation::BuildError> {
422        ::std::result::Result::Ok(crate::operation::update_connection::UpdateConnectionOutput {
423            id: self.id.ok_or_else(|| {
424                ::aws_smithy_types::error::operation::BuildError::missing_field(
425                    "id",
426                    "id was not specified but it is required when building UpdateConnectionOutput",
427                )
428            })?,
429            arn: self.arn.ok_or_else(|| {
430                ::aws_smithy_types::error::operation::BuildError::missing_field(
431                    "arn",
432                    "arn was not specified but it is required when building UpdateConnectionOutput",
433                )
434            })?,
435            name: self.name.ok_or_else(|| {
436                ::aws_smithy_types::error::operation::BuildError::missing_field(
437                    "name",
438                    "name was not specified but it is required when building UpdateConnectionOutput",
439                )
440            })?,
441            data_source: self.data_source,
442            scope: self.scope,
443            access_config: self.access_config,
444            sync_schedule: self.sync_schedule,
445            ingestion_config: self.ingestion_config,
446            glue_connection_mappings: self.glue_connection_mappings,
447            status: self.status.ok_or_else(|| {
448                ::aws_smithy_types::error::operation::BuildError::missing_field(
449                    "status",
450                    "status was not specified but it is required when building UpdateConnectionOutput",
451                )
452            })?,
453            failure: self.failure,
454            sub_status: self.sub_status,
455            created_at: self.created_at.ok_or_else(|| {
456                ::aws_smithy_types::error::operation::BuildError::missing_field(
457                    "created_at",
458                    "created_at was not specified but it is required when building UpdateConnectionOutput",
459                )
460            })?,
461            updated_at: self.updated_at.ok_or_else(|| {
462                ::aws_smithy_types::error::operation::BuildError::missing_field(
463                    "updated_at",
464                    "updated_at was not specified but it is required when building UpdateConnectionOutput",
465                )
466            })?,
467            _request_id: self._request_id,
468        })
469    }
470}