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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct SourceServer {
    /// <p>Source server ID.</p>
    pub source_server_id: ::std::option::Option<::std::string::String>,
    /// <p>Source server ARN.</p>
    pub arn: ::std::option::Option<::std::string::String>,
    /// <p>Source server archived status.</p>
    pub is_archived: ::std::option::Option<bool>,
    /// <p>Source server Tags.</p>
    pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
    /// <p>Source server launched instance.</p>
    pub launched_instance: ::std::option::Option<crate::types::LaunchedInstance>,
    /// <p>Source server data replication info.</p>
    pub data_replication_info: ::std::option::Option<crate::types::DataReplicationInfo>,
    /// <p>Source server lifecycle state.</p>
    pub life_cycle: ::std::option::Option<crate::types::LifeCycle>,
    /// <p>Source server properties.</p>
    pub source_properties: ::std::option::Option<crate::types::SourceProperties>,
    /// <p>Source server replication type.</p>
    pub replication_type: ::std::option::Option<crate::types::ReplicationType>,
    /// <p>Source server vCenter client id.</p>
    pub vcenter_client_id: ::std::option::Option<::std::string::String>,
    /// <p>Source server application ID.</p>
    pub application_id: ::std::option::Option<::std::string::String>,
    /// <p>Source server user provided ID.</p>
    pub user_provided_id: ::std::option::Option<::std::string::String>,
    /// <p>Source server fqdn for action framework.</p>
    pub fqdn_for_action_framework: ::std::option::Option<::std::string::String>,
    /// <p>Source Server connector action.</p>
    pub connector_action: ::std::option::Option<crate::types::SourceServerConnectorAction>,
}
impl SourceServer {
    /// <p>Source server ID.</p>
    pub fn source_server_id(&self) -> ::std::option::Option<&str> {
        self.source_server_id.as_deref()
    }
    /// <p>Source server ARN.</p>
    pub fn arn(&self) -> ::std::option::Option<&str> {
        self.arn.as_deref()
    }
    /// <p>Source server archived status.</p>
    pub fn is_archived(&self) -> ::std::option::Option<bool> {
        self.is_archived
    }
    /// <p>Source server Tags.</p>
    pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
        self.tags.as_ref()
    }
    /// <p>Source server launched instance.</p>
    pub fn launched_instance(&self) -> ::std::option::Option<&crate::types::LaunchedInstance> {
        self.launched_instance.as_ref()
    }
    /// <p>Source server data replication info.</p>
    pub fn data_replication_info(&self) -> ::std::option::Option<&crate::types::DataReplicationInfo> {
        self.data_replication_info.as_ref()
    }
    /// <p>Source server lifecycle state.</p>
    pub fn life_cycle(&self) -> ::std::option::Option<&crate::types::LifeCycle> {
        self.life_cycle.as_ref()
    }
    /// <p>Source server properties.</p>
    pub fn source_properties(&self) -> ::std::option::Option<&crate::types::SourceProperties> {
        self.source_properties.as_ref()
    }
    /// <p>Source server replication type.</p>
    pub fn replication_type(&self) -> ::std::option::Option<&crate::types::ReplicationType> {
        self.replication_type.as_ref()
    }
    /// <p>Source server vCenter client id.</p>
    pub fn vcenter_client_id(&self) -> ::std::option::Option<&str> {
        self.vcenter_client_id.as_deref()
    }
    /// <p>Source server application ID.</p>
    pub fn application_id(&self) -> ::std::option::Option<&str> {
        self.application_id.as_deref()
    }
    /// <p>Source server user provided ID.</p>
    pub fn user_provided_id(&self) -> ::std::option::Option<&str> {
        self.user_provided_id.as_deref()
    }
    /// <p>Source server fqdn for action framework.</p>
    pub fn fqdn_for_action_framework(&self) -> ::std::option::Option<&str> {
        self.fqdn_for_action_framework.as_deref()
    }
    /// <p>Source Server connector action.</p>
    pub fn connector_action(&self) -> ::std::option::Option<&crate::types::SourceServerConnectorAction> {
        self.connector_action.as_ref()
    }
}
impl ::std::fmt::Debug for SourceServer {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("SourceServer");
        formatter.field("source_server_id", &self.source_server_id);
        formatter.field("arn", &self.arn);
        formatter.field("is_archived", &self.is_archived);
        formatter.field("tags", &"*** Sensitive Data Redacted ***");
        formatter.field("launched_instance", &self.launched_instance);
        formatter.field("data_replication_info", &self.data_replication_info);
        formatter.field("life_cycle", &self.life_cycle);
        formatter.field("source_properties", &self.source_properties);
        formatter.field("replication_type", &self.replication_type);
        formatter.field("vcenter_client_id", &self.vcenter_client_id);
        formatter.field("application_id", &self.application_id);
        formatter.field("user_provided_id", &self.user_provided_id);
        formatter.field("fqdn_for_action_framework", &self.fqdn_for_action_framework);
        formatter.field("connector_action", &self.connector_action);
        formatter.finish()
    }
}
impl SourceServer {
    /// Creates a new builder-style object to manufacture [`SourceServer`](crate::types::SourceServer).
    pub fn builder() -> crate::types::builders::SourceServerBuilder {
        crate::types::builders::SourceServerBuilder::default()
    }
}

/// A builder for [`SourceServer`](crate::types::SourceServer).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
pub struct SourceServerBuilder {
    pub(crate) source_server_id: ::std::option::Option<::std::string::String>,
    pub(crate) arn: ::std::option::Option<::std::string::String>,
    pub(crate) is_archived: ::std::option::Option<bool>,
    pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
    pub(crate) launched_instance: ::std::option::Option<crate::types::LaunchedInstance>,
    pub(crate) data_replication_info: ::std::option::Option<crate::types::DataReplicationInfo>,
    pub(crate) life_cycle: ::std::option::Option<crate::types::LifeCycle>,
    pub(crate) source_properties: ::std::option::Option<crate::types::SourceProperties>,
    pub(crate) replication_type: ::std::option::Option<crate::types::ReplicationType>,
    pub(crate) vcenter_client_id: ::std::option::Option<::std::string::String>,
    pub(crate) application_id: ::std::option::Option<::std::string::String>,
    pub(crate) user_provided_id: ::std::option::Option<::std::string::String>,
    pub(crate) fqdn_for_action_framework: ::std::option::Option<::std::string::String>,
    pub(crate) connector_action: ::std::option::Option<crate::types::SourceServerConnectorAction>,
}
impl SourceServerBuilder {
    /// <p>Source server ID.</p>
    pub fn source_server_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.source_server_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Source server ID.</p>
    pub fn set_source_server_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.source_server_id = input;
        self
    }
    /// <p>Source server ID.</p>
    pub fn get_source_server_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.source_server_id
    }
    /// <p>Source server ARN.</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>Source server ARN.</p>
    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.arn = input;
        self
    }
    /// <p>Source server ARN.</p>
    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.arn
    }
    /// <p>Source server archived status.</p>
    pub fn is_archived(mut self, input: bool) -> Self {
        self.is_archived = ::std::option::Option::Some(input);
        self
    }
    /// <p>Source server archived status.</p>
    pub fn set_is_archived(mut self, input: ::std::option::Option<bool>) -> Self {
        self.is_archived = input;
        self
    }
    /// <p>Source server archived status.</p>
    pub fn get_is_archived(&self) -> &::std::option::Option<bool> {
        &self.is_archived
    }
    /// Adds a key-value pair to `tags`.
    ///
    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
    ///
    /// <p>Source server Tags.</p>
    pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut hash_map = self.tags.unwrap_or_default();
        hash_map.insert(k.into(), v.into());
        self.tags = ::std::option::Option::Some(hash_map);
        self
    }
    /// <p>Source server Tags.</p>
    pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
        self.tags = input;
        self
    }
    /// <p>Source server Tags.</p>
    pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
        &self.tags
    }
    /// <p>Source server launched instance.</p>
    pub fn launched_instance(mut self, input: crate::types::LaunchedInstance) -> Self {
        self.launched_instance = ::std::option::Option::Some(input);
        self
    }
    /// <p>Source server launched instance.</p>
    pub fn set_launched_instance(mut self, input: ::std::option::Option<crate::types::LaunchedInstance>) -> Self {
        self.launched_instance = input;
        self
    }
    /// <p>Source server launched instance.</p>
    pub fn get_launched_instance(&self) -> &::std::option::Option<crate::types::LaunchedInstance> {
        &self.launched_instance
    }
    /// <p>Source server data replication info.</p>
    pub fn data_replication_info(mut self, input: crate::types::DataReplicationInfo) -> Self {
        self.data_replication_info = ::std::option::Option::Some(input);
        self
    }
    /// <p>Source server data replication info.</p>
    pub fn set_data_replication_info(mut self, input: ::std::option::Option<crate::types::DataReplicationInfo>) -> Self {
        self.data_replication_info = input;
        self
    }
    /// <p>Source server data replication info.</p>
    pub fn get_data_replication_info(&self) -> &::std::option::Option<crate::types::DataReplicationInfo> {
        &self.data_replication_info
    }
    /// <p>Source server lifecycle state.</p>
    pub fn life_cycle(mut self, input: crate::types::LifeCycle) -> Self {
        self.life_cycle = ::std::option::Option::Some(input);
        self
    }
    /// <p>Source server lifecycle state.</p>
    pub fn set_life_cycle(mut self, input: ::std::option::Option<crate::types::LifeCycle>) -> Self {
        self.life_cycle = input;
        self
    }
    /// <p>Source server lifecycle state.</p>
    pub fn get_life_cycle(&self) -> &::std::option::Option<crate::types::LifeCycle> {
        &self.life_cycle
    }
    /// <p>Source server properties.</p>
    pub fn source_properties(mut self, input: crate::types::SourceProperties) -> Self {
        self.source_properties = ::std::option::Option::Some(input);
        self
    }
    /// <p>Source server properties.</p>
    pub fn set_source_properties(mut self, input: ::std::option::Option<crate::types::SourceProperties>) -> Self {
        self.source_properties = input;
        self
    }
    /// <p>Source server properties.</p>
    pub fn get_source_properties(&self) -> &::std::option::Option<crate::types::SourceProperties> {
        &self.source_properties
    }
    /// <p>Source server replication type.</p>
    pub fn replication_type(mut self, input: crate::types::ReplicationType) -> Self {
        self.replication_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>Source server replication type.</p>
    pub fn set_replication_type(mut self, input: ::std::option::Option<crate::types::ReplicationType>) -> Self {
        self.replication_type = input;
        self
    }
    /// <p>Source server replication type.</p>
    pub fn get_replication_type(&self) -> &::std::option::Option<crate::types::ReplicationType> {
        &self.replication_type
    }
    /// <p>Source server vCenter client id.</p>
    pub fn vcenter_client_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.vcenter_client_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Source server vCenter client id.</p>
    pub fn set_vcenter_client_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.vcenter_client_id = input;
        self
    }
    /// <p>Source server vCenter client id.</p>
    pub fn get_vcenter_client_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.vcenter_client_id
    }
    /// <p>Source server application ID.</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>Source server application ID.</p>
    pub fn set_application_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.application_id = input;
        self
    }
    /// <p>Source server application ID.</p>
    pub fn get_application_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.application_id
    }
    /// <p>Source server user provided ID.</p>
    pub fn user_provided_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.user_provided_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Source server user provided ID.</p>
    pub fn set_user_provided_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.user_provided_id = input;
        self
    }
    /// <p>Source server user provided ID.</p>
    pub fn get_user_provided_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.user_provided_id
    }
    /// <p>Source server fqdn for action framework.</p>
    pub fn fqdn_for_action_framework(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.fqdn_for_action_framework = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Source server fqdn for action framework.</p>
    pub fn set_fqdn_for_action_framework(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.fqdn_for_action_framework = input;
        self
    }
    /// <p>Source server fqdn for action framework.</p>
    pub fn get_fqdn_for_action_framework(&self) -> &::std::option::Option<::std::string::String> {
        &self.fqdn_for_action_framework
    }
    /// <p>Source Server connector action.</p>
    pub fn connector_action(mut self, input: crate::types::SourceServerConnectorAction) -> Self {
        self.connector_action = ::std::option::Option::Some(input);
        self
    }
    /// <p>Source Server connector action.</p>
    pub fn set_connector_action(mut self, input: ::std::option::Option<crate::types::SourceServerConnectorAction>) -> Self {
        self.connector_action = input;
        self
    }
    /// <p>Source Server connector action.</p>
    pub fn get_connector_action(&self) -> &::std::option::Option<crate::types::SourceServerConnectorAction> {
        &self.connector_action
    }
    /// Consumes the builder and constructs a [`SourceServer`](crate::types::SourceServer).
    pub fn build(self) -> crate::types::SourceServer {
        crate::types::SourceServer {
            source_server_id: self.source_server_id,
            arn: self.arn,
            is_archived: self.is_archived,
            tags: self.tags,
            launched_instance: self.launched_instance,
            data_replication_info: self.data_replication_info,
            life_cycle: self.life_cycle,
            source_properties: self.source_properties,
            replication_type: self.replication_type,
            vcenter_client_id: self.vcenter_client_id,
            application_id: self.application_id,
            user_provided_id: self.user_provided_id,
            fqdn_for_action_framework: self.fqdn_for_action_framework,
            connector_action: self.connector_action,
        }
    }
}
impl ::std::fmt::Debug for SourceServerBuilder {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("SourceServerBuilder");
        formatter.field("source_server_id", &self.source_server_id);
        formatter.field("arn", &self.arn);
        formatter.field("is_archived", &self.is_archived);
        formatter.field("tags", &"*** Sensitive Data Redacted ***");
        formatter.field("launched_instance", &self.launched_instance);
        formatter.field("data_replication_info", &self.data_replication_info);
        formatter.field("life_cycle", &self.life_cycle);
        formatter.field("source_properties", &self.source_properties);
        formatter.field("replication_type", &self.replication_type);
        formatter.field("vcenter_client_id", &self.vcenter_client_id);
        formatter.field("application_id", &self.application_id);
        formatter.field("user_provided_id", &self.user_provided_id);
        formatter.field("fqdn_for_action_framework", &self.fqdn_for_action_framework);
        formatter.field("connector_action", &self.connector_action);
        formatter.finish()
    }
}