aws-sdk-cloudextensions 1.0.0

AWS SDK for AWS Cloud Extensions
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
583
584
585
586
587
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// A profile entry binds an extension to a profile, defining which version to track and how the extension is configured for that deployment context. Each profile can have one entry per extension.
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct CreateProfileEntryOutput {
    /// The service-generated id of the profile entry.
    pub id: ::std::string::String,
    /// The name of the profile entry, unique within the profile. Defaults to the name in the extension's id.
    pub name: ::std::string::String,
    /// The Amazon Resource Name (ARN) of the profile entry.
    pub arn: ::std::string::String,
    /// The id of the profile this entry belongs to.
    pub profile_id: ::std::string::String,
    /// The name of the profile this entry belongs to.
    pub profile_name: ::std::string::String,
    /// The id of the extension this entry references, such as aws:secretsmanager.
    pub extension_id: ::std::string::String,
    /// The display name of the extension this entry references.
    pub extension_display_name: ::std::string::String,
    /// Controls which extension version this entry tracks and how it adopts new releases.
    pub version_policy: ::std::option::Option<crate::types::VersionPolicy>,
    /// The extension version the entry's version policy selects, which the Cloud Extensions Runtime runs.
    pub resolved_version: ::std::option::Option<::std::string::String>,
    /// The extension's latest released version, whether or not the entry's version policy selects it.
    pub latest_version: ::std::option::Option<::std::string::String>,
    /// When the profile entry was created.
    pub created_at: ::aws_smithy_types::DateTime,
    /// When the profile entry was last updated. Equal to createdAt until the first update.
    pub updated_at: ::aws_smithy_types::DateTime,
    /// The IAM role an extension assumes when calling AWS services. The role must be assumable by the Cloud Extensions Runtime's principal.
    pub execution_role: ::std::option::Option<::std::string::String>,
    /// A description of the entry's purpose.
    pub description: ::std::option::Option<::std::string::String>,
    /// The setting values to use for this extension, including any applied default values. The settings will be validated against the extension's settings' definitions.
    pub effective_settings: ::std::option::Option<::aws_smithy_types::Document>,
    /// A map of capability paths to their approved specifications. Capabilities must be explicitly approved before the extension can use them.
    pub approved_capabilities: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::CapabilityDefinition>>,
    /// The profile's extension defaults. An option set in an entry's interfaces overrides the same option in the inherited interfaceDefaults.
    pub inherited: ::std::option::Option<crate::types::ExtensionDefaults>,
    /// Per-interface options for this entry, keyed by the id of an interface the extension declares.
    pub interfaces: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::InterfaceOptions>>,
    _request_id: Option<String>,
}
impl CreateProfileEntryOutput {
    /// The service-generated id of the profile entry.
    pub fn id(&self) -> &str {
        use std::ops::Deref;
        self.id.deref()
    }
    /// The name of the profile entry, unique within the profile. Defaults to the name in the extension's id.
    pub fn name(&self) -> &str {
        use std::ops::Deref;
        self.name.deref()
    }
    /// The Amazon Resource Name (ARN) of the profile entry.
    pub fn arn(&self) -> &str {
        use std::ops::Deref;
        self.arn.deref()
    }
    /// The id of the profile this entry belongs to.
    pub fn profile_id(&self) -> &str {
        use std::ops::Deref;
        self.profile_id.deref()
    }
    /// The name of the profile this entry belongs to.
    pub fn profile_name(&self) -> &str {
        use std::ops::Deref;
        self.profile_name.deref()
    }
    /// The id of the extension this entry references, such as aws:secretsmanager.
    pub fn extension_id(&self) -> &str {
        use std::ops::Deref;
        self.extension_id.deref()
    }
    /// The display name of the extension this entry references.
    pub fn extension_display_name(&self) -> &str {
        use std::ops::Deref;
        self.extension_display_name.deref()
    }
    /// Controls which extension version this entry tracks and how it adopts new releases.
    pub fn version_policy(&self) -> ::std::option::Option<&crate::types::VersionPolicy> {
        self.version_policy.as_ref()
    }
    /// The extension version the entry's version policy selects, which the Cloud Extensions Runtime runs.
    pub fn resolved_version(&self) -> ::std::option::Option<&str> {
        self.resolved_version.as_deref()
    }
    /// The extension's latest released version, whether or not the entry's version policy selects it.
    pub fn latest_version(&self) -> ::std::option::Option<&str> {
        self.latest_version.as_deref()
    }
    /// When the profile entry was created.
    pub fn created_at(&self) -> &::aws_smithy_types::DateTime {
        &self.created_at
    }
    /// When the profile entry was last updated. Equal to createdAt until the first update.
    pub fn updated_at(&self) -> &::aws_smithy_types::DateTime {
        &self.updated_at
    }
    /// The IAM role an extension assumes when calling AWS services. The role must be assumable by the Cloud Extensions Runtime's principal.
    pub fn execution_role(&self) -> ::std::option::Option<&str> {
        self.execution_role.as_deref()
    }
    /// A description of the entry's purpose.
    pub fn description(&self) -> ::std::option::Option<&str> {
        self.description.as_deref()
    }
    /// The setting values to use for this extension, including any applied default values. The settings will be validated against the extension's settings' definitions.
    pub fn effective_settings(&self) -> ::std::option::Option<&::aws_smithy_types::Document> {
        self.effective_settings.as_ref()
    }
    /// A map of capability paths to their approved specifications. Capabilities must be explicitly approved before the extension can use them.
    pub fn approved_capabilities(
        &self,
    ) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, crate::types::CapabilityDefinition>> {
        self.approved_capabilities.as_ref()
    }
    /// The profile's extension defaults. An option set in an entry's interfaces overrides the same option in the inherited interfaceDefaults.
    pub fn inherited(&self) -> ::std::option::Option<&crate::types::ExtensionDefaults> {
        self.inherited.as_ref()
    }
    /// Per-interface options for this entry, keyed by the id of an interface the extension declares.
    pub fn interfaces(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, crate::types::InterfaceOptions>> {
        self.interfaces.as_ref()
    }
}
impl ::std::fmt::Debug for CreateProfileEntryOutput {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("CreateProfileEntryOutput");
        formatter.field("id", &self.id);
        formatter.field("name", &self.name);
        formatter.field("arn", &self.arn);
        formatter.field("profile_id", &self.profile_id);
        formatter.field("profile_name", &self.profile_name);
        formatter.field("extension_id", &self.extension_id);
        formatter.field("extension_display_name", &self.extension_display_name);
        formatter.field("version_policy", &self.version_policy);
        formatter.field("resolved_version", &self.resolved_version);
        formatter.field("latest_version", &self.latest_version);
        formatter.field("created_at", &self.created_at);
        formatter.field("updated_at", &self.updated_at);
        formatter.field("execution_role", &self.execution_role);
        formatter.field("description", &self.description);
        formatter.field("effective_settings", &"*** Sensitive Data Redacted ***");
        formatter.field("approved_capabilities", &self.approved_capabilities);
        formatter.field("inherited", &self.inherited);
        formatter.field("interfaces", &self.interfaces);
        formatter.field("_request_id", &self._request_id);
        formatter.finish()
    }
}
impl ::aws_types::request_id::RequestId for CreateProfileEntryOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl CreateProfileEntryOutput {
    /// Creates a new builder-style object to manufacture [`CreateProfileEntryOutput`](crate::operation::create_profile_entry::CreateProfileEntryOutput).
    pub fn builder() -> crate::operation::create_profile_entry::builders::CreateProfileEntryOutputBuilder {
        crate::operation::create_profile_entry::builders::CreateProfileEntryOutputBuilder::default()
    }
}

/// A builder for [`CreateProfileEntryOutput`](crate::operation::create_profile_entry::CreateProfileEntryOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct CreateProfileEntryOutputBuilder {
    pub(crate) id: ::std::option::Option<::std::string::String>,
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) arn: ::std::option::Option<::std::string::String>,
    pub(crate) profile_id: ::std::option::Option<::std::string::String>,
    pub(crate) profile_name: ::std::option::Option<::std::string::String>,
    pub(crate) extension_id: ::std::option::Option<::std::string::String>,
    pub(crate) extension_display_name: ::std::option::Option<::std::string::String>,
    pub(crate) version_policy: ::std::option::Option<crate::types::VersionPolicy>,
    pub(crate) resolved_version: ::std::option::Option<::std::string::String>,
    pub(crate) latest_version: ::std::option::Option<::std::string::String>,
    pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) execution_role: ::std::option::Option<::std::string::String>,
    pub(crate) description: ::std::option::Option<::std::string::String>,
    pub(crate) effective_settings: ::std::option::Option<::aws_smithy_types::Document>,
    pub(crate) approved_capabilities: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::CapabilityDefinition>>,
    pub(crate) inherited: ::std::option::Option<crate::types::ExtensionDefaults>,
    pub(crate) interfaces: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::InterfaceOptions>>,
    _request_id: Option<String>,
}
impl CreateProfileEntryOutputBuilder {
    /// The service-generated id of the profile entry.
    /// This field is required.
    pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.id = ::std::option::Option::Some(input.into());
        self
    }
    /// The service-generated id of the profile entry.
    pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.id = input;
        self
    }
    /// The service-generated id of the profile entry.
    pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.id
    }
    /// The name of the profile entry, unique within the profile. Defaults to the name in the extension's id.
    /// This field is required.
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// The name of the profile entry, unique within the profile. Defaults to the name in the extension's id.
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// The name of the profile entry, unique within the profile. Defaults to the name in the extension's id.
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// The Amazon Resource Name (ARN) of the profile entry.
    /// This field is required.
    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.arn = ::std::option::Option::Some(input.into());
        self
    }
    /// The Amazon Resource Name (ARN) of the profile entry.
    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.arn = input;
        self
    }
    /// The Amazon Resource Name (ARN) of the profile entry.
    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.arn
    }
    /// The id of the profile this entry belongs to.
    /// This field is required.
    pub fn profile_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.profile_id = ::std::option::Option::Some(input.into());
        self
    }
    /// The id of the profile this entry belongs to.
    pub fn set_profile_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.profile_id = input;
        self
    }
    /// The id of the profile this entry belongs to.
    pub fn get_profile_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.profile_id
    }
    /// The name of the profile this entry belongs to.
    /// This field is required.
    pub fn profile_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.profile_name = ::std::option::Option::Some(input.into());
        self
    }
    /// The name of the profile this entry belongs to.
    pub fn set_profile_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.profile_name = input;
        self
    }
    /// The name of the profile this entry belongs to.
    pub fn get_profile_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.profile_name
    }
    /// The id of the extension this entry references, such as aws:secretsmanager.
    /// This field is required.
    pub fn extension_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.extension_id = ::std::option::Option::Some(input.into());
        self
    }
    /// The id of the extension this entry references, such as aws:secretsmanager.
    pub fn set_extension_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.extension_id = input;
        self
    }
    /// The id of the extension this entry references, such as aws:secretsmanager.
    pub fn get_extension_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.extension_id
    }
    /// The display name of the extension this entry references.
    /// This field is required.
    pub fn extension_display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.extension_display_name = ::std::option::Option::Some(input.into());
        self
    }
    /// The display name of the extension this entry references.
    pub fn set_extension_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.extension_display_name = input;
        self
    }
    /// The display name of the extension this entry references.
    pub fn get_extension_display_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.extension_display_name
    }
    /// Controls which extension version this entry tracks and how it adopts new releases.
    pub fn version_policy(mut self, input: crate::types::VersionPolicy) -> Self {
        self.version_policy = ::std::option::Option::Some(input);
        self
    }
    /// Controls which extension version this entry tracks and how it adopts new releases.
    pub fn set_version_policy(mut self, input: ::std::option::Option<crate::types::VersionPolicy>) -> Self {
        self.version_policy = input;
        self
    }
    /// Controls which extension version this entry tracks and how it adopts new releases.
    pub fn get_version_policy(&self) -> &::std::option::Option<crate::types::VersionPolicy> {
        &self.version_policy
    }
    /// The extension version the entry's version policy selects, which the Cloud Extensions Runtime runs.
    pub fn resolved_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.resolved_version = ::std::option::Option::Some(input.into());
        self
    }
    /// The extension version the entry's version policy selects, which the Cloud Extensions Runtime runs.
    pub fn set_resolved_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.resolved_version = input;
        self
    }
    /// The extension version the entry's version policy selects, which the Cloud Extensions Runtime runs.
    pub fn get_resolved_version(&self) -> &::std::option::Option<::std::string::String> {
        &self.resolved_version
    }
    /// The extension's latest released version, whether or not the entry's version policy selects it.
    pub fn latest_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.latest_version = ::std::option::Option::Some(input.into());
        self
    }
    /// The extension's latest released version, whether or not the entry's version policy selects it.
    pub fn set_latest_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.latest_version = input;
        self
    }
    /// The extension's latest released version, whether or not the entry's version policy selects it.
    pub fn get_latest_version(&self) -> &::std::option::Option<::std::string::String> {
        &self.latest_version
    }
    /// When the profile entry was created.
    /// This field is required.
    pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.created_at = ::std::option::Option::Some(input);
        self
    }
    /// When the profile entry was created.
    pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.created_at = input;
        self
    }
    /// When the profile entry was created.
    pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.created_at
    }
    /// When the profile entry was last updated. Equal to createdAt until the first update.
    /// This field is required.
    pub fn updated_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.updated_at = ::std::option::Option::Some(input);
        self
    }
    /// When the profile entry was last updated. Equal to createdAt until the first update.
    pub fn set_updated_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.updated_at = input;
        self
    }
    /// When the profile entry was last updated. Equal to createdAt until the first update.
    pub fn get_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.updated_at
    }
    /// The IAM role an extension assumes when calling AWS services. The role must be assumable by the Cloud Extensions Runtime's principal.
    pub fn execution_role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.execution_role = ::std::option::Option::Some(input.into());
        self
    }
    /// The IAM role an extension assumes when calling AWS services. The role must be assumable by the Cloud Extensions Runtime's principal.
    pub fn set_execution_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.execution_role = input;
        self
    }
    /// The IAM role an extension assumes when calling AWS services. The role must be assumable by the Cloud Extensions Runtime's principal.
    pub fn get_execution_role(&self) -> &::std::option::Option<::std::string::String> {
        &self.execution_role
    }
    /// A description of the entry's purpose.
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.description = ::std::option::Option::Some(input.into());
        self
    }
    /// A description of the entry's purpose.
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.description = input;
        self
    }
    /// A description of the entry's purpose.
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    /// The setting values to use for this extension, including any applied default values. The settings will be validated against the extension's settings' definitions.
    pub fn effective_settings(mut self, input: ::aws_smithy_types::Document) -> Self {
        self.effective_settings = ::std::option::Option::Some(input);
        self
    }
    /// The setting values to use for this extension, including any applied default values. The settings will be validated against the extension's settings' definitions.
    pub fn set_effective_settings(mut self, input: ::std::option::Option<::aws_smithy_types::Document>) -> Self {
        self.effective_settings = input;
        self
    }
    /// The setting values to use for this extension, including any applied default values. The settings will be validated against the extension's settings' definitions.
    pub fn get_effective_settings(&self) -> &::std::option::Option<::aws_smithy_types::Document> {
        &self.effective_settings
    }
    /// Adds a key-value pair to `approved_capabilities`.
    ///
    /// To override the contents of this collection use [`set_approved_capabilities`](Self::set_approved_capabilities).
    ///
    /// A map of capability paths to their approved specifications. Capabilities must be explicitly approved before the extension can use them.
    pub fn approved_capabilities(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::CapabilityDefinition) -> Self {
        let mut hash_map = self.approved_capabilities.unwrap_or_default();
        hash_map.insert(k.into(), v);
        self.approved_capabilities = ::std::option::Option::Some(hash_map);
        self
    }
    /// A map of capability paths to their approved specifications. Capabilities must be explicitly approved before the extension can use them.
    pub fn set_approved_capabilities(
        mut self,
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::CapabilityDefinition>>,
    ) -> Self {
        self.approved_capabilities = input;
        self
    }
    /// A map of capability paths to their approved specifications. Capabilities must be explicitly approved before the extension can use them.
    pub fn get_approved_capabilities(
        &self,
    ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::CapabilityDefinition>> {
        &self.approved_capabilities
    }
    /// The profile's extension defaults. An option set in an entry's interfaces overrides the same option in the inherited interfaceDefaults.
    pub fn inherited(mut self, input: crate::types::ExtensionDefaults) -> Self {
        self.inherited = ::std::option::Option::Some(input);
        self
    }
    /// The profile's extension defaults. An option set in an entry's interfaces overrides the same option in the inherited interfaceDefaults.
    pub fn set_inherited(mut self, input: ::std::option::Option<crate::types::ExtensionDefaults>) -> Self {
        self.inherited = input;
        self
    }
    /// The profile's extension defaults. An option set in an entry's interfaces overrides the same option in the inherited interfaceDefaults.
    pub fn get_inherited(&self) -> &::std::option::Option<crate::types::ExtensionDefaults> {
        &self.inherited
    }
    /// Adds a key-value pair to `interfaces`.
    ///
    /// To override the contents of this collection use [`set_interfaces`](Self::set_interfaces).
    ///
    /// Per-interface options for this entry, keyed by the id of an interface the extension declares.
    pub fn interfaces(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::InterfaceOptions) -> Self {
        let mut hash_map = self.interfaces.unwrap_or_default();
        hash_map.insert(k.into(), v);
        self.interfaces = ::std::option::Option::Some(hash_map);
        self
    }
    /// Per-interface options for this entry, keyed by the id of an interface the extension declares.
    pub fn set_interfaces(
        mut self,
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::InterfaceOptions>>,
    ) -> Self {
        self.interfaces = input;
        self
    }
    /// Per-interface options for this entry, keyed by the id of an interface the extension declares.
    pub fn get_interfaces(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::InterfaceOptions>> {
        &self.interfaces
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`CreateProfileEntryOutput`](crate::operation::create_profile_entry::CreateProfileEntryOutput).
    /// This method will fail if any of the following fields are not set:
    /// - [`id`](crate::operation::create_profile_entry::builders::CreateProfileEntryOutputBuilder::id)
    /// - [`name`](crate::operation::create_profile_entry::builders::CreateProfileEntryOutputBuilder::name)
    /// - [`arn`](crate::operation::create_profile_entry::builders::CreateProfileEntryOutputBuilder::arn)
    /// - [`profile_id`](crate::operation::create_profile_entry::builders::CreateProfileEntryOutputBuilder::profile_id)
    /// - [`profile_name`](crate::operation::create_profile_entry::builders::CreateProfileEntryOutputBuilder::profile_name)
    /// - [`extension_id`](crate::operation::create_profile_entry::builders::CreateProfileEntryOutputBuilder::extension_id)
    /// - [`extension_display_name`](crate::operation::create_profile_entry::builders::CreateProfileEntryOutputBuilder::extension_display_name)
    /// - [`created_at`](crate::operation::create_profile_entry::builders::CreateProfileEntryOutputBuilder::created_at)
    /// - [`updated_at`](crate::operation::create_profile_entry::builders::CreateProfileEntryOutputBuilder::updated_at)
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::create_profile_entry::CreateProfileEntryOutput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::create_profile_entry::CreateProfileEntryOutput {
            id: self.id.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "id",
                    "id was not specified but it is required when building CreateProfileEntryOutput",
                )
            })?,
            name: self.name.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "name",
                    "name was not specified but it is required when building CreateProfileEntryOutput",
                )
            })?,
            arn: self.arn.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "arn",
                    "arn was not specified but it is required when building CreateProfileEntryOutput",
                )
            })?,
            profile_id: self.profile_id.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "profile_id",
                    "profile_id was not specified but it is required when building CreateProfileEntryOutput",
                )
            })?,
            profile_name: self.profile_name.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "profile_name",
                    "profile_name was not specified but it is required when building CreateProfileEntryOutput",
                )
            })?,
            extension_id: self.extension_id.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "extension_id",
                    "extension_id was not specified but it is required when building CreateProfileEntryOutput",
                )
            })?,
            extension_display_name: self.extension_display_name.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "extension_display_name",
                    "extension_display_name was not specified but it is required when building CreateProfileEntryOutput",
                )
            })?,
            version_policy: self.version_policy,
            resolved_version: self.resolved_version,
            latest_version: self.latest_version,
            created_at: self.created_at.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "created_at",
                    "created_at was not specified but it is required when building CreateProfileEntryOutput",
                )
            })?,
            updated_at: self.updated_at.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "updated_at",
                    "updated_at was not specified but it is required when building CreateProfileEntryOutput",
                )
            })?,
            execution_role: self.execution_role,
            description: self.description,
            effective_settings: self.effective_settings,
            approved_capabilities: self.approved_capabilities,
            inherited: self.inherited,
            interfaces: self.interfaces,
            _request_id: self._request_id,
        })
    }
}
impl ::std::fmt::Debug for CreateProfileEntryOutputBuilder {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("CreateProfileEntryOutputBuilder");
        formatter.field("id", &self.id);
        formatter.field("name", &self.name);
        formatter.field("arn", &self.arn);
        formatter.field("profile_id", &self.profile_id);
        formatter.field("profile_name", &self.profile_name);
        formatter.field("extension_id", &self.extension_id);
        formatter.field("extension_display_name", &self.extension_display_name);
        formatter.field("version_policy", &self.version_policy);
        formatter.field("resolved_version", &self.resolved_version);
        formatter.field("latest_version", &self.latest_version);
        formatter.field("created_at", &self.created_at);
        formatter.field("updated_at", &self.updated_at);
        formatter.field("execution_role", &self.execution_role);
        formatter.field("description", &self.description);
        formatter.field("effective_settings", &"*** Sensitive Data Redacted ***");
        formatter.field("approved_capabilities", &self.approved_capabilities);
        formatter.field("inherited", &self.inherited);
        formatter.field("interfaces", &self.interfaces);
        formatter.field("_request_id", &self._request_id);
        formatter.finish()
    }
}