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
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
// 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, ::std::fmt::Debug)]
pub struct DescribeBrokerOutput {
    /// <p>Actions required for a broker.</p>
    pub actions_required: ::std::option::Option<::std::vec::Vec<crate::types::ActionRequired>>,
    /// <p>The authentication strategy used to secure the broker. The default is SIMPLE.</p>
    pub authentication_strategy: ::std::option::Option<crate::types::AuthenticationStrategy>,
    /// <p>Enables automatic upgrades to new minor versions for brokers, as new versions are released and supported by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window of the broker or after a manual broker reboot.</p>
    pub auto_minor_version_upgrade: ::std::option::Option<bool>,
    /// <p>The broker's Amazon Resource Name (ARN).</p>
    pub broker_arn: ::std::option::Option<::std::string::String>,
    /// <p>The unique ID that Amazon MQ generates for the broker.</p>
    pub broker_id: ::std::option::Option<::std::string::String>,
    /// <p>A list of information about allocated brokers.</p>
    pub broker_instances: ::std::option::Option<::std::vec::Vec<crate::types::BrokerInstance>>,
    /// <p>The broker's name. This value must be unique in your Amazon Web Services account account, 1-50 characters long, must contain only letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special characters.</p>
    pub broker_name: ::std::option::Option<::std::string::String>,
    /// <p>The broker's status.</p>
    pub broker_state: ::std::option::Option<crate::types::BrokerState>,
    /// <p>The list of all revisions for the specified configuration.</p>
    pub configurations: ::std::option::Option<crate::types::Configurations>,
    /// <p>The time when the broker was created.</p>
    pub created: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The broker's deployment mode.</p>
    pub deployment_mode: ::std::option::Option<crate::types::DeploymentMode>,
    /// <p>Encryption options for the broker.</p>
    pub encryption_options: ::std::option::Option<crate::types::EncryptionOptions>,
    /// <p>The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.</p>
    pub engine_type: ::std::option::Option<crate::types::EngineType>,
    /// <p>The broker engine's version. For a list of supported engine versions, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker-engine.html">Supported engines</a>.</p>
    pub engine_version: ::std::option::Option<::std::string::String>,
    /// <p>The broker's instance type.</p>
    pub host_instance_type: ::std::option::Option<::std::string::String>,
    /// <p>The metadata of the LDAP server used to authenticate and authorize connections to the broker.</p>
    pub ldap_server_metadata: ::std::option::Option<crate::types::LdapServerMetadataOutput>,
    /// <p>The list of information about logs currently enabled and pending to be deployed for the specified broker.</p>
    pub logs: ::std::option::Option<crate::types::LogsSummary>,
    /// <p>The parameters that determine the WeeklyStartTime.</p>
    pub maintenance_window_start_time: ::std::option::Option<crate::types::WeeklyStartTime>,
    /// <p>The authentication strategy that will be applied when the broker is rebooted. The default is SIMPLE.</p>
    pub pending_authentication_strategy: ::std::option::Option<crate::types::AuthenticationStrategy>,
    /// <p>The broker engine version to upgrade to. For a list of supported engine versions, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker-engine.html">Supported engines</a>.</p>
    pub pending_engine_version: ::std::option::Option<::std::string::String>,
    /// <p>The broker's host instance type to upgrade to. For a list of supported instance types, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker.html#broker-instance-types">Broker instance types</a>.</p>
    pub pending_host_instance_type: ::std::option::Option<::std::string::String>,
    /// <p>The metadata of the LDAP server that will be used to authenticate and authorize connections to the broker after it is rebooted.</p>
    pub pending_ldap_server_metadata: ::std::option::Option<crate::types::LdapServerMetadataOutput>,
    /// <p>The list of pending security groups to authorize connections to brokers.</p>
    pub pending_security_groups: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <p>Enables connections from applications outside of the VPC that hosts the broker's subnets.</p>
    pub publicly_accessible: ::std::option::Option<bool>,
    /// <p>The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.</p>
    pub security_groups: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <p>The broker's storage type.</p>
    pub storage_type: ::std::option::Option<crate::types::BrokerStorageType>,
    /// <p>The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones.</p>
    pub subnet_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <p>The list of all tags associated with this broker.</p>
    pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
    /// <p>The list of all broker usernames for the specified broker.</p>
    pub users: ::std::option::Option<::std::vec::Vec<crate::types::UserSummary>>,
    /// <p>The replication details of the data replication-enabled broker. Only returned if dataReplicationMode is set to CRDR.</p>
    pub data_replication_metadata: ::std::option::Option<crate::types::DataReplicationMetadataOutput>,
    /// <p>Describes whether this broker is a part of a data replication pair.</p>
    pub data_replication_mode: ::std::option::Option<crate::types::DataReplicationMode>,
    /// <p>The pending replication details of the data replication-enabled broker. Only returned if pendingDataReplicationMode is set to CRDR.</p>
    pub pending_data_replication_metadata: ::std::option::Option<crate::types::DataReplicationMetadataOutput>,
    /// <p>Describes whether this broker will be a part of a data replication pair after reboot.</p>
    pub pending_data_replication_mode: ::std::option::Option<crate::types::DataReplicationMode>,
    _request_id: Option<String>,
}
impl DescribeBrokerOutput {
    /// <p>Actions required for a broker.</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 `.actions_required.is_none()`.
    pub fn actions_required(&self) -> &[crate::types::ActionRequired] {
        self.actions_required.as_deref().unwrap_or_default()
    }
    /// <p>The authentication strategy used to secure the broker. The default is SIMPLE.</p>
    pub fn authentication_strategy(&self) -> ::std::option::Option<&crate::types::AuthenticationStrategy> {
        self.authentication_strategy.as_ref()
    }
    /// <p>Enables automatic upgrades to new minor versions for brokers, as new versions are released and supported by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window of the broker or after a manual broker reboot.</p>
    pub fn auto_minor_version_upgrade(&self) -> ::std::option::Option<bool> {
        self.auto_minor_version_upgrade
    }
    /// <p>The broker's Amazon Resource Name (ARN).</p>
    pub fn broker_arn(&self) -> ::std::option::Option<&str> {
        self.broker_arn.as_deref()
    }
    /// <p>The unique ID that Amazon MQ generates for the broker.</p>
    pub fn broker_id(&self) -> ::std::option::Option<&str> {
        self.broker_id.as_deref()
    }
    /// <p>A list of information about allocated brokers.</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 `.broker_instances.is_none()`.
    pub fn broker_instances(&self) -> &[crate::types::BrokerInstance] {
        self.broker_instances.as_deref().unwrap_or_default()
    }
    /// <p>The broker's name. This value must be unique in your Amazon Web Services account account, 1-50 characters long, must contain only letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special characters.</p>
    pub fn broker_name(&self) -> ::std::option::Option<&str> {
        self.broker_name.as_deref()
    }
    /// <p>The broker's status.</p>
    pub fn broker_state(&self) -> ::std::option::Option<&crate::types::BrokerState> {
        self.broker_state.as_ref()
    }
    /// <p>The list of all revisions for the specified configuration.</p>
    pub fn configurations(&self) -> ::std::option::Option<&crate::types::Configurations> {
        self.configurations.as_ref()
    }
    /// <p>The time when the broker was created.</p>
    pub fn created(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.created.as_ref()
    }
    /// <p>The broker's deployment mode.</p>
    pub fn deployment_mode(&self) -> ::std::option::Option<&crate::types::DeploymentMode> {
        self.deployment_mode.as_ref()
    }
    /// <p>Encryption options for the broker.</p>
    pub fn encryption_options(&self) -> ::std::option::Option<&crate::types::EncryptionOptions> {
        self.encryption_options.as_ref()
    }
    /// <p>The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.</p>
    pub fn engine_type(&self) -> ::std::option::Option<&crate::types::EngineType> {
        self.engine_type.as_ref()
    }
    /// <p>The broker engine's version. For a list of supported engine versions, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker-engine.html">Supported engines</a>.</p>
    pub fn engine_version(&self) -> ::std::option::Option<&str> {
        self.engine_version.as_deref()
    }
    /// <p>The broker's instance type.</p>
    pub fn host_instance_type(&self) -> ::std::option::Option<&str> {
        self.host_instance_type.as_deref()
    }
    /// <p>The metadata of the LDAP server used to authenticate and authorize connections to the broker.</p>
    pub fn ldap_server_metadata(&self) -> ::std::option::Option<&crate::types::LdapServerMetadataOutput> {
        self.ldap_server_metadata.as_ref()
    }
    /// <p>The list of information about logs currently enabled and pending to be deployed for the specified broker.</p>
    pub fn logs(&self) -> ::std::option::Option<&crate::types::LogsSummary> {
        self.logs.as_ref()
    }
    /// <p>The parameters that determine the WeeklyStartTime.</p>
    pub fn maintenance_window_start_time(&self) -> ::std::option::Option<&crate::types::WeeklyStartTime> {
        self.maintenance_window_start_time.as_ref()
    }
    /// <p>The authentication strategy that will be applied when the broker is rebooted. The default is SIMPLE.</p>
    pub fn pending_authentication_strategy(&self) -> ::std::option::Option<&crate::types::AuthenticationStrategy> {
        self.pending_authentication_strategy.as_ref()
    }
    /// <p>The broker engine version to upgrade to. For a list of supported engine versions, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker-engine.html">Supported engines</a>.</p>
    pub fn pending_engine_version(&self) -> ::std::option::Option<&str> {
        self.pending_engine_version.as_deref()
    }
    /// <p>The broker's host instance type to upgrade to. For a list of supported instance types, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker.html#broker-instance-types">Broker instance types</a>.</p>
    pub fn pending_host_instance_type(&self) -> ::std::option::Option<&str> {
        self.pending_host_instance_type.as_deref()
    }
    /// <p>The metadata of the LDAP server that will be used to authenticate and authorize connections to the broker after it is rebooted.</p>
    pub fn pending_ldap_server_metadata(&self) -> ::std::option::Option<&crate::types::LdapServerMetadataOutput> {
        self.pending_ldap_server_metadata.as_ref()
    }
    /// <p>The list of pending security groups to authorize connections to brokers.</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 `.pending_security_groups.is_none()`.
    pub fn pending_security_groups(&self) -> &[::std::string::String] {
        self.pending_security_groups.as_deref().unwrap_or_default()
    }
    /// <p>Enables connections from applications outside of the VPC that hosts the broker's subnets.</p>
    pub fn publicly_accessible(&self) -> ::std::option::Option<bool> {
        self.publicly_accessible
    }
    /// <p>The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.</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 `.security_groups.is_none()`.
    pub fn security_groups(&self) -> &[::std::string::String] {
        self.security_groups.as_deref().unwrap_or_default()
    }
    /// <p>The broker's storage type.</p>
    pub fn storage_type(&self) -> ::std::option::Option<&crate::types::BrokerStorageType> {
        self.storage_type.as_ref()
    }
    /// <p>The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones.</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 `.subnet_ids.is_none()`.
    pub fn subnet_ids(&self) -> &[::std::string::String] {
        self.subnet_ids.as_deref().unwrap_or_default()
    }
    /// <p>The list of all tags associated with this broker.</p>
    pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
        self.tags.as_ref()
    }
    /// <p>The list of all broker usernames for the specified broker.</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 `.users.is_none()`.
    pub fn users(&self) -> &[crate::types::UserSummary] {
        self.users.as_deref().unwrap_or_default()
    }
    /// <p>The replication details of the data replication-enabled broker. Only returned if dataReplicationMode is set to CRDR.</p>
    pub fn data_replication_metadata(&self) -> ::std::option::Option<&crate::types::DataReplicationMetadataOutput> {
        self.data_replication_metadata.as_ref()
    }
    /// <p>Describes whether this broker is a part of a data replication pair.</p>
    pub fn data_replication_mode(&self) -> ::std::option::Option<&crate::types::DataReplicationMode> {
        self.data_replication_mode.as_ref()
    }
    /// <p>The pending replication details of the data replication-enabled broker. Only returned if pendingDataReplicationMode is set to CRDR.</p>
    pub fn pending_data_replication_metadata(&self) -> ::std::option::Option<&crate::types::DataReplicationMetadataOutput> {
        self.pending_data_replication_metadata.as_ref()
    }
    /// <p>Describes whether this broker will be a part of a data replication pair after reboot.</p>
    pub fn pending_data_replication_mode(&self) -> ::std::option::Option<&crate::types::DataReplicationMode> {
        self.pending_data_replication_mode.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for DescribeBrokerOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl DescribeBrokerOutput {
    /// Creates a new builder-style object to manufacture [`DescribeBrokerOutput`](crate::operation::describe_broker::DescribeBrokerOutput).
    pub fn builder() -> crate::operation::describe_broker::builders::DescribeBrokerOutputBuilder {
        crate::operation::describe_broker::builders::DescribeBrokerOutputBuilder::default()
    }
}

/// A builder for [`DescribeBrokerOutput`](crate::operation::describe_broker::DescribeBrokerOutput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DescribeBrokerOutputBuilder {
    pub(crate) actions_required: ::std::option::Option<::std::vec::Vec<crate::types::ActionRequired>>,
    pub(crate) authentication_strategy: ::std::option::Option<crate::types::AuthenticationStrategy>,
    pub(crate) auto_minor_version_upgrade: ::std::option::Option<bool>,
    pub(crate) broker_arn: ::std::option::Option<::std::string::String>,
    pub(crate) broker_id: ::std::option::Option<::std::string::String>,
    pub(crate) broker_instances: ::std::option::Option<::std::vec::Vec<crate::types::BrokerInstance>>,
    pub(crate) broker_name: ::std::option::Option<::std::string::String>,
    pub(crate) broker_state: ::std::option::Option<crate::types::BrokerState>,
    pub(crate) configurations: ::std::option::Option<crate::types::Configurations>,
    pub(crate) created: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) deployment_mode: ::std::option::Option<crate::types::DeploymentMode>,
    pub(crate) encryption_options: ::std::option::Option<crate::types::EncryptionOptions>,
    pub(crate) engine_type: ::std::option::Option<crate::types::EngineType>,
    pub(crate) engine_version: ::std::option::Option<::std::string::String>,
    pub(crate) host_instance_type: ::std::option::Option<::std::string::String>,
    pub(crate) ldap_server_metadata: ::std::option::Option<crate::types::LdapServerMetadataOutput>,
    pub(crate) logs: ::std::option::Option<crate::types::LogsSummary>,
    pub(crate) maintenance_window_start_time: ::std::option::Option<crate::types::WeeklyStartTime>,
    pub(crate) pending_authentication_strategy: ::std::option::Option<crate::types::AuthenticationStrategy>,
    pub(crate) pending_engine_version: ::std::option::Option<::std::string::String>,
    pub(crate) pending_host_instance_type: ::std::option::Option<::std::string::String>,
    pub(crate) pending_ldap_server_metadata: ::std::option::Option<crate::types::LdapServerMetadataOutput>,
    pub(crate) pending_security_groups: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) publicly_accessible: ::std::option::Option<bool>,
    pub(crate) security_groups: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) storage_type: ::std::option::Option<crate::types::BrokerStorageType>,
    pub(crate) subnet_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
    pub(crate) users: ::std::option::Option<::std::vec::Vec<crate::types::UserSummary>>,
    pub(crate) data_replication_metadata: ::std::option::Option<crate::types::DataReplicationMetadataOutput>,
    pub(crate) data_replication_mode: ::std::option::Option<crate::types::DataReplicationMode>,
    pub(crate) pending_data_replication_metadata: ::std::option::Option<crate::types::DataReplicationMetadataOutput>,
    pub(crate) pending_data_replication_mode: ::std::option::Option<crate::types::DataReplicationMode>,
    _request_id: Option<String>,
}
impl DescribeBrokerOutputBuilder {
    /// Appends an item to `actions_required`.
    ///
    /// To override the contents of this collection use [`set_actions_required`](Self::set_actions_required).
    ///
    /// <p>Actions required for a broker.</p>
    pub fn actions_required(mut self, input: crate::types::ActionRequired) -> Self {
        let mut v = self.actions_required.unwrap_or_default();
        v.push(input);
        self.actions_required = ::std::option::Option::Some(v);
        self
    }
    /// <p>Actions required for a broker.</p>
    pub fn set_actions_required(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ActionRequired>>) -> Self {
        self.actions_required = input;
        self
    }
    /// <p>Actions required for a broker.</p>
    pub fn get_actions_required(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ActionRequired>> {
        &self.actions_required
    }
    /// <p>The authentication strategy used to secure the broker. The default is SIMPLE.</p>
    pub fn authentication_strategy(mut self, input: crate::types::AuthenticationStrategy) -> Self {
        self.authentication_strategy = ::std::option::Option::Some(input);
        self
    }
    /// <p>The authentication strategy used to secure the broker. The default is SIMPLE.</p>
    pub fn set_authentication_strategy(mut self, input: ::std::option::Option<crate::types::AuthenticationStrategy>) -> Self {
        self.authentication_strategy = input;
        self
    }
    /// <p>The authentication strategy used to secure the broker. The default is SIMPLE.</p>
    pub fn get_authentication_strategy(&self) -> &::std::option::Option<crate::types::AuthenticationStrategy> {
        &self.authentication_strategy
    }
    /// <p>Enables automatic upgrades to new minor versions for brokers, as new versions are released and supported by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window of the broker or after a manual broker reboot.</p>
    pub fn auto_minor_version_upgrade(mut self, input: bool) -> Self {
        self.auto_minor_version_upgrade = ::std::option::Option::Some(input);
        self
    }
    /// <p>Enables automatic upgrades to new minor versions for brokers, as new versions are released and supported by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window of the broker or after a manual broker reboot.</p>
    pub fn set_auto_minor_version_upgrade(mut self, input: ::std::option::Option<bool>) -> Self {
        self.auto_minor_version_upgrade = input;
        self
    }
    /// <p>Enables automatic upgrades to new minor versions for brokers, as new versions are released and supported by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window of the broker or after a manual broker reboot.</p>
    pub fn get_auto_minor_version_upgrade(&self) -> &::std::option::Option<bool> {
        &self.auto_minor_version_upgrade
    }
    /// <p>The broker's Amazon Resource Name (ARN).</p>
    pub fn broker_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.broker_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The broker's Amazon Resource Name (ARN).</p>
    pub fn set_broker_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.broker_arn = input;
        self
    }
    /// <p>The broker's Amazon Resource Name (ARN).</p>
    pub fn get_broker_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.broker_arn
    }
    /// <p>The unique ID that Amazon MQ generates for the broker.</p>
    pub fn broker_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.broker_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique ID that Amazon MQ generates for the broker.</p>
    pub fn set_broker_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.broker_id = input;
        self
    }
    /// <p>The unique ID that Amazon MQ generates for the broker.</p>
    pub fn get_broker_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.broker_id
    }
    /// Appends an item to `broker_instances`.
    ///
    /// To override the contents of this collection use [`set_broker_instances`](Self::set_broker_instances).
    ///
    /// <p>A list of information about allocated brokers.</p>
    pub fn broker_instances(mut self, input: crate::types::BrokerInstance) -> Self {
        let mut v = self.broker_instances.unwrap_or_default();
        v.push(input);
        self.broker_instances = ::std::option::Option::Some(v);
        self
    }
    /// <p>A list of information about allocated brokers.</p>
    pub fn set_broker_instances(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::BrokerInstance>>) -> Self {
        self.broker_instances = input;
        self
    }
    /// <p>A list of information about allocated brokers.</p>
    pub fn get_broker_instances(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::BrokerInstance>> {
        &self.broker_instances
    }
    /// <p>The broker's name. This value must be unique in your Amazon Web Services account account, 1-50 characters long, must contain only letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special characters.</p>
    pub fn broker_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.broker_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The broker's name. This value must be unique in your Amazon Web Services account account, 1-50 characters long, must contain only letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special characters.</p>
    pub fn set_broker_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.broker_name = input;
        self
    }
    /// <p>The broker's name. This value must be unique in your Amazon Web Services account account, 1-50 characters long, must contain only letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special characters.</p>
    pub fn get_broker_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.broker_name
    }
    /// <p>The broker's status.</p>
    pub fn broker_state(mut self, input: crate::types::BrokerState) -> Self {
        self.broker_state = ::std::option::Option::Some(input);
        self
    }
    /// <p>The broker's status.</p>
    pub fn set_broker_state(mut self, input: ::std::option::Option<crate::types::BrokerState>) -> Self {
        self.broker_state = input;
        self
    }
    /// <p>The broker's status.</p>
    pub fn get_broker_state(&self) -> &::std::option::Option<crate::types::BrokerState> {
        &self.broker_state
    }
    /// <p>The list of all revisions for the specified configuration.</p>
    pub fn configurations(mut self, input: crate::types::Configurations) -> Self {
        self.configurations = ::std::option::Option::Some(input);
        self
    }
    /// <p>The list of all revisions for the specified configuration.</p>
    pub fn set_configurations(mut self, input: ::std::option::Option<crate::types::Configurations>) -> Self {
        self.configurations = input;
        self
    }
    /// <p>The list of all revisions for the specified configuration.</p>
    pub fn get_configurations(&self) -> &::std::option::Option<crate::types::Configurations> {
        &self.configurations
    }
    /// <p>The time when the broker was created.</p>
    pub fn created(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.created = ::std::option::Option::Some(input);
        self
    }
    /// <p>The time when the broker was created.</p>
    pub fn set_created(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.created = input;
        self
    }
    /// <p>The time when the broker was created.</p>
    pub fn get_created(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.created
    }
    /// <p>The broker's deployment mode.</p>
    pub fn deployment_mode(mut self, input: crate::types::DeploymentMode) -> Self {
        self.deployment_mode = ::std::option::Option::Some(input);
        self
    }
    /// <p>The broker's deployment mode.</p>
    pub fn set_deployment_mode(mut self, input: ::std::option::Option<crate::types::DeploymentMode>) -> Self {
        self.deployment_mode = input;
        self
    }
    /// <p>The broker's deployment mode.</p>
    pub fn get_deployment_mode(&self) -> &::std::option::Option<crate::types::DeploymentMode> {
        &self.deployment_mode
    }
    /// <p>Encryption options for the broker.</p>
    pub fn encryption_options(mut self, input: crate::types::EncryptionOptions) -> Self {
        self.encryption_options = ::std::option::Option::Some(input);
        self
    }
    /// <p>Encryption options for the broker.</p>
    pub fn set_encryption_options(mut self, input: ::std::option::Option<crate::types::EncryptionOptions>) -> Self {
        self.encryption_options = input;
        self
    }
    /// <p>Encryption options for the broker.</p>
    pub fn get_encryption_options(&self) -> &::std::option::Option<crate::types::EncryptionOptions> {
        &self.encryption_options
    }
    /// <p>The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.</p>
    pub fn engine_type(mut self, input: crate::types::EngineType) -> Self {
        self.engine_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.</p>
    pub fn set_engine_type(mut self, input: ::std::option::Option<crate::types::EngineType>) -> Self {
        self.engine_type = input;
        self
    }
    /// <p>The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.</p>
    pub fn get_engine_type(&self) -> &::std::option::Option<crate::types::EngineType> {
        &self.engine_type
    }
    /// <p>The broker engine's version. For a list of supported engine versions, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker-engine.html">Supported engines</a>.</p>
    pub fn engine_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.engine_version = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The broker engine's version. For a list of supported engine versions, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker-engine.html">Supported engines</a>.</p>
    pub fn set_engine_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.engine_version = input;
        self
    }
    /// <p>The broker engine's version. For a list of supported engine versions, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker-engine.html">Supported engines</a>.</p>
    pub fn get_engine_version(&self) -> &::std::option::Option<::std::string::String> {
        &self.engine_version
    }
    /// <p>The broker's instance type.</p>
    pub fn host_instance_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.host_instance_type = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The broker's instance type.</p>
    pub fn set_host_instance_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.host_instance_type = input;
        self
    }
    /// <p>The broker's instance type.</p>
    pub fn get_host_instance_type(&self) -> &::std::option::Option<::std::string::String> {
        &self.host_instance_type
    }
    /// <p>The metadata of the LDAP server used to authenticate and authorize connections to the broker.</p>
    pub fn ldap_server_metadata(mut self, input: crate::types::LdapServerMetadataOutput) -> Self {
        self.ldap_server_metadata = ::std::option::Option::Some(input);
        self
    }
    /// <p>The metadata of the LDAP server used to authenticate and authorize connections to the broker.</p>
    pub fn set_ldap_server_metadata(mut self, input: ::std::option::Option<crate::types::LdapServerMetadataOutput>) -> Self {
        self.ldap_server_metadata = input;
        self
    }
    /// <p>The metadata of the LDAP server used to authenticate and authorize connections to the broker.</p>
    pub fn get_ldap_server_metadata(&self) -> &::std::option::Option<crate::types::LdapServerMetadataOutput> {
        &self.ldap_server_metadata
    }
    /// <p>The list of information about logs currently enabled and pending to be deployed for the specified broker.</p>
    pub fn logs(mut self, input: crate::types::LogsSummary) -> Self {
        self.logs = ::std::option::Option::Some(input);
        self
    }
    /// <p>The list of information about logs currently enabled and pending to be deployed for the specified broker.</p>
    pub fn set_logs(mut self, input: ::std::option::Option<crate::types::LogsSummary>) -> Self {
        self.logs = input;
        self
    }
    /// <p>The list of information about logs currently enabled and pending to be deployed for the specified broker.</p>
    pub fn get_logs(&self) -> &::std::option::Option<crate::types::LogsSummary> {
        &self.logs
    }
    /// <p>The parameters that determine the WeeklyStartTime.</p>
    pub fn maintenance_window_start_time(mut self, input: crate::types::WeeklyStartTime) -> Self {
        self.maintenance_window_start_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>The parameters that determine the WeeklyStartTime.</p>
    pub fn set_maintenance_window_start_time(mut self, input: ::std::option::Option<crate::types::WeeklyStartTime>) -> Self {
        self.maintenance_window_start_time = input;
        self
    }
    /// <p>The parameters that determine the WeeklyStartTime.</p>
    pub fn get_maintenance_window_start_time(&self) -> &::std::option::Option<crate::types::WeeklyStartTime> {
        &self.maintenance_window_start_time
    }
    /// <p>The authentication strategy that will be applied when the broker is rebooted. The default is SIMPLE.</p>
    pub fn pending_authentication_strategy(mut self, input: crate::types::AuthenticationStrategy) -> Self {
        self.pending_authentication_strategy = ::std::option::Option::Some(input);
        self
    }
    /// <p>The authentication strategy that will be applied when the broker is rebooted. The default is SIMPLE.</p>
    pub fn set_pending_authentication_strategy(mut self, input: ::std::option::Option<crate::types::AuthenticationStrategy>) -> Self {
        self.pending_authentication_strategy = input;
        self
    }
    /// <p>The authentication strategy that will be applied when the broker is rebooted. The default is SIMPLE.</p>
    pub fn get_pending_authentication_strategy(&self) -> &::std::option::Option<crate::types::AuthenticationStrategy> {
        &self.pending_authentication_strategy
    }
    /// <p>The broker engine version to upgrade to. For a list of supported engine versions, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker-engine.html">Supported engines</a>.</p>
    pub fn pending_engine_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.pending_engine_version = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The broker engine version to upgrade to. For a list of supported engine versions, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker-engine.html">Supported engines</a>.</p>
    pub fn set_pending_engine_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.pending_engine_version = input;
        self
    }
    /// <p>The broker engine version to upgrade to. For a list of supported engine versions, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker-engine.html">Supported engines</a>.</p>
    pub fn get_pending_engine_version(&self) -> &::std::option::Option<::std::string::String> {
        &self.pending_engine_version
    }
    /// <p>The broker's host instance type to upgrade to. For a list of supported instance types, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker.html#broker-instance-types">Broker instance types</a>.</p>
    pub fn pending_host_instance_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.pending_host_instance_type = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The broker's host instance type to upgrade to. For a list of supported instance types, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker.html#broker-instance-types">Broker instance types</a>.</p>
    pub fn set_pending_host_instance_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.pending_host_instance_type = input;
        self
    }
    /// <p>The broker's host instance type to upgrade to. For a list of supported instance types, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker.html#broker-instance-types">Broker instance types</a>.</p>
    pub fn get_pending_host_instance_type(&self) -> &::std::option::Option<::std::string::String> {
        &self.pending_host_instance_type
    }
    /// <p>The metadata of the LDAP server that will be used to authenticate and authorize connections to the broker after it is rebooted.</p>
    pub fn pending_ldap_server_metadata(mut self, input: crate::types::LdapServerMetadataOutput) -> Self {
        self.pending_ldap_server_metadata = ::std::option::Option::Some(input);
        self
    }
    /// <p>The metadata of the LDAP server that will be used to authenticate and authorize connections to the broker after it is rebooted.</p>
    pub fn set_pending_ldap_server_metadata(mut self, input: ::std::option::Option<crate::types::LdapServerMetadataOutput>) -> Self {
        self.pending_ldap_server_metadata = input;
        self
    }
    /// <p>The metadata of the LDAP server that will be used to authenticate and authorize connections to the broker after it is rebooted.</p>
    pub fn get_pending_ldap_server_metadata(&self) -> &::std::option::Option<crate::types::LdapServerMetadataOutput> {
        &self.pending_ldap_server_metadata
    }
    /// Appends an item to `pending_security_groups`.
    ///
    /// To override the contents of this collection use [`set_pending_security_groups`](Self::set_pending_security_groups).
    ///
    /// <p>The list of pending security groups to authorize connections to brokers.</p>
    pub fn pending_security_groups(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.pending_security_groups.unwrap_or_default();
        v.push(input.into());
        self.pending_security_groups = ::std::option::Option::Some(v);
        self
    }
    /// <p>The list of pending security groups to authorize connections to brokers.</p>
    pub fn set_pending_security_groups(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.pending_security_groups = input;
        self
    }
    /// <p>The list of pending security groups to authorize connections to brokers.</p>
    pub fn get_pending_security_groups(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.pending_security_groups
    }
    /// <p>Enables connections from applications outside of the VPC that hosts the broker's subnets.</p>
    pub fn publicly_accessible(mut self, input: bool) -> Self {
        self.publicly_accessible = ::std::option::Option::Some(input);
        self
    }
    /// <p>Enables connections from applications outside of the VPC that hosts the broker's subnets.</p>
    pub fn set_publicly_accessible(mut self, input: ::std::option::Option<bool>) -> Self {
        self.publicly_accessible = input;
        self
    }
    /// <p>Enables connections from applications outside of the VPC that hosts the broker's subnets.</p>
    pub fn get_publicly_accessible(&self) -> &::std::option::Option<bool> {
        &self.publicly_accessible
    }
    /// Appends an item to `security_groups`.
    ///
    /// To override the contents of this collection use [`set_security_groups`](Self::set_security_groups).
    ///
    /// <p>The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.</p>
    pub fn security_groups(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.security_groups.unwrap_or_default();
        v.push(input.into());
        self.security_groups = ::std::option::Option::Some(v);
        self
    }
    /// <p>The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.</p>
    pub fn set_security_groups(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.security_groups = input;
        self
    }
    /// <p>The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.</p>
    pub fn get_security_groups(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.security_groups
    }
    /// <p>The broker's storage type.</p>
    pub fn storage_type(mut self, input: crate::types::BrokerStorageType) -> Self {
        self.storage_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The broker's storage type.</p>
    pub fn set_storage_type(mut self, input: ::std::option::Option<crate::types::BrokerStorageType>) -> Self {
        self.storage_type = input;
        self
    }
    /// <p>The broker's storage type.</p>
    pub fn get_storage_type(&self) -> &::std::option::Option<crate::types::BrokerStorageType> {
        &self.storage_type
    }
    /// Appends an item to `subnet_ids`.
    ///
    /// To override the contents of this collection use [`set_subnet_ids`](Self::set_subnet_ids).
    ///
    /// <p>The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones.</p>
    pub fn subnet_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.subnet_ids.unwrap_or_default();
        v.push(input.into());
        self.subnet_ids = ::std::option::Option::Some(v);
        self
    }
    /// <p>The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones.</p>
    pub fn set_subnet_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.subnet_ids = input;
        self
    }
    /// <p>The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones.</p>
    pub fn get_subnet_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.subnet_ids
    }
    /// Adds a key-value pair to `tags`.
    ///
    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
    ///
    /// <p>The list of all tags associated with this broker.</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>The list of all tags associated with this broker.</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>The list of all tags associated with this broker.</p>
    pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
        &self.tags
    }
    /// Appends an item to `users`.
    ///
    /// To override the contents of this collection use [`set_users`](Self::set_users).
    ///
    /// <p>The list of all broker usernames for the specified broker.</p>
    pub fn users(mut self, input: crate::types::UserSummary) -> Self {
        let mut v = self.users.unwrap_or_default();
        v.push(input);
        self.users = ::std::option::Option::Some(v);
        self
    }
    /// <p>The list of all broker usernames for the specified broker.</p>
    pub fn set_users(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::UserSummary>>) -> Self {
        self.users = input;
        self
    }
    /// <p>The list of all broker usernames for the specified broker.</p>
    pub fn get_users(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::UserSummary>> {
        &self.users
    }
    /// <p>The replication details of the data replication-enabled broker. Only returned if dataReplicationMode is set to CRDR.</p>
    pub fn data_replication_metadata(mut self, input: crate::types::DataReplicationMetadataOutput) -> Self {
        self.data_replication_metadata = ::std::option::Option::Some(input);
        self
    }
    /// <p>The replication details of the data replication-enabled broker. Only returned if dataReplicationMode is set to CRDR.</p>
    pub fn set_data_replication_metadata(mut self, input: ::std::option::Option<crate::types::DataReplicationMetadataOutput>) -> Self {
        self.data_replication_metadata = input;
        self
    }
    /// <p>The replication details of the data replication-enabled broker. Only returned if dataReplicationMode is set to CRDR.</p>
    pub fn get_data_replication_metadata(&self) -> &::std::option::Option<crate::types::DataReplicationMetadataOutput> {
        &self.data_replication_metadata
    }
    /// <p>Describes whether this broker is a part of a data replication pair.</p>
    pub fn data_replication_mode(mut self, input: crate::types::DataReplicationMode) -> Self {
        self.data_replication_mode = ::std::option::Option::Some(input);
        self
    }
    /// <p>Describes whether this broker is a part of a data replication pair.</p>
    pub fn set_data_replication_mode(mut self, input: ::std::option::Option<crate::types::DataReplicationMode>) -> Self {
        self.data_replication_mode = input;
        self
    }
    /// <p>Describes whether this broker is a part of a data replication pair.</p>
    pub fn get_data_replication_mode(&self) -> &::std::option::Option<crate::types::DataReplicationMode> {
        &self.data_replication_mode
    }
    /// <p>The pending replication details of the data replication-enabled broker. Only returned if pendingDataReplicationMode is set to CRDR.</p>
    pub fn pending_data_replication_metadata(mut self, input: crate::types::DataReplicationMetadataOutput) -> Self {
        self.pending_data_replication_metadata = ::std::option::Option::Some(input);
        self
    }
    /// <p>The pending replication details of the data replication-enabled broker. Only returned if pendingDataReplicationMode is set to CRDR.</p>
    pub fn set_pending_data_replication_metadata(mut self, input: ::std::option::Option<crate::types::DataReplicationMetadataOutput>) -> Self {
        self.pending_data_replication_metadata = input;
        self
    }
    /// <p>The pending replication details of the data replication-enabled broker. Only returned if pendingDataReplicationMode is set to CRDR.</p>
    pub fn get_pending_data_replication_metadata(&self) -> &::std::option::Option<crate::types::DataReplicationMetadataOutput> {
        &self.pending_data_replication_metadata
    }
    /// <p>Describes whether this broker will be a part of a data replication pair after reboot.</p>
    pub fn pending_data_replication_mode(mut self, input: crate::types::DataReplicationMode) -> Self {
        self.pending_data_replication_mode = ::std::option::Option::Some(input);
        self
    }
    /// <p>Describes whether this broker will be a part of a data replication pair after reboot.</p>
    pub fn set_pending_data_replication_mode(mut self, input: ::std::option::Option<crate::types::DataReplicationMode>) -> Self {
        self.pending_data_replication_mode = input;
        self
    }
    /// <p>Describes whether this broker will be a part of a data replication pair after reboot.</p>
    pub fn get_pending_data_replication_mode(&self) -> &::std::option::Option<crate::types::DataReplicationMode> {
        &self.pending_data_replication_mode
    }
    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 [`DescribeBrokerOutput`](crate::operation::describe_broker::DescribeBrokerOutput).
    pub fn build(self) -> crate::operation::describe_broker::DescribeBrokerOutput {
        crate::operation::describe_broker::DescribeBrokerOutput {
            actions_required: self.actions_required,
            authentication_strategy: self.authentication_strategy,
            auto_minor_version_upgrade: self.auto_minor_version_upgrade,
            broker_arn: self.broker_arn,
            broker_id: self.broker_id,
            broker_instances: self.broker_instances,
            broker_name: self.broker_name,
            broker_state: self.broker_state,
            configurations: self.configurations,
            created: self.created,
            deployment_mode: self.deployment_mode,
            encryption_options: self.encryption_options,
            engine_type: self.engine_type,
            engine_version: self.engine_version,
            host_instance_type: self.host_instance_type,
            ldap_server_metadata: self.ldap_server_metadata,
            logs: self.logs,
            maintenance_window_start_time: self.maintenance_window_start_time,
            pending_authentication_strategy: self.pending_authentication_strategy,
            pending_engine_version: self.pending_engine_version,
            pending_host_instance_type: self.pending_host_instance_type,
            pending_ldap_server_metadata: self.pending_ldap_server_metadata,
            pending_security_groups: self.pending_security_groups,
            publicly_accessible: self.publicly_accessible,
            security_groups: self.security_groups,
            storage_type: self.storage_type,
            subnet_ids: self.subnet_ids,
            tags: self.tags,
            users: self.users,
            data_replication_metadata: self.data_replication_metadata,
            data_replication_mode: self.data_replication_mode,
            pending_data_replication_metadata: self.pending_data_replication_metadata,
            pending_data_replication_mode: self.pending_data_replication_mode,
            _request_id: self._request_id,
        }
    }
}