aws-sdk-ssmsap 1.106.0

AWS SDK for AWS Systems Manager for SAP
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>The SAP component of your application.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Component {
    /// <p>The ID of the component.</p>
    pub component_id: ::std::option::Option<::std::string::String>,
    /// <p>The SAP System Identifier of the application component.</p>
    pub sid: ::std::option::Option<::std::string::String>,
    /// <p>The SAP system number of the application component.</p>
    pub system_number: ::std::option::Option<::std::string::String>,
    /// <p>The parent component of a highly available environment. For example, in a highly available SAP on AWS workload, the parent component consists of the entire setup, including the child components.</p>
    pub parent_component: ::std::option::Option<::std::string::String>,
    /// <p>The child components of a highly available environment. For example, in a highly available SAP on AWS workload, the child component consists of the primary and secondar instances.</p>
    pub child_components: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <p>The ID of the application.</p>
    pub application_id: ::std::option::Option<::std::string::String>,
    /// <p>The type of the component.</p>
    pub component_type: ::std::option::Option<crate::types::ComponentType>,
    /// <p>The status of the component.</p>
    /// <ul>
    /// <li>
    /// <p>ACTIVATED - this status has been deprecated.</p></li>
    /// <li>
    /// <p>STARTING - the component is in the process of being started.</p></li>
    /// <li>
    /// <p>STOPPED - the component is not running.</p></li>
    /// <li>
    /// <p>STOPPING - the component is in the process of being stopped.</p></li>
    /// <li>
    /// <p>RUNNING - the component is running.</p></li>
    /// <li>
    /// <p>RUNNING_WITH_ERROR - one or more child component(s) of the parent component is not running. Call <a href="https://docs.aws.amazon.com/ssmsap/latest/APIReference/API_GetComponent.html"> <code>GetComponent</code> </a> to review the status of each child component.</p></li>
    /// <li>
    /// <p>UNDEFINED - AWS Systems Manager for SAP cannot provide the component status based on the discovered information. Verify your SAP application.</p></li>
    /// </ul>
    pub status: ::std::option::Option<crate::types::ComponentStatus>,
    /// <p>The hostname of the component.</p>
    pub sap_hostname: ::std::option::Option<::std::string::String>,
    /// <p>The SAP feature of the component.</p>
    pub sap_feature: ::std::option::Option<::std::string::String>,
    /// <p>The kernel version of the component.</p>
    pub sap_kernel_version: ::std::option::Option<::std::string::String>,
    /// <p>The SAP HANA version of the component.</p>
    pub hdb_version: ::std::option::Option<::std::string::String>,
    /// <p>Details of the SAP HANA system replication for the component.</p>
    pub resilience: ::std::option::Option<crate::types::Resilience>,
    /// <p>The associated host of the component.</p>
    pub associated_host: ::std::option::Option<crate::types::AssociatedHost>,
    /// <p>The SAP HANA databases of the component.</p>
    pub databases: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <p>The hosts of the component.</p>
    #[deprecated(note = "This shape is no longer used. Please use AssociatedHost.")]
    pub hosts: ::std::option::Option<::std::vec::Vec<crate::types::Host>>,
    /// <p>The primary host of the component.</p>
    #[deprecated(note = "This shape is no longer used. Please use AssociatedHost.")]
    pub primary_host: ::std::option::Option<::std::string::String>,
    /// <p>The connection specifications for the database of the component.</p>
    pub database_connection: ::std::option::Option<crate::types::DatabaseConnection>,
    /// <p>The time at which the component was last updated.</p>
    pub last_updated: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The Amazon Resource Name (ARN) of the component.</p>
    pub arn: ::std::option::Option<::std::string::String>,
}
impl Component {
    /// <p>The ID of the component.</p>
    pub fn component_id(&self) -> ::std::option::Option<&str> {
        self.component_id.as_deref()
    }
    /// <p>The SAP System Identifier of the application component.</p>
    pub fn sid(&self) -> ::std::option::Option<&str> {
        self.sid.as_deref()
    }
    /// <p>The SAP system number of the application component.</p>
    pub fn system_number(&self) -> ::std::option::Option<&str> {
        self.system_number.as_deref()
    }
    /// <p>The parent component of a highly available environment. For example, in a highly available SAP on AWS workload, the parent component consists of the entire setup, including the child components.</p>
    pub fn parent_component(&self) -> ::std::option::Option<&str> {
        self.parent_component.as_deref()
    }
    /// <p>The child components of a highly available environment. For example, in a highly available SAP on AWS workload, the child component consists of the primary and secondar instances.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.child_components.is_none()`.
    pub fn child_components(&self) -> &[::std::string::String] {
        self.child_components.as_deref().unwrap_or_default()
    }
    /// <p>The ID of the application.</p>
    pub fn application_id(&self) -> ::std::option::Option<&str> {
        self.application_id.as_deref()
    }
    /// <p>The type of the component.</p>
    pub fn component_type(&self) -> ::std::option::Option<&crate::types::ComponentType> {
        self.component_type.as_ref()
    }
    /// <p>The status of the component.</p>
    /// <ul>
    /// <li>
    /// <p>ACTIVATED - this status has been deprecated.</p></li>
    /// <li>
    /// <p>STARTING - the component is in the process of being started.</p></li>
    /// <li>
    /// <p>STOPPED - the component is not running.</p></li>
    /// <li>
    /// <p>STOPPING - the component is in the process of being stopped.</p></li>
    /// <li>
    /// <p>RUNNING - the component is running.</p></li>
    /// <li>
    /// <p>RUNNING_WITH_ERROR - one or more child component(s) of the parent component is not running. Call <a href="https://docs.aws.amazon.com/ssmsap/latest/APIReference/API_GetComponent.html"> <code>GetComponent</code> </a> to review the status of each child component.</p></li>
    /// <li>
    /// <p>UNDEFINED - AWS Systems Manager for SAP cannot provide the component status based on the discovered information. Verify your SAP application.</p></li>
    /// </ul>
    pub fn status(&self) -> ::std::option::Option<&crate::types::ComponentStatus> {
        self.status.as_ref()
    }
    /// <p>The hostname of the component.</p>
    pub fn sap_hostname(&self) -> ::std::option::Option<&str> {
        self.sap_hostname.as_deref()
    }
    /// <p>The SAP feature of the component.</p>
    pub fn sap_feature(&self) -> ::std::option::Option<&str> {
        self.sap_feature.as_deref()
    }
    /// <p>The kernel version of the component.</p>
    pub fn sap_kernel_version(&self) -> ::std::option::Option<&str> {
        self.sap_kernel_version.as_deref()
    }
    /// <p>The SAP HANA version of the component.</p>
    pub fn hdb_version(&self) -> ::std::option::Option<&str> {
        self.hdb_version.as_deref()
    }
    /// <p>Details of the SAP HANA system replication for the component.</p>
    pub fn resilience(&self) -> ::std::option::Option<&crate::types::Resilience> {
        self.resilience.as_ref()
    }
    /// <p>The associated host of the component.</p>
    pub fn associated_host(&self) -> ::std::option::Option<&crate::types::AssociatedHost> {
        self.associated_host.as_ref()
    }
    /// <p>The SAP HANA databases of the component.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.databases.is_none()`.
    pub fn databases(&self) -> &[::std::string::String] {
        self.databases.as_deref().unwrap_or_default()
    }
    /// <p>The hosts of the component.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.hosts.is_none()`.
    #[deprecated(note = "This shape is no longer used. Please use AssociatedHost.")]
    pub fn hosts(&self) -> &[crate::types::Host] {
        self.hosts.as_deref().unwrap_or_default()
    }
    /// <p>The primary host of the component.</p>
    #[deprecated(note = "This shape is no longer used. Please use AssociatedHost.")]
    pub fn primary_host(&self) -> ::std::option::Option<&str> {
        self.primary_host.as_deref()
    }
    /// <p>The connection specifications for the database of the component.</p>
    pub fn database_connection(&self) -> ::std::option::Option<&crate::types::DatabaseConnection> {
        self.database_connection.as_ref()
    }
    /// <p>The time at which the component was last updated.</p>
    pub fn last_updated(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.last_updated.as_ref()
    }
    /// <p>The Amazon Resource Name (ARN) of the component.</p>
    pub fn arn(&self) -> ::std::option::Option<&str> {
        self.arn.as_deref()
    }
}
impl Component {
    /// Creates a new builder-style object to manufacture [`Component`](crate::types::Component).
    pub fn builder() -> crate::types::builders::ComponentBuilder {
        crate::types::builders::ComponentBuilder::default()
    }
}

/// A builder for [`Component`](crate::types::Component).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ComponentBuilder {
    pub(crate) component_id: ::std::option::Option<::std::string::String>,
    pub(crate) sid: ::std::option::Option<::std::string::String>,
    pub(crate) system_number: ::std::option::Option<::std::string::String>,
    pub(crate) parent_component: ::std::option::Option<::std::string::String>,
    pub(crate) child_components: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) application_id: ::std::option::Option<::std::string::String>,
    pub(crate) component_type: ::std::option::Option<crate::types::ComponentType>,
    pub(crate) status: ::std::option::Option<crate::types::ComponentStatus>,
    pub(crate) sap_hostname: ::std::option::Option<::std::string::String>,
    pub(crate) sap_feature: ::std::option::Option<::std::string::String>,
    pub(crate) sap_kernel_version: ::std::option::Option<::std::string::String>,
    pub(crate) hdb_version: ::std::option::Option<::std::string::String>,
    pub(crate) resilience: ::std::option::Option<crate::types::Resilience>,
    pub(crate) associated_host: ::std::option::Option<crate::types::AssociatedHost>,
    pub(crate) databases: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) hosts: ::std::option::Option<::std::vec::Vec<crate::types::Host>>,
    pub(crate) primary_host: ::std::option::Option<::std::string::String>,
    pub(crate) database_connection: ::std::option::Option<crate::types::DatabaseConnection>,
    pub(crate) last_updated: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) arn: ::std::option::Option<::std::string::String>,
}
impl ComponentBuilder {
    /// <p>The ID of the component.</p>
    pub fn component_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.component_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the component.</p>
    pub fn set_component_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.component_id = input;
        self
    }
    /// <p>The ID of the component.</p>
    pub fn get_component_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.component_id
    }
    /// <p>The SAP System Identifier of the application component.</p>
    pub fn sid(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.sid = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The SAP System Identifier of the application component.</p>
    pub fn set_sid(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.sid = input;
        self
    }
    /// <p>The SAP System Identifier of the application component.</p>
    pub fn get_sid(&self) -> &::std::option::Option<::std::string::String> {
        &self.sid
    }
    /// <p>The SAP system number of the application component.</p>
    pub fn system_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.system_number = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The SAP system number of the application component.</p>
    pub fn set_system_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.system_number = input;
        self
    }
    /// <p>The SAP system number of the application component.</p>
    pub fn get_system_number(&self) -> &::std::option::Option<::std::string::String> {
        &self.system_number
    }
    /// <p>The parent component of a highly available environment. For example, in a highly available SAP on AWS workload, the parent component consists of the entire setup, including the child components.</p>
    pub fn parent_component(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.parent_component = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The parent component of a highly available environment. For example, in a highly available SAP on AWS workload, the parent component consists of the entire setup, including the child components.</p>
    pub fn set_parent_component(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.parent_component = input;
        self
    }
    /// <p>The parent component of a highly available environment. For example, in a highly available SAP on AWS workload, the parent component consists of the entire setup, including the child components.</p>
    pub fn get_parent_component(&self) -> &::std::option::Option<::std::string::String> {
        &self.parent_component
    }
    /// Appends an item to `child_components`.
    ///
    /// To override the contents of this collection use [`set_child_components`](Self::set_child_components).
    ///
    /// <p>The child components of a highly available environment. For example, in a highly available SAP on AWS workload, the child component consists of the primary and secondar instances.</p>
    pub fn child_components(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.child_components.unwrap_or_default();
        v.push(input.into());
        self.child_components = ::std::option::Option::Some(v);
        self
    }
    /// <p>The child components of a highly available environment. For example, in a highly available SAP on AWS workload, the child component consists of the primary and secondar instances.</p>
    pub fn set_child_components(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.child_components = input;
        self
    }
    /// <p>The child components of a highly available environment. For example, in a highly available SAP on AWS workload, the child component consists of the primary and secondar instances.</p>
    pub fn get_child_components(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.child_components
    }
    /// <p>The ID of the application.</p>
    pub fn application_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.application_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the application.</p>
    pub fn set_application_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.application_id = input;
        self
    }
    /// <p>The ID of the application.</p>
    pub fn get_application_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.application_id
    }
    /// <p>The type of the component.</p>
    pub fn component_type(mut self, input: crate::types::ComponentType) -> Self {
        self.component_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The type of the component.</p>
    pub fn set_component_type(mut self, input: ::std::option::Option<crate::types::ComponentType>) -> Self {
        self.component_type = input;
        self
    }
    /// <p>The type of the component.</p>
    pub fn get_component_type(&self) -> &::std::option::Option<crate::types::ComponentType> {
        &self.component_type
    }
    /// <p>The status of the component.</p>
    /// <ul>
    /// <li>
    /// <p>ACTIVATED - this status has been deprecated.</p></li>
    /// <li>
    /// <p>STARTING - the component is in the process of being started.</p></li>
    /// <li>
    /// <p>STOPPED - the component is not running.</p></li>
    /// <li>
    /// <p>STOPPING - the component is in the process of being stopped.</p></li>
    /// <li>
    /// <p>RUNNING - the component is running.</p></li>
    /// <li>
    /// <p>RUNNING_WITH_ERROR - one or more child component(s) of the parent component is not running. Call <a href="https://docs.aws.amazon.com/ssmsap/latest/APIReference/API_GetComponent.html"> <code>GetComponent</code> </a> to review the status of each child component.</p></li>
    /// <li>
    /// <p>UNDEFINED - AWS Systems Manager for SAP cannot provide the component status based on the discovered information. Verify your SAP application.</p></li>
    /// </ul>
    pub fn status(mut self, input: crate::types::ComponentStatus) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The status of the component.</p>
    /// <ul>
    /// <li>
    /// <p>ACTIVATED - this status has been deprecated.</p></li>
    /// <li>
    /// <p>STARTING - the component is in the process of being started.</p></li>
    /// <li>
    /// <p>STOPPED - the component is not running.</p></li>
    /// <li>
    /// <p>STOPPING - the component is in the process of being stopped.</p></li>
    /// <li>
    /// <p>RUNNING - the component is running.</p></li>
    /// <li>
    /// <p>RUNNING_WITH_ERROR - one or more child component(s) of the parent component is not running. Call <a href="https://docs.aws.amazon.com/ssmsap/latest/APIReference/API_GetComponent.html"> <code>GetComponent</code> </a> to review the status of each child component.</p></li>
    /// <li>
    /// <p>UNDEFINED - AWS Systems Manager for SAP cannot provide the component status based on the discovered information. Verify your SAP application.</p></li>
    /// </ul>
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::ComponentStatus>) -> Self {
        self.status = input;
        self
    }
    /// <p>The status of the component.</p>
    /// <ul>
    /// <li>
    /// <p>ACTIVATED - this status has been deprecated.</p></li>
    /// <li>
    /// <p>STARTING - the component is in the process of being started.</p></li>
    /// <li>
    /// <p>STOPPED - the component is not running.</p></li>
    /// <li>
    /// <p>STOPPING - the component is in the process of being stopped.</p></li>
    /// <li>
    /// <p>RUNNING - the component is running.</p></li>
    /// <li>
    /// <p>RUNNING_WITH_ERROR - one or more child component(s) of the parent component is not running. Call <a href="https://docs.aws.amazon.com/ssmsap/latest/APIReference/API_GetComponent.html"> <code>GetComponent</code> </a> to review the status of each child component.</p></li>
    /// <li>
    /// <p>UNDEFINED - AWS Systems Manager for SAP cannot provide the component status based on the discovered information. Verify your SAP application.</p></li>
    /// </ul>
    pub fn get_status(&self) -> &::std::option::Option<crate::types::ComponentStatus> {
        &self.status
    }
    /// <p>The hostname of the component.</p>
    pub fn sap_hostname(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.sap_hostname = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The hostname of the component.</p>
    pub fn set_sap_hostname(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.sap_hostname = input;
        self
    }
    /// <p>The hostname of the component.</p>
    pub fn get_sap_hostname(&self) -> &::std::option::Option<::std::string::String> {
        &self.sap_hostname
    }
    /// <p>The SAP feature of the component.</p>
    pub fn sap_feature(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.sap_feature = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The SAP feature of the component.</p>
    pub fn set_sap_feature(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.sap_feature = input;
        self
    }
    /// <p>The SAP feature of the component.</p>
    pub fn get_sap_feature(&self) -> &::std::option::Option<::std::string::String> {
        &self.sap_feature
    }
    /// <p>The kernel version of the component.</p>
    pub fn sap_kernel_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.sap_kernel_version = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The kernel version of the component.</p>
    pub fn set_sap_kernel_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.sap_kernel_version = input;
        self
    }
    /// <p>The kernel version of the component.</p>
    pub fn get_sap_kernel_version(&self) -> &::std::option::Option<::std::string::String> {
        &self.sap_kernel_version
    }
    /// <p>The SAP HANA version of the component.</p>
    pub fn hdb_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.hdb_version = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The SAP HANA version of the component.</p>
    pub fn set_hdb_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.hdb_version = input;
        self
    }
    /// <p>The SAP HANA version of the component.</p>
    pub fn get_hdb_version(&self) -> &::std::option::Option<::std::string::String> {
        &self.hdb_version
    }
    /// <p>Details of the SAP HANA system replication for the component.</p>
    pub fn resilience(mut self, input: crate::types::Resilience) -> Self {
        self.resilience = ::std::option::Option::Some(input);
        self
    }
    /// <p>Details of the SAP HANA system replication for the component.</p>
    pub fn set_resilience(mut self, input: ::std::option::Option<crate::types::Resilience>) -> Self {
        self.resilience = input;
        self
    }
    /// <p>Details of the SAP HANA system replication for the component.</p>
    pub fn get_resilience(&self) -> &::std::option::Option<crate::types::Resilience> {
        &self.resilience
    }
    /// <p>The associated host of the component.</p>
    pub fn associated_host(mut self, input: crate::types::AssociatedHost) -> Self {
        self.associated_host = ::std::option::Option::Some(input);
        self
    }
    /// <p>The associated host of the component.</p>
    pub fn set_associated_host(mut self, input: ::std::option::Option<crate::types::AssociatedHost>) -> Self {
        self.associated_host = input;
        self
    }
    /// <p>The associated host of the component.</p>
    pub fn get_associated_host(&self) -> &::std::option::Option<crate::types::AssociatedHost> {
        &self.associated_host
    }
    /// Appends an item to `databases`.
    ///
    /// To override the contents of this collection use [`set_databases`](Self::set_databases).
    ///
    /// <p>The SAP HANA databases of the component.</p>
    pub fn databases(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.databases.unwrap_or_default();
        v.push(input.into());
        self.databases = ::std::option::Option::Some(v);
        self
    }
    /// <p>The SAP HANA databases of the component.</p>
    pub fn set_databases(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.databases = input;
        self
    }
    /// <p>The SAP HANA databases of the component.</p>
    pub fn get_databases(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.databases
    }
    /// Appends an item to `hosts`.
    ///
    /// To override the contents of this collection use [`set_hosts`](Self::set_hosts).
    ///
    /// <p>The hosts of the component.</p>
    #[deprecated(note = "This shape is no longer used. Please use AssociatedHost.")]
    pub fn hosts(mut self, input: crate::types::Host) -> Self {
        let mut v = self.hosts.unwrap_or_default();
        v.push(input);
        self.hosts = ::std::option::Option::Some(v);
        self
    }
    /// <p>The hosts of the component.</p>
    #[deprecated(note = "This shape is no longer used. Please use AssociatedHost.")]
    pub fn set_hosts(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Host>>) -> Self {
        self.hosts = input;
        self
    }
    /// <p>The hosts of the component.</p>
    #[deprecated(note = "This shape is no longer used. Please use AssociatedHost.")]
    pub fn get_hosts(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Host>> {
        &self.hosts
    }
    /// <p>The primary host of the component.</p>
    #[deprecated(note = "This shape is no longer used. Please use AssociatedHost.")]
    pub fn primary_host(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.primary_host = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The primary host of the component.</p>
    #[deprecated(note = "This shape is no longer used. Please use AssociatedHost.")]
    pub fn set_primary_host(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.primary_host = input;
        self
    }
    /// <p>The primary host of the component.</p>
    #[deprecated(note = "This shape is no longer used. Please use AssociatedHost.")]
    pub fn get_primary_host(&self) -> &::std::option::Option<::std::string::String> {
        &self.primary_host
    }
    /// <p>The connection specifications for the database of the component.</p>
    pub fn database_connection(mut self, input: crate::types::DatabaseConnection) -> Self {
        self.database_connection = ::std::option::Option::Some(input);
        self
    }
    /// <p>The connection specifications for the database of the component.</p>
    pub fn set_database_connection(mut self, input: ::std::option::Option<crate::types::DatabaseConnection>) -> Self {
        self.database_connection = input;
        self
    }
    /// <p>The connection specifications for the database of the component.</p>
    pub fn get_database_connection(&self) -> &::std::option::Option<crate::types::DatabaseConnection> {
        &self.database_connection
    }
    /// <p>The time at which the component was last updated.</p>
    pub fn last_updated(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.last_updated = ::std::option::Option::Some(input);
        self
    }
    /// <p>The time at which the component was last updated.</p>
    pub fn set_last_updated(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.last_updated = input;
        self
    }
    /// <p>The time at which the component was last updated.</p>
    pub fn get_last_updated(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.last_updated
    }
    /// <p>The Amazon Resource Name (ARN) of the component.</p>
    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the component.</p>
    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the component.</p>
    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.arn
    }
    /// Consumes the builder and constructs a [`Component`](crate::types::Component).
    pub fn build(self) -> crate::types::Component {
        crate::types::Component {
            component_id: self.component_id,
            sid: self.sid,
            system_number: self.system_number,
            parent_component: self.parent_component,
            child_components: self.child_components,
            application_id: self.application_id,
            component_type: self.component_type,
            status: self.status,
            sap_hostname: self.sap_hostname,
            sap_feature: self.sap_feature,
            sap_kernel_version: self.sap_kernel_version,
            hdb_version: self.hdb_version,
            resilience: self.resilience,
            associated_host: self.associated_host,
            databases: self.databases,
            hosts: self.hosts,
            primary_host: self.primary_host,
            database_connection: self.database_connection,
            last_updated: self.last_updated,
            arn: self.arn,
        }
    }
}