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
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Returns information about the XML element or attribute that was sanitized in the configuration.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SanitizationWarning {
    /// <p>The name of the XML attribute that has been sanitized.</p>
    pub attribute_name: std::option::Option<std::string::String>,
    /// <p>The name of the XML element that has been sanitized.</p>
    pub element_name: std::option::Option<std::string::String>,
    /// <p>Required. The reason for which the XML elements or attributes were sanitized.</p>
    pub reason: std::option::Option<crate::model::SanitizationWarningReason>,
}
impl SanitizationWarning {
    /// <p>The name of the XML attribute that has been sanitized.</p>
    pub fn attribute_name(&self) -> std::option::Option<&str> {
        self.attribute_name.as_deref()
    }
    /// <p>The name of the XML element that has been sanitized.</p>
    pub fn element_name(&self) -> std::option::Option<&str> {
        self.element_name.as_deref()
    }
    /// <p>Required. The reason for which the XML elements or attributes were sanitized.</p>
    pub fn reason(&self) -> std::option::Option<&crate::model::SanitizationWarningReason> {
        self.reason.as_ref()
    }
}
impl std::fmt::Debug for SanitizationWarning {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("SanitizationWarning");
        formatter.field("attribute_name", &self.attribute_name);
        formatter.field("element_name", &self.element_name);
        formatter.field("reason", &self.reason);
        formatter.finish()
    }
}
/// See [`SanitizationWarning`](crate::model::SanitizationWarning)
pub mod sanitization_warning {
    /// A builder for [`SanitizationWarning`](crate::model::SanitizationWarning)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) attribute_name: std::option::Option<std::string::String>,
        pub(crate) element_name: std::option::Option<std::string::String>,
        pub(crate) reason: std::option::Option<crate::model::SanitizationWarningReason>,
    }
    impl Builder {
        /// <p>The name of the XML attribute that has been sanitized.</p>
        pub fn attribute_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.attribute_name = Some(input.into());
            self
        }
        /// <p>The name of the XML attribute that has been sanitized.</p>
        pub fn set_attribute_name(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.attribute_name = input;
            self
        }
        /// <p>The name of the XML element that has been sanitized.</p>
        pub fn element_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.element_name = Some(input.into());
            self
        }
        /// <p>The name of the XML element that has been sanitized.</p>
        pub fn set_element_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.element_name = input;
            self
        }
        /// <p>Required. The reason for which the XML elements or attributes were sanitized.</p>
        pub fn reason(mut self, input: crate::model::SanitizationWarningReason) -> Self {
            self.reason = Some(input);
            self
        }
        /// <p>Required. The reason for which the XML elements or attributes were sanitized.</p>
        pub fn set_reason(
            mut self,
            input: std::option::Option<crate::model::SanitizationWarningReason>,
        ) -> Self {
            self.reason = input;
            self
        }
        /// Consumes the builder and constructs a [`SanitizationWarning`](crate::model::SanitizationWarning)
        pub fn build(self) -> crate::model::SanitizationWarning {
            crate::model::SanitizationWarning {
                attribute_name: self.attribute_name,
                element_name: self.element_name,
                reason: self.reason,
            }
        }
    }
}
impl SanitizationWarning {
    /// Creates a new builder-style object to manufacture [`SanitizationWarning`](crate::model::SanitizationWarning)
    pub fn builder() -> crate::model::sanitization_warning::Builder {
        crate::model::sanitization_warning::Builder::default()
    }
}

/// <p>The reason for which the XML elements or attributes were sanitized.</p>
#[non_exhaustive]
#[derive(
    std::clone::Clone,
    std::cmp::Eq,
    std::cmp::Ord,
    std::cmp::PartialEq,
    std::cmp::PartialOrd,
    std::fmt::Debug,
    std::hash::Hash,
)]
pub enum SanitizationWarningReason {
    #[allow(missing_docs)] // documentation missing in model
    DisallowedAttributeRemoved,
    #[allow(missing_docs)] // documentation missing in model
    DisallowedElementRemoved,
    #[allow(missing_docs)] // documentation missing in model
    InvalidAttributeValueRemoved,
    /// Unknown contains new variants that have been added since this code was generated.
    Unknown(String),
}
impl std::convert::From<&str> for SanitizationWarningReason {
    fn from(s: &str) -> Self {
        match s {
            "DISALLOWED_ATTRIBUTE_REMOVED" => SanitizationWarningReason::DisallowedAttributeRemoved,
            "DISALLOWED_ELEMENT_REMOVED" => SanitizationWarningReason::DisallowedElementRemoved,
            "INVALID_ATTRIBUTE_VALUE_REMOVED" => {
                SanitizationWarningReason::InvalidAttributeValueRemoved
            }
            other => SanitizationWarningReason::Unknown(other.to_owned()),
        }
    }
}
impl std::str::FromStr for SanitizationWarningReason {
    type Err = std::convert::Infallible;

    fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
        Ok(SanitizationWarningReason::from(s))
    }
}
impl SanitizationWarningReason {
    /// Returns the `&str` value of the enum member.
    pub fn as_str(&self) -> &str {
        match self {
            SanitizationWarningReason::DisallowedAttributeRemoved => "DISALLOWED_ATTRIBUTE_REMOVED",
            SanitizationWarningReason::DisallowedElementRemoved => "DISALLOWED_ELEMENT_REMOVED",
            SanitizationWarningReason::InvalidAttributeValueRemoved => {
                "INVALID_ATTRIBUTE_VALUE_REMOVED"
            }
            SanitizationWarningReason::Unknown(s) => s.as_ref(),
        }
    }
    /// Returns all the `&str` values of the enum members.
    pub fn values() -> &'static [&'static str] {
        &[
            "DISALLOWED_ATTRIBUTE_REMOVED",
            "DISALLOWED_ELEMENT_REMOVED",
            "INVALID_ATTRIBUTE_VALUE_REMOVED",
        ]
    }
}
impl AsRef<str> for SanitizationWarningReason {
    fn as_ref(&self) -> &str {
        self.as_str()
    }
}

/// <p>Returns information about the specified configuration revision.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ConfigurationRevision {
    /// <p>Required. The date and time of the configuration revision.</p>
    pub created: std::option::Option<aws_smithy_types::DateTime>,
    /// <p>The description of the configuration revision.</p>
    pub description: std::option::Option<std::string::String>,
    /// <p>Required. The revision number of the configuration.</p>
    pub revision: i32,
}
impl ConfigurationRevision {
    /// <p>Required. The date and time of the configuration revision.</p>
    pub fn created(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
        self.created.as_ref()
    }
    /// <p>The description of the configuration revision.</p>
    pub fn description(&self) -> std::option::Option<&str> {
        self.description.as_deref()
    }
    /// <p>Required. The revision number of the configuration.</p>
    pub fn revision(&self) -> i32 {
        self.revision
    }
}
impl std::fmt::Debug for ConfigurationRevision {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("ConfigurationRevision");
        formatter.field("created", &self.created);
        formatter.field("description", &self.description);
        formatter.field("revision", &self.revision);
        formatter.finish()
    }
}
/// See [`ConfigurationRevision`](crate::model::ConfigurationRevision)
pub mod configuration_revision {
    /// A builder for [`ConfigurationRevision`](crate::model::ConfigurationRevision)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) created: std::option::Option<aws_smithy_types::DateTime>,
        pub(crate) description: std::option::Option<std::string::String>,
        pub(crate) revision: std::option::Option<i32>,
    }
    impl Builder {
        /// <p>Required. The date and time of the configuration revision.</p>
        pub fn created(mut self, input: aws_smithy_types::DateTime) -> Self {
            self.created = Some(input);
            self
        }
        /// <p>Required. The date and time of the configuration revision.</p>
        pub fn set_created(
            mut self,
            input: std::option::Option<aws_smithy_types::DateTime>,
        ) -> Self {
            self.created = input;
            self
        }
        /// <p>The description of the configuration revision.</p>
        pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
            self.description = Some(input.into());
            self
        }
        /// <p>The description of the configuration revision.</p>
        pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.description = input;
            self
        }
        /// <p>Required. The revision number of the configuration.</p>
        pub fn revision(mut self, input: i32) -> Self {
            self.revision = Some(input);
            self
        }
        /// <p>Required. The revision number of the configuration.</p>
        pub fn set_revision(mut self, input: std::option::Option<i32>) -> Self {
            self.revision = input;
            self
        }
        /// Consumes the builder and constructs a [`ConfigurationRevision`](crate::model::ConfigurationRevision)
        pub fn build(self) -> crate::model::ConfigurationRevision {
            crate::model::ConfigurationRevision {
                created: self.created,
                description: self.description,
                revision: self.revision.unwrap_or_default(),
            }
        }
    }
}
impl ConfigurationRevision {
    /// Creates a new builder-style object to manufacture [`ConfigurationRevision`](crate::model::ConfigurationRevision)
    pub fn builder() -> crate::model::configuration_revision::Builder {
        crate::model::configuration_revision::Builder::default()
    }
}

/// <p>The scheduled time period relative to UTC during which Amazon MQ begins to apply pending updates or patches to the broker.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct WeeklyStartTime {
    /// <p>Required. The day of the week.</p>
    pub day_of_week: std::option::Option<crate::model::DayOfWeek>,
    /// <p>Required. The time, in 24-hour format.</p>
    pub time_of_day: std::option::Option<std::string::String>,
    /// <p>The time zone, UTC by default, in either the Country/City format, or the UTC offset format.</p>
    pub time_zone: std::option::Option<std::string::String>,
}
impl WeeklyStartTime {
    /// <p>Required. The day of the week.</p>
    pub fn day_of_week(&self) -> std::option::Option<&crate::model::DayOfWeek> {
        self.day_of_week.as_ref()
    }
    /// <p>Required. The time, in 24-hour format.</p>
    pub fn time_of_day(&self) -> std::option::Option<&str> {
        self.time_of_day.as_deref()
    }
    /// <p>The time zone, UTC by default, in either the Country/City format, or the UTC offset format.</p>
    pub fn time_zone(&self) -> std::option::Option<&str> {
        self.time_zone.as_deref()
    }
}
impl std::fmt::Debug for WeeklyStartTime {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("WeeklyStartTime");
        formatter.field("day_of_week", &self.day_of_week);
        formatter.field("time_of_day", &self.time_of_day);
        formatter.field("time_zone", &self.time_zone);
        formatter.finish()
    }
}
/// See [`WeeklyStartTime`](crate::model::WeeklyStartTime)
pub mod weekly_start_time {
    /// A builder for [`WeeklyStartTime`](crate::model::WeeklyStartTime)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) day_of_week: std::option::Option<crate::model::DayOfWeek>,
        pub(crate) time_of_day: std::option::Option<std::string::String>,
        pub(crate) time_zone: std::option::Option<std::string::String>,
    }
    impl Builder {
        /// <p>Required. The day of the week.</p>
        pub fn day_of_week(mut self, input: crate::model::DayOfWeek) -> Self {
            self.day_of_week = Some(input);
            self
        }
        /// <p>Required. The day of the week.</p>
        pub fn set_day_of_week(
            mut self,
            input: std::option::Option<crate::model::DayOfWeek>,
        ) -> Self {
            self.day_of_week = input;
            self
        }
        /// <p>Required. The time, in 24-hour format.</p>
        pub fn time_of_day(mut self, input: impl Into<std::string::String>) -> Self {
            self.time_of_day = Some(input.into());
            self
        }
        /// <p>Required. The time, in 24-hour format.</p>
        pub fn set_time_of_day(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.time_of_day = input;
            self
        }
        /// <p>The time zone, UTC by default, in either the Country/City format, or the UTC offset format.</p>
        pub fn time_zone(mut self, input: impl Into<std::string::String>) -> Self {
            self.time_zone = Some(input.into());
            self
        }
        /// <p>The time zone, UTC by default, in either the Country/City format, or the UTC offset format.</p>
        pub fn set_time_zone(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.time_zone = input;
            self
        }
        /// Consumes the builder and constructs a [`WeeklyStartTime`](crate::model::WeeklyStartTime)
        pub fn build(self) -> crate::model::WeeklyStartTime {
            crate::model::WeeklyStartTime {
                day_of_week: self.day_of_week,
                time_of_day: self.time_of_day,
                time_zone: self.time_zone,
            }
        }
    }
}
impl WeeklyStartTime {
    /// Creates a new builder-style object to manufacture [`WeeklyStartTime`](crate::model::WeeklyStartTime)
    pub fn builder() -> crate::model::weekly_start_time::Builder {
        crate::model::weekly_start_time::Builder::default()
    }
}

#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(
    std::clone::Clone,
    std::cmp::Eq,
    std::cmp::Ord,
    std::cmp::PartialEq,
    std::cmp::PartialOrd,
    std::fmt::Debug,
    std::hash::Hash,
)]
pub enum DayOfWeek {
    #[allow(missing_docs)] // documentation missing in model
    Friday,
    #[allow(missing_docs)] // documentation missing in model
    Monday,
    #[allow(missing_docs)] // documentation missing in model
    Saturday,
    #[allow(missing_docs)] // documentation missing in model
    Sunday,
    #[allow(missing_docs)] // documentation missing in model
    Thursday,
    #[allow(missing_docs)] // documentation missing in model
    Tuesday,
    #[allow(missing_docs)] // documentation missing in model
    Wednesday,
    /// Unknown contains new variants that have been added since this code was generated.
    Unknown(String),
}
impl std::convert::From<&str> for DayOfWeek {
    fn from(s: &str) -> Self {
        match s {
            "FRIDAY" => DayOfWeek::Friday,
            "MONDAY" => DayOfWeek::Monday,
            "SATURDAY" => DayOfWeek::Saturday,
            "SUNDAY" => DayOfWeek::Sunday,
            "THURSDAY" => DayOfWeek::Thursday,
            "TUESDAY" => DayOfWeek::Tuesday,
            "WEDNESDAY" => DayOfWeek::Wednesday,
            other => DayOfWeek::Unknown(other.to_owned()),
        }
    }
}
impl std::str::FromStr for DayOfWeek {
    type Err = std::convert::Infallible;

    fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
        Ok(DayOfWeek::from(s))
    }
}
impl DayOfWeek {
    /// Returns the `&str` value of the enum member.
    pub fn as_str(&self) -> &str {
        match self {
            DayOfWeek::Friday => "FRIDAY",
            DayOfWeek::Monday => "MONDAY",
            DayOfWeek::Saturday => "SATURDAY",
            DayOfWeek::Sunday => "SUNDAY",
            DayOfWeek::Thursday => "THURSDAY",
            DayOfWeek::Tuesday => "TUESDAY",
            DayOfWeek::Wednesday => "WEDNESDAY",
            DayOfWeek::Unknown(s) => s.as_ref(),
        }
    }
    /// Returns all the `&str` values of the enum members.
    pub fn values() -> &'static [&'static str] {
        &[
            "FRIDAY",
            "MONDAY",
            "SATURDAY",
            "SUNDAY",
            "THURSDAY",
            "TUESDAY",
            "WEDNESDAY",
        ]
    }
}
impl AsRef<str> for DayOfWeek {
    fn as_ref(&self) -> &str {
        self.as_str()
    }
}

/// <p>The list of information about logs to be enabled for the specified broker.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct Logs {
    /// <p>Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged. Does not apply to RabbitMQ brokers.</p>
    pub audit: bool,
    /// <p>Enables general logging.</p>
    pub general: bool,
}
impl Logs {
    /// <p>Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged. Does not apply to RabbitMQ brokers.</p>
    pub fn audit(&self) -> bool {
        self.audit
    }
    /// <p>Enables general logging.</p>
    pub fn general(&self) -> bool {
        self.general
    }
}
impl std::fmt::Debug for Logs {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("Logs");
        formatter.field("audit", &self.audit);
        formatter.field("general", &self.general);
        formatter.finish()
    }
}
/// See [`Logs`](crate::model::Logs)
pub mod logs {
    /// A builder for [`Logs`](crate::model::Logs)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) audit: std::option::Option<bool>,
        pub(crate) general: std::option::Option<bool>,
    }
    impl Builder {
        /// <p>Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged. Does not apply to RabbitMQ brokers.</p>
        pub fn audit(mut self, input: bool) -> Self {
            self.audit = Some(input);
            self
        }
        /// <p>Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged. Does not apply to RabbitMQ brokers.</p>
        pub fn set_audit(mut self, input: std::option::Option<bool>) -> Self {
            self.audit = input;
            self
        }
        /// <p>Enables general logging.</p>
        pub fn general(mut self, input: bool) -> Self {
            self.general = Some(input);
            self
        }
        /// <p>Enables general logging.</p>
        pub fn set_general(mut self, input: std::option::Option<bool>) -> Self {
            self.general = input;
            self
        }
        /// Consumes the builder and constructs a [`Logs`](crate::model::Logs)
        pub fn build(self) -> crate::model::Logs {
            crate::model::Logs {
                audit: self.audit.unwrap_or_default(),
                general: self.general.unwrap_or_default(),
            }
        }
    }
}
impl Logs {
    /// Creates a new builder-style object to manufacture [`Logs`](crate::model::Logs)
    pub fn builder() -> crate::model::logs::Builder {
        crate::model::logs::Builder::default()
    }
}

/// <p>Optional. The metadata of the LDAP server used to authenticate and authorize connections to the broker.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct LdapServerMetadataOutput {
    /// <p>Specifies the location of the LDAP server such as AWS Directory Service for Microsoft Active Directory . Optional failover server.</p>
    pub hosts: std::option::Option<std::vec::Vec<std::string::String>>,
    /// <p>The distinguished name of the node in the directory information tree (DIT) to search for roles or groups. For example, ou=group, ou=corp, dc=corp, dc=example, dc=com.</p>
    pub role_base: std::option::Option<std::string::String>,
    /// <p>Specifies the LDAP attribute that identifies the group name attribute in the object returned from the group membership query.</p>
    pub role_name: std::option::Option<std::string::String>,
    /// <p>The LDAP search filter used to find roles within the roleBase. The distinguished name of the user matched by userSearchMatching is substituted into the {0} placeholder in the search filter. The client's username is substituted into the {1} placeholder. For example, if you set this option to (member=uid={1})for the user janedoe, the search filter becomes (member=uid=janedoe) after string substitution. It matches all role entries that have a member attribute equal to uid=janedoe under the subtree selected by the roleBase.</p>
    pub role_search_matching: std::option::Option<std::string::String>,
    /// <p>The directory search scope for the role. If set to true, scope is to search the entire subtree.</p>
    pub role_search_subtree: bool,
    /// <p>Service account username. A service account is an account in your LDAP server that has access to initiate a connection. For example, cn=admin,dc=corp, dc=example, dc=com.</p>
    pub service_account_username: std::option::Option<std::string::String>,
    /// <p>Select a particular subtree of the directory information tree (DIT) to search for user entries. The subtree is specified by a DN, which specifies the base node of the subtree. For example, by setting this option to ou=Users,ou=corp, dc=corp, dc=example, dc=com, the search for user entries is restricted to the subtree beneath ou=Users, ou=corp, dc=corp, dc=example, dc=com.</p>
    pub user_base: std::option::Option<std::string::String>,
    /// <p>Specifies the name of the LDAP attribute for the user group membership.</p>
    pub user_role_name: std::option::Option<std::string::String>,
    /// <p>The LDAP search filter used to find users within the userBase. The client's username is substituted into the {0} placeholder in the search filter. For example, if this option is set to (uid={0}) and the received username is janedoe, the search filter becomes (uid=janedoe) after string substitution. It will result in matching an entry like uid=janedoe, ou=Users,ou=corp, dc=corp, dc=example, dc=com.</p>
    pub user_search_matching: std::option::Option<std::string::String>,
    /// <p>The directory search scope for the user. If set to true, scope is to search the entire subtree.</p>
    pub user_search_subtree: bool,
}
impl LdapServerMetadataOutput {
    /// <p>Specifies the location of the LDAP server such as AWS Directory Service for Microsoft Active Directory . Optional failover server.</p>
    pub fn hosts(&self) -> std::option::Option<&[std::string::String]> {
        self.hosts.as_deref()
    }
    /// <p>The distinguished name of the node in the directory information tree (DIT) to search for roles or groups. For example, ou=group, ou=corp, dc=corp, dc=example, dc=com.</p>
    pub fn role_base(&self) -> std::option::Option<&str> {
        self.role_base.as_deref()
    }
    /// <p>Specifies the LDAP attribute that identifies the group name attribute in the object returned from the group membership query.</p>
    pub fn role_name(&self) -> std::option::Option<&str> {
        self.role_name.as_deref()
    }
    /// <p>The LDAP search filter used to find roles within the roleBase. The distinguished name of the user matched by userSearchMatching is substituted into the {0} placeholder in the search filter. The client's username is substituted into the {1} placeholder. For example, if you set this option to (member=uid={1})for the user janedoe, the search filter becomes (member=uid=janedoe) after string substitution. It matches all role entries that have a member attribute equal to uid=janedoe under the subtree selected by the roleBase.</p>
    pub fn role_search_matching(&self) -> std::option::Option<&str> {
        self.role_search_matching.as_deref()
    }
    /// <p>The directory search scope for the role. If set to true, scope is to search the entire subtree.</p>
    pub fn role_search_subtree(&self) -> bool {
        self.role_search_subtree
    }
    /// <p>Service account username. A service account is an account in your LDAP server that has access to initiate a connection. For example, cn=admin,dc=corp, dc=example, dc=com.</p>
    pub fn service_account_username(&self) -> std::option::Option<&str> {
        self.service_account_username.as_deref()
    }
    /// <p>Select a particular subtree of the directory information tree (DIT) to search for user entries. The subtree is specified by a DN, which specifies the base node of the subtree. For example, by setting this option to ou=Users,ou=corp, dc=corp, dc=example, dc=com, the search for user entries is restricted to the subtree beneath ou=Users, ou=corp, dc=corp, dc=example, dc=com.</p>
    pub fn user_base(&self) -> std::option::Option<&str> {
        self.user_base.as_deref()
    }
    /// <p>Specifies the name of the LDAP attribute for the user group membership.</p>
    pub fn user_role_name(&self) -> std::option::Option<&str> {
        self.user_role_name.as_deref()
    }
    /// <p>The LDAP search filter used to find users within the userBase. The client's username is substituted into the {0} placeholder in the search filter. For example, if this option is set to (uid={0}) and the received username is janedoe, the search filter becomes (uid=janedoe) after string substitution. It will result in matching an entry like uid=janedoe, ou=Users,ou=corp, dc=corp, dc=example, dc=com.</p>
    pub fn user_search_matching(&self) -> std::option::Option<&str> {
        self.user_search_matching.as_deref()
    }
    /// <p>The directory search scope for the user. If set to true, scope is to search the entire subtree.</p>
    pub fn user_search_subtree(&self) -> bool {
        self.user_search_subtree
    }
}
impl std::fmt::Debug for LdapServerMetadataOutput {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("LdapServerMetadataOutput");
        formatter.field("hosts", &self.hosts);
        formatter.field("role_base", &self.role_base);
        formatter.field("role_name", &self.role_name);
        formatter.field("role_search_matching", &self.role_search_matching);
        formatter.field("role_search_subtree", &self.role_search_subtree);
        formatter.field("service_account_username", &self.service_account_username);
        formatter.field("user_base", &self.user_base);
        formatter.field("user_role_name", &self.user_role_name);
        formatter.field("user_search_matching", &self.user_search_matching);
        formatter.field("user_search_subtree", &self.user_search_subtree);
        formatter.finish()
    }
}
/// See [`LdapServerMetadataOutput`](crate::model::LdapServerMetadataOutput)
pub mod ldap_server_metadata_output {
    /// A builder for [`LdapServerMetadataOutput`](crate::model::LdapServerMetadataOutput)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) hosts: std::option::Option<std::vec::Vec<std::string::String>>,
        pub(crate) role_base: std::option::Option<std::string::String>,
        pub(crate) role_name: std::option::Option<std::string::String>,
        pub(crate) role_search_matching: std::option::Option<std::string::String>,
        pub(crate) role_search_subtree: std::option::Option<bool>,
        pub(crate) service_account_username: std::option::Option<std::string::String>,
        pub(crate) user_base: std::option::Option<std::string::String>,
        pub(crate) user_role_name: std::option::Option<std::string::String>,
        pub(crate) user_search_matching: std::option::Option<std::string::String>,
        pub(crate) user_search_subtree: std::option::Option<bool>,
    }
    impl Builder {
        /// Appends an item to `hosts`.
        ///
        /// To override the contents of this collection use [`set_hosts`](Self::set_hosts).
        ///
        /// <p>Specifies the location of the LDAP server such as AWS Directory Service for Microsoft Active Directory . Optional failover server.</p>
        pub fn hosts(mut self, input: impl Into<std::string::String>) -> Self {
            let mut v = self.hosts.unwrap_or_default();
            v.push(input.into());
            self.hosts = Some(v);
            self
        }
        /// <p>Specifies the location of the LDAP server such as AWS Directory Service for Microsoft Active Directory . Optional failover server.</p>
        pub fn set_hosts(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.hosts = input;
            self
        }
        /// <p>The distinguished name of the node in the directory information tree (DIT) to search for roles or groups. For example, ou=group, ou=corp, dc=corp, dc=example, dc=com.</p>
        pub fn role_base(mut self, input: impl Into<std::string::String>) -> Self {
            self.role_base = Some(input.into());
            self
        }
        /// <p>The distinguished name of the node in the directory information tree (DIT) to search for roles or groups. For example, ou=group, ou=corp, dc=corp, dc=example, dc=com.</p>
        pub fn set_role_base(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.role_base = input;
            self
        }
        /// <p>Specifies the LDAP attribute that identifies the group name attribute in the object returned from the group membership query.</p>
        pub fn role_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.role_name = Some(input.into());
            self
        }
        /// <p>Specifies the LDAP attribute that identifies the group name attribute in the object returned from the group membership query.</p>
        pub fn set_role_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.role_name = input;
            self
        }
        /// <p>The LDAP search filter used to find roles within the roleBase. The distinguished name of the user matched by userSearchMatching is substituted into the {0} placeholder in the search filter. The client's username is substituted into the {1} placeholder. For example, if you set this option to (member=uid={1})for the user janedoe, the search filter becomes (member=uid=janedoe) after string substitution. It matches all role entries that have a member attribute equal to uid=janedoe under the subtree selected by the roleBase.</p>
        pub fn role_search_matching(mut self, input: impl Into<std::string::String>) -> Self {
            self.role_search_matching = Some(input.into());
            self
        }
        /// <p>The LDAP search filter used to find roles within the roleBase. The distinguished name of the user matched by userSearchMatching is substituted into the {0} placeholder in the search filter. The client's username is substituted into the {1} placeholder. For example, if you set this option to (member=uid={1})for the user janedoe, the search filter becomes (member=uid=janedoe) after string substitution. It matches all role entries that have a member attribute equal to uid=janedoe under the subtree selected by the roleBase.</p>
        pub fn set_role_search_matching(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.role_search_matching = input;
            self
        }
        /// <p>The directory search scope for the role. If set to true, scope is to search the entire subtree.</p>
        pub fn role_search_subtree(mut self, input: bool) -> Self {
            self.role_search_subtree = Some(input);
            self
        }
        /// <p>The directory search scope for the role. If set to true, scope is to search the entire subtree.</p>
        pub fn set_role_search_subtree(mut self, input: std::option::Option<bool>) -> Self {
            self.role_search_subtree = input;
            self
        }
        /// <p>Service account username. A service account is an account in your LDAP server that has access to initiate a connection. For example, cn=admin,dc=corp, dc=example, dc=com.</p>
        pub fn service_account_username(mut self, input: impl Into<std::string::String>) -> Self {
            self.service_account_username = Some(input.into());
            self
        }
        /// <p>Service account username. A service account is an account in your LDAP server that has access to initiate a connection. For example, cn=admin,dc=corp, dc=example, dc=com.</p>
        pub fn set_service_account_username(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.service_account_username = input;
            self
        }
        /// <p>Select a particular subtree of the directory information tree (DIT) to search for user entries. The subtree is specified by a DN, which specifies the base node of the subtree. For example, by setting this option to ou=Users,ou=corp, dc=corp, dc=example, dc=com, the search for user entries is restricted to the subtree beneath ou=Users, ou=corp, dc=corp, dc=example, dc=com.</p>
        pub fn user_base(mut self, input: impl Into<std::string::String>) -> Self {
            self.user_base = Some(input.into());
            self
        }
        /// <p>Select a particular subtree of the directory information tree (DIT) to search for user entries. The subtree is specified by a DN, which specifies the base node of the subtree. For example, by setting this option to ou=Users,ou=corp, dc=corp, dc=example, dc=com, the search for user entries is restricted to the subtree beneath ou=Users, ou=corp, dc=corp, dc=example, dc=com.</p>
        pub fn set_user_base(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.user_base = input;
            self
        }
        /// <p>Specifies the name of the LDAP attribute for the user group membership.</p>
        pub fn user_role_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.user_role_name = Some(input.into());
            self
        }
        /// <p>Specifies the name of the LDAP attribute for the user group membership.</p>
        pub fn set_user_role_name(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.user_role_name = input;
            self
        }
        /// <p>The LDAP search filter used to find users within the userBase. The client's username is substituted into the {0} placeholder in the search filter. For example, if this option is set to (uid={0}) and the received username is janedoe, the search filter becomes (uid=janedoe) after string substitution. It will result in matching an entry like uid=janedoe, ou=Users,ou=corp, dc=corp, dc=example, dc=com.</p>
        pub fn user_search_matching(mut self, input: impl Into<std::string::String>) -> Self {
            self.user_search_matching = Some(input.into());
            self
        }
        /// <p>The LDAP search filter used to find users within the userBase. The client's username is substituted into the {0} placeholder in the search filter. For example, if this option is set to (uid={0}) and the received username is janedoe, the search filter becomes (uid=janedoe) after string substitution. It will result in matching an entry like uid=janedoe, ou=Users,ou=corp, dc=corp, dc=example, dc=com.</p>
        pub fn set_user_search_matching(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.user_search_matching = input;
            self
        }
        /// <p>The directory search scope for the user. If set to true, scope is to search the entire subtree.</p>
        pub fn user_search_subtree(mut self, input: bool) -> Self {
            self.user_search_subtree = Some(input);
            self
        }
        /// <p>The directory search scope for the user. If set to true, scope is to search the entire subtree.</p>
        pub fn set_user_search_subtree(mut self, input: std::option::Option<bool>) -> Self {
            self.user_search_subtree = input;
            self
        }
        /// Consumes the builder and constructs a [`LdapServerMetadataOutput`](crate::model::LdapServerMetadataOutput)
        pub fn build(self) -> crate::model::LdapServerMetadataOutput {
            crate::model::LdapServerMetadataOutput {
                hosts: self.hosts,
                role_base: self.role_base,
                role_name: self.role_name,
                role_search_matching: self.role_search_matching,
                role_search_subtree: self.role_search_subtree.unwrap_or_default(),
                service_account_username: self.service_account_username,
                user_base: self.user_base,
                user_role_name: self.user_role_name,
                user_search_matching: self.user_search_matching,
                user_search_subtree: self.user_search_subtree.unwrap_or_default(),
            }
        }
    }
}
impl LdapServerMetadataOutput {
    /// Creates a new builder-style object to manufacture [`LdapServerMetadataOutput`](crate::model::LdapServerMetadataOutput)
    pub fn builder() -> crate::model::ldap_server_metadata_output::Builder {
        crate::model::ldap_server_metadata_output::Builder::default()
    }
}

/// <p>A list of information about the configuration.</p> <important>
/// <p>Does not apply to RabbitMQ brokers.</p>
/// </important>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ConfigurationId {
    /// <p>Required. The unique ID that Amazon MQ generates for the configuration.</p>
    pub id: std::option::Option<std::string::String>,
    /// <p>The revision number of the configuration.</p>
    pub revision: i32,
}
impl ConfigurationId {
    /// <p>Required. The unique ID that Amazon MQ generates for the configuration.</p>
    pub fn id(&self) -> std::option::Option<&str> {
        self.id.as_deref()
    }
    /// <p>The revision number of the configuration.</p>
    pub fn revision(&self) -> i32 {
        self.revision
    }
}
impl std::fmt::Debug for ConfigurationId {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("ConfigurationId");
        formatter.field("id", &self.id);
        formatter.field("revision", &self.revision);
        formatter.finish()
    }
}
/// See [`ConfigurationId`](crate::model::ConfigurationId)
pub mod configuration_id {
    /// A builder for [`ConfigurationId`](crate::model::ConfigurationId)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) id: std::option::Option<std::string::String>,
        pub(crate) revision: std::option::Option<i32>,
    }
    impl Builder {
        /// <p>Required. The unique ID that Amazon MQ generates for the configuration.</p>
        pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
            self.id = Some(input.into());
            self
        }
        /// <p>Required. The unique ID that Amazon MQ generates for the configuration.</p>
        pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.id = input;
            self
        }
        /// <p>The revision number of the configuration.</p>
        pub fn revision(mut self, input: i32) -> Self {
            self.revision = Some(input);
            self
        }
        /// <p>The revision number of the configuration.</p>
        pub fn set_revision(mut self, input: std::option::Option<i32>) -> Self {
            self.revision = input;
            self
        }
        /// Consumes the builder and constructs a [`ConfigurationId`](crate::model::ConfigurationId)
        pub fn build(self) -> crate::model::ConfigurationId {
            crate::model::ConfigurationId {
                id: self.id,
                revision: self.revision.unwrap_or_default(),
            }
        }
    }
}
impl ConfigurationId {
    /// Creates a new builder-style object to manufacture [`ConfigurationId`](crate::model::ConfigurationId)
    pub fn builder() -> crate::model::configuration_id::Builder {
        crate::model::configuration_id::Builder::default()
    }
}

/// <p>Optional. The authentication strategy used to secure the broker. The default is SIMPLE.</p>
#[non_exhaustive]
#[derive(
    std::clone::Clone,
    std::cmp::Eq,
    std::cmp::Ord,
    std::cmp::PartialEq,
    std::cmp::PartialOrd,
    std::fmt::Debug,
    std::hash::Hash,
)]
pub enum AuthenticationStrategy {
    #[allow(missing_docs)] // documentation missing in model
    Ldap,
    #[allow(missing_docs)] // documentation missing in model
    Simple,
    /// Unknown contains new variants that have been added since this code was generated.
    Unknown(String),
}
impl std::convert::From<&str> for AuthenticationStrategy {
    fn from(s: &str) -> Self {
        match s {
            "LDAP" => AuthenticationStrategy::Ldap,
            "SIMPLE" => AuthenticationStrategy::Simple,
            other => AuthenticationStrategy::Unknown(other.to_owned()),
        }
    }
}
impl std::str::FromStr for AuthenticationStrategy {
    type Err = std::convert::Infallible;

    fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
        Ok(AuthenticationStrategy::from(s))
    }
}
impl AuthenticationStrategy {
    /// Returns the `&str` value of the enum member.
    pub fn as_str(&self) -> &str {
        match self {
            AuthenticationStrategy::Ldap => "LDAP",
            AuthenticationStrategy::Simple => "SIMPLE",
            AuthenticationStrategy::Unknown(s) => s.as_ref(),
        }
    }
    /// Returns all the `&str` values of the enum members.
    pub fn values() -> &'static [&'static str] {
        &["LDAP", "SIMPLE"]
    }
}
impl AsRef<str> for AuthenticationStrategy {
    fn as_ref(&self) -> &str {
        self.as_str()
    }
}

/// <p>Optional. The metadata of the LDAP server used to authenticate and authorize connections to the broker.</p> <important>
/// <p>Does not apply to RabbitMQ brokers.</p>
/// </important>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct LdapServerMetadataInput {
    /// <p>Specifies the location of the LDAP server such as AWS Directory Service for Microsoft Active Directory . Optional failover server.</p>
    pub hosts: std::option::Option<std::vec::Vec<std::string::String>>,
    /// <p>The distinguished name of the node in the directory information tree (DIT) to search for roles or groups. For example, ou=group, ou=corp, dc=corp, dc=example, dc=com.</p>
    pub role_base: std::option::Option<std::string::String>,
    /// <p>Specifies the LDAP attribute that identifies the group name attribute in the object returned from the group membership query.</p>
    pub role_name: std::option::Option<std::string::String>,
    /// <p>The LDAP search filter used to find roles within the roleBase. The distinguished name of the user matched by userSearchMatching is substituted into the {0} placeholder in the search filter. The client's username is substituted into the {1} placeholder. For example, if you set this option to (member=uid={1})for the user janedoe, the search filter becomes (member=uid=janedoe) after string substitution. It matches all role entries that have a member attribute equal to uid=janedoe under the subtree selected by the roleBase.</p>
    pub role_search_matching: std::option::Option<std::string::String>,
    /// <p>The directory search scope for the role. If set to true, scope is to search the entire subtree.</p>
    pub role_search_subtree: bool,
    /// <p>Service account password. A service account is an account in your LDAP server that has access to initiate a connection. For example, cn=admin,dc=corp, dc=example, dc=com.</p>
    pub service_account_password: std::option::Option<std::string::String>,
    /// <p>Service account username. A service account is an account in your LDAP server that has access to initiate a connection. For example, cn=admin,dc=corp, dc=example, dc=com.</p>
    pub service_account_username: std::option::Option<std::string::String>,
    /// <p>Select a particular subtree of the directory information tree (DIT) to search for user entries. The subtree is specified by a DN, which specifies the base node of the subtree. For example, by setting this option to ou=Users,ou=corp, dc=corp, dc=example, dc=com, the search for user entries is restricted to the subtree beneath ou=Users, ou=corp, dc=corp, dc=example, dc=com.</p>
    pub user_base: std::option::Option<std::string::String>,
    /// <p>Specifies the name of the LDAP attribute for the user group membership.</p>
    pub user_role_name: std::option::Option<std::string::String>,
    /// <p>The LDAP search filter used to find users within the userBase. The client's username is substituted into the {0} placeholder in the search filter. For example, if this option is set to (uid={0}) and the received username is janedoe, the search filter becomes (uid=janedoe) after string substitution. It will result in matching an entry like uid=janedoe, ou=Users,ou=corp, dc=corp, dc=example, dc=com.</p>
    pub user_search_matching: std::option::Option<std::string::String>,
    /// <p>The directory search scope for the user. If set to true, scope is to search the entire subtree.</p>
    pub user_search_subtree: bool,
}
impl LdapServerMetadataInput {
    /// <p>Specifies the location of the LDAP server such as AWS Directory Service for Microsoft Active Directory . Optional failover server.</p>
    pub fn hosts(&self) -> std::option::Option<&[std::string::String]> {
        self.hosts.as_deref()
    }
    /// <p>The distinguished name of the node in the directory information tree (DIT) to search for roles or groups. For example, ou=group, ou=corp, dc=corp, dc=example, dc=com.</p>
    pub fn role_base(&self) -> std::option::Option<&str> {
        self.role_base.as_deref()
    }
    /// <p>Specifies the LDAP attribute that identifies the group name attribute in the object returned from the group membership query.</p>
    pub fn role_name(&self) -> std::option::Option<&str> {
        self.role_name.as_deref()
    }
    /// <p>The LDAP search filter used to find roles within the roleBase. The distinguished name of the user matched by userSearchMatching is substituted into the {0} placeholder in the search filter. The client's username is substituted into the {1} placeholder. For example, if you set this option to (member=uid={1})for the user janedoe, the search filter becomes (member=uid=janedoe) after string substitution. It matches all role entries that have a member attribute equal to uid=janedoe under the subtree selected by the roleBase.</p>
    pub fn role_search_matching(&self) -> std::option::Option<&str> {
        self.role_search_matching.as_deref()
    }
    /// <p>The directory search scope for the role. If set to true, scope is to search the entire subtree.</p>
    pub fn role_search_subtree(&self) -> bool {
        self.role_search_subtree
    }
    /// <p>Service account password. A service account is an account in your LDAP server that has access to initiate a connection. For example, cn=admin,dc=corp, dc=example, dc=com.</p>
    pub fn service_account_password(&self) -> std::option::Option<&str> {
        self.service_account_password.as_deref()
    }
    /// <p>Service account username. A service account is an account in your LDAP server that has access to initiate a connection. For example, cn=admin,dc=corp, dc=example, dc=com.</p>
    pub fn service_account_username(&self) -> std::option::Option<&str> {
        self.service_account_username.as_deref()
    }
    /// <p>Select a particular subtree of the directory information tree (DIT) to search for user entries. The subtree is specified by a DN, which specifies the base node of the subtree. For example, by setting this option to ou=Users,ou=corp, dc=corp, dc=example, dc=com, the search for user entries is restricted to the subtree beneath ou=Users, ou=corp, dc=corp, dc=example, dc=com.</p>
    pub fn user_base(&self) -> std::option::Option<&str> {
        self.user_base.as_deref()
    }
    /// <p>Specifies the name of the LDAP attribute for the user group membership.</p>
    pub fn user_role_name(&self) -> std::option::Option<&str> {
        self.user_role_name.as_deref()
    }
    /// <p>The LDAP search filter used to find users within the userBase. The client's username is substituted into the {0} placeholder in the search filter. For example, if this option is set to (uid={0}) and the received username is janedoe, the search filter becomes (uid=janedoe) after string substitution. It will result in matching an entry like uid=janedoe, ou=Users,ou=corp, dc=corp, dc=example, dc=com.</p>
    pub fn user_search_matching(&self) -> std::option::Option<&str> {
        self.user_search_matching.as_deref()
    }
    /// <p>The directory search scope for the user. If set to true, scope is to search the entire subtree.</p>
    pub fn user_search_subtree(&self) -> bool {
        self.user_search_subtree
    }
}
impl std::fmt::Debug for LdapServerMetadataInput {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("LdapServerMetadataInput");
        formatter.field("hosts", &self.hosts);
        formatter.field("role_base", &self.role_base);
        formatter.field("role_name", &self.role_name);
        formatter.field("role_search_matching", &self.role_search_matching);
        formatter.field("role_search_subtree", &self.role_search_subtree);
        formatter.field("service_account_password", &self.service_account_password);
        formatter.field("service_account_username", &self.service_account_username);
        formatter.field("user_base", &self.user_base);
        formatter.field("user_role_name", &self.user_role_name);
        formatter.field("user_search_matching", &self.user_search_matching);
        formatter.field("user_search_subtree", &self.user_search_subtree);
        formatter.finish()
    }
}
/// See [`LdapServerMetadataInput`](crate::model::LdapServerMetadataInput)
pub mod ldap_server_metadata_input {
    /// A builder for [`LdapServerMetadataInput`](crate::model::LdapServerMetadataInput)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) hosts: std::option::Option<std::vec::Vec<std::string::String>>,
        pub(crate) role_base: std::option::Option<std::string::String>,
        pub(crate) role_name: std::option::Option<std::string::String>,
        pub(crate) role_search_matching: std::option::Option<std::string::String>,
        pub(crate) role_search_subtree: std::option::Option<bool>,
        pub(crate) service_account_password: std::option::Option<std::string::String>,
        pub(crate) service_account_username: std::option::Option<std::string::String>,
        pub(crate) user_base: std::option::Option<std::string::String>,
        pub(crate) user_role_name: std::option::Option<std::string::String>,
        pub(crate) user_search_matching: std::option::Option<std::string::String>,
        pub(crate) user_search_subtree: std::option::Option<bool>,
    }
    impl Builder {
        /// Appends an item to `hosts`.
        ///
        /// To override the contents of this collection use [`set_hosts`](Self::set_hosts).
        ///
        /// <p>Specifies the location of the LDAP server such as AWS Directory Service for Microsoft Active Directory . Optional failover server.</p>
        pub fn hosts(mut self, input: impl Into<std::string::String>) -> Self {
            let mut v = self.hosts.unwrap_or_default();
            v.push(input.into());
            self.hosts = Some(v);
            self
        }
        /// <p>Specifies the location of the LDAP server such as AWS Directory Service for Microsoft Active Directory . Optional failover server.</p>
        pub fn set_hosts(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.hosts = input;
            self
        }
        /// <p>The distinguished name of the node in the directory information tree (DIT) to search for roles or groups. For example, ou=group, ou=corp, dc=corp, dc=example, dc=com.</p>
        pub fn role_base(mut self, input: impl Into<std::string::String>) -> Self {
            self.role_base = Some(input.into());
            self
        }
        /// <p>The distinguished name of the node in the directory information tree (DIT) to search for roles or groups. For example, ou=group, ou=corp, dc=corp, dc=example, dc=com.</p>
        pub fn set_role_base(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.role_base = input;
            self
        }
        /// <p>Specifies the LDAP attribute that identifies the group name attribute in the object returned from the group membership query.</p>
        pub fn role_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.role_name = Some(input.into());
            self
        }
        /// <p>Specifies the LDAP attribute that identifies the group name attribute in the object returned from the group membership query.</p>
        pub fn set_role_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.role_name = input;
            self
        }
        /// <p>The LDAP search filter used to find roles within the roleBase. The distinguished name of the user matched by userSearchMatching is substituted into the {0} placeholder in the search filter. The client's username is substituted into the {1} placeholder. For example, if you set this option to (member=uid={1})for the user janedoe, the search filter becomes (member=uid=janedoe) after string substitution. It matches all role entries that have a member attribute equal to uid=janedoe under the subtree selected by the roleBase.</p>
        pub fn role_search_matching(mut self, input: impl Into<std::string::String>) -> Self {
            self.role_search_matching = Some(input.into());
            self
        }
        /// <p>The LDAP search filter used to find roles within the roleBase. The distinguished name of the user matched by userSearchMatching is substituted into the {0} placeholder in the search filter. The client's username is substituted into the {1} placeholder. For example, if you set this option to (member=uid={1})for the user janedoe, the search filter becomes (member=uid=janedoe) after string substitution. It matches all role entries that have a member attribute equal to uid=janedoe under the subtree selected by the roleBase.</p>
        pub fn set_role_search_matching(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.role_search_matching = input;
            self
        }
        /// <p>The directory search scope for the role. If set to true, scope is to search the entire subtree.</p>
        pub fn role_search_subtree(mut self, input: bool) -> Self {
            self.role_search_subtree = Some(input);
            self
        }
        /// <p>The directory search scope for the role. If set to true, scope is to search the entire subtree.</p>
        pub fn set_role_search_subtree(mut self, input: std::option::Option<bool>) -> Self {
            self.role_search_subtree = input;
            self
        }
        /// <p>Service account password. A service account is an account in your LDAP server that has access to initiate a connection. For example, cn=admin,dc=corp, dc=example, dc=com.</p>
        pub fn service_account_password(mut self, input: impl Into<std::string::String>) -> Self {
            self.service_account_password = Some(input.into());
            self
        }
        /// <p>Service account password. A service account is an account in your LDAP server that has access to initiate a connection. For example, cn=admin,dc=corp, dc=example, dc=com.</p>
        pub fn set_service_account_password(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.service_account_password = input;
            self
        }
        /// <p>Service account username. A service account is an account in your LDAP server that has access to initiate a connection. For example, cn=admin,dc=corp, dc=example, dc=com.</p>
        pub fn service_account_username(mut self, input: impl Into<std::string::String>) -> Self {
            self.service_account_username = Some(input.into());
            self
        }
        /// <p>Service account username. A service account is an account in your LDAP server that has access to initiate a connection. For example, cn=admin,dc=corp, dc=example, dc=com.</p>
        pub fn set_service_account_username(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.service_account_username = input;
            self
        }
        /// <p>Select a particular subtree of the directory information tree (DIT) to search for user entries. The subtree is specified by a DN, which specifies the base node of the subtree. For example, by setting this option to ou=Users,ou=corp, dc=corp, dc=example, dc=com, the search for user entries is restricted to the subtree beneath ou=Users, ou=corp, dc=corp, dc=example, dc=com.</p>
        pub fn user_base(mut self, input: impl Into<std::string::String>) -> Self {
            self.user_base = Some(input.into());
            self
        }
        /// <p>Select a particular subtree of the directory information tree (DIT) to search for user entries. The subtree is specified by a DN, which specifies the base node of the subtree. For example, by setting this option to ou=Users,ou=corp, dc=corp, dc=example, dc=com, the search for user entries is restricted to the subtree beneath ou=Users, ou=corp, dc=corp, dc=example, dc=com.</p>
        pub fn set_user_base(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.user_base = input;
            self
        }
        /// <p>Specifies the name of the LDAP attribute for the user group membership.</p>
        pub fn user_role_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.user_role_name = Some(input.into());
            self
        }
        /// <p>Specifies the name of the LDAP attribute for the user group membership.</p>
        pub fn set_user_role_name(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.user_role_name = input;
            self
        }
        /// <p>The LDAP search filter used to find users within the userBase. The client's username is substituted into the {0} placeholder in the search filter. For example, if this option is set to (uid={0}) and the received username is janedoe, the search filter becomes (uid=janedoe) after string substitution. It will result in matching an entry like uid=janedoe, ou=Users,ou=corp, dc=corp, dc=example, dc=com.</p>
        pub fn user_search_matching(mut self, input: impl Into<std::string::String>) -> Self {
            self.user_search_matching = Some(input.into());
            self
        }
        /// <p>The LDAP search filter used to find users within the userBase. The client's username is substituted into the {0} placeholder in the search filter. For example, if this option is set to (uid={0}) and the received username is janedoe, the search filter becomes (uid=janedoe) after string substitution. It will result in matching an entry like uid=janedoe, ou=Users,ou=corp, dc=corp, dc=example, dc=com.</p>
        pub fn set_user_search_matching(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.user_search_matching = input;
            self
        }
        /// <p>The directory search scope for the user. If set to true, scope is to search the entire subtree.</p>
        pub fn user_search_subtree(mut self, input: bool) -> Self {
            self.user_search_subtree = Some(input);
            self
        }
        /// <p>The directory search scope for the user. If set to true, scope is to search the entire subtree.</p>
        pub fn set_user_search_subtree(mut self, input: std::option::Option<bool>) -> Self {
            self.user_search_subtree = input;
            self
        }
        /// Consumes the builder and constructs a [`LdapServerMetadataInput`](crate::model::LdapServerMetadataInput)
        pub fn build(self) -> crate::model::LdapServerMetadataInput {
            crate::model::LdapServerMetadataInput {
                hosts: self.hosts,
                role_base: self.role_base,
                role_name: self.role_name,
                role_search_matching: self.role_search_matching,
                role_search_subtree: self.role_search_subtree.unwrap_or_default(),
                service_account_password: self.service_account_password,
                service_account_username: self.service_account_username,
                user_base: self.user_base,
                user_role_name: self.user_role_name,
                user_search_matching: self.user_search_matching,
                user_search_subtree: self.user_search_subtree.unwrap_or_default(),
            }
        }
    }
}
impl LdapServerMetadataInput {
    /// Creates a new builder-style object to manufacture [`LdapServerMetadataInput`](crate::model::LdapServerMetadataInput)
    pub fn builder() -> crate::model::ldap_server_metadata_input::Builder {
        crate::model::ldap_server_metadata_input::Builder::default()
    }
}

/// <p>Returns a list of all broker users. Does not apply to RabbitMQ brokers.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct UserSummary {
    /// <p>The type of change pending for the broker user.</p>
    pub pending_change: std::option::Option<crate::model::ChangeType>,
    /// <p>Required. The username of the broker user. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.</p>
    pub username: std::option::Option<std::string::String>,
}
impl UserSummary {
    /// <p>The type of change pending for the broker user.</p>
    pub fn pending_change(&self) -> std::option::Option<&crate::model::ChangeType> {
        self.pending_change.as_ref()
    }
    /// <p>Required. The username of the broker user. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.</p>
    pub fn username(&self) -> std::option::Option<&str> {
        self.username.as_deref()
    }
}
impl std::fmt::Debug for UserSummary {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("UserSummary");
        formatter.field("pending_change", &self.pending_change);
        formatter.field("username", &self.username);
        formatter.finish()
    }
}
/// See [`UserSummary`](crate::model::UserSummary)
pub mod user_summary {
    /// A builder for [`UserSummary`](crate::model::UserSummary)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) pending_change: std::option::Option<crate::model::ChangeType>,
        pub(crate) username: std::option::Option<std::string::String>,
    }
    impl Builder {
        /// <p>The type of change pending for the broker user.</p>
        pub fn pending_change(mut self, input: crate::model::ChangeType) -> Self {
            self.pending_change = Some(input);
            self
        }
        /// <p>The type of change pending for the broker user.</p>
        pub fn set_pending_change(
            mut self,
            input: std::option::Option<crate::model::ChangeType>,
        ) -> Self {
            self.pending_change = input;
            self
        }
        /// <p>Required. The username of the broker user. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.</p>
        pub fn username(mut self, input: impl Into<std::string::String>) -> Self {
            self.username = Some(input.into());
            self
        }
        /// <p>Required. The username of the broker user. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.</p>
        pub fn set_username(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.username = input;
            self
        }
        /// Consumes the builder and constructs a [`UserSummary`](crate::model::UserSummary)
        pub fn build(self) -> crate::model::UserSummary {
            crate::model::UserSummary {
                pending_change: self.pending_change,
                username: self.username,
            }
        }
    }
}
impl UserSummary {
    /// Creates a new builder-style object to manufacture [`UserSummary`](crate::model::UserSummary)
    pub fn builder() -> crate::model::user_summary::Builder {
        crate::model::user_summary::Builder::default()
    }
}

/// <p>The type of change pending for the ActiveMQ user.</p>
#[non_exhaustive]
#[derive(
    std::clone::Clone,
    std::cmp::Eq,
    std::cmp::Ord,
    std::cmp::PartialEq,
    std::cmp::PartialOrd,
    std::fmt::Debug,
    std::hash::Hash,
)]
pub enum ChangeType {
    #[allow(missing_docs)] // documentation missing in model
    Create,
    #[allow(missing_docs)] // documentation missing in model
    Delete,
    #[allow(missing_docs)] // documentation missing in model
    Update,
    /// Unknown contains new variants that have been added since this code was generated.
    Unknown(String),
}
impl std::convert::From<&str> for ChangeType {
    fn from(s: &str) -> Self {
        match s {
            "CREATE" => ChangeType::Create,
            "DELETE" => ChangeType::Delete,
            "UPDATE" => ChangeType::Update,
            other => ChangeType::Unknown(other.to_owned()),
        }
    }
}
impl std::str::FromStr for ChangeType {
    type Err = std::convert::Infallible;

    fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
        Ok(ChangeType::from(s))
    }
}
impl ChangeType {
    /// Returns the `&str` value of the enum member.
    pub fn as_str(&self) -> &str {
        match self {
            ChangeType::Create => "CREATE",
            ChangeType::Delete => "DELETE",
            ChangeType::Update => "UPDATE",
            ChangeType::Unknown(s) => s.as_ref(),
        }
    }
    /// Returns all the `&str` values of the enum members.
    pub fn values() -> &'static [&'static str] {
        &["CREATE", "DELETE", "UPDATE"]
    }
}
impl AsRef<str> for ChangeType {
    fn as_ref(&self) -> &str {
        self.as_str()
    }
}

/// <p>Returns information about all configurations.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct Configuration {
    /// <p>Required. The ARN of the configuration.</p>
    pub arn: std::option::Option<std::string::String>,
    /// <p>Optional. The authentication strategy associated with the configuration. The default is SIMPLE.</p>
    pub authentication_strategy: std::option::Option<crate::model::AuthenticationStrategy>,
    /// <p>Required. The date and time of the configuration revision.</p>
    pub created: std::option::Option<aws_smithy_types::DateTime>,
    /// <p>Required. The description of the configuration.</p>
    pub description: std::option::Option<std::string::String>,
    /// <p>Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.</p>
    pub engine_type: std::option::Option<crate::model::EngineType>,
    /// <p>Required. 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>Required. The unique ID that Amazon MQ generates for the configuration.</p>
    pub id: std::option::Option<std::string::String>,
    /// <p>Required. The latest revision of the configuration.</p>
    pub latest_revision: std::option::Option<crate::model::ConfigurationRevision>,
    /// <p>Required. The name of the configuration. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 1-150 characters long.</p>
    pub name: std::option::Option<std::string::String>,
    /// <p>The list of all tags associated with this configuration.</p>
    pub tags:
        std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
}
impl Configuration {
    /// <p>Required. The ARN of the configuration.</p>
    pub fn arn(&self) -> std::option::Option<&str> {
        self.arn.as_deref()
    }
    /// <p>Optional. The authentication strategy associated with the configuration. The default is SIMPLE.</p>
    pub fn authentication_strategy(
        &self,
    ) -> std::option::Option<&crate::model::AuthenticationStrategy> {
        self.authentication_strategy.as_ref()
    }
    /// <p>Required. The date and time of the configuration revision.</p>
    pub fn created(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
        self.created.as_ref()
    }
    /// <p>Required. The description of the configuration.</p>
    pub fn description(&self) -> std::option::Option<&str> {
        self.description.as_deref()
    }
    /// <p>Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.</p>
    pub fn engine_type(&self) -> std::option::Option<&crate::model::EngineType> {
        self.engine_type.as_ref()
    }
    /// <p>Required. 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>Required. The unique ID that Amazon MQ generates for the configuration.</p>
    pub fn id(&self) -> std::option::Option<&str> {
        self.id.as_deref()
    }
    /// <p>Required. The latest revision of the configuration.</p>
    pub fn latest_revision(&self) -> std::option::Option<&crate::model::ConfigurationRevision> {
        self.latest_revision.as_ref()
    }
    /// <p>Required. The name of the configuration. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 1-150 characters long.</p>
    pub fn name(&self) -> std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p>The list of all tags associated with this configuration.</p>
    pub fn tags(
        &self,
    ) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
    {
        self.tags.as_ref()
    }
}
impl std::fmt::Debug for Configuration {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("Configuration");
        formatter.field("arn", &self.arn);
        formatter.field("authentication_strategy", &self.authentication_strategy);
        formatter.field("created", &self.created);
        formatter.field("description", &self.description);
        formatter.field("engine_type", &self.engine_type);
        formatter.field("engine_version", &self.engine_version);
        formatter.field("id", &self.id);
        formatter.field("latest_revision", &self.latest_revision);
        formatter.field("name", &self.name);
        formatter.field("tags", &self.tags);
        formatter.finish()
    }
}
/// See [`Configuration`](crate::model::Configuration)
pub mod configuration {
    /// A builder for [`Configuration`](crate::model::Configuration)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) arn: std::option::Option<std::string::String>,
        pub(crate) authentication_strategy:
            std::option::Option<crate::model::AuthenticationStrategy>,
        pub(crate) created: std::option::Option<aws_smithy_types::DateTime>,
        pub(crate) description: std::option::Option<std::string::String>,
        pub(crate) engine_type: std::option::Option<crate::model::EngineType>,
        pub(crate) engine_version: std::option::Option<std::string::String>,
        pub(crate) id: std::option::Option<std::string::String>,
        pub(crate) latest_revision: std::option::Option<crate::model::ConfigurationRevision>,
        pub(crate) name: std::option::Option<std::string::String>,
        pub(crate) tags: std::option::Option<
            std::collections::HashMap<std::string::String, std::string::String>,
        >,
    }
    impl Builder {
        /// <p>Required. The ARN of the configuration.</p>
        pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
            self.arn = Some(input.into());
            self
        }
        /// <p>Required. The ARN of the configuration.</p>
        pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.arn = input;
            self
        }
        /// <p>Optional. The authentication strategy associated with the configuration. The default is SIMPLE.</p>
        pub fn authentication_strategy(
            mut self,
            input: crate::model::AuthenticationStrategy,
        ) -> Self {
            self.authentication_strategy = Some(input);
            self
        }
        /// <p>Optional. The authentication strategy associated with the configuration. The default is SIMPLE.</p>
        pub fn set_authentication_strategy(
            mut self,
            input: std::option::Option<crate::model::AuthenticationStrategy>,
        ) -> Self {
            self.authentication_strategy = input;
            self
        }
        /// <p>Required. The date and time of the configuration revision.</p>
        pub fn created(mut self, input: aws_smithy_types::DateTime) -> Self {
            self.created = Some(input);
            self
        }
        /// <p>Required. The date and time of the configuration revision.</p>
        pub fn set_created(
            mut self,
            input: std::option::Option<aws_smithy_types::DateTime>,
        ) -> Self {
            self.created = input;
            self
        }
        /// <p>Required. The description of the configuration.</p>
        pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
            self.description = Some(input.into());
            self
        }
        /// <p>Required. The description of the configuration.</p>
        pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.description = input;
            self
        }
        /// <p>Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.</p>
        pub fn engine_type(mut self, input: crate::model::EngineType) -> Self {
            self.engine_type = Some(input);
            self
        }
        /// <p>Required. 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::model::EngineType>,
        ) -> Self {
            self.engine_type = input;
            self
        }
        /// <p>Required. 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 Into<std::string::String>) -> Self {
            self.engine_version = Some(input.into());
            self
        }
        /// <p>Required. 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>Required. The unique ID that Amazon MQ generates for the configuration.</p>
        pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
            self.id = Some(input.into());
            self
        }
        /// <p>Required. The unique ID that Amazon MQ generates for the configuration.</p>
        pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.id = input;
            self
        }
        /// <p>Required. The latest revision of the configuration.</p>
        pub fn latest_revision(mut self, input: crate::model::ConfigurationRevision) -> Self {
            self.latest_revision = Some(input);
            self
        }
        /// <p>Required. The latest revision of the configuration.</p>
        pub fn set_latest_revision(
            mut self,
            input: std::option::Option<crate::model::ConfigurationRevision>,
        ) -> Self {
            self.latest_revision = input;
            self
        }
        /// <p>Required. The name of the configuration. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 1-150 characters long.</p>
        pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
            self.name = Some(input.into());
            self
        }
        /// <p>Required. The name of the configuration. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 1-150 characters long.</p>
        pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.name = input;
            self
        }
        /// 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 configuration.</p>
        pub fn tags(
            mut self,
            k: impl Into<std::string::String>,
            v: impl Into<std::string::String>,
        ) -> Self {
            let mut hash_map = self.tags.unwrap_or_default();
            hash_map.insert(k.into(), v.into());
            self.tags = Some(hash_map);
            self
        }
        /// <p>The list of all tags associated with this configuration.</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
        }
        /// Consumes the builder and constructs a [`Configuration`](crate::model::Configuration)
        pub fn build(self) -> crate::model::Configuration {
            crate::model::Configuration {
                arn: self.arn,
                authentication_strategy: self.authentication_strategy,
                created: self.created,
                description: self.description,
                engine_type: self.engine_type,
                engine_version: self.engine_version,
                id: self.id,
                latest_revision: self.latest_revision,
                name: self.name,
                tags: self.tags,
            }
        }
    }
}
impl Configuration {
    /// Creates a new builder-style object to manufacture [`Configuration`](crate::model::Configuration)
    pub fn builder() -> crate::model::configuration::Builder {
        crate::model::configuration::Builder::default()
    }
}

/// <p>The type of broker engine. Amazon MQ supports ActiveMQ and RabbitMQ.</p>
#[non_exhaustive]
#[derive(
    std::clone::Clone,
    std::cmp::Eq,
    std::cmp::Ord,
    std::cmp::PartialEq,
    std::cmp::PartialOrd,
    std::fmt::Debug,
    std::hash::Hash,
)]
pub enum EngineType {
    #[allow(missing_docs)] // documentation missing in model
    Activemq,
    #[allow(missing_docs)] // documentation missing in model
    Rabbitmq,
    /// Unknown contains new variants that have been added since this code was generated.
    Unknown(String),
}
impl std::convert::From<&str> for EngineType {
    fn from(s: &str) -> Self {
        match s {
            "ACTIVEMQ" => EngineType::Activemq,
            "RABBITMQ" => EngineType::Rabbitmq,
            other => EngineType::Unknown(other.to_owned()),
        }
    }
}
impl std::str::FromStr for EngineType {
    type Err = std::convert::Infallible;

    fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
        Ok(EngineType::from(s))
    }
}
impl EngineType {
    /// Returns the `&str` value of the enum member.
    pub fn as_str(&self) -> &str {
        match self {
            EngineType::Activemq => "ACTIVEMQ",
            EngineType::Rabbitmq => "RABBITMQ",
            EngineType::Unknown(s) => s.as_ref(),
        }
    }
    /// Returns all the `&str` values of the enum members.
    pub fn values() -> &'static [&'static str] {
        &["ACTIVEMQ", "RABBITMQ"]
    }
}
impl AsRef<str> for EngineType {
    fn as_ref(&self) -> &str {
        self.as_str()
    }
}

/// <p>Returns information about all brokers.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct BrokerSummary {
    /// <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>The broker's name. This value is unique in your AWS account, 1-50 characters long, and containing 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::model::BrokerState>,
    /// <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::model::DeploymentMode>,
    /// <p>The type of broker engine.</p>
    pub engine_type: std::option::Option<crate::model::EngineType>,
    /// <p>The broker's instance type.</p>
    pub host_instance_type: std::option::Option<std::string::String>,
}
impl BrokerSummary {
    /// <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>The broker's name. This value is unique in your AWS account, 1-50 characters long, and containing 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::model::BrokerState> {
        self.broker_state.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::model::DeploymentMode> {
        self.deployment_mode.as_ref()
    }
    /// <p>The type of broker engine.</p>
    pub fn engine_type(&self) -> std::option::Option<&crate::model::EngineType> {
        self.engine_type.as_ref()
    }
    /// <p>The broker's instance type.</p>
    pub fn host_instance_type(&self) -> std::option::Option<&str> {
        self.host_instance_type.as_deref()
    }
}
impl std::fmt::Debug for BrokerSummary {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("BrokerSummary");
        formatter.field("broker_arn", &self.broker_arn);
        formatter.field("broker_id", &self.broker_id);
        formatter.field("broker_name", &self.broker_name);
        formatter.field("broker_state", &self.broker_state);
        formatter.field("created", &self.created);
        formatter.field("deployment_mode", &self.deployment_mode);
        formatter.field("engine_type", &self.engine_type);
        formatter.field("host_instance_type", &self.host_instance_type);
        formatter.finish()
    }
}
/// See [`BrokerSummary`](crate::model::BrokerSummary)
pub mod broker_summary {
    /// A builder for [`BrokerSummary`](crate::model::BrokerSummary)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) broker_arn: std::option::Option<std::string::String>,
        pub(crate) broker_id: std::option::Option<std::string::String>,
        pub(crate) broker_name: std::option::Option<std::string::String>,
        pub(crate) broker_state: std::option::Option<crate::model::BrokerState>,
        pub(crate) created: std::option::Option<aws_smithy_types::DateTime>,
        pub(crate) deployment_mode: std::option::Option<crate::model::DeploymentMode>,
        pub(crate) engine_type: std::option::Option<crate::model::EngineType>,
        pub(crate) host_instance_type: std::option::Option<std::string::String>,
    }
    impl Builder {
        /// <p>The broker's Amazon Resource Name (ARN).</p>
        pub fn broker_arn(mut self, input: impl Into<std::string::String>) -> Self {
            self.broker_arn = 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 unique ID that Amazon MQ generates for the broker.</p>
        pub fn broker_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.broker_id = 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 broker's name. This value is unique in your AWS account, 1-50 characters long, and containing 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 Into<std::string::String>) -> Self {
            self.broker_name = Some(input.into());
            self
        }
        /// <p>The broker's name. This value is unique in your AWS account, 1-50 characters long, and containing 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 status.</p>
        pub fn broker_state(mut self, input: crate::model::BrokerState) -> Self {
            self.broker_state = Some(input);
            self
        }
        /// <p>The broker's status.</p>
        pub fn set_broker_state(
            mut self,
            input: std::option::Option<crate::model::BrokerState>,
        ) -> Self {
            self.broker_state = input;
            self
        }
        /// <p>The time when the broker was created.</p>
        pub fn created(mut self, input: aws_smithy_types::DateTime) -> Self {
            self.created = 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 broker's deployment mode.</p>
        pub fn deployment_mode(mut self, input: crate::model::DeploymentMode) -> Self {
            self.deployment_mode = Some(input);
            self
        }
        /// <p>The broker's deployment mode.</p>
        pub fn set_deployment_mode(
            mut self,
            input: std::option::Option<crate::model::DeploymentMode>,
        ) -> Self {
            self.deployment_mode = input;
            self
        }
        /// <p>The type of broker engine.</p>
        pub fn engine_type(mut self, input: crate::model::EngineType) -> Self {
            self.engine_type = Some(input);
            self
        }
        /// <p>The type of broker engine.</p>
        pub fn set_engine_type(
            mut self,
            input: std::option::Option<crate::model::EngineType>,
        ) -> Self {
            self.engine_type = input;
            self
        }
        /// <p>The broker's instance type.</p>
        pub fn host_instance_type(mut self, input: impl Into<std::string::String>) -> Self {
            self.host_instance_type = 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
        }
        /// Consumes the builder and constructs a [`BrokerSummary`](crate::model::BrokerSummary)
        pub fn build(self) -> crate::model::BrokerSummary {
            crate::model::BrokerSummary {
                broker_arn: self.broker_arn,
                broker_id: self.broker_id,
                broker_name: self.broker_name,
                broker_state: self.broker_state,
                created: self.created,
                deployment_mode: self.deployment_mode,
                engine_type: self.engine_type,
                host_instance_type: self.host_instance_type,
            }
        }
    }
}
impl BrokerSummary {
    /// Creates a new builder-style object to manufacture [`BrokerSummary`](crate::model::BrokerSummary)
    pub fn builder() -> crate::model::broker_summary::Builder {
        crate::model::broker_summary::Builder::default()
    }
}

/// <p>The broker's deployment mode.</p>
#[non_exhaustive]
#[derive(
    std::clone::Clone,
    std::cmp::Eq,
    std::cmp::Ord,
    std::cmp::PartialEq,
    std::cmp::PartialOrd,
    std::fmt::Debug,
    std::hash::Hash,
)]
pub enum DeploymentMode {
    #[allow(missing_docs)] // documentation missing in model
    ActiveStandbyMultiAz,
    #[allow(missing_docs)] // documentation missing in model
    ClusterMultiAz,
    #[allow(missing_docs)] // documentation missing in model
    SingleInstance,
    /// Unknown contains new variants that have been added since this code was generated.
    Unknown(String),
}
impl std::convert::From<&str> for DeploymentMode {
    fn from(s: &str) -> Self {
        match s {
            "ACTIVE_STANDBY_MULTI_AZ" => DeploymentMode::ActiveStandbyMultiAz,
            "CLUSTER_MULTI_AZ" => DeploymentMode::ClusterMultiAz,
            "SINGLE_INSTANCE" => DeploymentMode::SingleInstance,
            other => DeploymentMode::Unknown(other.to_owned()),
        }
    }
}
impl std::str::FromStr for DeploymentMode {
    type Err = std::convert::Infallible;

    fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
        Ok(DeploymentMode::from(s))
    }
}
impl DeploymentMode {
    /// Returns the `&str` value of the enum member.
    pub fn as_str(&self) -> &str {
        match self {
            DeploymentMode::ActiveStandbyMultiAz => "ACTIVE_STANDBY_MULTI_AZ",
            DeploymentMode::ClusterMultiAz => "CLUSTER_MULTI_AZ",
            DeploymentMode::SingleInstance => "SINGLE_INSTANCE",
            DeploymentMode::Unknown(s) => s.as_ref(),
        }
    }
    /// Returns all the `&str` values of the enum members.
    pub fn values() -> &'static [&'static str] {
        &[
            "ACTIVE_STANDBY_MULTI_AZ",
            "CLUSTER_MULTI_AZ",
            "SINGLE_INSTANCE",
        ]
    }
}
impl AsRef<str> for DeploymentMode {
    fn as_ref(&self) -> &str {
        self.as_str()
    }
}

/// <p>The broker's status.</p>
#[non_exhaustive]
#[derive(
    std::clone::Clone,
    std::cmp::Eq,
    std::cmp::Ord,
    std::cmp::PartialEq,
    std::cmp::PartialOrd,
    std::fmt::Debug,
    std::hash::Hash,
)]
pub enum BrokerState {
    #[allow(missing_docs)] // documentation missing in model
    CreationFailed,
    #[allow(missing_docs)] // documentation missing in model
    CreationInProgress,
    #[allow(missing_docs)] // documentation missing in model
    DeletionInProgress,
    #[allow(missing_docs)] // documentation missing in model
    RebootInProgress,
    #[allow(missing_docs)] // documentation missing in model
    Running,
    /// Unknown contains new variants that have been added since this code was generated.
    Unknown(String),
}
impl std::convert::From<&str> for BrokerState {
    fn from(s: &str) -> Self {
        match s {
            "CREATION_FAILED" => BrokerState::CreationFailed,
            "CREATION_IN_PROGRESS" => BrokerState::CreationInProgress,
            "DELETION_IN_PROGRESS" => BrokerState::DeletionInProgress,
            "REBOOT_IN_PROGRESS" => BrokerState::RebootInProgress,
            "RUNNING" => BrokerState::Running,
            other => BrokerState::Unknown(other.to_owned()),
        }
    }
}
impl std::str::FromStr for BrokerState {
    type Err = std::convert::Infallible;

    fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
        Ok(BrokerState::from(s))
    }
}
impl BrokerState {
    /// Returns the `&str` value of the enum member.
    pub fn as_str(&self) -> &str {
        match self {
            BrokerState::CreationFailed => "CREATION_FAILED",
            BrokerState::CreationInProgress => "CREATION_IN_PROGRESS",
            BrokerState::DeletionInProgress => "DELETION_IN_PROGRESS",
            BrokerState::RebootInProgress => "REBOOT_IN_PROGRESS",
            BrokerState::Running => "RUNNING",
            BrokerState::Unknown(s) => s.as_ref(),
        }
    }
    /// Returns all the `&str` values of the enum members.
    pub fn values() -> &'static [&'static str] {
        &[
            "CREATION_FAILED",
            "CREATION_IN_PROGRESS",
            "DELETION_IN_PROGRESS",
            "REBOOT_IN_PROGRESS",
            "RUNNING",
        ]
    }
}
impl AsRef<str> for BrokerState {
    fn as_ref(&self) -> &str {
        self.as_str()
    }
}

/// <p>Returns information about the status of the changes pending for the ActiveMQ user.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct UserPendingChanges {
    /// <p>Enables access to the the ActiveMQ Web Console for the ActiveMQ user.</p>
    pub console_access: bool,
    /// <p>The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.</p>
    pub groups: std::option::Option<std::vec::Vec<std::string::String>>,
    /// <p>Required. The type of change pending for the ActiveMQ user.</p>
    pub pending_change: std::option::Option<crate::model::ChangeType>,
}
impl UserPendingChanges {
    /// <p>Enables access to the the ActiveMQ Web Console for the ActiveMQ user.</p>
    pub fn console_access(&self) -> bool {
        self.console_access
    }
    /// <p>The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.</p>
    pub fn groups(&self) -> std::option::Option<&[std::string::String]> {
        self.groups.as_deref()
    }
    /// <p>Required. The type of change pending for the ActiveMQ user.</p>
    pub fn pending_change(&self) -> std::option::Option<&crate::model::ChangeType> {
        self.pending_change.as_ref()
    }
}
impl std::fmt::Debug for UserPendingChanges {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("UserPendingChanges");
        formatter.field("console_access", &self.console_access);
        formatter.field("groups", &self.groups);
        formatter.field("pending_change", &self.pending_change);
        formatter.finish()
    }
}
/// See [`UserPendingChanges`](crate::model::UserPendingChanges)
pub mod user_pending_changes {
    /// A builder for [`UserPendingChanges`](crate::model::UserPendingChanges)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) console_access: std::option::Option<bool>,
        pub(crate) groups: std::option::Option<std::vec::Vec<std::string::String>>,
        pub(crate) pending_change: std::option::Option<crate::model::ChangeType>,
    }
    impl Builder {
        /// <p>Enables access to the the ActiveMQ Web Console for the ActiveMQ user.</p>
        pub fn console_access(mut self, input: bool) -> Self {
            self.console_access = Some(input);
            self
        }
        /// <p>Enables access to the the ActiveMQ Web Console for the ActiveMQ user.</p>
        pub fn set_console_access(mut self, input: std::option::Option<bool>) -> Self {
            self.console_access = input;
            self
        }
        /// Appends an item to `groups`.
        ///
        /// To override the contents of this collection use [`set_groups`](Self::set_groups).
        ///
        /// <p>The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.</p>
        pub fn groups(mut self, input: impl Into<std::string::String>) -> Self {
            let mut v = self.groups.unwrap_or_default();
            v.push(input.into());
            self.groups = Some(v);
            self
        }
        /// <p>The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.</p>
        pub fn set_groups(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.groups = input;
            self
        }
        /// <p>Required. The type of change pending for the ActiveMQ user.</p>
        pub fn pending_change(mut self, input: crate::model::ChangeType) -> Self {
            self.pending_change = Some(input);
            self
        }
        /// <p>Required. The type of change pending for the ActiveMQ user.</p>
        pub fn set_pending_change(
            mut self,
            input: std::option::Option<crate::model::ChangeType>,
        ) -> Self {
            self.pending_change = input;
            self
        }
        /// Consumes the builder and constructs a [`UserPendingChanges`](crate::model::UserPendingChanges)
        pub fn build(self) -> crate::model::UserPendingChanges {
            crate::model::UserPendingChanges {
                console_access: self.console_access.unwrap_or_default(),
                groups: self.groups,
                pending_change: self.pending_change,
            }
        }
    }
}
impl UserPendingChanges {
    /// Creates a new builder-style object to manufacture [`UserPendingChanges`](crate::model::UserPendingChanges)
    pub fn builder() -> crate::model::user_pending_changes::Builder {
        crate::model::user_pending_changes::Builder::default()
    }
}

/// <p>Option for host instance type.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct BrokerInstanceOption {
    /// <p>The list of available az.</p>
    pub availability_zones: std::option::Option<std::vec::Vec<crate::model::AvailabilityZone>>,
    /// <p>The broker's engine type.</p>
    pub engine_type: std::option::Option<crate::model::EngineType>,
    /// <p>The broker's instance type.</p>
    pub host_instance_type: std::option::Option<std::string::String>,
    /// <p>The broker's storage type.</p>
    pub storage_type: std::option::Option<crate::model::BrokerStorageType>,
    /// <p>The list of supported deployment modes.</p>
    pub supported_deployment_modes:
        std::option::Option<std::vec::Vec<crate::model::DeploymentMode>>,
    /// <p>The list of supported engine versions.</p>
    pub supported_engine_versions: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl BrokerInstanceOption {
    /// <p>The list of available az.</p>
    pub fn availability_zones(&self) -> std::option::Option<&[crate::model::AvailabilityZone]> {
        self.availability_zones.as_deref()
    }
    /// <p>The broker's engine type.</p>
    pub fn engine_type(&self) -> std::option::Option<&crate::model::EngineType> {
        self.engine_type.as_ref()
    }
    /// <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 broker's storage type.</p>
    pub fn storage_type(&self) -> std::option::Option<&crate::model::BrokerStorageType> {
        self.storage_type.as_ref()
    }
    /// <p>The list of supported deployment modes.</p>
    pub fn supported_deployment_modes(
        &self,
    ) -> std::option::Option<&[crate::model::DeploymentMode]> {
        self.supported_deployment_modes.as_deref()
    }
    /// <p>The list of supported engine versions.</p>
    pub fn supported_engine_versions(&self) -> std::option::Option<&[std::string::String]> {
        self.supported_engine_versions.as_deref()
    }
}
impl std::fmt::Debug for BrokerInstanceOption {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("BrokerInstanceOption");
        formatter.field("availability_zones", &self.availability_zones);
        formatter.field("engine_type", &self.engine_type);
        formatter.field("host_instance_type", &self.host_instance_type);
        formatter.field("storage_type", &self.storage_type);
        formatter.field(
            "supported_deployment_modes",
            &self.supported_deployment_modes,
        );
        formatter.field("supported_engine_versions", &self.supported_engine_versions);
        formatter.finish()
    }
}
/// See [`BrokerInstanceOption`](crate::model::BrokerInstanceOption)
pub mod broker_instance_option {
    /// A builder for [`BrokerInstanceOption`](crate::model::BrokerInstanceOption)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) availability_zones:
            std::option::Option<std::vec::Vec<crate::model::AvailabilityZone>>,
        pub(crate) engine_type: std::option::Option<crate::model::EngineType>,
        pub(crate) host_instance_type: std::option::Option<std::string::String>,
        pub(crate) storage_type: std::option::Option<crate::model::BrokerStorageType>,
        pub(crate) supported_deployment_modes:
            std::option::Option<std::vec::Vec<crate::model::DeploymentMode>>,
        pub(crate) supported_engine_versions:
            std::option::Option<std::vec::Vec<std::string::String>>,
    }
    impl Builder {
        /// Appends an item to `availability_zones`.
        ///
        /// To override the contents of this collection use [`set_availability_zones`](Self::set_availability_zones).
        ///
        /// <p>The list of available az.</p>
        pub fn availability_zones(mut self, input: crate::model::AvailabilityZone) -> Self {
            let mut v = self.availability_zones.unwrap_or_default();
            v.push(input);
            self.availability_zones = Some(v);
            self
        }
        /// <p>The list of available az.</p>
        pub fn set_availability_zones(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::AvailabilityZone>>,
        ) -> Self {
            self.availability_zones = input;
            self
        }
        /// <p>The broker's engine type.</p>
        pub fn engine_type(mut self, input: crate::model::EngineType) -> Self {
            self.engine_type = Some(input);
            self
        }
        /// <p>The broker's engine type.</p>
        pub fn set_engine_type(
            mut self,
            input: std::option::Option<crate::model::EngineType>,
        ) -> Self {
            self.engine_type = input;
            self
        }
        /// <p>The broker's instance type.</p>
        pub fn host_instance_type(mut self, input: impl Into<std::string::String>) -> Self {
            self.host_instance_type = 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 storage type.</p>
        pub fn storage_type(mut self, input: crate::model::BrokerStorageType) -> Self {
            self.storage_type = Some(input);
            self
        }
        /// <p>The broker's storage type.</p>
        pub fn set_storage_type(
            mut self,
            input: std::option::Option<crate::model::BrokerStorageType>,
        ) -> Self {
            self.storage_type = input;
            self
        }
        /// Appends an item to `supported_deployment_modes`.
        ///
        /// To override the contents of this collection use [`set_supported_deployment_modes`](Self::set_supported_deployment_modes).
        ///
        /// <p>The list of supported deployment modes.</p>
        pub fn supported_deployment_modes(mut self, input: crate::model::DeploymentMode) -> Self {
            let mut v = self.supported_deployment_modes.unwrap_or_default();
            v.push(input);
            self.supported_deployment_modes = Some(v);
            self
        }
        /// <p>The list of supported deployment modes.</p>
        pub fn set_supported_deployment_modes(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::DeploymentMode>>,
        ) -> Self {
            self.supported_deployment_modes = input;
            self
        }
        /// Appends an item to `supported_engine_versions`.
        ///
        /// To override the contents of this collection use [`set_supported_engine_versions`](Self::set_supported_engine_versions).
        ///
        /// <p>The list of supported engine versions.</p>
        pub fn supported_engine_versions(mut self, input: impl Into<std::string::String>) -> Self {
            let mut v = self.supported_engine_versions.unwrap_or_default();
            v.push(input.into());
            self.supported_engine_versions = Some(v);
            self
        }
        /// <p>The list of supported engine versions.</p>
        pub fn set_supported_engine_versions(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.supported_engine_versions = input;
            self
        }
        /// Consumes the builder and constructs a [`BrokerInstanceOption`](crate::model::BrokerInstanceOption)
        pub fn build(self) -> crate::model::BrokerInstanceOption {
            crate::model::BrokerInstanceOption {
                availability_zones: self.availability_zones,
                engine_type: self.engine_type,
                host_instance_type: self.host_instance_type,
                storage_type: self.storage_type,
                supported_deployment_modes: self.supported_deployment_modes,
                supported_engine_versions: self.supported_engine_versions,
            }
        }
    }
}
impl BrokerInstanceOption {
    /// Creates a new builder-style object to manufacture [`BrokerInstanceOption`](crate::model::BrokerInstanceOption)
    pub fn builder() -> crate::model::broker_instance_option::Builder {
        crate::model::broker_instance_option::Builder::default()
    }
}

/// <p>The broker's storage type.</p> <important><p>EFS is not supported for RabbitMQ engine type.</p></important>
#[non_exhaustive]
#[derive(
    std::clone::Clone,
    std::cmp::Eq,
    std::cmp::Ord,
    std::cmp::PartialEq,
    std::cmp::PartialOrd,
    std::fmt::Debug,
    std::hash::Hash,
)]
pub enum BrokerStorageType {
    #[allow(missing_docs)] // documentation missing in model
    Ebs,
    #[allow(missing_docs)] // documentation missing in model
    Efs,
    /// Unknown contains new variants that have been added since this code was generated.
    Unknown(String),
}
impl std::convert::From<&str> for BrokerStorageType {
    fn from(s: &str) -> Self {
        match s {
            "EBS" => BrokerStorageType::Ebs,
            "EFS" => BrokerStorageType::Efs,
            other => BrokerStorageType::Unknown(other.to_owned()),
        }
    }
}
impl std::str::FromStr for BrokerStorageType {
    type Err = std::convert::Infallible;

    fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
        Ok(BrokerStorageType::from(s))
    }
}
impl BrokerStorageType {
    /// Returns the `&str` value of the enum member.
    pub fn as_str(&self) -> &str {
        match self {
            BrokerStorageType::Ebs => "EBS",
            BrokerStorageType::Efs => "EFS",
            BrokerStorageType::Unknown(s) => s.as_ref(),
        }
    }
    /// Returns all the `&str` values of the enum members.
    pub fn values() -> &'static [&'static str] {
        &["EBS", "EFS"]
    }
}
impl AsRef<str> for BrokerStorageType {
    fn as_ref(&self) -> &str {
        self.as_str()
    }
}

/// <p>Name of the availability zone.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct AvailabilityZone {
    /// <p>Id for the availability zone.</p>
    pub name: std::option::Option<std::string::String>,
}
impl AvailabilityZone {
    /// <p>Id for the availability zone.</p>
    pub fn name(&self) -> std::option::Option<&str> {
        self.name.as_deref()
    }
}
impl std::fmt::Debug for AvailabilityZone {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("AvailabilityZone");
        formatter.field("name", &self.name);
        formatter.finish()
    }
}
/// See [`AvailabilityZone`](crate::model::AvailabilityZone)
pub mod availability_zone {
    /// A builder for [`AvailabilityZone`](crate::model::AvailabilityZone)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) name: std::option::Option<std::string::String>,
    }
    impl Builder {
        /// <p>Id for the availability zone.</p>
        pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
            self.name = Some(input.into());
            self
        }
        /// <p>Id for the availability zone.</p>
        pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.name = input;
            self
        }
        /// Consumes the builder and constructs a [`AvailabilityZone`](crate::model::AvailabilityZone)
        pub fn build(self) -> crate::model::AvailabilityZone {
            crate::model::AvailabilityZone { name: self.name }
        }
    }
}
impl AvailabilityZone {
    /// Creates a new builder-style object to manufacture [`AvailabilityZone`](crate::model::AvailabilityZone)
    pub fn builder() -> crate::model::availability_zone::Builder {
        crate::model::availability_zone::Builder::default()
    }
}

/// <p>Types of broker engines.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct BrokerEngineType {
    /// <p>The broker's engine type.</p>
    pub engine_type: std::option::Option<crate::model::EngineType>,
    /// <p>The list of engine versions.</p>
    pub engine_versions: std::option::Option<std::vec::Vec<crate::model::EngineVersion>>,
}
impl BrokerEngineType {
    /// <p>The broker's engine type.</p>
    pub fn engine_type(&self) -> std::option::Option<&crate::model::EngineType> {
        self.engine_type.as_ref()
    }
    /// <p>The list of engine versions.</p>
    pub fn engine_versions(&self) -> std::option::Option<&[crate::model::EngineVersion]> {
        self.engine_versions.as_deref()
    }
}
impl std::fmt::Debug for BrokerEngineType {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("BrokerEngineType");
        formatter.field("engine_type", &self.engine_type);
        formatter.field("engine_versions", &self.engine_versions);
        formatter.finish()
    }
}
/// See [`BrokerEngineType`](crate::model::BrokerEngineType)
pub mod broker_engine_type {
    /// A builder for [`BrokerEngineType`](crate::model::BrokerEngineType)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) engine_type: std::option::Option<crate::model::EngineType>,
        pub(crate) engine_versions: std::option::Option<std::vec::Vec<crate::model::EngineVersion>>,
    }
    impl Builder {
        /// <p>The broker's engine type.</p>
        pub fn engine_type(mut self, input: crate::model::EngineType) -> Self {
            self.engine_type = Some(input);
            self
        }
        /// <p>The broker's engine type.</p>
        pub fn set_engine_type(
            mut self,
            input: std::option::Option<crate::model::EngineType>,
        ) -> Self {
            self.engine_type = input;
            self
        }
        /// Appends an item to `engine_versions`.
        ///
        /// To override the contents of this collection use [`set_engine_versions`](Self::set_engine_versions).
        ///
        /// <p>The list of engine versions.</p>
        pub fn engine_versions(mut self, input: crate::model::EngineVersion) -> Self {
            let mut v = self.engine_versions.unwrap_or_default();
            v.push(input);
            self.engine_versions = Some(v);
            self
        }
        /// <p>The list of engine versions.</p>
        pub fn set_engine_versions(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::EngineVersion>>,
        ) -> Self {
            self.engine_versions = input;
            self
        }
        /// Consumes the builder and constructs a [`BrokerEngineType`](crate::model::BrokerEngineType)
        pub fn build(self) -> crate::model::BrokerEngineType {
            crate::model::BrokerEngineType {
                engine_type: self.engine_type,
                engine_versions: self.engine_versions,
            }
        }
    }
}
impl BrokerEngineType {
    /// Creates a new builder-style object to manufacture [`BrokerEngineType`](crate::model::BrokerEngineType)
    pub fn builder() -> crate::model::broker_engine_type::Builder {
        crate::model::broker_engine_type::Builder::default()
    }
}

/// <p>Id of the engine version.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct EngineVersion {
    /// <p>Id for the version.</p>
    pub name: std::option::Option<std::string::String>,
}
impl EngineVersion {
    /// <p>Id for the version.</p>
    pub fn name(&self) -> std::option::Option<&str> {
        self.name.as_deref()
    }
}
impl std::fmt::Debug for EngineVersion {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("EngineVersion");
        formatter.field("name", &self.name);
        formatter.finish()
    }
}
/// See [`EngineVersion`](crate::model::EngineVersion)
pub mod engine_version {
    /// A builder for [`EngineVersion`](crate::model::EngineVersion)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) name: std::option::Option<std::string::String>,
    }
    impl Builder {
        /// <p>Id for the version.</p>
        pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
            self.name = Some(input.into());
            self
        }
        /// <p>Id for the version.</p>
        pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.name = input;
            self
        }
        /// Consumes the builder and constructs a [`EngineVersion`](crate::model::EngineVersion)
        pub fn build(self) -> crate::model::EngineVersion {
            crate::model::EngineVersion { name: self.name }
        }
    }
}
impl EngineVersion {
    /// Creates a new builder-style object to manufacture [`EngineVersion`](crate::model::EngineVersion)
    pub fn builder() -> crate::model::engine_version::Builder {
        crate::model::engine_version::Builder::default()
    }
}

/// <p>The list of information about logs currently enabled and pending to be deployed for the specified broker.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct LogsSummary {
    /// <p>Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged.</p>
    pub audit: bool,
    /// <p>The location of the CloudWatch Logs log group where audit logs are sent.</p>
    pub audit_log_group: std::option::Option<std::string::String>,
    /// <p>Enables general logging.</p>
    pub general: bool,
    /// <p>The location of the CloudWatch Logs log group where general logs are sent.</p>
    pub general_log_group: std::option::Option<std::string::String>,
    /// <p>The list of information about logs pending to be deployed for the specified broker.</p>
    pub pending: std::option::Option<crate::model::PendingLogs>,
}
impl LogsSummary {
    /// <p>Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged.</p>
    pub fn audit(&self) -> bool {
        self.audit
    }
    /// <p>The location of the CloudWatch Logs log group where audit logs are sent.</p>
    pub fn audit_log_group(&self) -> std::option::Option<&str> {
        self.audit_log_group.as_deref()
    }
    /// <p>Enables general logging.</p>
    pub fn general(&self) -> bool {
        self.general
    }
    /// <p>The location of the CloudWatch Logs log group where general logs are sent.</p>
    pub fn general_log_group(&self) -> std::option::Option<&str> {
        self.general_log_group.as_deref()
    }
    /// <p>The list of information about logs pending to be deployed for the specified broker.</p>
    pub fn pending(&self) -> std::option::Option<&crate::model::PendingLogs> {
        self.pending.as_ref()
    }
}
impl std::fmt::Debug for LogsSummary {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("LogsSummary");
        formatter.field("audit", &self.audit);
        formatter.field("audit_log_group", &self.audit_log_group);
        formatter.field("general", &self.general);
        formatter.field("general_log_group", &self.general_log_group);
        formatter.field("pending", &self.pending);
        formatter.finish()
    }
}
/// See [`LogsSummary`](crate::model::LogsSummary)
pub mod logs_summary {
    /// A builder for [`LogsSummary`](crate::model::LogsSummary)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) audit: std::option::Option<bool>,
        pub(crate) audit_log_group: std::option::Option<std::string::String>,
        pub(crate) general: std::option::Option<bool>,
        pub(crate) general_log_group: std::option::Option<std::string::String>,
        pub(crate) pending: std::option::Option<crate::model::PendingLogs>,
    }
    impl Builder {
        /// <p>Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged.</p>
        pub fn audit(mut self, input: bool) -> Self {
            self.audit = Some(input);
            self
        }
        /// <p>Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged.</p>
        pub fn set_audit(mut self, input: std::option::Option<bool>) -> Self {
            self.audit = input;
            self
        }
        /// <p>The location of the CloudWatch Logs log group where audit logs are sent.</p>
        pub fn audit_log_group(mut self, input: impl Into<std::string::String>) -> Self {
            self.audit_log_group = Some(input.into());
            self
        }
        /// <p>The location of the CloudWatch Logs log group where audit logs are sent.</p>
        pub fn set_audit_log_group(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.audit_log_group = input;
            self
        }
        /// <p>Enables general logging.</p>
        pub fn general(mut self, input: bool) -> Self {
            self.general = Some(input);
            self
        }
        /// <p>Enables general logging.</p>
        pub fn set_general(mut self, input: std::option::Option<bool>) -> Self {
            self.general = input;
            self
        }
        /// <p>The location of the CloudWatch Logs log group where general logs are sent.</p>
        pub fn general_log_group(mut self, input: impl Into<std::string::String>) -> Self {
            self.general_log_group = Some(input.into());
            self
        }
        /// <p>The location of the CloudWatch Logs log group where general logs are sent.</p>
        pub fn set_general_log_group(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.general_log_group = input;
            self
        }
        /// <p>The list of information about logs pending to be deployed for the specified broker.</p>
        pub fn pending(mut self, input: crate::model::PendingLogs) -> Self {
            self.pending = Some(input);
            self
        }
        /// <p>The list of information about logs pending to be deployed for the specified broker.</p>
        pub fn set_pending(
            mut self,
            input: std::option::Option<crate::model::PendingLogs>,
        ) -> Self {
            self.pending = input;
            self
        }
        /// Consumes the builder and constructs a [`LogsSummary`](crate::model::LogsSummary)
        pub fn build(self) -> crate::model::LogsSummary {
            crate::model::LogsSummary {
                audit: self.audit.unwrap_or_default(),
                audit_log_group: self.audit_log_group,
                general: self.general.unwrap_or_default(),
                general_log_group: self.general_log_group,
                pending: self.pending,
            }
        }
    }
}
impl LogsSummary {
    /// Creates a new builder-style object to manufacture [`LogsSummary`](crate::model::LogsSummary)
    pub fn builder() -> crate::model::logs_summary::Builder {
        crate::model::logs_summary::Builder::default()
    }
}

/// <p>The list of information about logs to be enabled for the specified broker.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct PendingLogs {
    /// <p>Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged.</p>
    pub audit: bool,
    /// <p>Enables general logging.</p>
    pub general: bool,
}
impl PendingLogs {
    /// <p>Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged.</p>
    pub fn audit(&self) -> bool {
        self.audit
    }
    /// <p>Enables general logging.</p>
    pub fn general(&self) -> bool {
        self.general
    }
}
impl std::fmt::Debug for PendingLogs {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("PendingLogs");
        formatter.field("audit", &self.audit);
        formatter.field("general", &self.general);
        formatter.finish()
    }
}
/// See [`PendingLogs`](crate::model::PendingLogs)
pub mod pending_logs {
    /// A builder for [`PendingLogs`](crate::model::PendingLogs)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) audit: std::option::Option<bool>,
        pub(crate) general: std::option::Option<bool>,
    }
    impl Builder {
        /// <p>Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged.</p>
        pub fn audit(mut self, input: bool) -> Self {
            self.audit = Some(input);
            self
        }
        /// <p>Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged.</p>
        pub fn set_audit(mut self, input: std::option::Option<bool>) -> Self {
            self.audit = input;
            self
        }
        /// <p>Enables general logging.</p>
        pub fn general(mut self, input: bool) -> Self {
            self.general = Some(input);
            self
        }
        /// <p>Enables general logging.</p>
        pub fn set_general(mut self, input: std::option::Option<bool>) -> Self {
            self.general = input;
            self
        }
        /// Consumes the builder and constructs a [`PendingLogs`](crate::model::PendingLogs)
        pub fn build(self) -> crate::model::PendingLogs {
            crate::model::PendingLogs {
                audit: self.audit.unwrap_or_default(),
                general: self.general.unwrap_or_default(),
            }
        }
    }
}
impl PendingLogs {
    /// Creates a new builder-style object to manufacture [`PendingLogs`](crate::model::PendingLogs)
    pub fn builder() -> crate::model::pending_logs::Builder {
        crate::model::pending_logs::Builder::default()
    }
}

/// <important>
/// <p>Does not apply to RabbitMQ brokers.</p>
/// </important>
/// <p>Encryption options for the broker.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct EncryptionOptions {
    /// <p>The customer master key (CMK) to use for the AWS Key Management Service (KMS). This key is used to encrypt your data at rest. If not provided, Amazon MQ will use a default CMK to encrypt your data.</p>
    pub kms_key_id: std::option::Option<std::string::String>,
    /// <p>Enables the use of an AWS owned CMK using AWS Key Management Service (KMS). Set to true by default, if no value is provided, for example, for RabbitMQ brokers.</p>
    pub use_aws_owned_key: bool,
}
impl EncryptionOptions {
    /// <p>The customer master key (CMK) to use for the AWS Key Management Service (KMS). This key is used to encrypt your data at rest. If not provided, Amazon MQ will use a default CMK to encrypt your data.</p>
    pub fn kms_key_id(&self) -> std::option::Option<&str> {
        self.kms_key_id.as_deref()
    }
    /// <p>Enables the use of an AWS owned CMK using AWS Key Management Service (KMS). Set to true by default, if no value is provided, for example, for RabbitMQ brokers.</p>
    pub fn use_aws_owned_key(&self) -> bool {
        self.use_aws_owned_key
    }
}
impl std::fmt::Debug for EncryptionOptions {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("EncryptionOptions");
        formatter.field("kms_key_id", &self.kms_key_id);
        formatter.field("use_aws_owned_key", &self.use_aws_owned_key);
        formatter.finish()
    }
}
/// See [`EncryptionOptions`](crate::model::EncryptionOptions)
pub mod encryption_options {
    /// A builder for [`EncryptionOptions`](crate::model::EncryptionOptions)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) kms_key_id: std::option::Option<std::string::String>,
        pub(crate) use_aws_owned_key: std::option::Option<bool>,
    }
    impl Builder {
        /// <p>The customer master key (CMK) to use for the AWS Key Management Service (KMS). This key is used to encrypt your data at rest. If not provided, Amazon MQ will use a default CMK to encrypt your data.</p>
        pub fn kms_key_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.kms_key_id = Some(input.into());
            self
        }
        /// <p>The customer master key (CMK) to use for the AWS Key Management Service (KMS). This key is used to encrypt your data at rest. If not provided, Amazon MQ will use a default CMK to encrypt your data.</p>
        pub fn set_kms_key_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.kms_key_id = input;
            self
        }
        /// <p>Enables the use of an AWS owned CMK using AWS Key Management Service (KMS). Set to true by default, if no value is provided, for example, for RabbitMQ brokers.</p>
        pub fn use_aws_owned_key(mut self, input: bool) -> Self {
            self.use_aws_owned_key = Some(input);
            self
        }
        /// <p>Enables the use of an AWS owned CMK using AWS Key Management Service (KMS). Set to true by default, if no value is provided, for example, for RabbitMQ brokers.</p>
        pub fn set_use_aws_owned_key(mut self, input: std::option::Option<bool>) -> Self {
            self.use_aws_owned_key = input;
            self
        }
        /// Consumes the builder and constructs a [`EncryptionOptions`](crate::model::EncryptionOptions)
        pub fn build(self) -> crate::model::EncryptionOptions {
            crate::model::EncryptionOptions {
                kms_key_id: self.kms_key_id,
                use_aws_owned_key: self.use_aws_owned_key.unwrap_or_default(),
            }
        }
    }
}
impl EncryptionOptions {
    /// Creates a new builder-style object to manufacture [`EncryptionOptions`](crate::model::EncryptionOptions)
    pub fn builder() -> crate::model::encryption_options::Builder {
        crate::model::encryption_options::Builder::default()
    }
}

/// <p>Broker configuration information</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct Configurations {
    /// <p>The broker's current configuration.</p>
    pub current: std::option::Option<crate::model::ConfigurationId>,
    /// <p>The history of configurations applied to the broker.</p>
    pub history: std::option::Option<std::vec::Vec<crate::model::ConfigurationId>>,
    /// <p>The broker's pending configuration.</p>
    pub pending: std::option::Option<crate::model::ConfigurationId>,
}
impl Configurations {
    /// <p>The broker's current configuration.</p>
    pub fn current(&self) -> std::option::Option<&crate::model::ConfigurationId> {
        self.current.as_ref()
    }
    /// <p>The history of configurations applied to the broker.</p>
    pub fn history(&self) -> std::option::Option<&[crate::model::ConfigurationId]> {
        self.history.as_deref()
    }
    /// <p>The broker's pending configuration.</p>
    pub fn pending(&self) -> std::option::Option<&crate::model::ConfigurationId> {
        self.pending.as_ref()
    }
}
impl std::fmt::Debug for Configurations {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("Configurations");
        formatter.field("current", &self.current);
        formatter.field("history", &self.history);
        formatter.field("pending", &self.pending);
        formatter.finish()
    }
}
/// See [`Configurations`](crate::model::Configurations)
pub mod configurations {
    /// A builder for [`Configurations`](crate::model::Configurations)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) current: std::option::Option<crate::model::ConfigurationId>,
        pub(crate) history: std::option::Option<std::vec::Vec<crate::model::ConfigurationId>>,
        pub(crate) pending: std::option::Option<crate::model::ConfigurationId>,
    }
    impl Builder {
        /// <p>The broker's current configuration.</p>
        pub fn current(mut self, input: crate::model::ConfigurationId) -> Self {
            self.current = Some(input);
            self
        }
        /// <p>The broker's current configuration.</p>
        pub fn set_current(
            mut self,
            input: std::option::Option<crate::model::ConfigurationId>,
        ) -> Self {
            self.current = input;
            self
        }
        /// Appends an item to `history`.
        ///
        /// To override the contents of this collection use [`set_history`](Self::set_history).
        ///
        /// <p>The history of configurations applied to the broker.</p>
        pub fn history(mut self, input: crate::model::ConfigurationId) -> Self {
            let mut v = self.history.unwrap_or_default();
            v.push(input);
            self.history = Some(v);
            self
        }
        /// <p>The history of configurations applied to the broker.</p>
        pub fn set_history(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::ConfigurationId>>,
        ) -> Self {
            self.history = input;
            self
        }
        /// <p>The broker's pending configuration.</p>
        pub fn pending(mut self, input: crate::model::ConfigurationId) -> Self {
            self.pending = Some(input);
            self
        }
        /// <p>The broker's pending configuration.</p>
        pub fn set_pending(
            mut self,
            input: std::option::Option<crate::model::ConfigurationId>,
        ) -> Self {
            self.pending = input;
            self
        }
        /// Consumes the builder and constructs a [`Configurations`](crate::model::Configurations)
        pub fn build(self) -> crate::model::Configurations {
            crate::model::Configurations {
                current: self.current,
                history: self.history,
                pending: self.pending,
            }
        }
    }
}
impl Configurations {
    /// Creates a new builder-style object to manufacture [`Configurations`](crate::model::Configurations)
    pub fn builder() -> crate::model::configurations::Builder {
        crate::model::configurations::Builder::default()
    }
}

/// <p>Returns information about all brokers.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct BrokerInstance {
    /// <p>The brokers web console URL.</p>
    pub console_url: std::option::Option<std::string::String>,
    /// <p>The broker's wire-level protocol endpoints.</p>
    pub endpoints: std::option::Option<std::vec::Vec<std::string::String>>,
    /// <p>The IP address of the Elastic Network Interface (ENI) attached to the broker. Does not apply to RabbitMQ brokers.</p>
    pub ip_address: std::option::Option<std::string::String>,
}
impl BrokerInstance {
    /// <p>The brokers web console URL.</p>
    pub fn console_url(&self) -> std::option::Option<&str> {
        self.console_url.as_deref()
    }
    /// <p>The broker's wire-level protocol endpoints.</p>
    pub fn endpoints(&self) -> std::option::Option<&[std::string::String]> {
        self.endpoints.as_deref()
    }
    /// <p>The IP address of the Elastic Network Interface (ENI) attached to the broker. Does not apply to RabbitMQ brokers.</p>
    pub fn ip_address(&self) -> std::option::Option<&str> {
        self.ip_address.as_deref()
    }
}
impl std::fmt::Debug for BrokerInstance {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("BrokerInstance");
        formatter.field("console_url", &self.console_url);
        formatter.field("endpoints", &self.endpoints);
        formatter.field("ip_address", &self.ip_address);
        formatter.finish()
    }
}
/// See [`BrokerInstance`](crate::model::BrokerInstance)
pub mod broker_instance {
    /// A builder for [`BrokerInstance`](crate::model::BrokerInstance)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) console_url: std::option::Option<std::string::String>,
        pub(crate) endpoints: std::option::Option<std::vec::Vec<std::string::String>>,
        pub(crate) ip_address: std::option::Option<std::string::String>,
    }
    impl Builder {
        /// <p>The brokers web console URL.</p>
        pub fn console_url(mut self, input: impl Into<std::string::String>) -> Self {
            self.console_url = Some(input.into());
            self
        }
        /// <p>The brokers web console URL.</p>
        pub fn set_console_url(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.console_url = input;
            self
        }
        /// Appends an item to `endpoints`.
        ///
        /// To override the contents of this collection use [`set_endpoints`](Self::set_endpoints).
        ///
        /// <p>The broker's wire-level protocol endpoints.</p>
        pub fn endpoints(mut self, input: impl Into<std::string::String>) -> Self {
            let mut v = self.endpoints.unwrap_or_default();
            v.push(input.into());
            self.endpoints = Some(v);
            self
        }
        /// <p>The broker's wire-level protocol endpoints.</p>
        pub fn set_endpoints(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.endpoints = input;
            self
        }
        /// <p>The IP address of the Elastic Network Interface (ENI) attached to the broker. Does not apply to RabbitMQ brokers.</p>
        pub fn ip_address(mut self, input: impl Into<std::string::String>) -> Self {
            self.ip_address = Some(input.into());
            self
        }
        /// <p>The IP address of the Elastic Network Interface (ENI) attached to the broker. Does not apply to RabbitMQ brokers.</p>
        pub fn set_ip_address(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.ip_address = input;
            self
        }
        /// Consumes the builder and constructs a [`BrokerInstance`](crate::model::BrokerInstance)
        pub fn build(self) -> crate::model::BrokerInstance {
            crate::model::BrokerInstance {
                console_url: self.console_url,
                endpoints: self.endpoints,
                ip_address: self.ip_address,
            }
        }
    }
}
impl BrokerInstance {
    /// Creates a new builder-style object to manufacture [`BrokerInstance`](crate::model::BrokerInstance)
    pub fn builder() -> crate::model::broker_instance::Builder {
        crate::model::broker_instance::Builder::default()
    }
}

/// <p>A user associated with the broker. For RabbitMQ brokers, one and only one administrative user is accepted and created when a broker is first provisioned. All subsequent broker users are created by making RabbitMQ API calls directly to brokers or via the RabbitMQ web console.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct User {
    /// <p>Enables access to the ActiveMQ Web Console for the ActiveMQ user. Does not apply to RabbitMQ brokers.</p>
    pub console_access: bool,
    /// <p>The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long. Does not apply to RabbitMQ brokers.</p>
    pub groups: std::option::Option<std::vec::Vec<std::string::String>>,
    /// <p>Required. The password of the user. This value must be at least 12 characters long, must contain at least 4 unique characters, and must not contain commas, colons, or equal signs (,:=).</p>
    pub password: std::option::Option<std::string::String>,
    /// <p>important&gt;<title>Amazon MQ for ActiveMQ</title> <para>
    /// For ActiveMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.
    /// </para></p>/important&gt; <important>
    /// <title>Amazon MQ for RabbitMQ</title>
    /// <p>For RabbitMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores (- . _). This value must not contain a tilde (~) character. Amazon MQ prohibts using guest as a valid usename. This value must be 2-100 characters long.</p>
    /// </important>
    pub username: std::option::Option<std::string::String>,
}
impl User {
    /// <p>Enables access to the ActiveMQ Web Console for the ActiveMQ user. Does not apply to RabbitMQ brokers.</p>
    pub fn console_access(&self) -> bool {
        self.console_access
    }
    /// <p>The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long. Does not apply to RabbitMQ brokers.</p>
    pub fn groups(&self) -> std::option::Option<&[std::string::String]> {
        self.groups.as_deref()
    }
    /// <p>Required. The password of the user. This value must be at least 12 characters long, must contain at least 4 unique characters, and must not contain commas, colons, or equal signs (,:=).</p>
    pub fn password(&self) -> std::option::Option<&str> {
        self.password.as_deref()
    }
    /// <p>important&gt;<title>Amazon MQ for ActiveMQ</title> <para>
    /// For ActiveMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.
    /// </para></p>/important&gt; <important>
    /// <title>Amazon MQ for RabbitMQ</title>
    /// <p>For RabbitMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores (- . _). This value must not contain a tilde (~) character. Amazon MQ prohibts using guest as a valid usename. This value must be 2-100 characters long.</p>
    /// </important>
    pub fn username(&self) -> std::option::Option<&str> {
        self.username.as_deref()
    }
}
impl std::fmt::Debug for User {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let mut formatter = f.debug_struct("User");
        formatter.field("console_access", &self.console_access);
        formatter.field("groups", &self.groups);
        formatter.field("password", &self.password);
        formatter.field("username", &self.username);
        formatter.finish()
    }
}
/// See [`User`](crate::model::User)
pub mod user {
    /// A builder for [`User`](crate::model::User)
    #[non_exhaustive]
    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
    pub struct Builder {
        pub(crate) console_access: std::option::Option<bool>,
        pub(crate) groups: std::option::Option<std::vec::Vec<std::string::String>>,
        pub(crate) password: std::option::Option<std::string::String>,
        pub(crate) username: std::option::Option<std::string::String>,
    }
    impl Builder {
        /// <p>Enables access to the ActiveMQ Web Console for the ActiveMQ user. Does not apply to RabbitMQ brokers.</p>
        pub fn console_access(mut self, input: bool) -> Self {
            self.console_access = Some(input);
            self
        }
        /// <p>Enables access to the ActiveMQ Web Console for the ActiveMQ user. Does not apply to RabbitMQ brokers.</p>
        pub fn set_console_access(mut self, input: std::option::Option<bool>) -> Self {
            self.console_access = input;
            self
        }
        /// Appends an item to `groups`.
        ///
        /// To override the contents of this collection use [`set_groups`](Self::set_groups).
        ///
        /// <p>The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long. Does not apply to RabbitMQ brokers.</p>
        pub fn groups(mut self, input: impl Into<std::string::String>) -> Self {
            let mut v = self.groups.unwrap_or_default();
            v.push(input.into());
            self.groups = Some(v);
            self
        }
        /// <p>The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long. Does not apply to RabbitMQ brokers.</p>
        pub fn set_groups(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.groups = input;
            self
        }
        /// <p>Required. The password of the user. This value must be at least 12 characters long, must contain at least 4 unique characters, and must not contain commas, colons, or equal signs (,:=).</p>
        pub fn password(mut self, input: impl Into<std::string::String>) -> Self {
            self.password = Some(input.into());
            self
        }
        /// <p>Required. The password of the user. This value must be at least 12 characters long, must contain at least 4 unique characters, and must not contain commas, colons, or equal signs (,:=).</p>
        pub fn set_password(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.password = input;
            self
        }
        /// <p>important&gt;<title>Amazon MQ for ActiveMQ</title> <para>
        /// For ActiveMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.
        /// </para></p>/important&gt; <important>
        /// <title>Amazon MQ for RabbitMQ</title>
        /// <p>For RabbitMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores (- . _). This value must not contain a tilde (~) character. Amazon MQ prohibts using guest as a valid usename. This value must be 2-100 characters long.</p>
        /// </important>
        pub fn username(mut self, input: impl Into<std::string::String>) -> Self {
            self.username = Some(input.into());
            self
        }
        /// <p>important&gt;<title>Amazon MQ for ActiveMQ</title> <para>
        /// For ActiveMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.
        /// </para></p>/important&gt; <important>
        /// <title>Amazon MQ for RabbitMQ</title>
        /// <p>For RabbitMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores (- . _). This value must not contain a tilde (~) character. Amazon MQ prohibts using guest as a valid usename. This value must be 2-100 characters long.</p>
        /// </important>
        pub fn set_username(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.username = input;
            self
        }
        /// Consumes the builder and constructs a [`User`](crate::model::User)
        pub fn build(self) -> crate::model::User {
            crate::model::User {
                console_access: self.console_access.unwrap_or_default(),
                groups: self.groups,
                password: self.password,
                username: self.username,
            }
        }
    }
}
impl User {
    /// Creates a new builder-style object to manufacture [`User`](crate::model::User)
    pub fn builder() -> crate::model::user::Builder {
        crate::model::user::Builder::default()
    }
}