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 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateSensitivityInspectionTemplateOutput {}
/// See [`UpdateSensitivityInspectionTemplateOutput`](crate::output::UpdateSensitivityInspectionTemplateOutput).
pub mod update_sensitivity_inspection_template_output {
/// A builder for [`UpdateSensitivityInspectionTemplateOutput`](crate::output::UpdateSensitivityInspectionTemplateOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`UpdateSensitivityInspectionTemplateOutput`](crate::output::UpdateSensitivityInspectionTemplateOutput).
pub fn build(self) -> crate::output::UpdateSensitivityInspectionTemplateOutput {
crate::output::UpdateSensitivityInspectionTemplateOutput {}
}
}
}
impl UpdateSensitivityInspectionTemplateOutput {
/// Creates a new builder-style object to manufacture [`UpdateSensitivityInspectionTemplateOutput`](crate::output::UpdateSensitivityInspectionTemplateOutput).
pub fn builder() -> crate::output::update_sensitivity_inspection_template_output::Builder {
crate::output::update_sensitivity_inspection_template_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateRevealConfigurationOutput {
/// <p>The new configuration settings and the status of the configuration for the account.</p>
#[doc(hidden)]
pub configuration: std::option::Option<crate::model::RevealConfiguration>,
}
impl UpdateRevealConfigurationOutput {
/// <p>The new configuration settings and the status of the configuration for the account.</p>
pub fn configuration(&self) -> std::option::Option<&crate::model::RevealConfiguration> {
self.configuration.as_ref()
}
}
/// See [`UpdateRevealConfigurationOutput`](crate::output::UpdateRevealConfigurationOutput).
pub mod update_reveal_configuration_output {
/// A builder for [`UpdateRevealConfigurationOutput`](crate::output::UpdateRevealConfigurationOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) configuration: std::option::Option<crate::model::RevealConfiguration>,
}
impl Builder {
/// <p>The new configuration settings and the status of the configuration for the account.</p>
pub fn configuration(mut self, input: crate::model::RevealConfiguration) -> Self {
self.configuration = Some(input);
self
}
/// <p>The new configuration settings and the status of the configuration for the account.</p>
pub fn set_configuration(
mut self,
input: std::option::Option<crate::model::RevealConfiguration>,
) -> Self {
self.configuration = input;
self
}
/// Consumes the builder and constructs a [`UpdateRevealConfigurationOutput`](crate::output::UpdateRevealConfigurationOutput).
pub fn build(self) -> crate::output::UpdateRevealConfigurationOutput {
crate::output::UpdateRevealConfigurationOutput {
configuration: self.configuration,
}
}
}
}
impl UpdateRevealConfigurationOutput {
/// Creates a new builder-style object to manufacture [`UpdateRevealConfigurationOutput`](crate::output::UpdateRevealConfigurationOutput).
pub fn builder() -> crate::output::update_reveal_configuration_output::Builder {
crate::output::update_reveal_configuration_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateResourceProfileDetectionsOutput {}
/// See [`UpdateResourceProfileDetectionsOutput`](crate::output::UpdateResourceProfileDetectionsOutput).
pub mod update_resource_profile_detections_output {
/// A builder for [`UpdateResourceProfileDetectionsOutput`](crate::output::UpdateResourceProfileDetectionsOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`UpdateResourceProfileDetectionsOutput`](crate::output::UpdateResourceProfileDetectionsOutput).
pub fn build(self) -> crate::output::UpdateResourceProfileDetectionsOutput {
crate::output::UpdateResourceProfileDetectionsOutput {}
}
}
}
impl UpdateResourceProfileDetectionsOutput {
/// Creates a new builder-style object to manufacture [`UpdateResourceProfileDetectionsOutput`](crate::output::UpdateResourceProfileDetectionsOutput).
pub fn builder() -> crate::output::update_resource_profile_detections_output::Builder {
crate::output::update_resource_profile_detections_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateResourceProfileOutput {}
/// See [`UpdateResourceProfileOutput`](crate::output::UpdateResourceProfileOutput).
pub mod update_resource_profile_output {
/// A builder for [`UpdateResourceProfileOutput`](crate::output::UpdateResourceProfileOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`UpdateResourceProfileOutput`](crate::output::UpdateResourceProfileOutput).
pub fn build(self) -> crate::output::UpdateResourceProfileOutput {
crate::output::UpdateResourceProfileOutput {}
}
}
}
impl UpdateResourceProfileOutput {
/// Creates a new builder-style object to manufacture [`UpdateResourceProfileOutput`](crate::output::UpdateResourceProfileOutput).
pub fn builder() -> crate::output::update_resource_profile_output::Builder {
crate::output::update_resource_profile_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateOrganizationConfigurationOutput {}
/// See [`UpdateOrganizationConfigurationOutput`](crate::output::UpdateOrganizationConfigurationOutput).
pub mod update_organization_configuration_output {
/// A builder for [`UpdateOrganizationConfigurationOutput`](crate::output::UpdateOrganizationConfigurationOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`UpdateOrganizationConfigurationOutput`](crate::output::UpdateOrganizationConfigurationOutput).
pub fn build(self) -> crate::output::UpdateOrganizationConfigurationOutput {
crate::output::UpdateOrganizationConfigurationOutput {}
}
}
}
impl UpdateOrganizationConfigurationOutput {
/// Creates a new builder-style object to manufacture [`UpdateOrganizationConfigurationOutput`](crate::output::UpdateOrganizationConfigurationOutput).
pub fn builder() -> crate::output::update_organization_configuration_output::Builder {
crate::output::update_organization_configuration_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateMemberSessionOutput {}
/// See [`UpdateMemberSessionOutput`](crate::output::UpdateMemberSessionOutput).
pub mod update_member_session_output {
/// A builder for [`UpdateMemberSessionOutput`](crate::output::UpdateMemberSessionOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`UpdateMemberSessionOutput`](crate::output::UpdateMemberSessionOutput).
pub fn build(self) -> crate::output::UpdateMemberSessionOutput {
crate::output::UpdateMemberSessionOutput {}
}
}
}
impl UpdateMemberSessionOutput {
/// Creates a new builder-style object to manufacture [`UpdateMemberSessionOutput`](crate::output::UpdateMemberSessionOutput).
pub fn builder() -> crate::output::update_member_session_output::Builder {
crate::output::update_member_session_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateMacieSessionOutput {}
/// See [`UpdateMacieSessionOutput`](crate::output::UpdateMacieSessionOutput).
pub mod update_macie_session_output {
/// A builder for [`UpdateMacieSessionOutput`](crate::output::UpdateMacieSessionOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`UpdateMacieSessionOutput`](crate::output::UpdateMacieSessionOutput).
pub fn build(self) -> crate::output::UpdateMacieSessionOutput {
crate::output::UpdateMacieSessionOutput {}
}
}
}
impl UpdateMacieSessionOutput {
/// Creates a new builder-style object to manufacture [`UpdateMacieSessionOutput`](crate::output::UpdateMacieSessionOutput).
pub fn builder() -> crate::output::update_macie_session_output::Builder {
crate::output::update_macie_session_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateFindingsFilterOutput {
/// <p>The Amazon Resource Name (ARN) of the filter that was updated.</p>
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
/// <p>The unique identifier for the filter that was updated.</p>
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
}
impl UpdateFindingsFilterOutput {
/// <p>The Amazon Resource Name (ARN) of the filter that was updated.</p>
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>The unique identifier for the filter that was updated.</p>
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
}
/// See [`UpdateFindingsFilterOutput`](crate::output::UpdateFindingsFilterOutput).
pub mod update_findings_filter_output {
/// A builder for [`UpdateFindingsFilterOutput`](crate::output::UpdateFindingsFilterOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) id: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The Amazon Resource Name (ARN) of the filter that was updated.</p>
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the filter that was updated.</p>
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>The unique identifier for the filter that was updated.</p>
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
/// <p>The unique identifier for the filter that was updated.</p>
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.id = input;
self
}
/// Consumes the builder and constructs a [`UpdateFindingsFilterOutput`](crate::output::UpdateFindingsFilterOutput).
pub fn build(self) -> crate::output::UpdateFindingsFilterOutput {
crate::output::UpdateFindingsFilterOutput {
arn: self.arn,
id: self.id,
}
}
}
}
impl UpdateFindingsFilterOutput {
/// Creates a new builder-style object to manufacture [`UpdateFindingsFilterOutput`](crate::output::UpdateFindingsFilterOutput).
pub fn builder() -> crate::output::update_findings_filter_output::Builder {
crate::output::update_findings_filter_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateClassificationScopeOutput {}
/// See [`UpdateClassificationScopeOutput`](crate::output::UpdateClassificationScopeOutput).
pub mod update_classification_scope_output {
/// A builder for [`UpdateClassificationScopeOutput`](crate::output::UpdateClassificationScopeOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`UpdateClassificationScopeOutput`](crate::output::UpdateClassificationScopeOutput).
pub fn build(self) -> crate::output::UpdateClassificationScopeOutput {
crate::output::UpdateClassificationScopeOutput {}
}
}
}
impl UpdateClassificationScopeOutput {
/// Creates a new builder-style object to manufacture [`UpdateClassificationScopeOutput`](crate::output::UpdateClassificationScopeOutput).
pub fn builder() -> crate::output::update_classification_scope_output::Builder {
crate::output::update_classification_scope_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateClassificationJobOutput {}
/// See [`UpdateClassificationJobOutput`](crate::output::UpdateClassificationJobOutput).
pub mod update_classification_job_output {
/// A builder for [`UpdateClassificationJobOutput`](crate::output::UpdateClassificationJobOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`UpdateClassificationJobOutput`](crate::output::UpdateClassificationJobOutput).
pub fn build(self) -> crate::output::UpdateClassificationJobOutput {
crate::output::UpdateClassificationJobOutput {}
}
}
}
impl UpdateClassificationJobOutput {
/// Creates a new builder-style object to manufacture [`UpdateClassificationJobOutput`](crate::output::UpdateClassificationJobOutput).
pub fn builder() -> crate::output::update_classification_job_output::Builder {
crate::output::update_classification_job_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateAutomatedDiscoveryConfigurationOutput {}
/// See [`UpdateAutomatedDiscoveryConfigurationOutput`](crate::output::UpdateAutomatedDiscoveryConfigurationOutput).
pub mod update_automated_discovery_configuration_output {
/// A builder for [`UpdateAutomatedDiscoveryConfigurationOutput`](crate::output::UpdateAutomatedDiscoveryConfigurationOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`UpdateAutomatedDiscoveryConfigurationOutput`](crate::output::UpdateAutomatedDiscoveryConfigurationOutput).
pub fn build(self) -> crate::output::UpdateAutomatedDiscoveryConfigurationOutput {
crate::output::UpdateAutomatedDiscoveryConfigurationOutput {}
}
}
}
impl UpdateAutomatedDiscoveryConfigurationOutput {
/// Creates a new builder-style object to manufacture [`UpdateAutomatedDiscoveryConfigurationOutput`](crate::output::UpdateAutomatedDiscoveryConfigurationOutput).
pub fn builder() -> crate::output::update_automated_discovery_configuration_output::Builder {
crate::output::update_automated_discovery_configuration_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateAllowListOutput {
/// <p>The Amazon Resource Name (ARN) of the allow list.</p>
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
/// <p>The unique identifier for the allow list.</p>
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
}
impl UpdateAllowListOutput {
/// <p>The Amazon Resource Name (ARN) of the allow list.</p>
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>The unique identifier for the allow list.</p>
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
}
/// See [`UpdateAllowListOutput`](crate::output::UpdateAllowListOutput).
pub mod update_allow_list_output {
/// A builder for [`UpdateAllowListOutput`](crate::output::UpdateAllowListOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) id: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The Amazon Resource Name (ARN) of the allow list.</p>
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the allow list.</p>
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>The unique identifier for the allow list.</p>
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
/// <p>The unique identifier for the allow list.</p>
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.id = input;
self
}
/// Consumes the builder and constructs a [`UpdateAllowListOutput`](crate::output::UpdateAllowListOutput).
pub fn build(self) -> crate::output::UpdateAllowListOutput {
crate::output::UpdateAllowListOutput {
arn: self.arn,
id: self.id,
}
}
}
}
impl UpdateAllowListOutput {
/// Creates a new builder-style object to manufacture [`UpdateAllowListOutput`](crate::output::UpdateAllowListOutput).
pub fn builder() -> crate::output::update_allow_list_output::Builder {
crate::output::update_allow_list_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UntagResourceOutput {}
/// See [`UntagResourceOutput`](crate::output::UntagResourceOutput).
pub mod untag_resource_output {
/// A builder for [`UntagResourceOutput`](crate::output::UntagResourceOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`UntagResourceOutput`](crate::output::UntagResourceOutput).
pub fn build(self) -> crate::output::UntagResourceOutput {
crate::output::UntagResourceOutput {}
}
}
}
impl UntagResourceOutput {
/// Creates a new builder-style object to manufacture [`UntagResourceOutput`](crate::output::UntagResourceOutput).
pub fn builder() -> crate::output::untag_resource_output::Builder {
crate::output::untag_resource_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TestCustomDataIdentifierOutput {
/// <p>The number of occurrences of sample text that matched the criteria specified by the custom data identifier.</p>
#[doc(hidden)]
pub match_count: i32,
}
impl TestCustomDataIdentifierOutput {
/// <p>The number of occurrences of sample text that matched the criteria specified by the custom data identifier.</p>
pub fn match_count(&self) -> i32 {
self.match_count
}
}
/// See [`TestCustomDataIdentifierOutput`](crate::output::TestCustomDataIdentifierOutput).
pub mod test_custom_data_identifier_output {
/// A builder for [`TestCustomDataIdentifierOutput`](crate::output::TestCustomDataIdentifierOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) match_count: std::option::Option<i32>,
}
impl Builder {
/// <p>The number of occurrences of sample text that matched the criteria specified by the custom data identifier.</p>
pub fn match_count(mut self, input: i32) -> Self {
self.match_count = Some(input);
self
}
/// <p>The number of occurrences of sample text that matched the criteria specified by the custom data identifier.</p>
pub fn set_match_count(mut self, input: std::option::Option<i32>) -> Self {
self.match_count = input;
self
}
/// Consumes the builder and constructs a [`TestCustomDataIdentifierOutput`](crate::output::TestCustomDataIdentifierOutput).
pub fn build(self) -> crate::output::TestCustomDataIdentifierOutput {
crate::output::TestCustomDataIdentifierOutput {
match_count: self.match_count.unwrap_or_default(),
}
}
}
}
impl TestCustomDataIdentifierOutput {
/// Creates a new builder-style object to manufacture [`TestCustomDataIdentifierOutput`](crate::output::TestCustomDataIdentifierOutput).
pub fn builder() -> crate::output::test_custom_data_identifier_output::Builder {
crate::output::test_custom_data_identifier_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TagResourceOutput {}
/// See [`TagResourceOutput`](crate::output::TagResourceOutput).
pub mod tag_resource_output {
/// A builder for [`TagResourceOutput`](crate::output::TagResourceOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`TagResourceOutput`](crate::output::TagResourceOutput).
pub fn build(self) -> crate::output::TagResourceOutput {
crate::output::TagResourceOutput {}
}
}
}
impl TagResourceOutput {
/// Creates a new builder-style object to manufacture [`TagResourceOutput`](crate::output::TagResourceOutput).
pub fn builder() -> crate::output::tag_resource_output::Builder {
crate::output::tag_resource_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct SearchResourcesOutput {
/// <p>An array of objects, one for each resource that matches the filter criteria specified in the request.</p>
#[doc(hidden)]
pub matching_resources: std::option::Option<std::vec::Vec<crate::model::MatchingResource>>,
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl SearchResourcesOutput {
/// <p>An array of objects, one for each resource that matches the filter criteria specified in the request.</p>
pub fn matching_resources(&self) -> std::option::Option<&[crate::model::MatchingResource]> {
self.matching_resources.as_deref()
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
/// See [`SearchResourcesOutput`](crate::output::SearchResourcesOutput).
pub mod search_resources_output {
/// A builder for [`SearchResourcesOutput`](crate::output::SearchResourcesOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) matching_resources:
std::option::Option<std::vec::Vec<crate::model::MatchingResource>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `matching_resources`.
///
/// To override the contents of this collection use [`set_matching_resources`](Self::set_matching_resources).
///
/// <p>An array of objects, one for each resource that matches the filter criteria specified in the request.</p>
pub fn matching_resources(mut self, input: crate::model::MatchingResource) -> Self {
let mut v = self.matching_resources.unwrap_or_default();
v.push(input);
self.matching_resources = Some(v);
self
}
/// <p>An array of objects, one for each resource that matches the filter criteria specified in the request.</p>
pub fn set_matching_resources(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::MatchingResource>>,
) -> Self {
self.matching_resources = input;
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`SearchResourcesOutput`](crate::output::SearchResourcesOutput).
pub fn build(self) -> crate::output::SearchResourcesOutput {
crate::output::SearchResourcesOutput {
matching_resources: self.matching_resources,
next_token: self.next_token,
}
}
}
}
impl SearchResourcesOutput {
/// Creates a new builder-style object to manufacture [`SearchResourcesOutput`](crate::output::SearchResourcesOutput).
pub fn builder() -> crate::output::search_resources_output::Builder {
crate::output::search_resources_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct PutFindingsPublicationConfigurationOutput {}
/// See [`PutFindingsPublicationConfigurationOutput`](crate::output::PutFindingsPublicationConfigurationOutput).
pub mod put_findings_publication_configuration_output {
/// A builder for [`PutFindingsPublicationConfigurationOutput`](crate::output::PutFindingsPublicationConfigurationOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`PutFindingsPublicationConfigurationOutput`](crate::output::PutFindingsPublicationConfigurationOutput).
pub fn build(self) -> crate::output::PutFindingsPublicationConfigurationOutput {
crate::output::PutFindingsPublicationConfigurationOutput {}
}
}
}
impl PutFindingsPublicationConfigurationOutput {
/// Creates a new builder-style object to manufacture [`PutFindingsPublicationConfigurationOutput`](crate::output::PutFindingsPublicationConfigurationOutput).
pub fn builder() -> crate::output::put_findings_publication_configuration_output::Builder {
crate::output::put_findings_publication_configuration_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct PutClassificationExportConfigurationOutput {
/// <p>The location where the data classification results are stored, and the encryption settings that are used when storing results in that location.</p>
#[doc(hidden)]
pub configuration: std::option::Option<crate::model::ClassificationExportConfiguration>,
}
impl PutClassificationExportConfigurationOutput {
/// <p>The location where the data classification results are stored, and the encryption settings that are used when storing results in that location.</p>
pub fn configuration(
&self,
) -> std::option::Option<&crate::model::ClassificationExportConfiguration> {
self.configuration.as_ref()
}
}
/// See [`PutClassificationExportConfigurationOutput`](crate::output::PutClassificationExportConfigurationOutput).
pub mod put_classification_export_configuration_output {
/// A builder for [`PutClassificationExportConfigurationOutput`](crate::output::PutClassificationExportConfigurationOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) configuration:
std::option::Option<crate::model::ClassificationExportConfiguration>,
}
impl Builder {
/// <p>The location where the data classification results are stored, and the encryption settings that are used when storing results in that location.</p>
pub fn configuration(
mut self,
input: crate::model::ClassificationExportConfiguration,
) -> Self {
self.configuration = Some(input);
self
}
/// <p>The location where the data classification results are stored, and the encryption settings that are used when storing results in that location.</p>
pub fn set_configuration(
mut self,
input: std::option::Option<crate::model::ClassificationExportConfiguration>,
) -> Self {
self.configuration = input;
self
}
/// Consumes the builder and constructs a [`PutClassificationExportConfigurationOutput`](crate::output::PutClassificationExportConfigurationOutput).
pub fn build(self) -> crate::output::PutClassificationExportConfigurationOutput {
crate::output::PutClassificationExportConfigurationOutput {
configuration: self.configuration,
}
}
}
}
impl PutClassificationExportConfigurationOutput {
/// Creates a new builder-style object to manufacture [`PutClassificationExportConfigurationOutput`](crate::output::PutClassificationExportConfigurationOutput).
pub fn builder() -> crate::output::put_classification_export_configuration_output::Builder {
crate::output::put_classification_export_configuration_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListTagsForResourceOutput {
/// <p>A map of key-value pairs that specifies which tags (keys and values) are associated with the resource.</p>
#[doc(hidden)]
pub tags:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
}
impl ListTagsForResourceOutput {
/// <p>A map of key-value pairs that specifies which tags (keys and values) are associated with the resource.</p>
pub fn tags(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.tags.as_ref()
}
}
/// See [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput).
pub mod list_tags_for_resource_output {
/// A builder for [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) tags: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
}
impl Builder {
/// Adds a key-value pair to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>A map of key-value pairs that specifies which tags (keys and values) are associated with the resource.</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>A map of key-value pairs that specifies which tags (keys and values) are associated with the resource.</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 [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput).
pub fn build(self) -> crate::output::ListTagsForResourceOutput {
crate::output::ListTagsForResourceOutput { tags: self.tags }
}
}
}
impl ListTagsForResourceOutput {
/// Creates a new builder-style object to manufacture [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput).
pub fn builder() -> crate::output::list_tags_for_resource_output::Builder {
crate::output::list_tags_for_resource_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListSensitivityInspectionTemplatesOutput {
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
/// <p>An array that specifies the unique identifier and name of the sensitivity inspection template for the account.</p>
#[doc(hidden)]
pub sensitivity_inspection_templates:
std::option::Option<std::vec::Vec<crate::model::SensitivityInspectionTemplatesEntry>>,
}
impl ListSensitivityInspectionTemplatesOutput {
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
/// <p>An array that specifies the unique identifier and name of the sensitivity inspection template for the account.</p>
pub fn sensitivity_inspection_templates(
&self,
) -> std::option::Option<&[crate::model::SensitivityInspectionTemplatesEntry]> {
self.sensitivity_inspection_templates.as_deref()
}
}
/// See [`ListSensitivityInspectionTemplatesOutput`](crate::output::ListSensitivityInspectionTemplatesOutput).
pub mod list_sensitivity_inspection_templates_output {
/// A builder for [`ListSensitivityInspectionTemplatesOutput`](crate::output::ListSensitivityInspectionTemplatesOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) next_token: std::option::Option<std::string::String>,
pub(crate) sensitivity_inspection_templates:
std::option::Option<std::vec::Vec<crate::model::SensitivityInspectionTemplatesEntry>>,
}
impl Builder {
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Appends an item to `sensitivity_inspection_templates`.
///
/// To override the contents of this collection use [`set_sensitivity_inspection_templates`](Self::set_sensitivity_inspection_templates).
///
/// <p>An array that specifies the unique identifier and name of the sensitivity inspection template for the account.</p>
pub fn sensitivity_inspection_templates(
mut self,
input: crate::model::SensitivityInspectionTemplatesEntry,
) -> Self {
let mut v = self.sensitivity_inspection_templates.unwrap_or_default();
v.push(input);
self.sensitivity_inspection_templates = Some(v);
self
}
/// <p>An array that specifies the unique identifier and name of the sensitivity inspection template for the account.</p>
pub fn set_sensitivity_inspection_templates(
mut self,
input: std::option::Option<
std::vec::Vec<crate::model::SensitivityInspectionTemplatesEntry>,
>,
) -> Self {
self.sensitivity_inspection_templates = input;
self
}
/// Consumes the builder and constructs a [`ListSensitivityInspectionTemplatesOutput`](crate::output::ListSensitivityInspectionTemplatesOutput).
pub fn build(self) -> crate::output::ListSensitivityInspectionTemplatesOutput {
crate::output::ListSensitivityInspectionTemplatesOutput {
next_token: self.next_token,
sensitivity_inspection_templates: self.sensitivity_inspection_templates,
}
}
}
}
impl ListSensitivityInspectionTemplatesOutput {
/// Creates a new builder-style object to manufacture [`ListSensitivityInspectionTemplatesOutput`](crate::output::ListSensitivityInspectionTemplatesOutput).
pub fn builder() -> crate::output::list_sensitivity_inspection_templates_output::Builder {
crate::output::list_sensitivity_inspection_templates_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListResourceProfileDetectionsOutput {
/// <p>An array of objects, one for each type of sensitive data that Amazon Macie found in the bucket. Each object reports the number of occurrences of the specified type and provides information about the custom data identifier or managed data identifier that detected the data.</p>
#[doc(hidden)]
pub detections: std::option::Option<std::vec::Vec<crate::model::Detection>>,
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListResourceProfileDetectionsOutput {
/// <p>An array of objects, one for each type of sensitive data that Amazon Macie found in the bucket. Each object reports the number of occurrences of the specified type and provides information about the custom data identifier or managed data identifier that detected the data.</p>
pub fn detections(&self) -> std::option::Option<&[crate::model::Detection]> {
self.detections.as_deref()
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
/// See [`ListResourceProfileDetectionsOutput`](crate::output::ListResourceProfileDetectionsOutput).
pub mod list_resource_profile_detections_output {
/// A builder for [`ListResourceProfileDetectionsOutput`](crate::output::ListResourceProfileDetectionsOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) detections: std::option::Option<std::vec::Vec<crate::model::Detection>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `detections`.
///
/// To override the contents of this collection use [`set_detections`](Self::set_detections).
///
/// <p>An array of objects, one for each type of sensitive data that Amazon Macie found in the bucket. Each object reports the number of occurrences of the specified type and provides information about the custom data identifier or managed data identifier that detected the data.</p>
pub fn detections(mut self, input: crate::model::Detection) -> Self {
let mut v = self.detections.unwrap_or_default();
v.push(input);
self.detections = Some(v);
self
}
/// <p>An array of objects, one for each type of sensitive data that Amazon Macie found in the bucket. Each object reports the number of occurrences of the specified type and provides information about the custom data identifier or managed data identifier that detected the data.</p>
pub fn set_detections(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Detection>>,
) -> Self {
self.detections = input;
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListResourceProfileDetectionsOutput`](crate::output::ListResourceProfileDetectionsOutput).
pub fn build(self) -> crate::output::ListResourceProfileDetectionsOutput {
crate::output::ListResourceProfileDetectionsOutput {
detections: self.detections,
next_token: self.next_token,
}
}
}
}
impl ListResourceProfileDetectionsOutput {
/// Creates a new builder-style object to manufacture [`ListResourceProfileDetectionsOutput`](crate::output::ListResourceProfileDetectionsOutput).
pub fn builder() -> crate::output::list_resource_profile_detections_output::Builder {
crate::output::list_resource_profile_detections_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListResourceProfileArtifactsOutput {
/// <p>An array of objects, one for each S3 object that Amazon Macie selected for analysis.</p>
#[doc(hidden)]
pub artifacts: std::option::Option<std::vec::Vec<crate::model::ResourceProfileArtifact>>,
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListResourceProfileArtifactsOutput {
/// <p>An array of objects, one for each S3 object that Amazon Macie selected for analysis.</p>
pub fn artifacts(&self) -> std::option::Option<&[crate::model::ResourceProfileArtifact]> {
self.artifacts.as_deref()
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
/// See [`ListResourceProfileArtifactsOutput`](crate::output::ListResourceProfileArtifactsOutput).
pub mod list_resource_profile_artifacts_output {
/// A builder for [`ListResourceProfileArtifactsOutput`](crate::output::ListResourceProfileArtifactsOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) artifacts:
std::option::Option<std::vec::Vec<crate::model::ResourceProfileArtifact>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `artifacts`.
///
/// To override the contents of this collection use [`set_artifacts`](Self::set_artifacts).
///
/// <p>An array of objects, one for each S3 object that Amazon Macie selected for analysis.</p>
pub fn artifacts(mut self, input: crate::model::ResourceProfileArtifact) -> Self {
let mut v = self.artifacts.unwrap_or_default();
v.push(input);
self.artifacts = Some(v);
self
}
/// <p>An array of objects, one for each S3 object that Amazon Macie selected for analysis.</p>
pub fn set_artifacts(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::ResourceProfileArtifact>>,
) -> Self {
self.artifacts = input;
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListResourceProfileArtifactsOutput`](crate::output::ListResourceProfileArtifactsOutput).
pub fn build(self) -> crate::output::ListResourceProfileArtifactsOutput {
crate::output::ListResourceProfileArtifactsOutput {
artifacts: self.artifacts,
next_token: self.next_token,
}
}
}
}
impl ListResourceProfileArtifactsOutput {
/// Creates a new builder-style object to manufacture [`ListResourceProfileArtifactsOutput`](crate::output::ListResourceProfileArtifactsOutput).
pub fn builder() -> crate::output::list_resource_profile_artifacts_output::Builder {
crate::output::list_resource_profile_artifacts_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListOrganizationAdminAccountsOutput {
/// <p>An array of objects, one for each delegated Amazon Macie administrator account for the organization. Only one of these accounts can have a status of ENABLED.</p>
#[doc(hidden)]
pub admin_accounts: std::option::Option<std::vec::Vec<crate::model::AdminAccount>>,
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListOrganizationAdminAccountsOutput {
/// <p>An array of objects, one for each delegated Amazon Macie administrator account for the organization. Only one of these accounts can have a status of ENABLED.</p>
pub fn admin_accounts(&self) -> std::option::Option<&[crate::model::AdminAccount]> {
self.admin_accounts.as_deref()
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
/// See [`ListOrganizationAdminAccountsOutput`](crate::output::ListOrganizationAdminAccountsOutput).
pub mod list_organization_admin_accounts_output {
/// A builder for [`ListOrganizationAdminAccountsOutput`](crate::output::ListOrganizationAdminAccountsOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) admin_accounts: std::option::Option<std::vec::Vec<crate::model::AdminAccount>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `admin_accounts`.
///
/// To override the contents of this collection use [`set_admin_accounts`](Self::set_admin_accounts).
///
/// <p>An array of objects, one for each delegated Amazon Macie administrator account for the organization. Only one of these accounts can have a status of ENABLED.</p>
pub fn admin_accounts(mut self, input: crate::model::AdminAccount) -> Self {
let mut v = self.admin_accounts.unwrap_or_default();
v.push(input);
self.admin_accounts = Some(v);
self
}
/// <p>An array of objects, one for each delegated Amazon Macie administrator account for the organization. Only one of these accounts can have a status of ENABLED.</p>
pub fn set_admin_accounts(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::AdminAccount>>,
) -> Self {
self.admin_accounts = input;
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListOrganizationAdminAccountsOutput`](crate::output::ListOrganizationAdminAccountsOutput).
pub fn build(self) -> crate::output::ListOrganizationAdminAccountsOutput {
crate::output::ListOrganizationAdminAccountsOutput {
admin_accounts: self.admin_accounts,
next_token: self.next_token,
}
}
}
}
impl ListOrganizationAdminAccountsOutput {
/// Creates a new builder-style object to manufacture [`ListOrganizationAdminAccountsOutput`](crate::output::ListOrganizationAdminAccountsOutput).
pub fn builder() -> crate::output::list_organization_admin_accounts_output::Builder {
crate::output::list_organization_admin_accounts_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListMembersOutput {
/// <p>An array of objects, one for each account that's associated with the administrator account and matches the criteria specified in the request.</p>
#[doc(hidden)]
pub members: std::option::Option<std::vec::Vec<crate::model::Member>>,
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListMembersOutput {
/// <p>An array of objects, one for each account that's associated with the administrator account and matches the criteria specified in the request.</p>
pub fn members(&self) -> std::option::Option<&[crate::model::Member]> {
self.members.as_deref()
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
/// See [`ListMembersOutput`](crate::output::ListMembersOutput).
pub mod list_members_output {
/// A builder for [`ListMembersOutput`](crate::output::ListMembersOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) members: std::option::Option<std::vec::Vec<crate::model::Member>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `members`.
///
/// To override the contents of this collection use [`set_members`](Self::set_members).
///
/// <p>An array of objects, one for each account that's associated with the administrator account and matches the criteria specified in the request.</p>
pub fn members(mut self, input: crate::model::Member) -> Self {
let mut v = self.members.unwrap_or_default();
v.push(input);
self.members = Some(v);
self
}
/// <p>An array of objects, one for each account that's associated with the administrator account and matches the criteria specified in the request.</p>
pub fn set_members(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Member>>,
) -> Self {
self.members = input;
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListMembersOutput`](crate::output::ListMembersOutput).
pub fn build(self) -> crate::output::ListMembersOutput {
crate::output::ListMembersOutput {
members: self.members,
next_token: self.next_token,
}
}
}
}
impl ListMembersOutput {
/// Creates a new builder-style object to manufacture [`ListMembersOutput`](crate::output::ListMembersOutput).
pub fn builder() -> crate::output::list_members_output::Builder {
crate::output::list_members_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListManagedDataIdentifiersOutput {
/// <p>An array of objects, one for each managed data identifier.</p>
#[doc(hidden)]
pub items: std::option::Option<std::vec::Vec<crate::model::ManagedDataIdentifierSummary>>,
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListManagedDataIdentifiersOutput {
/// <p>An array of objects, one for each managed data identifier.</p>
pub fn items(&self) -> std::option::Option<&[crate::model::ManagedDataIdentifierSummary]> {
self.items.as_deref()
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
/// See [`ListManagedDataIdentifiersOutput`](crate::output::ListManagedDataIdentifiersOutput).
pub mod list_managed_data_identifiers_output {
/// A builder for [`ListManagedDataIdentifiersOutput`](crate::output::ListManagedDataIdentifiersOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) items:
std::option::Option<std::vec::Vec<crate::model::ManagedDataIdentifierSummary>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `items`.
///
/// To override the contents of this collection use [`set_items`](Self::set_items).
///
/// <p>An array of objects, one for each managed data identifier.</p>
pub fn items(mut self, input: crate::model::ManagedDataIdentifierSummary) -> Self {
let mut v = self.items.unwrap_or_default();
v.push(input);
self.items = Some(v);
self
}
/// <p>An array of objects, one for each managed data identifier.</p>
pub fn set_items(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::ManagedDataIdentifierSummary>>,
) -> Self {
self.items = input;
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListManagedDataIdentifiersOutput`](crate::output::ListManagedDataIdentifiersOutput).
pub fn build(self) -> crate::output::ListManagedDataIdentifiersOutput {
crate::output::ListManagedDataIdentifiersOutput {
items: self.items,
next_token: self.next_token,
}
}
}
}
impl ListManagedDataIdentifiersOutput {
/// Creates a new builder-style object to manufacture [`ListManagedDataIdentifiersOutput`](crate::output::ListManagedDataIdentifiersOutput).
pub fn builder() -> crate::output::list_managed_data_identifiers_output::Builder {
crate::output::list_managed_data_identifiers_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListInvitationsOutput {
/// <p>An array of objects, one for each invitation that was received by the account.</p>
#[doc(hidden)]
pub invitations: std::option::Option<std::vec::Vec<crate::model::Invitation>>,
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListInvitationsOutput {
/// <p>An array of objects, one for each invitation that was received by the account.</p>
pub fn invitations(&self) -> std::option::Option<&[crate::model::Invitation]> {
self.invitations.as_deref()
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
/// See [`ListInvitationsOutput`](crate::output::ListInvitationsOutput).
pub mod list_invitations_output {
/// A builder for [`ListInvitationsOutput`](crate::output::ListInvitationsOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) invitations: std::option::Option<std::vec::Vec<crate::model::Invitation>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `invitations`.
///
/// To override the contents of this collection use [`set_invitations`](Self::set_invitations).
///
/// <p>An array of objects, one for each invitation that was received by the account.</p>
pub fn invitations(mut self, input: crate::model::Invitation) -> Self {
let mut v = self.invitations.unwrap_or_default();
v.push(input);
self.invitations = Some(v);
self
}
/// <p>An array of objects, one for each invitation that was received by the account.</p>
pub fn set_invitations(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Invitation>>,
) -> Self {
self.invitations = input;
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListInvitationsOutput`](crate::output::ListInvitationsOutput).
pub fn build(self) -> crate::output::ListInvitationsOutput {
crate::output::ListInvitationsOutput {
invitations: self.invitations,
next_token: self.next_token,
}
}
}
}
impl ListInvitationsOutput {
/// Creates a new builder-style object to manufacture [`ListInvitationsOutput`](crate::output::ListInvitationsOutput).
pub fn builder() -> crate::output::list_invitations_output::Builder {
crate::output::list_invitations_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListFindingsFiltersOutput {
/// <p>An array of objects, one for each filter that's associated with the account.</p>
#[doc(hidden)]
pub findings_filter_list_items:
std::option::Option<std::vec::Vec<crate::model::FindingsFilterListItem>>,
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListFindingsFiltersOutput {
/// <p>An array of objects, one for each filter that's associated with the account.</p>
pub fn findings_filter_list_items(
&self,
) -> std::option::Option<&[crate::model::FindingsFilterListItem]> {
self.findings_filter_list_items.as_deref()
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
/// See [`ListFindingsFiltersOutput`](crate::output::ListFindingsFiltersOutput).
pub mod list_findings_filters_output {
/// A builder for [`ListFindingsFiltersOutput`](crate::output::ListFindingsFiltersOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) findings_filter_list_items:
std::option::Option<std::vec::Vec<crate::model::FindingsFilterListItem>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `findings_filter_list_items`.
///
/// To override the contents of this collection use [`set_findings_filter_list_items`](Self::set_findings_filter_list_items).
///
/// <p>An array of objects, one for each filter that's associated with the account.</p>
pub fn findings_filter_list_items(
mut self,
input: crate::model::FindingsFilterListItem,
) -> Self {
let mut v = self.findings_filter_list_items.unwrap_or_default();
v.push(input);
self.findings_filter_list_items = Some(v);
self
}
/// <p>An array of objects, one for each filter that's associated with the account.</p>
pub fn set_findings_filter_list_items(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::FindingsFilterListItem>>,
) -> Self {
self.findings_filter_list_items = input;
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListFindingsFiltersOutput`](crate::output::ListFindingsFiltersOutput).
pub fn build(self) -> crate::output::ListFindingsFiltersOutput {
crate::output::ListFindingsFiltersOutput {
findings_filter_list_items: self.findings_filter_list_items,
next_token: self.next_token,
}
}
}
}
impl ListFindingsFiltersOutput {
/// Creates a new builder-style object to manufacture [`ListFindingsFiltersOutput`](crate::output::ListFindingsFiltersOutput).
pub fn builder() -> crate::output::list_findings_filters_output::Builder {
crate::output::list_findings_filters_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListFindingsOutput {
/// <p>An array of strings, where each string is the unique identifier for a finding that matches the filter criteria specified in the request.</p>
#[doc(hidden)]
pub finding_ids: std::option::Option<std::vec::Vec<std::string::String>>,
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListFindingsOutput {
/// <p>An array of strings, where each string is the unique identifier for a finding that matches the filter criteria specified in the request.</p>
pub fn finding_ids(&self) -> std::option::Option<&[std::string::String]> {
self.finding_ids.as_deref()
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
/// See [`ListFindingsOutput`](crate::output::ListFindingsOutput).
pub mod list_findings_output {
/// A builder for [`ListFindingsOutput`](crate::output::ListFindingsOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) finding_ids: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `finding_ids`.
///
/// To override the contents of this collection use [`set_finding_ids`](Self::set_finding_ids).
///
/// <p>An array of strings, where each string is the unique identifier for a finding that matches the filter criteria specified in the request.</p>
pub fn finding_ids(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.finding_ids.unwrap_or_default();
v.push(input.into());
self.finding_ids = Some(v);
self
}
/// <p>An array of strings, where each string is the unique identifier for a finding that matches the filter criteria specified in the request.</p>
pub fn set_finding_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.finding_ids = input;
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListFindingsOutput`](crate::output::ListFindingsOutput).
pub fn build(self) -> crate::output::ListFindingsOutput {
crate::output::ListFindingsOutput {
finding_ids: self.finding_ids,
next_token: self.next_token,
}
}
}
}
impl ListFindingsOutput {
/// Creates a new builder-style object to manufacture [`ListFindingsOutput`](crate::output::ListFindingsOutput).
pub fn builder() -> crate::output::list_findings_output::Builder {
crate::output::list_findings_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListCustomDataIdentifiersOutput {
/// <p>An array of objects, one for each custom data identifier.</p>
#[doc(hidden)]
pub items: std::option::Option<std::vec::Vec<crate::model::CustomDataIdentifierSummary>>,
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListCustomDataIdentifiersOutput {
/// <p>An array of objects, one for each custom data identifier.</p>
pub fn items(&self) -> std::option::Option<&[crate::model::CustomDataIdentifierSummary]> {
self.items.as_deref()
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
/// See [`ListCustomDataIdentifiersOutput`](crate::output::ListCustomDataIdentifiersOutput).
pub mod list_custom_data_identifiers_output {
/// A builder for [`ListCustomDataIdentifiersOutput`](crate::output::ListCustomDataIdentifiersOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) items:
std::option::Option<std::vec::Vec<crate::model::CustomDataIdentifierSummary>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `items`.
///
/// To override the contents of this collection use [`set_items`](Self::set_items).
///
/// <p>An array of objects, one for each custom data identifier.</p>
pub fn items(mut self, input: crate::model::CustomDataIdentifierSummary) -> Self {
let mut v = self.items.unwrap_or_default();
v.push(input);
self.items = Some(v);
self
}
/// <p>An array of objects, one for each custom data identifier.</p>
pub fn set_items(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::CustomDataIdentifierSummary>>,
) -> Self {
self.items = input;
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListCustomDataIdentifiersOutput`](crate::output::ListCustomDataIdentifiersOutput).
pub fn build(self) -> crate::output::ListCustomDataIdentifiersOutput {
crate::output::ListCustomDataIdentifiersOutput {
items: self.items,
next_token: self.next_token,
}
}
}
}
impl ListCustomDataIdentifiersOutput {
/// Creates a new builder-style object to manufacture [`ListCustomDataIdentifiersOutput`](crate::output::ListCustomDataIdentifiersOutput).
pub fn builder() -> crate::output::list_custom_data_identifiers_output::Builder {
crate::output::list_custom_data_identifiers_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListClassificationScopesOutput {
/// <p>An array that specifies the unique identifier and name of the classification scope for the account.</p>
#[doc(hidden)]
pub classification_scopes:
std::option::Option<std::vec::Vec<crate::model::ClassificationScopeSummary>>,
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListClassificationScopesOutput {
/// <p>An array that specifies the unique identifier and name of the classification scope for the account.</p>
pub fn classification_scopes(
&self,
) -> std::option::Option<&[crate::model::ClassificationScopeSummary]> {
self.classification_scopes.as_deref()
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
/// See [`ListClassificationScopesOutput`](crate::output::ListClassificationScopesOutput).
pub mod list_classification_scopes_output {
/// A builder for [`ListClassificationScopesOutput`](crate::output::ListClassificationScopesOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) classification_scopes:
std::option::Option<std::vec::Vec<crate::model::ClassificationScopeSummary>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `classification_scopes`.
///
/// To override the contents of this collection use [`set_classification_scopes`](Self::set_classification_scopes).
///
/// <p>An array that specifies the unique identifier and name of the classification scope for the account.</p>
pub fn classification_scopes(
mut self,
input: crate::model::ClassificationScopeSummary,
) -> Self {
let mut v = self.classification_scopes.unwrap_or_default();
v.push(input);
self.classification_scopes = Some(v);
self
}
/// <p>An array that specifies the unique identifier and name of the classification scope for the account.</p>
pub fn set_classification_scopes(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::ClassificationScopeSummary>>,
) -> Self {
self.classification_scopes = input;
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListClassificationScopesOutput`](crate::output::ListClassificationScopesOutput).
pub fn build(self) -> crate::output::ListClassificationScopesOutput {
crate::output::ListClassificationScopesOutput {
classification_scopes: self.classification_scopes,
next_token: self.next_token,
}
}
}
}
impl ListClassificationScopesOutput {
/// Creates a new builder-style object to manufacture [`ListClassificationScopesOutput`](crate::output::ListClassificationScopesOutput).
pub fn builder() -> crate::output::list_classification_scopes_output::Builder {
crate::output::list_classification_scopes_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListClassificationJobsOutput {
/// <p>An array of objects, one for each job that matches the filter criteria specified in the request.</p>
#[doc(hidden)]
pub items: std::option::Option<std::vec::Vec<crate::model::JobSummary>>,
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListClassificationJobsOutput {
/// <p>An array of objects, one for each job that matches the filter criteria specified in the request.</p>
pub fn items(&self) -> std::option::Option<&[crate::model::JobSummary]> {
self.items.as_deref()
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
/// See [`ListClassificationJobsOutput`](crate::output::ListClassificationJobsOutput).
pub mod list_classification_jobs_output {
/// A builder for [`ListClassificationJobsOutput`](crate::output::ListClassificationJobsOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) items: std::option::Option<std::vec::Vec<crate::model::JobSummary>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `items`.
///
/// To override the contents of this collection use [`set_items`](Self::set_items).
///
/// <p>An array of objects, one for each job that matches the filter criteria specified in the request.</p>
pub fn items(mut self, input: crate::model::JobSummary) -> Self {
let mut v = self.items.unwrap_or_default();
v.push(input);
self.items = Some(v);
self
}
/// <p>An array of objects, one for each job that matches the filter criteria specified in the request.</p>
pub fn set_items(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::JobSummary>>,
) -> Self {
self.items = input;
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListClassificationJobsOutput`](crate::output::ListClassificationJobsOutput).
pub fn build(self) -> crate::output::ListClassificationJobsOutput {
crate::output::ListClassificationJobsOutput {
items: self.items,
next_token: self.next_token,
}
}
}
}
impl ListClassificationJobsOutput {
/// Creates a new builder-style object to manufacture [`ListClassificationJobsOutput`](crate::output::ListClassificationJobsOutput).
pub fn builder() -> crate::output::list_classification_jobs_output::Builder {
crate::output::list_classification_jobs_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListAllowListsOutput {
/// <p>An array of objects, one for each allow list.</p>
#[doc(hidden)]
pub allow_lists: std::option::Option<std::vec::Vec<crate::model::AllowListSummary>>,
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListAllowListsOutput {
/// <p>An array of objects, one for each allow list.</p>
pub fn allow_lists(&self) -> std::option::Option<&[crate::model::AllowListSummary]> {
self.allow_lists.as_deref()
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
/// See [`ListAllowListsOutput`](crate::output::ListAllowListsOutput).
pub mod list_allow_lists_output {
/// A builder for [`ListAllowListsOutput`](crate::output::ListAllowListsOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) allow_lists: std::option::Option<std::vec::Vec<crate::model::AllowListSummary>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `allow_lists`.
///
/// To override the contents of this collection use [`set_allow_lists`](Self::set_allow_lists).
///
/// <p>An array of objects, one for each allow list.</p>
pub fn allow_lists(mut self, input: crate::model::AllowListSummary) -> Self {
let mut v = self.allow_lists.unwrap_or_default();
v.push(input);
self.allow_lists = Some(v);
self
}
/// <p>An array of objects, one for each allow list.</p>
pub fn set_allow_lists(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::AllowListSummary>>,
) -> Self {
self.allow_lists = input;
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListAllowListsOutput`](crate::output::ListAllowListsOutput).
pub fn build(self) -> crate::output::ListAllowListsOutput {
crate::output::ListAllowListsOutput {
allow_lists: self.allow_lists,
next_token: self.next_token,
}
}
}
}
impl ListAllowListsOutput {
/// Creates a new builder-style object to manufacture [`ListAllowListsOutput`](crate::output::ListAllowListsOutput).
pub fn builder() -> crate::output::list_allow_lists_output::Builder {
crate::output::list_allow_lists_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetUsageTotalsOutput {
/// <p>The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.</p>
#[doc(hidden)]
pub time_range: std::option::Option<crate::model::TimeRange>,
/// <p>An array of objects that contains the results of the query. Each object contains the data for a specific usage metric.</p>
#[doc(hidden)]
pub usage_totals: std::option::Option<std::vec::Vec<crate::model::UsageTotal>>,
}
impl GetUsageTotalsOutput {
/// <p>The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.</p>
pub fn time_range(&self) -> std::option::Option<&crate::model::TimeRange> {
self.time_range.as_ref()
}
/// <p>An array of objects that contains the results of the query. Each object contains the data for a specific usage metric.</p>
pub fn usage_totals(&self) -> std::option::Option<&[crate::model::UsageTotal]> {
self.usage_totals.as_deref()
}
}
/// See [`GetUsageTotalsOutput`](crate::output::GetUsageTotalsOutput).
pub mod get_usage_totals_output {
/// A builder for [`GetUsageTotalsOutput`](crate::output::GetUsageTotalsOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) time_range: std::option::Option<crate::model::TimeRange>,
pub(crate) usage_totals: std::option::Option<std::vec::Vec<crate::model::UsageTotal>>,
}
impl Builder {
/// <p>The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.</p>
pub fn time_range(mut self, input: crate::model::TimeRange) -> Self {
self.time_range = Some(input);
self
}
/// <p>The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.</p>
pub fn set_time_range(
mut self,
input: std::option::Option<crate::model::TimeRange>,
) -> Self {
self.time_range = input;
self
}
/// Appends an item to `usage_totals`.
///
/// To override the contents of this collection use [`set_usage_totals`](Self::set_usage_totals).
///
/// <p>An array of objects that contains the results of the query. Each object contains the data for a specific usage metric.</p>
pub fn usage_totals(mut self, input: crate::model::UsageTotal) -> Self {
let mut v = self.usage_totals.unwrap_or_default();
v.push(input);
self.usage_totals = Some(v);
self
}
/// <p>An array of objects that contains the results of the query. Each object contains the data for a specific usage metric.</p>
pub fn set_usage_totals(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::UsageTotal>>,
) -> Self {
self.usage_totals = input;
self
}
/// Consumes the builder and constructs a [`GetUsageTotalsOutput`](crate::output::GetUsageTotalsOutput).
pub fn build(self) -> crate::output::GetUsageTotalsOutput {
crate::output::GetUsageTotalsOutput {
time_range: self.time_range,
usage_totals: self.usage_totals,
}
}
}
}
impl GetUsageTotalsOutput {
/// Creates a new builder-style object to manufacture [`GetUsageTotalsOutput`](crate::output::GetUsageTotalsOutput).
pub fn builder() -> crate::output::get_usage_totals_output::Builder {
crate::output::get_usage_totals_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetUsageStatisticsOutput {
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
/// <p>An array of objects that contains the results of the query. Each object contains the data for an account that matches the filter criteria specified in the request.</p>
#[doc(hidden)]
pub records: std::option::Option<std::vec::Vec<crate::model::UsageRecord>>,
/// <p>The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.</p>
#[doc(hidden)]
pub time_range: std::option::Option<crate::model::TimeRange>,
}
impl GetUsageStatisticsOutput {
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
/// <p>An array of objects that contains the results of the query. Each object contains the data for an account that matches the filter criteria specified in the request.</p>
pub fn records(&self) -> std::option::Option<&[crate::model::UsageRecord]> {
self.records.as_deref()
}
/// <p>The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.</p>
pub fn time_range(&self) -> std::option::Option<&crate::model::TimeRange> {
self.time_range.as_ref()
}
}
/// See [`GetUsageStatisticsOutput`](crate::output::GetUsageStatisticsOutput).
pub mod get_usage_statistics_output {
/// A builder for [`GetUsageStatisticsOutput`](crate::output::GetUsageStatisticsOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) next_token: std::option::Option<std::string::String>,
pub(crate) records: std::option::Option<std::vec::Vec<crate::model::UsageRecord>>,
pub(crate) time_range: std::option::Option<crate::model::TimeRange>,
}
impl Builder {
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Appends an item to `records`.
///
/// To override the contents of this collection use [`set_records`](Self::set_records).
///
/// <p>An array of objects that contains the results of the query. Each object contains the data for an account that matches the filter criteria specified in the request.</p>
pub fn records(mut self, input: crate::model::UsageRecord) -> Self {
let mut v = self.records.unwrap_or_default();
v.push(input);
self.records = Some(v);
self
}
/// <p>An array of objects that contains the results of the query. Each object contains the data for an account that matches the filter criteria specified in the request.</p>
pub fn set_records(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::UsageRecord>>,
) -> Self {
self.records = input;
self
}
/// <p>The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.</p>
pub fn time_range(mut self, input: crate::model::TimeRange) -> Self {
self.time_range = Some(input);
self
}
/// <p>The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.</p>
pub fn set_time_range(
mut self,
input: std::option::Option<crate::model::TimeRange>,
) -> Self {
self.time_range = input;
self
}
/// Consumes the builder and constructs a [`GetUsageStatisticsOutput`](crate::output::GetUsageStatisticsOutput).
pub fn build(self) -> crate::output::GetUsageStatisticsOutput {
crate::output::GetUsageStatisticsOutput {
next_token: self.next_token,
records: self.records,
time_range: self.time_range,
}
}
}
}
impl GetUsageStatisticsOutput {
/// Creates a new builder-style object to manufacture [`GetUsageStatisticsOutput`](crate::output::GetUsageStatisticsOutput).
pub fn builder() -> crate::output::get_usage_statistics_output::Builder {
crate::output::get_usage_statistics_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetSensitivityInspectionTemplateOutput {
/// <p>The custom description of the template.</p>
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
/// <p>The managed data identifiers that are explicitly excluded (not used) when analyzing data.</p>
#[doc(hidden)]
pub excludes: std::option::Option<crate::model::SensitivityInspectionTemplateExcludes>,
/// <p>The allow lists, custom data identifiers, and managed data identifiers that are included (used) when analyzing data.</p>
#[doc(hidden)]
pub includes: std::option::Option<crate::model::SensitivityInspectionTemplateIncludes>,
/// <p>The name of the template.</p>
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
/// <p>The unique identifier for the template.</p>
#[doc(hidden)]
pub sensitivity_inspection_template_id: std::option::Option<std::string::String>,
}
impl GetSensitivityInspectionTemplateOutput {
/// <p>The custom description of the template.</p>
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
/// <p>The managed data identifiers that are explicitly excluded (not used) when analyzing data.</p>
pub fn excludes(
&self,
) -> std::option::Option<&crate::model::SensitivityInspectionTemplateExcludes> {
self.excludes.as_ref()
}
/// <p>The allow lists, custom data identifiers, and managed data identifiers that are included (used) when analyzing data.</p>
pub fn includes(
&self,
) -> std::option::Option<&crate::model::SensitivityInspectionTemplateIncludes> {
self.includes.as_ref()
}
/// <p>The name of the template.</p>
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
/// <p>The unique identifier for the template.</p>
pub fn sensitivity_inspection_template_id(&self) -> std::option::Option<&str> {
self.sensitivity_inspection_template_id.as_deref()
}
}
/// See [`GetSensitivityInspectionTemplateOutput`](crate::output::GetSensitivityInspectionTemplateOutput).
pub mod get_sensitivity_inspection_template_output {
/// A builder for [`GetSensitivityInspectionTemplateOutput`](crate::output::GetSensitivityInspectionTemplateOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) excludes:
std::option::Option<crate::model::SensitivityInspectionTemplateExcludes>,
pub(crate) includes:
std::option::Option<crate::model::SensitivityInspectionTemplateIncludes>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) sensitivity_inspection_template_id: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The custom description of the template.</p>
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
/// <p>The custom description of the template.</p>
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
/// <p>The managed data identifiers that are explicitly excluded (not used) when analyzing data.</p>
pub fn excludes(
mut self,
input: crate::model::SensitivityInspectionTemplateExcludes,
) -> Self {
self.excludes = Some(input);
self
}
/// <p>The managed data identifiers that are explicitly excluded (not used) when analyzing data.</p>
pub fn set_excludes(
mut self,
input: std::option::Option<crate::model::SensitivityInspectionTemplateExcludes>,
) -> Self {
self.excludes = input;
self
}
/// <p>The allow lists, custom data identifiers, and managed data identifiers that are included (used) when analyzing data.</p>
pub fn includes(
mut self,
input: crate::model::SensitivityInspectionTemplateIncludes,
) -> Self {
self.includes = Some(input);
self
}
/// <p>The allow lists, custom data identifiers, and managed data identifiers that are included (used) when analyzing data.</p>
pub fn set_includes(
mut self,
input: std::option::Option<crate::model::SensitivityInspectionTemplateIncludes>,
) -> Self {
self.includes = input;
self
}
/// <p>The name of the template.</p>
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
/// <p>The name of the template.</p>
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The unique identifier for the template.</p>
pub fn sensitivity_inspection_template_id(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.sensitivity_inspection_template_id = Some(input.into());
self
}
/// <p>The unique identifier for the template.</p>
pub fn set_sensitivity_inspection_template_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.sensitivity_inspection_template_id = input;
self
}
/// Consumes the builder and constructs a [`GetSensitivityInspectionTemplateOutput`](crate::output::GetSensitivityInspectionTemplateOutput).
pub fn build(self) -> crate::output::GetSensitivityInspectionTemplateOutput {
crate::output::GetSensitivityInspectionTemplateOutput {
description: self.description,
excludes: self.excludes,
includes: self.includes,
name: self.name,
sensitivity_inspection_template_id: self.sensitivity_inspection_template_id,
}
}
}
}
impl GetSensitivityInspectionTemplateOutput {
/// Creates a new builder-style object to manufacture [`GetSensitivityInspectionTemplateOutput`](crate::output::GetSensitivityInspectionTemplateOutput).
pub fn builder() -> crate::output::get_sensitivity_inspection_template_output::Builder {
crate::output::get_sensitivity_inspection_template_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetSensitiveDataOccurrencesAvailabilityOutput {
/// <p>Specifies whether occurrences of sensitive data can be retrieved for the finding. Possible values are: AVAILABLE, the sensitive data can be retrieved; and, UNAVAILABLE, the sensitive data can't be retrieved. If this value is UNAVAILABLE, the reasons array indicates why the data can't be retrieved.</p>
#[doc(hidden)]
pub code: std::option::Option<crate::model::AvailabilityCode>,
/// <p>Specifies why occurrences of sensitive data can't be retrieved for the finding. Possible values are:</p>
/// <ul>
/// <li><p>INVALID_CLASSIFICATION_RESULT - Amazon Macie can't verify the location of the sensitive data to retrieve. There isn't a corresponding sensitive data discovery result for the finding. Or the sensitive data discovery result specified by the ClassificationDetails.detailedResultsLocation field of the finding isn't available, is malformed or corrupted, or uses an unsupported storage format.</p></li>
/// <li><p>OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for retrieving occurrences of sensitive data.</p></li>
/// <li><p>OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object might have been renamed, moved, or deleted. Or the object was changed after Macie created the finding.</p></li>
/// <li><p>UNSUPPORTED_FINDING_TYPE - The specified finding isn't a sensitive data finding.</p></li>
/// <li><p>UNSUPPORTED_OBJECT_TYPE - The affected S3 object uses a file or storage format that Macie doesn't support for retrieving occurrences of sensitive data.</p></li>
/// </ul>
/// <p>This value is null if sensitive data can be retrieved for the finding.</p>
#[doc(hidden)]
pub reasons: std::option::Option<std::vec::Vec<crate::model::UnavailabilityReasonCode>>,
}
impl GetSensitiveDataOccurrencesAvailabilityOutput {
/// <p>Specifies whether occurrences of sensitive data can be retrieved for the finding. Possible values are: AVAILABLE, the sensitive data can be retrieved; and, UNAVAILABLE, the sensitive data can't be retrieved. If this value is UNAVAILABLE, the reasons array indicates why the data can't be retrieved.</p>
pub fn code(&self) -> std::option::Option<&crate::model::AvailabilityCode> {
self.code.as_ref()
}
/// <p>Specifies why occurrences of sensitive data can't be retrieved for the finding. Possible values are:</p>
/// <ul>
/// <li><p>INVALID_CLASSIFICATION_RESULT - Amazon Macie can't verify the location of the sensitive data to retrieve. There isn't a corresponding sensitive data discovery result for the finding. Or the sensitive data discovery result specified by the ClassificationDetails.detailedResultsLocation field of the finding isn't available, is malformed or corrupted, or uses an unsupported storage format.</p></li>
/// <li><p>OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for retrieving occurrences of sensitive data.</p></li>
/// <li><p>OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object might have been renamed, moved, or deleted. Or the object was changed after Macie created the finding.</p></li>
/// <li><p>UNSUPPORTED_FINDING_TYPE - The specified finding isn't a sensitive data finding.</p></li>
/// <li><p>UNSUPPORTED_OBJECT_TYPE - The affected S3 object uses a file or storage format that Macie doesn't support for retrieving occurrences of sensitive data.</p></li>
/// </ul>
/// <p>This value is null if sensitive data can be retrieved for the finding.</p>
pub fn reasons(&self) -> std::option::Option<&[crate::model::UnavailabilityReasonCode]> {
self.reasons.as_deref()
}
}
/// See [`GetSensitiveDataOccurrencesAvailabilityOutput`](crate::output::GetSensitiveDataOccurrencesAvailabilityOutput).
pub mod get_sensitive_data_occurrences_availability_output {
/// A builder for [`GetSensitiveDataOccurrencesAvailabilityOutput`](crate::output::GetSensitiveDataOccurrencesAvailabilityOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) code: std::option::Option<crate::model::AvailabilityCode>,
pub(crate) reasons:
std::option::Option<std::vec::Vec<crate::model::UnavailabilityReasonCode>>,
}
impl Builder {
/// <p>Specifies whether occurrences of sensitive data can be retrieved for the finding. Possible values are: AVAILABLE, the sensitive data can be retrieved; and, UNAVAILABLE, the sensitive data can't be retrieved. If this value is UNAVAILABLE, the reasons array indicates why the data can't be retrieved.</p>
pub fn code(mut self, input: crate::model::AvailabilityCode) -> Self {
self.code = Some(input);
self
}
/// <p>Specifies whether occurrences of sensitive data can be retrieved for the finding. Possible values are: AVAILABLE, the sensitive data can be retrieved; and, UNAVAILABLE, the sensitive data can't be retrieved. If this value is UNAVAILABLE, the reasons array indicates why the data can't be retrieved.</p>
pub fn set_code(
mut self,
input: std::option::Option<crate::model::AvailabilityCode>,
) -> Self {
self.code = input;
self
}
/// Appends an item to `reasons`.
///
/// To override the contents of this collection use [`set_reasons`](Self::set_reasons).
///
/// <p>Specifies why occurrences of sensitive data can't be retrieved for the finding. Possible values are:</p>
/// <ul>
/// <li><p>INVALID_CLASSIFICATION_RESULT - Amazon Macie can't verify the location of the sensitive data to retrieve. There isn't a corresponding sensitive data discovery result for the finding. Or the sensitive data discovery result specified by the ClassificationDetails.detailedResultsLocation field of the finding isn't available, is malformed or corrupted, or uses an unsupported storage format.</p></li>
/// <li><p>OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for retrieving occurrences of sensitive data.</p></li>
/// <li><p>OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object might have been renamed, moved, or deleted. Or the object was changed after Macie created the finding.</p></li>
/// <li><p>UNSUPPORTED_FINDING_TYPE - The specified finding isn't a sensitive data finding.</p></li>
/// <li><p>UNSUPPORTED_OBJECT_TYPE - The affected S3 object uses a file or storage format that Macie doesn't support for retrieving occurrences of sensitive data.</p></li>
/// </ul>
/// <p>This value is null if sensitive data can be retrieved for the finding.</p>
pub fn reasons(mut self, input: crate::model::UnavailabilityReasonCode) -> Self {
let mut v = self.reasons.unwrap_or_default();
v.push(input);
self.reasons = Some(v);
self
}
/// <p>Specifies why occurrences of sensitive data can't be retrieved for the finding. Possible values are:</p>
/// <ul>
/// <li><p>INVALID_CLASSIFICATION_RESULT - Amazon Macie can't verify the location of the sensitive data to retrieve. There isn't a corresponding sensitive data discovery result for the finding. Or the sensitive data discovery result specified by the ClassificationDetails.detailedResultsLocation field of the finding isn't available, is malformed or corrupted, or uses an unsupported storage format.</p></li>
/// <li><p>OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for retrieving occurrences of sensitive data.</p></li>
/// <li><p>OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object might have been renamed, moved, or deleted. Or the object was changed after Macie created the finding.</p></li>
/// <li><p>UNSUPPORTED_FINDING_TYPE - The specified finding isn't a sensitive data finding.</p></li>
/// <li><p>UNSUPPORTED_OBJECT_TYPE - The affected S3 object uses a file or storage format that Macie doesn't support for retrieving occurrences of sensitive data.</p></li>
/// </ul>
/// <p>This value is null if sensitive data can be retrieved for the finding.</p>
pub fn set_reasons(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::UnavailabilityReasonCode>>,
) -> Self {
self.reasons = input;
self
}
/// Consumes the builder and constructs a [`GetSensitiveDataOccurrencesAvailabilityOutput`](crate::output::GetSensitiveDataOccurrencesAvailabilityOutput).
pub fn build(self) -> crate::output::GetSensitiveDataOccurrencesAvailabilityOutput {
crate::output::GetSensitiveDataOccurrencesAvailabilityOutput {
code: self.code,
reasons: self.reasons,
}
}
}
}
impl GetSensitiveDataOccurrencesAvailabilityOutput {
/// Creates a new builder-style object to manufacture [`GetSensitiveDataOccurrencesAvailabilityOutput`](crate::output::GetSensitiveDataOccurrencesAvailabilityOutput).
pub fn builder() -> crate::output::get_sensitive_data_occurrences_availability_output::Builder {
crate::output::get_sensitive_data_occurrences_availability_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetSensitiveDataOccurrencesOutput {
/// <p>If an error occurred when Amazon Macie attempted to retrieve occurrences of sensitive data reported by the finding, a description of the error that occurred. This value is null if the status (status) of the request is PROCESSING or SUCCESS.</p>
#[doc(hidden)]
pub error: std::option::Option<std::string::String>,
/// <p>A map that specifies 1-100 types of sensitive data reported by the finding and, for each type, 1-10 occurrences of sensitive data.</p>
#[doc(hidden)]
pub sensitive_data_occurrences: std::option::Option<
std::collections::HashMap<
std::string::String,
std::vec::Vec<crate::model::DetectedDataDetails>,
>,
>,
/// <p>The status of the request to retrieve occurrences of sensitive data reported by the finding. Possible values are:</p>
/// <ul>
/// <li><p>ERROR - An error occurred when Amazon Macie attempted to locate, retrieve, or encrypt the sensitive data. The error value indicates the nature of the error that occurred.</p></li>
/// <li><p>PROCESSING - Macie is processing the request.</p></li>
/// <li><p>SUCCESS - Macie successfully located, retrieved, and encrypted the sensitive data.</p></li>
/// </ul>
#[doc(hidden)]
pub status: std::option::Option<crate::model::RevealRequestStatus>,
}
impl GetSensitiveDataOccurrencesOutput {
/// <p>If an error occurred when Amazon Macie attempted to retrieve occurrences of sensitive data reported by the finding, a description of the error that occurred. This value is null if the status (status) of the request is PROCESSING or SUCCESS.</p>
pub fn error(&self) -> std::option::Option<&str> {
self.error.as_deref()
}
/// <p>A map that specifies 1-100 types of sensitive data reported by the finding and, for each type, 1-10 occurrences of sensitive data.</p>
pub fn sensitive_data_occurrences(
&self,
) -> std::option::Option<
&std::collections::HashMap<
std::string::String,
std::vec::Vec<crate::model::DetectedDataDetails>,
>,
> {
self.sensitive_data_occurrences.as_ref()
}
/// <p>The status of the request to retrieve occurrences of sensitive data reported by the finding. Possible values are:</p>
/// <ul>
/// <li><p>ERROR - An error occurred when Amazon Macie attempted to locate, retrieve, or encrypt the sensitive data. The error value indicates the nature of the error that occurred.</p></li>
/// <li><p>PROCESSING - Macie is processing the request.</p></li>
/// <li><p>SUCCESS - Macie successfully located, retrieved, and encrypted the sensitive data.</p></li>
/// </ul>
pub fn status(&self) -> std::option::Option<&crate::model::RevealRequestStatus> {
self.status.as_ref()
}
}
/// See [`GetSensitiveDataOccurrencesOutput`](crate::output::GetSensitiveDataOccurrencesOutput).
pub mod get_sensitive_data_occurrences_output {
/// A builder for [`GetSensitiveDataOccurrencesOutput`](crate::output::GetSensitiveDataOccurrencesOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) error: std::option::Option<std::string::String>,
pub(crate) sensitive_data_occurrences: std::option::Option<
std::collections::HashMap<
std::string::String,
std::vec::Vec<crate::model::DetectedDataDetails>,
>,
>,
pub(crate) status: std::option::Option<crate::model::RevealRequestStatus>,
}
impl Builder {
/// <p>If an error occurred when Amazon Macie attempted to retrieve occurrences of sensitive data reported by the finding, a description of the error that occurred. This value is null if the status (status) of the request is PROCESSING or SUCCESS.</p>
pub fn error(mut self, input: impl Into<std::string::String>) -> Self {
self.error = Some(input.into());
self
}
/// <p>If an error occurred when Amazon Macie attempted to retrieve occurrences of sensitive data reported by the finding, a description of the error that occurred. This value is null if the status (status) of the request is PROCESSING or SUCCESS.</p>
pub fn set_error(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error = input;
self
}
/// Adds a key-value pair to `sensitive_data_occurrences`.
///
/// To override the contents of this collection use [`set_sensitive_data_occurrences`](Self::set_sensitive_data_occurrences).
///
/// <p>A map that specifies 1-100 types of sensitive data reported by the finding and, for each type, 1-10 occurrences of sensitive data.</p>
pub fn sensitive_data_occurrences(
mut self,
k: impl Into<std::string::String>,
v: std::vec::Vec<crate::model::DetectedDataDetails>,
) -> Self {
let mut hash_map = self.sensitive_data_occurrences.unwrap_or_default();
hash_map.insert(k.into(), v);
self.sensitive_data_occurrences = Some(hash_map);
self
}
/// <p>A map that specifies 1-100 types of sensitive data reported by the finding and, for each type, 1-10 occurrences of sensitive data.</p>
pub fn set_sensitive_data_occurrences(
mut self,
input: std::option::Option<
std::collections::HashMap<
std::string::String,
std::vec::Vec<crate::model::DetectedDataDetails>,
>,
>,
) -> Self {
self.sensitive_data_occurrences = input;
self
}
/// <p>The status of the request to retrieve occurrences of sensitive data reported by the finding. Possible values are:</p>
/// <ul>
/// <li><p>ERROR - An error occurred when Amazon Macie attempted to locate, retrieve, or encrypt the sensitive data. The error value indicates the nature of the error that occurred.</p></li>
/// <li><p>PROCESSING - Macie is processing the request.</p></li>
/// <li><p>SUCCESS - Macie successfully located, retrieved, and encrypted the sensitive data.</p></li>
/// </ul>
pub fn status(mut self, input: crate::model::RevealRequestStatus) -> Self {
self.status = Some(input);
self
}
/// <p>The status of the request to retrieve occurrences of sensitive data reported by the finding. Possible values are:</p>
/// <ul>
/// <li><p>ERROR - An error occurred when Amazon Macie attempted to locate, retrieve, or encrypt the sensitive data. The error value indicates the nature of the error that occurred.</p></li>
/// <li><p>PROCESSING - Macie is processing the request.</p></li>
/// <li><p>SUCCESS - Macie successfully located, retrieved, and encrypted the sensitive data.</p></li>
/// </ul>
pub fn set_status(
mut self,
input: std::option::Option<crate::model::RevealRequestStatus>,
) -> Self {
self.status = input;
self
}
/// Consumes the builder and constructs a [`GetSensitiveDataOccurrencesOutput`](crate::output::GetSensitiveDataOccurrencesOutput).
pub fn build(self) -> crate::output::GetSensitiveDataOccurrencesOutput {
crate::output::GetSensitiveDataOccurrencesOutput {
error: self.error,
sensitive_data_occurrences: self.sensitive_data_occurrences,
status: self.status,
}
}
}
}
impl GetSensitiveDataOccurrencesOutput {
/// Creates a new builder-style object to manufacture [`GetSensitiveDataOccurrencesOutput`](crate::output::GetSensitiveDataOccurrencesOutput).
pub fn builder() -> crate::output::get_sensitive_data_occurrences_output::Builder {
crate::output::get_sensitive_data_occurrences_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetRevealConfigurationOutput {
/// <p>The current configuration settings and the status of the configuration for the account.</p>
#[doc(hidden)]
pub configuration: std::option::Option<crate::model::RevealConfiguration>,
}
impl GetRevealConfigurationOutput {
/// <p>The current configuration settings and the status of the configuration for the account.</p>
pub fn configuration(&self) -> std::option::Option<&crate::model::RevealConfiguration> {
self.configuration.as_ref()
}
}
/// See [`GetRevealConfigurationOutput`](crate::output::GetRevealConfigurationOutput).
pub mod get_reveal_configuration_output {
/// A builder for [`GetRevealConfigurationOutput`](crate::output::GetRevealConfigurationOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) configuration: std::option::Option<crate::model::RevealConfiguration>,
}
impl Builder {
/// <p>The current configuration settings and the status of the configuration for the account.</p>
pub fn configuration(mut self, input: crate::model::RevealConfiguration) -> Self {
self.configuration = Some(input);
self
}
/// <p>The current configuration settings and the status of the configuration for the account.</p>
pub fn set_configuration(
mut self,
input: std::option::Option<crate::model::RevealConfiguration>,
) -> Self {
self.configuration = input;
self
}
/// Consumes the builder and constructs a [`GetRevealConfigurationOutput`](crate::output::GetRevealConfigurationOutput).
pub fn build(self) -> crate::output::GetRevealConfigurationOutput {
crate::output::GetRevealConfigurationOutput {
configuration: self.configuration,
}
}
}
}
impl GetRevealConfigurationOutput {
/// Creates a new builder-style object to manufacture [`GetRevealConfigurationOutput`](crate::output::GetRevealConfigurationOutput).
pub fn builder() -> crate::output::get_reveal_configuration_output::Builder {
crate::output::get_reveal_configuration_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetResourceProfileOutput {
/// <p>The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently recalculated sensitive data discovery statistics and details for the bucket. If the bucket's sensitivity score is calculated automatically, this includes the score.</p>
#[doc(hidden)]
pub profile_updated_at: std::option::Option<aws_smithy_types::DateTime>,
/// <p>The current sensitivity score for the bucket, ranging from -1 (no analysis due to an error) to 100 (sensitive). By default, this score is calculated automatically based on the amount of data that Amazon Macie has analyzed in the bucket and the amount of sensitive data that Macie has found in the bucket.</p>
#[doc(hidden)]
pub sensitivity_score: i32,
/// <p>Specifies whether the bucket's current sensitivity score was set manually. If this value is true, the score was manually changed to 100. If this value is false, the score was calculated automatically by Amazon Macie.</p>
#[doc(hidden)]
pub sensitivity_score_overridden: bool,
/// <p>The sensitive data discovery statistics for the bucket. The statistics capture the results of automated sensitive data discovery activities that Amazon Macie has performed for the bucket.</p>
#[doc(hidden)]
pub statistics: std::option::Option<crate::model::ResourceStatistics>,
}
impl GetResourceProfileOutput {
/// <p>The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently recalculated sensitive data discovery statistics and details for the bucket. If the bucket's sensitivity score is calculated automatically, this includes the score.</p>
pub fn profile_updated_at(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.profile_updated_at.as_ref()
}
/// <p>The current sensitivity score for the bucket, ranging from -1 (no analysis due to an error) to 100 (sensitive). By default, this score is calculated automatically based on the amount of data that Amazon Macie has analyzed in the bucket and the amount of sensitive data that Macie has found in the bucket.</p>
pub fn sensitivity_score(&self) -> i32 {
self.sensitivity_score
}
/// <p>Specifies whether the bucket's current sensitivity score was set manually. If this value is true, the score was manually changed to 100. If this value is false, the score was calculated automatically by Amazon Macie.</p>
pub fn sensitivity_score_overridden(&self) -> bool {
self.sensitivity_score_overridden
}
/// <p>The sensitive data discovery statistics for the bucket. The statistics capture the results of automated sensitive data discovery activities that Amazon Macie has performed for the bucket.</p>
pub fn statistics(&self) -> std::option::Option<&crate::model::ResourceStatistics> {
self.statistics.as_ref()
}
}
/// See [`GetResourceProfileOutput`](crate::output::GetResourceProfileOutput).
pub mod get_resource_profile_output {
/// A builder for [`GetResourceProfileOutput`](crate::output::GetResourceProfileOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) profile_updated_at: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) sensitivity_score: std::option::Option<i32>,
pub(crate) sensitivity_score_overridden: std::option::Option<bool>,
pub(crate) statistics: std::option::Option<crate::model::ResourceStatistics>,
}
impl Builder {
/// <p>The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently recalculated sensitive data discovery statistics and details for the bucket. If the bucket's sensitivity score is calculated automatically, this includes the score.</p>
pub fn profile_updated_at(mut self, input: aws_smithy_types::DateTime) -> Self {
self.profile_updated_at = Some(input);
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently recalculated sensitive data discovery statistics and details for the bucket. If the bucket's sensitivity score is calculated automatically, this includes the score.</p>
pub fn set_profile_updated_at(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.profile_updated_at = input;
self
}
/// <p>The current sensitivity score for the bucket, ranging from -1 (no analysis due to an error) to 100 (sensitive). By default, this score is calculated automatically based on the amount of data that Amazon Macie has analyzed in the bucket and the amount of sensitive data that Macie has found in the bucket.</p>
pub fn sensitivity_score(mut self, input: i32) -> Self {
self.sensitivity_score = Some(input);
self
}
/// <p>The current sensitivity score for the bucket, ranging from -1 (no analysis due to an error) to 100 (sensitive). By default, this score is calculated automatically based on the amount of data that Amazon Macie has analyzed in the bucket and the amount of sensitive data that Macie has found in the bucket.</p>
pub fn set_sensitivity_score(mut self, input: std::option::Option<i32>) -> Self {
self.sensitivity_score = input;
self
}
/// <p>Specifies whether the bucket's current sensitivity score was set manually. If this value is true, the score was manually changed to 100. If this value is false, the score was calculated automatically by Amazon Macie.</p>
pub fn sensitivity_score_overridden(mut self, input: bool) -> Self {
self.sensitivity_score_overridden = Some(input);
self
}
/// <p>Specifies whether the bucket's current sensitivity score was set manually. If this value is true, the score was manually changed to 100. If this value is false, the score was calculated automatically by Amazon Macie.</p>
pub fn set_sensitivity_score_overridden(
mut self,
input: std::option::Option<bool>,
) -> Self {
self.sensitivity_score_overridden = input;
self
}
/// <p>The sensitive data discovery statistics for the bucket. The statistics capture the results of automated sensitive data discovery activities that Amazon Macie has performed for the bucket.</p>
pub fn statistics(mut self, input: crate::model::ResourceStatistics) -> Self {
self.statistics = Some(input);
self
}
/// <p>The sensitive data discovery statistics for the bucket. The statistics capture the results of automated sensitive data discovery activities that Amazon Macie has performed for the bucket.</p>
pub fn set_statistics(
mut self,
input: std::option::Option<crate::model::ResourceStatistics>,
) -> Self {
self.statistics = input;
self
}
/// Consumes the builder and constructs a [`GetResourceProfileOutput`](crate::output::GetResourceProfileOutput).
pub fn build(self) -> crate::output::GetResourceProfileOutput {
crate::output::GetResourceProfileOutput {
profile_updated_at: self.profile_updated_at,
sensitivity_score: self.sensitivity_score.unwrap_or_default(),
sensitivity_score_overridden: self.sensitivity_score_overridden.unwrap_or_default(),
statistics: self.statistics,
}
}
}
}
impl GetResourceProfileOutput {
/// Creates a new builder-style object to manufacture [`GetResourceProfileOutput`](crate::output::GetResourceProfileOutput).
pub fn builder() -> crate::output::get_resource_profile_output::Builder {
crate::output::get_resource_profile_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetMemberOutput {
/// <p>The Amazon Web Services account ID for the account.</p>
#[doc(hidden)]
pub account_id: std::option::Option<std::string::String>,
/// <p>The Amazon Web Services account ID for the administrator account.</p>
#[doc(hidden)]
pub administrator_account_id: std::option::Option<std::string::String>,
/// <p>The Amazon Resource Name (ARN) of the account.</p>
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
/// <p>The email address for the account.</p>
#[doc(hidden)]
pub email: std::option::Option<std::string::String>,
/// <p>The date and time, in UTC and extended ISO 8601 format, when an Amazon Macie membership invitation was last sent to the account. This value is null if an invitation hasn't been sent to the account.</p>
#[doc(hidden)]
pub invited_at: std::option::Option<aws_smithy_types::DateTime>,
/// <p>(Deprecated) The Amazon Web Services account ID for the administrator account. This property has been replaced by the administratorAccountId property and is retained only for backward compatibility.</p>
#[doc(hidden)]
pub master_account_id: std::option::Option<std::string::String>,
/// <p>The current status of the relationship between the account and the administrator account.</p>
#[doc(hidden)]
pub relationship_status: std::option::Option<crate::model::RelationshipStatus>,
/// <p>A map of key-value pairs that specifies which tags (keys and values) are associated with the account in Amazon Macie.</p>
#[doc(hidden)]
pub tags:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
/// <p>The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status of the relationship between the account and the administrator account.</p>
#[doc(hidden)]
pub updated_at: std::option::Option<aws_smithy_types::DateTime>,
}
impl GetMemberOutput {
/// <p>The Amazon Web Services account ID for the account.</p>
pub fn account_id(&self) -> std::option::Option<&str> {
self.account_id.as_deref()
}
/// <p>The Amazon Web Services account ID for the administrator account.</p>
pub fn administrator_account_id(&self) -> std::option::Option<&str> {
self.administrator_account_id.as_deref()
}
/// <p>The Amazon Resource Name (ARN) of the account.</p>
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>The email address for the account.</p>
pub fn email(&self) -> std::option::Option<&str> {
self.email.as_deref()
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when an Amazon Macie membership invitation was last sent to the account. This value is null if an invitation hasn't been sent to the account.</p>
pub fn invited_at(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.invited_at.as_ref()
}
/// <p>(Deprecated) The Amazon Web Services account ID for the administrator account. This property has been replaced by the administratorAccountId property and is retained only for backward compatibility.</p>
pub fn master_account_id(&self) -> std::option::Option<&str> {
self.master_account_id.as_deref()
}
/// <p>The current status of the relationship between the account and the administrator account.</p>
pub fn relationship_status(&self) -> std::option::Option<&crate::model::RelationshipStatus> {
self.relationship_status.as_ref()
}
/// <p>A map of key-value pairs that specifies which tags (keys and values) are associated with the account in Amazon Macie.</p>
pub fn tags(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.tags.as_ref()
}
/// <p>The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status of the relationship between the account and the administrator account.</p>
pub fn updated_at(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.updated_at.as_ref()
}
}
/// See [`GetMemberOutput`](crate::output::GetMemberOutput).
pub mod get_member_output {
/// A builder for [`GetMemberOutput`](crate::output::GetMemberOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) account_id: std::option::Option<std::string::String>,
pub(crate) administrator_account_id: std::option::Option<std::string::String>,
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) email: std::option::Option<std::string::String>,
pub(crate) invited_at: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) master_account_id: std::option::Option<std::string::String>,
pub(crate) relationship_status: std::option::Option<crate::model::RelationshipStatus>,
pub(crate) tags: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
pub(crate) updated_at: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
/// <p>The Amazon Web Services account ID for the account.</p>
pub fn account_id(mut self, input: impl Into<std::string::String>) -> Self {
self.account_id = Some(input.into());
self
}
/// <p>The Amazon Web Services account ID for the account.</p>
pub fn set_account_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.account_id = input;
self
}
/// <p>The Amazon Web Services account ID for the administrator account.</p>
pub fn administrator_account_id(mut self, input: impl Into<std::string::String>) -> Self {
self.administrator_account_id = Some(input.into());
self
}
/// <p>The Amazon Web Services account ID for the administrator account.</p>
pub fn set_administrator_account_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.administrator_account_id = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the account.</p>
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the account.</p>
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>The email address for the account.</p>
pub fn email(mut self, input: impl Into<std::string::String>) -> Self {
self.email = Some(input.into());
self
}
/// <p>The email address for the account.</p>
pub fn set_email(mut self, input: std::option::Option<std::string::String>) -> Self {
self.email = input;
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when an Amazon Macie membership invitation was last sent to the account. This value is null if an invitation hasn't been sent to the account.</p>
pub fn invited_at(mut self, input: aws_smithy_types::DateTime) -> Self {
self.invited_at = Some(input);
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when an Amazon Macie membership invitation was last sent to the account. This value is null if an invitation hasn't been sent to the account.</p>
pub fn set_invited_at(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.invited_at = input;
self
}
/// <p>(Deprecated) The Amazon Web Services account ID for the administrator account. This property has been replaced by the administratorAccountId property and is retained only for backward compatibility.</p>
pub fn master_account_id(mut self, input: impl Into<std::string::String>) -> Self {
self.master_account_id = Some(input.into());
self
}
/// <p>(Deprecated) The Amazon Web Services account ID for the administrator account. This property has been replaced by the administratorAccountId property and is retained only for backward compatibility.</p>
pub fn set_master_account_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.master_account_id = input;
self
}
/// <p>The current status of the relationship between the account and the administrator account.</p>
pub fn relationship_status(mut self, input: crate::model::RelationshipStatus) -> Self {
self.relationship_status = Some(input);
self
}
/// <p>The current status of the relationship between the account and the administrator account.</p>
pub fn set_relationship_status(
mut self,
input: std::option::Option<crate::model::RelationshipStatus>,
) -> Self {
self.relationship_status = input;
self
}
/// Adds a key-value pair to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>A map of key-value pairs that specifies which tags (keys and values) are associated with the account in Amazon Macie.</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>A map of key-value pairs that specifies which tags (keys and values) are associated with the account in Amazon Macie.</p>
pub fn set_tags(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.tags = input;
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status of the relationship between the account and the administrator account.</p>
pub fn updated_at(mut self, input: aws_smithy_types::DateTime) -> Self {
self.updated_at = Some(input);
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status of the relationship between the account and the administrator account.</p>
pub fn set_updated_at(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.updated_at = input;
self
}
/// Consumes the builder and constructs a [`GetMemberOutput`](crate::output::GetMemberOutput).
pub fn build(self) -> crate::output::GetMemberOutput {
crate::output::GetMemberOutput {
account_id: self.account_id,
administrator_account_id: self.administrator_account_id,
arn: self.arn,
email: self.email,
invited_at: self.invited_at,
master_account_id: self.master_account_id,
relationship_status: self.relationship_status,
tags: self.tags,
updated_at: self.updated_at,
}
}
}
}
impl GetMemberOutput {
/// Creates a new builder-style object to manufacture [`GetMemberOutput`](crate::output::GetMemberOutput).
pub fn builder() -> crate::output::get_member_output::Builder {
crate::output::get_member_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetMasterAccountOutput {
/// <p>(Deprecated) The Amazon Web Services account ID for the administrator account. If the accounts are associated by a Macie membership invitation, this object also provides details about the invitation that was sent to establish the relationship between the accounts.</p>
#[doc(hidden)]
pub master: std::option::Option<crate::model::Invitation>,
}
impl GetMasterAccountOutput {
/// <p>(Deprecated) The Amazon Web Services account ID for the administrator account. If the accounts are associated by a Macie membership invitation, this object also provides details about the invitation that was sent to establish the relationship between the accounts.</p>
pub fn master(&self) -> std::option::Option<&crate::model::Invitation> {
self.master.as_ref()
}
}
/// See [`GetMasterAccountOutput`](crate::output::GetMasterAccountOutput).
pub mod get_master_account_output {
/// A builder for [`GetMasterAccountOutput`](crate::output::GetMasterAccountOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) master: std::option::Option<crate::model::Invitation>,
}
impl Builder {
/// <p>(Deprecated) The Amazon Web Services account ID for the administrator account. If the accounts are associated by a Macie membership invitation, this object also provides details about the invitation that was sent to establish the relationship between the accounts.</p>
pub fn master(mut self, input: crate::model::Invitation) -> Self {
self.master = Some(input);
self
}
/// <p>(Deprecated) The Amazon Web Services account ID for the administrator account. If the accounts are associated by a Macie membership invitation, this object also provides details about the invitation that was sent to establish the relationship between the accounts.</p>
pub fn set_master(mut self, input: std::option::Option<crate::model::Invitation>) -> Self {
self.master = input;
self
}
/// Consumes the builder and constructs a [`GetMasterAccountOutput`](crate::output::GetMasterAccountOutput).
pub fn build(self) -> crate::output::GetMasterAccountOutput {
crate::output::GetMasterAccountOutput {
master: self.master,
}
}
}
}
impl GetMasterAccountOutput {
/// Creates a new builder-style object to manufacture [`GetMasterAccountOutput`](crate::output::GetMasterAccountOutput).
pub fn builder() -> crate::output::get_master_account_output::Builder {
crate::output::get_master_account_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetMacieSessionOutput {
/// <p>The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie account was created.</p>
#[doc(hidden)]
pub created_at: std::option::Option<aws_smithy_types::DateTime>,
/// <p>The frequency with which Amazon Macie publishes updates to policy findings for the account. This includes publishing updates to Security Hub and Amazon EventBridge (formerly Amazon CloudWatch Events).</p>
#[doc(hidden)]
pub finding_publishing_frequency: std::option::Option<crate::model::FindingPublishingFrequency>,
/// <p>The Amazon Resource Name (ARN) of the service-linked role that allows Amazon Macie to monitor and analyze data in Amazon Web Services resources for the account.</p>
#[doc(hidden)]
pub service_role: std::option::Option<std::string::String>,
/// <p>The current status of the Amazon Macie account. Possible values are: PAUSED, the account is enabled but all Macie activities are suspended (paused) for the account; and, ENABLED, the account is enabled and all Macie activities are enabled for the account.</p>
#[doc(hidden)]
pub status: std::option::Option<crate::model::MacieStatus>,
/// <p>The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status of the Amazon Macie account.</p>
#[doc(hidden)]
pub updated_at: std::option::Option<aws_smithy_types::DateTime>,
}
impl GetMacieSessionOutput {
/// <p>The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie account was created.</p>
pub fn created_at(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.created_at.as_ref()
}
/// <p>The frequency with which Amazon Macie publishes updates to policy findings for the account. This includes publishing updates to Security Hub and Amazon EventBridge (formerly Amazon CloudWatch Events).</p>
pub fn finding_publishing_frequency(
&self,
) -> std::option::Option<&crate::model::FindingPublishingFrequency> {
self.finding_publishing_frequency.as_ref()
}
/// <p>The Amazon Resource Name (ARN) of the service-linked role that allows Amazon Macie to monitor and analyze data in Amazon Web Services resources for the account.</p>
pub fn service_role(&self) -> std::option::Option<&str> {
self.service_role.as_deref()
}
/// <p>The current status of the Amazon Macie account. Possible values are: PAUSED, the account is enabled but all Macie activities are suspended (paused) for the account; and, ENABLED, the account is enabled and all Macie activities are enabled for the account.</p>
pub fn status(&self) -> std::option::Option<&crate::model::MacieStatus> {
self.status.as_ref()
}
/// <p>The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status of the Amazon Macie account.</p>
pub fn updated_at(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.updated_at.as_ref()
}
}
/// See [`GetMacieSessionOutput`](crate::output::GetMacieSessionOutput).
pub mod get_macie_session_output {
/// A builder for [`GetMacieSessionOutput`](crate::output::GetMacieSessionOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) created_at: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) finding_publishing_frequency:
std::option::Option<crate::model::FindingPublishingFrequency>,
pub(crate) service_role: std::option::Option<std::string::String>,
pub(crate) status: std::option::Option<crate::model::MacieStatus>,
pub(crate) updated_at: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
/// <p>The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie account was created.</p>
pub fn created_at(mut self, input: aws_smithy_types::DateTime) -> Self {
self.created_at = Some(input);
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie account was created.</p>
pub fn set_created_at(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.created_at = input;
self
}
/// <p>The frequency with which Amazon Macie publishes updates to policy findings for the account. This includes publishing updates to Security Hub and Amazon EventBridge (formerly Amazon CloudWatch Events).</p>
pub fn finding_publishing_frequency(
mut self,
input: crate::model::FindingPublishingFrequency,
) -> Self {
self.finding_publishing_frequency = Some(input);
self
}
/// <p>The frequency with which Amazon Macie publishes updates to policy findings for the account. This includes publishing updates to Security Hub and Amazon EventBridge (formerly Amazon CloudWatch Events).</p>
pub fn set_finding_publishing_frequency(
mut self,
input: std::option::Option<crate::model::FindingPublishingFrequency>,
) -> Self {
self.finding_publishing_frequency = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the service-linked role that allows Amazon Macie to monitor and analyze data in Amazon Web Services resources for the account.</p>
pub fn service_role(mut self, input: impl Into<std::string::String>) -> Self {
self.service_role = Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the service-linked role that allows Amazon Macie to monitor and analyze data in Amazon Web Services resources for the account.</p>
pub fn set_service_role(mut self, input: std::option::Option<std::string::String>) -> Self {
self.service_role = input;
self
}
/// <p>The current status of the Amazon Macie account. Possible values are: PAUSED, the account is enabled but all Macie activities are suspended (paused) for the account; and, ENABLED, the account is enabled and all Macie activities are enabled for the account.</p>
pub fn status(mut self, input: crate::model::MacieStatus) -> Self {
self.status = Some(input);
self
}
/// <p>The current status of the Amazon Macie account. Possible values are: PAUSED, the account is enabled but all Macie activities are suspended (paused) for the account; and, ENABLED, the account is enabled and all Macie activities are enabled for the account.</p>
pub fn set_status(mut self, input: std::option::Option<crate::model::MacieStatus>) -> Self {
self.status = input;
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status of the Amazon Macie account.</p>
pub fn updated_at(mut self, input: aws_smithy_types::DateTime) -> Self {
self.updated_at = Some(input);
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status of the Amazon Macie account.</p>
pub fn set_updated_at(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.updated_at = input;
self
}
/// Consumes the builder and constructs a [`GetMacieSessionOutput`](crate::output::GetMacieSessionOutput).
pub fn build(self) -> crate::output::GetMacieSessionOutput {
crate::output::GetMacieSessionOutput {
created_at: self.created_at,
finding_publishing_frequency: self.finding_publishing_frequency,
service_role: self.service_role,
status: self.status,
updated_at: self.updated_at,
}
}
}
}
impl GetMacieSessionOutput {
/// Creates a new builder-style object to manufacture [`GetMacieSessionOutput`](crate::output::GetMacieSessionOutput).
pub fn builder() -> crate::output::get_macie_session_output::Builder {
crate::output::get_macie_session_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetInvitationsCountOutput {
/// <p>The total number of invitations that were received by the account, not including the currently accepted invitation.</p>
#[doc(hidden)]
pub invitations_count: i64,
}
impl GetInvitationsCountOutput {
/// <p>The total number of invitations that were received by the account, not including the currently accepted invitation.</p>
pub fn invitations_count(&self) -> i64 {
self.invitations_count
}
}
/// See [`GetInvitationsCountOutput`](crate::output::GetInvitationsCountOutput).
pub mod get_invitations_count_output {
/// A builder for [`GetInvitationsCountOutput`](crate::output::GetInvitationsCountOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) invitations_count: std::option::Option<i64>,
}
impl Builder {
/// <p>The total number of invitations that were received by the account, not including the currently accepted invitation.</p>
pub fn invitations_count(mut self, input: i64) -> Self {
self.invitations_count = Some(input);
self
}
/// <p>The total number of invitations that were received by the account, not including the currently accepted invitation.</p>
pub fn set_invitations_count(mut self, input: std::option::Option<i64>) -> Self {
self.invitations_count = input;
self
}
/// Consumes the builder and constructs a [`GetInvitationsCountOutput`](crate::output::GetInvitationsCountOutput).
pub fn build(self) -> crate::output::GetInvitationsCountOutput {
crate::output::GetInvitationsCountOutput {
invitations_count: self.invitations_count.unwrap_or_default(),
}
}
}
}
impl GetInvitationsCountOutput {
/// Creates a new builder-style object to manufacture [`GetInvitationsCountOutput`](crate::output::GetInvitationsCountOutput).
pub fn builder() -> crate::output::get_invitations_count_output::Builder {
crate::output::get_invitations_count_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetFindingStatisticsOutput {
/// <p>An array of objects, one for each group of findings that matches the filter criteria specified in the request.</p>
#[doc(hidden)]
pub counts_by_group: std::option::Option<std::vec::Vec<crate::model::GroupCount>>,
}
impl GetFindingStatisticsOutput {
/// <p>An array of objects, one for each group of findings that matches the filter criteria specified in the request.</p>
pub fn counts_by_group(&self) -> std::option::Option<&[crate::model::GroupCount]> {
self.counts_by_group.as_deref()
}
}
/// See [`GetFindingStatisticsOutput`](crate::output::GetFindingStatisticsOutput).
pub mod get_finding_statistics_output {
/// A builder for [`GetFindingStatisticsOutput`](crate::output::GetFindingStatisticsOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) counts_by_group: std::option::Option<std::vec::Vec<crate::model::GroupCount>>,
}
impl Builder {
/// Appends an item to `counts_by_group`.
///
/// To override the contents of this collection use [`set_counts_by_group`](Self::set_counts_by_group).
///
/// <p>An array of objects, one for each group of findings that matches the filter criteria specified in the request.</p>
pub fn counts_by_group(mut self, input: crate::model::GroupCount) -> Self {
let mut v = self.counts_by_group.unwrap_or_default();
v.push(input);
self.counts_by_group = Some(v);
self
}
/// <p>An array of objects, one for each group of findings that matches the filter criteria specified in the request.</p>
pub fn set_counts_by_group(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::GroupCount>>,
) -> Self {
self.counts_by_group = input;
self
}
/// Consumes the builder and constructs a [`GetFindingStatisticsOutput`](crate::output::GetFindingStatisticsOutput).
pub fn build(self) -> crate::output::GetFindingStatisticsOutput {
crate::output::GetFindingStatisticsOutput {
counts_by_group: self.counts_by_group,
}
}
}
}
impl GetFindingStatisticsOutput {
/// Creates a new builder-style object to manufacture [`GetFindingStatisticsOutput`](crate::output::GetFindingStatisticsOutput).
pub fn builder() -> crate::output::get_finding_statistics_output::Builder {
crate::output::get_finding_statistics_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetFindingsPublicationConfigurationOutput {
/// <p>The configuration settings that determine which findings are published to Security Hub.</p>
#[doc(hidden)]
pub security_hub_configuration: std::option::Option<crate::model::SecurityHubConfiguration>,
}
impl GetFindingsPublicationConfigurationOutput {
/// <p>The configuration settings that determine which findings are published to Security Hub.</p>
pub fn security_hub_configuration(
&self,
) -> std::option::Option<&crate::model::SecurityHubConfiguration> {
self.security_hub_configuration.as_ref()
}
}
/// See [`GetFindingsPublicationConfigurationOutput`](crate::output::GetFindingsPublicationConfigurationOutput).
pub mod get_findings_publication_configuration_output {
/// A builder for [`GetFindingsPublicationConfigurationOutput`](crate::output::GetFindingsPublicationConfigurationOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) security_hub_configuration:
std::option::Option<crate::model::SecurityHubConfiguration>,
}
impl Builder {
/// <p>The configuration settings that determine which findings are published to Security Hub.</p>
pub fn security_hub_configuration(
mut self,
input: crate::model::SecurityHubConfiguration,
) -> Self {
self.security_hub_configuration = Some(input);
self
}
/// <p>The configuration settings that determine which findings are published to Security Hub.</p>
pub fn set_security_hub_configuration(
mut self,
input: std::option::Option<crate::model::SecurityHubConfiguration>,
) -> Self {
self.security_hub_configuration = input;
self
}
/// Consumes the builder and constructs a [`GetFindingsPublicationConfigurationOutput`](crate::output::GetFindingsPublicationConfigurationOutput).
pub fn build(self) -> crate::output::GetFindingsPublicationConfigurationOutput {
crate::output::GetFindingsPublicationConfigurationOutput {
security_hub_configuration: self.security_hub_configuration,
}
}
}
}
impl GetFindingsPublicationConfigurationOutput {
/// Creates a new builder-style object to manufacture [`GetFindingsPublicationConfigurationOutput`](crate::output::GetFindingsPublicationConfigurationOutput).
pub fn builder() -> crate::output::get_findings_publication_configuration_output::Builder {
crate::output::get_findings_publication_configuration_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetFindingsFilterOutput {
/// <p>The action that's performed on findings that match the filter criteria (findingCriteria). Possible values are: ARCHIVE, suppress (automatically archive) the findings; and, NOOP, don't perform any action on the findings.</p>
#[doc(hidden)]
pub action: std::option::Option<crate::model::FindingsFilterAction>,
/// <p>The Amazon Resource Name (ARN) of the filter.</p>
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
/// <p>The custom description of the filter.</p>
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
/// <p>The criteria that's used to filter findings.</p>
#[doc(hidden)]
pub finding_criteria: std::option::Option<crate::model::FindingCriteria>,
/// <p>The unique identifier for the filter.</p>
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
/// <p>The custom name of the filter.</p>
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
/// <p>The position of the filter in the list of saved filters on the Amazon Macie console. This value also determines the order in which the filter is applied to findings, relative to other filters that are also applied to the findings.</p>
#[doc(hidden)]
pub position: i32,
/// <p>A map of key-value pairs that specifies which tags (keys and values) are associated with the filter.</p>
#[doc(hidden)]
pub tags:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
}
impl GetFindingsFilterOutput {
/// <p>The action that's performed on findings that match the filter criteria (findingCriteria). Possible values are: ARCHIVE, suppress (automatically archive) the findings; and, NOOP, don't perform any action on the findings.</p>
pub fn action(&self) -> std::option::Option<&crate::model::FindingsFilterAction> {
self.action.as_ref()
}
/// <p>The Amazon Resource Name (ARN) of the filter.</p>
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>The custom description of the filter.</p>
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
/// <p>The criteria that's used to filter findings.</p>
pub fn finding_criteria(&self) -> std::option::Option<&crate::model::FindingCriteria> {
self.finding_criteria.as_ref()
}
/// <p>The unique identifier for the filter.</p>
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
/// <p>The custom name of the filter.</p>
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
/// <p>The position of the filter in the list of saved filters on the Amazon Macie console. This value also determines the order in which the filter is applied to findings, relative to other filters that are also applied to the findings.</p>
pub fn position(&self) -> i32 {
self.position
}
/// <p>A map of key-value pairs that specifies which tags (keys and values) are associated with the filter.</p>
pub fn tags(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.tags.as_ref()
}
}
/// See [`GetFindingsFilterOutput`](crate::output::GetFindingsFilterOutput).
pub mod get_findings_filter_output {
/// A builder for [`GetFindingsFilterOutput`](crate::output::GetFindingsFilterOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) action: std::option::Option<crate::model::FindingsFilterAction>,
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) finding_criteria: std::option::Option<crate::model::FindingCriteria>,
pub(crate) id: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) position: std::option::Option<i32>,
pub(crate) tags: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
}
impl Builder {
/// <p>The action that's performed on findings that match the filter criteria (findingCriteria). Possible values are: ARCHIVE, suppress (automatically archive) the findings; and, NOOP, don't perform any action on the findings.</p>
pub fn action(mut self, input: crate::model::FindingsFilterAction) -> Self {
self.action = Some(input);
self
}
/// <p>The action that's performed on findings that match the filter criteria (findingCriteria). Possible values are: ARCHIVE, suppress (automatically archive) the findings; and, NOOP, don't perform any action on the findings.</p>
pub fn set_action(
mut self,
input: std::option::Option<crate::model::FindingsFilterAction>,
) -> Self {
self.action = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the filter.</p>
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the filter.</p>
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>The custom description of the filter.</p>
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
/// <p>The custom description of the filter.</p>
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
/// <p>The criteria that's used to filter findings.</p>
pub fn finding_criteria(mut self, input: crate::model::FindingCriteria) -> Self {
self.finding_criteria = Some(input);
self
}
/// <p>The criteria that's used to filter findings.</p>
pub fn set_finding_criteria(
mut self,
input: std::option::Option<crate::model::FindingCriteria>,
) -> Self {
self.finding_criteria = input;
self
}
/// <p>The unique identifier for the filter.</p>
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
/// <p>The unique identifier for the filter.</p>
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.id = input;
self
}
/// <p>The custom name of the filter.</p>
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
/// <p>The custom name of the filter.</p>
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The position of the filter in the list of saved filters on the Amazon Macie console. This value also determines the order in which the filter is applied to findings, relative to other filters that are also applied to the findings.</p>
pub fn position(mut self, input: i32) -> Self {
self.position = Some(input);
self
}
/// <p>The position of the filter in the list of saved filters on the Amazon Macie console. This value also determines the order in which the filter is applied to findings, relative to other filters that are also applied to the findings.</p>
pub fn set_position(mut self, input: std::option::Option<i32>) -> Self {
self.position = input;
self
}
/// Adds a key-value pair to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>A map of key-value pairs that specifies which tags (keys and values) are associated with the filter.</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>A map of key-value pairs that specifies which tags (keys and values) are associated with the filter.</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 [`GetFindingsFilterOutput`](crate::output::GetFindingsFilterOutput).
pub fn build(self) -> crate::output::GetFindingsFilterOutput {
crate::output::GetFindingsFilterOutput {
action: self.action,
arn: self.arn,
description: self.description,
finding_criteria: self.finding_criteria,
id: self.id,
name: self.name,
position: self.position.unwrap_or_default(),
tags: self.tags,
}
}
}
}
impl GetFindingsFilterOutput {
/// Creates a new builder-style object to manufacture [`GetFindingsFilterOutput`](crate::output::GetFindingsFilterOutput).
pub fn builder() -> crate::output::get_findings_filter_output::Builder {
crate::output::get_findings_filter_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetFindingsOutput {
/// <p>An array of objects, one for each finding that matches the criteria specified in the request.</p>
#[doc(hidden)]
pub findings: std::option::Option<std::vec::Vec<crate::model::Finding>>,
}
impl GetFindingsOutput {
/// <p>An array of objects, one for each finding that matches the criteria specified in the request.</p>
pub fn findings(&self) -> std::option::Option<&[crate::model::Finding]> {
self.findings.as_deref()
}
}
/// See [`GetFindingsOutput`](crate::output::GetFindingsOutput).
pub mod get_findings_output {
/// A builder for [`GetFindingsOutput`](crate::output::GetFindingsOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) findings: std::option::Option<std::vec::Vec<crate::model::Finding>>,
}
impl Builder {
/// Appends an item to `findings`.
///
/// To override the contents of this collection use [`set_findings`](Self::set_findings).
///
/// <p>An array of objects, one for each finding that matches the criteria specified in the request.</p>
pub fn findings(mut self, input: crate::model::Finding) -> Self {
let mut v = self.findings.unwrap_or_default();
v.push(input);
self.findings = Some(v);
self
}
/// <p>An array of objects, one for each finding that matches the criteria specified in the request.</p>
pub fn set_findings(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Finding>>,
) -> Self {
self.findings = input;
self
}
/// Consumes the builder and constructs a [`GetFindingsOutput`](crate::output::GetFindingsOutput).
pub fn build(self) -> crate::output::GetFindingsOutput {
crate::output::GetFindingsOutput {
findings: self.findings,
}
}
}
}
impl GetFindingsOutput {
/// Creates a new builder-style object to manufacture [`GetFindingsOutput`](crate::output::GetFindingsOutput).
pub fn builder() -> crate::output::get_findings_output::Builder {
crate::output::get_findings_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetCustomDataIdentifierOutput {
/// <p>The Amazon Resource Name (ARN) of the custom data identifier.</p>
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
/// <p>The date and time, in UTC and extended ISO 8601 format, when the custom data identifier was created.</p>
#[doc(hidden)]
pub created_at: std::option::Option<aws_smithy_types::DateTime>,
/// <p>Specifies whether the custom data identifier was deleted. If you delete a custom data identifier, Amazon Macie doesn't delete it permanently. Instead, it soft deletes the identifier.</p>
#[doc(hidden)]
pub deleted: bool,
/// <p>The custom description of the custom data identifier.</p>
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
/// <p>The unique identifier for the custom data identifier.</p>
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
/// <p>An array that lists specific character sequences (<i>ignore words</i>) to exclude from the results. If the text matched by the regular expression contains any string in this array, Amazon Macie ignores it. Ignore words are case sensitive.</p>
#[doc(hidden)]
pub ignore_words: std::option::Option<std::vec::Vec<std::string::String>>,
/// <p>An array that lists specific character sequences (<i>keywords</i>), one of which must precede and be within proximity (maximumMatchDistance) of the regular expression to match. Keywords aren't case sensitive.</p>
#[doc(hidden)]
pub keywords: std::option::Option<std::vec::Vec<std::string::String>>,
/// <p>The maximum number of characters that can exist between the end of at least one complete character sequence specified by the keywords array and the end of the text that matches the regex pattern. If a complete keyword precedes all the text that matches the pattern and the keyword is within the specified distance, Amazon Macie includes the result. Otherwise, Macie excludes the result.</p>
#[doc(hidden)]
pub maximum_match_distance: i32,
/// <p>The custom name of the custom data identifier.</p>
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
/// <p>The regular expression (<i>regex</i>) that defines the pattern to match.</p>
#[doc(hidden)]
pub regex: std::option::Option<std::string::String>,
/// <p>Specifies the severity that's assigned to findings that the custom data identifier produces, based on the number of occurrences of text that matches the custom data identifier's detection criteria. By default, Amazon Macie creates findings for S3 objects that contain at least one occurrence of text that matches the detection criteria, and Macie assigns the MEDIUM severity to those findings.</p>
#[doc(hidden)]
pub severity_levels: std::option::Option<std::vec::Vec<crate::model::SeverityLevel>>,
/// <p>A map of key-value pairs that identifies the tags (keys and values) that are associated with the custom data identifier.</p>
#[doc(hidden)]
pub tags:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
}
impl GetCustomDataIdentifierOutput {
/// <p>The Amazon Resource Name (ARN) of the custom data identifier.</p>
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when the custom data identifier was created.</p>
pub fn created_at(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.created_at.as_ref()
}
/// <p>Specifies whether the custom data identifier was deleted. If you delete a custom data identifier, Amazon Macie doesn't delete it permanently. Instead, it soft deletes the identifier.</p>
pub fn deleted(&self) -> bool {
self.deleted
}
/// <p>The custom description of the custom data identifier.</p>
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
/// <p>The unique identifier for the custom data identifier.</p>
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
/// <p>An array that lists specific character sequences (<i>ignore words</i>) to exclude from the results. If the text matched by the regular expression contains any string in this array, Amazon Macie ignores it. Ignore words are case sensitive.</p>
pub fn ignore_words(&self) -> std::option::Option<&[std::string::String]> {
self.ignore_words.as_deref()
}
/// <p>An array that lists specific character sequences (<i>keywords</i>), one of which must precede and be within proximity (maximumMatchDistance) of the regular expression to match. Keywords aren't case sensitive.</p>
pub fn keywords(&self) -> std::option::Option<&[std::string::String]> {
self.keywords.as_deref()
}
/// <p>The maximum number of characters that can exist between the end of at least one complete character sequence specified by the keywords array and the end of the text that matches the regex pattern. If a complete keyword precedes all the text that matches the pattern and the keyword is within the specified distance, Amazon Macie includes the result. Otherwise, Macie excludes the result.</p>
pub fn maximum_match_distance(&self) -> i32 {
self.maximum_match_distance
}
/// <p>The custom name of the custom data identifier.</p>
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
/// <p>The regular expression (<i>regex</i>) that defines the pattern to match.</p>
pub fn regex(&self) -> std::option::Option<&str> {
self.regex.as_deref()
}
/// <p>Specifies the severity that's assigned to findings that the custom data identifier produces, based on the number of occurrences of text that matches the custom data identifier's detection criteria. By default, Amazon Macie creates findings for S3 objects that contain at least one occurrence of text that matches the detection criteria, and Macie assigns the MEDIUM severity to those findings.</p>
pub fn severity_levels(&self) -> std::option::Option<&[crate::model::SeverityLevel]> {
self.severity_levels.as_deref()
}
/// <p>A map of key-value pairs that identifies the tags (keys and values) that are associated with the custom data identifier.</p>
pub fn tags(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.tags.as_ref()
}
}
/// See [`GetCustomDataIdentifierOutput`](crate::output::GetCustomDataIdentifierOutput).
pub mod get_custom_data_identifier_output {
/// A builder for [`GetCustomDataIdentifierOutput`](crate::output::GetCustomDataIdentifierOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) created_at: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) deleted: std::option::Option<bool>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) id: std::option::Option<std::string::String>,
pub(crate) ignore_words: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) keywords: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) maximum_match_distance: std::option::Option<i32>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) regex: std::option::Option<std::string::String>,
pub(crate) severity_levels: std::option::Option<std::vec::Vec<crate::model::SeverityLevel>>,
pub(crate) tags: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
}
impl Builder {
/// <p>The Amazon Resource Name (ARN) of the custom data identifier.</p>
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the custom data identifier.</p>
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when the custom data identifier was created.</p>
pub fn created_at(mut self, input: aws_smithy_types::DateTime) -> Self {
self.created_at = Some(input);
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when the custom data identifier was created.</p>
pub fn set_created_at(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.created_at = input;
self
}
/// <p>Specifies whether the custom data identifier was deleted. If you delete a custom data identifier, Amazon Macie doesn't delete it permanently. Instead, it soft deletes the identifier.</p>
pub fn deleted(mut self, input: bool) -> Self {
self.deleted = Some(input);
self
}
/// <p>Specifies whether the custom data identifier was deleted. If you delete a custom data identifier, Amazon Macie doesn't delete it permanently. Instead, it soft deletes the identifier.</p>
pub fn set_deleted(mut self, input: std::option::Option<bool>) -> Self {
self.deleted = input;
self
}
/// <p>The custom description of the custom data identifier.</p>
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
/// <p>The custom description of the custom data identifier.</p>
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
/// <p>The unique identifier for the custom data identifier.</p>
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
/// <p>The unique identifier for the custom data identifier.</p>
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.id = input;
self
}
/// Appends an item to `ignore_words`.
///
/// To override the contents of this collection use [`set_ignore_words`](Self::set_ignore_words).
///
/// <p>An array that lists specific character sequences (<i>ignore words</i>) to exclude from the results. If the text matched by the regular expression contains any string in this array, Amazon Macie ignores it. Ignore words are case sensitive.</p>
pub fn ignore_words(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.ignore_words.unwrap_or_default();
v.push(input.into());
self.ignore_words = Some(v);
self
}
/// <p>An array that lists specific character sequences (<i>ignore words</i>) to exclude from the results. If the text matched by the regular expression contains any string in this array, Amazon Macie ignores it. Ignore words are case sensitive.</p>
pub fn set_ignore_words(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.ignore_words = input;
self
}
/// Appends an item to `keywords`.
///
/// To override the contents of this collection use [`set_keywords`](Self::set_keywords).
///
/// <p>An array that lists specific character sequences (<i>keywords</i>), one of which must precede and be within proximity (maximumMatchDistance) of the regular expression to match. Keywords aren't case sensitive.</p>
pub fn keywords(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.keywords.unwrap_or_default();
v.push(input.into());
self.keywords = Some(v);
self
}
/// <p>An array that lists specific character sequences (<i>keywords</i>), one of which must precede and be within proximity (maximumMatchDistance) of the regular expression to match. Keywords aren't case sensitive.</p>
pub fn set_keywords(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.keywords = input;
self
}
/// <p>The maximum number of characters that can exist between the end of at least one complete character sequence specified by the keywords array and the end of the text that matches the regex pattern. If a complete keyword precedes all the text that matches the pattern and the keyword is within the specified distance, Amazon Macie includes the result. Otherwise, Macie excludes the result.</p>
pub fn maximum_match_distance(mut self, input: i32) -> Self {
self.maximum_match_distance = Some(input);
self
}
/// <p>The maximum number of characters that can exist between the end of at least one complete character sequence specified by the keywords array and the end of the text that matches the regex pattern. If a complete keyword precedes all the text that matches the pattern and the keyword is within the specified distance, Amazon Macie includes the result. Otherwise, Macie excludes the result.</p>
pub fn set_maximum_match_distance(mut self, input: std::option::Option<i32>) -> Self {
self.maximum_match_distance = input;
self
}
/// <p>The custom name of the custom data identifier.</p>
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
/// <p>The custom name of the custom data identifier.</p>
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The regular expression (<i>regex</i>) that defines the pattern to match.</p>
pub fn regex(mut self, input: impl Into<std::string::String>) -> Self {
self.regex = Some(input.into());
self
}
/// <p>The regular expression (<i>regex</i>) that defines the pattern to match.</p>
pub fn set_regex(mut self, input: std::option::Option<std::string::String>) -> Self {
self.regex = input;
self
}
/// Appends an item to `severity_levels`.
///
/// To override the contents of this collection use [`set_severity_levels`](Self::set_severity_levels).
///
/// <p>Specifies the severity that's assigned to findings that the custom data identifier produces, based on the number of occurrences of text that matches the custom data identifier's detection criteria. By default, Amazon Macie creates findings for S3 objects that contain at least one occurrence of text that matches the detection criteria, and Macie assigns the MEDIUM severity to those findings.</p>
pub fn severity_levels(mut self, input: crate::model::SeverityLevel) -> Self {
let mut v = self.severity_levels.unwrap_or_default();
v.push(input);
self.severity_levels = Some(v);
self
}
/// <p>Specifies the severity that's assigned to findings that the custom data identifier produces, based on the number of occurrences of text that matches the custom data identifier's detection criteria. By default, Amazon Macie creates findings for S3 objects that contain at least one occurrence of text that matches the detection criteria, and Macie assigns the MEDIUM severity to those findings.</p>
pub fn set_severity_levels(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::SeverityLevel>>,
) -> Self {
self.severity_levels = input;
self
}
/// Adds a key-value pair to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>A map of key-value pairs that identifies the tags (keys and values) that are associated with the custom data identifier.</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>A map of key-value pairs that identifies the tags (keys and values) that are associated with the custom data identifier.</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 [`GetCustomDataIdentifierOutput`](crate::output::GetCustomDataIdentifierOutput).
pub fn build(self) -> crate::output::GetCustomDataIdentifierOutput {
crate::output::GetCustomDataIdentifierOutput {
arn: self.arn,
created_at: self.created_at,
deleted: self.deleted.unwrap_or_default(),
description: self.description,
id: self.id,
ignore_words: self.ignore_words,
keywords: self.keywords,
maximum_match_distance: self.maximum_match_distance.unwrap_or_default(),
name: self.name,
regex: self.regex,
severity_levels: self.severity_levels,
tags: self.tags,
}
}
}
}
impl GetCustomDataIdentifierOutput {
/// Creates a new builder-style object to manufacture [`GetCustomDataIdentifierOutput`](crate::output::GetCustomDataIdentifierOutput).
pub fn builder() -> crate::output::get_custom_data_identifier_output::Builder {
crate::output::get_custom_data_identifier_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetClassificationScopeOutput {
/// <p>The unique identifier for the classification scope.</p>
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
/// <p>The name of the classification scope.</p>
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
/// <p>The S3 buckets that are excluded from automated sensitive data discovery.</p>
#[doc(hidden)]
pub s3: std::option::Option<crate::model::S3ClassificationScope>,
}
impl GetClassificationScopeOutput {
/// <p>The unique identifier for the classification scope.</p>
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
/// <p>The name of the classification scope.</p>
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
/// <p>The S3 buckets that are excluded from automated sensitive data discovery.</p>
pub fn s3(&self) -> std::option::Option<&crate::model::S3ClassificationScope> {
self.s3.as_ref()
}
}
/// See [`GetClassificationScopeOutput`](crate::output::GetClassificationScopeOutput).
pub mod get_classification_scope_output {
/// A builder for [`GetClassificationScopeOutput`](crate::output::GetClassificationScopeOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) id: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) s3: std::option::Option<crate::model::S3ClassificationScope>,
}
impl Builder {
/// <p>The unique identifier for the classification scope.</p>
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
/// <p>The unique identifier for the classification scope.</p>
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.id = input;
self
}
/// <p>The name of the classification scope.</p>
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
/// <p>The name of the classification scope.</p>
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The S3 buckets that are excluded from automated sensitive data discovery.</p>
pub fn s3(mut self, input: crate::model::S3ClassificationScope) -> Self {
self.s3 = Some(input);
self
}
/// <p>The S3 buckets that are excluded from automated sensitive data discovery.</p>
pub fn set_s3(
mut self,
input: std::option::Option<crate::model::S3ClassificationScope>,
) -> Self {
self.s3 = input;
self
}
/// Consumes the builder and constructs a [`GetClassificationScopeOutput`](crate::output::GetClassificationScopeOutput).
pub fn build(self) -> crate::output::GetClassificationScopeOutput {
crate::output::GetClassificationScopeOutput {
id: self.id,
name: self.name,
s3: self.s3,
}
}
}
}
impl GetClassificationScopeOutput {
/// Creates a new builder-style object to manufacture [`GetClassificationScopeOutput`](crate::output::GetClassificationScopeOutput).
pub fn builder() -> crate::output::get_classification_scope_output::Builder {
crate::output::get_classification_scope_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetClassificationExportConfigurationOutput {
/// <p>The location where data classification results are stored, and the encryption settings that are used when storing results in that location.</p>
#[doc(hidden)]
pub configuration: std::option::Option<crate::model::ClassificationExportConfiguration>,
}
impl GetClassificationExportConfigurationOutput {
/// <p>The location where data classification results are stored, and the encryption settings that are used when storing results in that location.</p>
pub fn configuration(
&self,
) -> std::option::Option<&crate::model::ClassificationExportConfiguration> {
self.configuration.as_ref()
}
}
/// See [`GetClassificationExportConfigurationOutput`](crate::output::GetClassificationExportConfigurationOutput).
pub mod get_classification_export_configuration_output {
/// A builder for [`GetClassificationExportConfigurationOutput`](crate::output::GetClassificationExportConfigurationOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) configuration:
std::option::Option<crate::model::ClassificationExportConfiguration>,
}
impl Builder {
/// <p>The location where data classification results are stored, and the encryption settings that are used when storing results in that location.</p>
pub fn configuration(
mut self,
input: crate::model::ClassificationExportConfiguration,
) -> Self {
self.configuration = Some(input);
self
}
/// <p>The location where data classification results are stored, and the encryption settings that are used when storing results in that location.</p>
pub fn set_configuration(
mut self,
input: std::option::Option<crate::model::ClassificationExportConfiguration>,
) -> Self {
self.configuration = input;
self
}
/// Consumes the builder and constructs a [`GetClassificationExportConfigurationOutput`](crate::output::GetClassificationExportConfigurationOutput).
pub fn build(self) -> crate::output::GetClassificationExportConfigurationOutput {
crate::output::GetClassificationExportConfigurationOutput {
configuration: self.configuration,
}
}
}
}
impl GetClassificationExportConfigurationOutput {
/// Creates a new builder-style object to manufacture [`GetClassificationExportConfigurationOutput`](crate::output::GetClassificationExportConfigurationOutput).
pub fn builder() -> crate::output::get_classification_export_configuration_output::Builder {
crate::output::get_classification_export_configuration_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetBucketStatisticsOutput {
/// <p>The total number of buckets.</p>
#[doc(hidden)]
pub bucket_count: i64,
/// <p>The total number of buckets that are publicly accessible based on a combination of permissions settings for each bucket.</p>
#[doc(hidden)]
pub bucket_count_by_effective_permission:
std::option::Option<crate::model::BucketCountByEffectivePermission>,
/// <p>The total number of buckets that use certain types of server-side encryption to encrypt new objects by default. This object also reports the total number of buckets that don't encrypt new objects by default.</p>
#[doc(hidden)]
pub bucket_count_by_encryption_type:
std::option::Option<crate::model::BucketCountByEncryptionType>,
/// <p>The total number of buckets whose bucket policies do or don't require server-side encryption of objects when objects are uploaded to the buckets.</p>
#[doc(hidden)]
pub bucket_count_by_object_encryption_requirement:
std::option::Option<crate::model::BucketCountPolicyAllowsUnencryptedObjectUploads>,
/// <p>The total number of buckets that are or aren't shared with another Amazon Web Services account.</p>
#[doc(hidden)]
pub bucket_count_by_shared_access_type:
std::option::Option<crate::model::BucketCountBySharedAccessType>,
/// <p>The aggregated sensitive data discovery statistics for the buckets. If automated sensitive data discovery is currently disabled for your account, the value for each statistic is 0.</p>
#[doc(hidden)]
pub bucket_statistics_by_sensitivity:
std::option::Option<crate::model::BucketStatisticsBySensitivity>,
/// <p>The total number of objects that Amazon Macie can analyze in the buckets. These objects use a supported storage class and have a file name extension for a supported file or storage format.</p>
#[doc(hidden)]
pub classifiable_object_count: i64,
/// <p>The total storage size, in bytes, of all the objects that Amazon Macie can analyze in the buckets. These objects use a supported storage class and have a file name extension for a supported file or storage format.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each applicable object in the buckets. This value doesn't reflect the storage size of all versions of all applicable objects in the buckets.</p>
#[doc(hidden)]
pub classifiable_size_in_bytes: i64,
/// <p>The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently retrieved both bucket and object metadata from Amazon S3 for the buckets.</p>
#[doc(hidden)]
pub last_updated: std::option::Option<aws_smithy_types::DateTime>,
/// <p>The total number of objects in the buckets.</p>
#[doc(hidden)]
pub object_count: i64,
/// <p>The total storage size, in bytes, of the buckets.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each object in the buckets. This value doesn't reflect the storage size of all versions of the objects in the buckets.</p>
#[doc(hidden)]
pub size_in_bytes: i64,
/// <p>The total storage size, in bytes, of the objects that are compressed (.gz, .gzip, .zip) files in the buckets.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each applicable object in the buckets. This value doesn't reflect the storage size of all versions of the applicable objects in the buckets.</p>
#[doc(hidden)]
pub size_in_bytes_compressed: i64,
/// <p>The total number of objects that Amazon Macie can't analyze in the buckets. These objects don't use a supported storage class or don't have a file name extension for a supported file or storage format.</p>
#[doc(hidden)]
pub unclassifiable_object_count: std::option::Option<crate::model::ObjectLevelStatistics>,
/// <p>The total storage size, in bytes, of the objects that Amazon Macie can't analyze in the buckets. These objects don't use a supported storage class or don't have a file name extension for a supported file or storage format.</p>
#[doc(hidden)]
pub unclassifiable_object_size_in_bytes:
std::option::Option<crate::model::ObjectLevelStatistics>,
}
impl GetBucketStatisticsOutput {
/// <p>The total number of buckets.</p>
pub fn bucket_count(&self) -> i64 {
self.bucket_count
}
/// <p>The total number of buckets that are publicly accessible based on a combination of permissions settings for each bucket.</p>
pub fn bucket_count_by_effective_permission(
&self,
) -> std::option::Option<&crate::model::BucketCountByEffectivePermission> {
self.bucket_count_by_effective_permission.as_ref()
}
/// <p>The total number of buckets that use certain types of server-side encryption to encrypt new objects by default. This object also reports the total number of buckets that don't encrypt new objects by default.</p>
pub fn bucket_count_by_encryption_type(
&self,
) -> std::option::Option<&crate::model::BucketCountByEncryptionType> {
self.bucket_count_by_encryption_type.as_ref()
}
/// <p>The total number of buckets whose bucket policies do or don't require server-side encryption of objects when objects are uploaded to the buckets.</p>
pub fn bucket_count_by_object_encryption_requirement(
&self,
) -> std::option::Option<&crate::model::BucketCountPolicyAllowsUnencryptedObjectUploads> {
self.bucket_count_by_object_encryption_requirement.as_ref()
}
/// <p>The total number of buckets that are or aren't shared with another Amazon Web Services account.</p>
pub fn bucket_count_by_shared_access_type(
&self,
) -> std::option::Option<&crate::model::BucketCountBySharedAccessType> {
self.bucket_count_by_shared_access_type.as_ref()
}
/// <p>The aggregated sensitive data discovery statistics for the buckets. If automated sensitive data discovery is currently disabled for your account, the value for each statistic is 0.</p>
pub fn bucket_statistics_by_sensitivity(
&self,
) -> std::option::Option<&crate::model::BucketStatisticsBySensitivity> {
self.bucket_statistics_by_sensitivity.as_ref()
}
/// <p>The total number of objects that Amazon Macie can analyze in the buckets. These objects use a supported storage class and have a file name extension for a supported file or storage format.</p>
pub fn classifiable_object_count(&self) -> i64 {
self.classifiable_object_count
}
/// <p>The total storage size, in bytes, of all the objects that Amazon Macie can analyze in the buckets. These objects use a supported storage class and have a file name extension for a supported file or storage format.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each applicable object in the buckets. This value doesn't reflect the storage size of all versions of all applicable objects in the buckets.</p>
pub fn classifiable_size_in_bytes(&self) -> i64 {
self.classifiable_size_in_bytes
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently retrieved both bucket and object metadata from Amazon S3 for the buckets.</p>
pub fn last_updated(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.last_updated.as_ref()
}
/// <p>The total number of objects in the buckets.</p>
pub fn object_count(&self) -> i64 {
self.object_count
}
/// <p>The total storage size, in bytes, of the buckets.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each object in the buckets. This value doesn't reflect the storage size of all versions of the objects in the buckets.</p>
pub fn size_in_bytes(&self) -> i64 {
self.size_in_bytes
}
/// <p>The total storage size, in bytes, of the objects that are compressed (.gz, .gzip, .zip) files in the buckets.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each applicable object in the buckets. This value doesn't reflect the storage size of all versions of the applicable objects in the buckets.</p>
pub fn size_in_bytes_compressed(&self) -> i64 {
self.size_in_bytes_compressed
}
/// <p>The total number of objects that Amazon Macie can't analyze in the buckets. These objects don't use a supported storage class or don't have a file name extension for a supported file or storage format.</p>
pub fn unclassifiable_object_count(
&self,
) -> std::option::Option<&crate::model::ObjectLevelStatistics> {
self.unclassifiable_object_count.as_ref()
}
/// <p>The total storage size, in bytes, of the objects that Amazon Macie can't analyze in the buckets. These objects don't use a supported storage class or don't have a file name extension for a supported file or storage format.</p>
pub fn unclassifiable_object_size_in_bytes(
&self,
) -> std::option::Option<&crate::model::ObjectLevelStatistics> {
self.unclassifiable_object_size_in_bytes.as_ref()
}
}
/// See [`GetBucketStatisticsOutput`](crate::output::GetBucketStatisticsOutput).
pub mod get_bucket_statistics_output {
/// A builder for [`GetBucketStatisticsOutput`](crate::output::GetBucketStatisticsOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) bucket_count: std::option::Option<i64>,
pub(crate) bucket_count_by_effective_permission:
std::option::Option<crate::model::BucketCountByEffectivePermission>,
pub(crate) bucket_count_by_encryption_type:
std::option::Option<crate::model::BucketCountByEncryptionType>,
pub(crate) bucket_count_by_object_encryption_requirement:
std::option::Option<crate::model::BucketCountPolicyAllowsUnencryptedObjectUploads>,
pub(crate) bucket_count_by_shared_access_type:
std::option::Option<crate::model::BucketCountBySharedAccessType>,
pub(crate) bucket_statistics_by_sensitivity:
std::option::Option<crate::model::BucketStatisticsBySensitivity>,
pub(crate) classifiable_object_count: std::option::Option<i64>,
pub(crate) classifiable_size_in_bytes: std::option::Option<i64>,
pub(crate) last_updated: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) object_count: std::option::Option<i64>,
pub(crate) size_in_bytes: std::option::Option<i64>,
pub(crate) size_in_bytes_compressed: std::option::Option<i64>,
pub(crate) unclassifiable_object_count:
std::option::Option<crate::model::ObjectLevelStatistics>,
pub(crate) unclassifiable_object_size_in_bytes:
std::option::Option<crate::model::ObjectLevelStatistics>,
}
impl Builder {
/// <p>The total number of buckets.</p>
pub fn bucket_count(mut self, input: i64) -> Self {
self.bucket_count = Some(input);
self
}
/// <p>The total number of buckets.</p>
pub fn set_bucket_count(mut self, input: std::option::Option<i64>) -> Self {
self.bucket_count = input;
self
}
/// <p>The total number of buckets that are publicly accessible based on a combination of permissions settings for each bucket.</p>
pub fn bucket_count_by_effective_permission(
mut self,
input: crate::model::BucketCountByEffectivePermission,
) -> Self {
self.bucket_count_by_effective_permission = Some(input);
self
}
/// <p>The total number of buckets that are publicly accessible based on a combination of permissions settings for each bucket.</p>
pub fn set_bucket_count_by_effective_permission(
mut self,
input: std::option::Option<crate::model::BucketCountByEffectivePermission>,
) -> Self {
self.bucket_count_by_effective_permission = input;
self
}
/// <p>The total number of buckets that use certain types of server-side encryption to encrypt new objects by default. This object also reports the total number of buckets that don't encrypt new objects by default.</p>
pub fn bucket_count_by_encryption_type(
mut self,
input: crate::model::BucketCountByEncryptionType,
) -> Self {
self.bucket_count_by_encryption_type = Some(input);
self
}
/// <p>The total number of buckets that use certain types of server-side encryption to encrypt new objects by default. This object also reports the total number of buckets that don't encrypt new objects by default.</p>
pub fn set_bucket_count_by_encryption_type(
mut self,
input: std::option::Option<crate::model::BucketCountByEncryptionType>,
) -> Self {
self.bucket_count_by_encryption_type = input;
self
}
/// <p>The total number of buckets whose bucket policies do or don't require server-side encryption of objects when objects are uploaded to the buckets.</p>
pub fn bucket_count_by_object_encryption_requirement(
mut self,
input: crate::model::BucketCountPolicyAllowsUnencryptedObjectUploads,
) -> Self {
self.bucket_count_by_object_encryption_requirement = Some(input);
self
}
/// <p>The total number of buckets whose bucket policies do or don't require server-side encryption of objects when objects are uploaded to the buckets.</p>
pub fn set_bucket_count_by_object_encryption_requirement(
mut self,
input: std::option::Option<
crate::model::BucketCountPolicyAllowsUnencryptedObjectUploads,
>,
) -> Self {
self.bucket_count_by_object_encryption_requirement = input;
self
}
/// <p>The total number of buckets that are or aren't shared with another Amazon Web Services account.</p>
pub fn bucket_count_by_shared_access_type(
mut self,
input: crate::model::BucketCountBySharedAccessType,
) -> Self {
self.bucket_count_by_shared_access_type = Some(input);
self
}
/// <p>The total number of buckets that are or aren't shared with another Amazon Web Services account.</p>
pub fn set_bucket_count_by_shared_access_type(
mut self,
input: std::option::Option<crate::model::BucketCountBySharedAccessType>,
) -> Self {
self.bucket_count_by_shared_access_type = input;
self
}
/// <p>The aggregated sensitive data discovery statistics for the buckets. If automated sensitive data discovery is currently disabled for your account, the value for each statistic is 0.</p>
pub fn bucket_statistics_by_sensitivity(
mut self,
input: crate::model::BucketStatisticsBySensitivity,
) -> Self {
self.bucket_statistics_by_sensitivity = Some(input);
self
}
/// <p>The aggregated sensitive data discovery statistics for the buckets. If automated sensitive data discovery is currently disabled for your account, the value for each statistic is 0.</p>
pub fn set_bucket_statistics_by_sensitivity(
mut self,
input: std::option::Option<crate::model::BucketStatisticsBySensitivity>,
) -> Self {
self.bucket_statistics_by_sensitivity = input;
self
}
/// <p>The total number of objects that Amazon Macie can analyze in the buckets. These objects use a supported storage class and have a file name extension for a supported file or storage format.</p>
pub fn classifiable_object_count(mut self, input: i64) -> Self {
self.classifiable_object_count = Some(input);
self
}
/// <p>The total number of objects that Amazon Macie can analyze in the buckets. These objects use a supported storage class and have a file name extension for a supported file or storage format.</p>
pub fn set_classifiable_object_count(mut self, input: std::option::Option<i64>) -> Self {
self.classifiable_object_count = input;
self
}
/// <p>The total storage size, in bytes, of all the objects that Amazon Macie can analyze in the buckets. These objects use a supported storage class and have a file name extension for a supported file or storage format.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each applicable object in the buckets. This value doesn't reflect the storage size of all versions of all applicable objects in the buckets.</p>
pub fn classifiable_size_in_bytes(mut self, input: i64) -> Self {
self.classifiable_size_in_bytes = Some(input);
self
}
/// <p>The total storage size, in bytes, of all the objects that Amazon Macie can analyze in the buckets. These objects use a supported storage class and have a file name extension for a supported file or storage format.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each applicable object in the buckets. This value doesn't reflect the storage size of all versions of all applicable objects in the buckets.</p>
pub fn set_classifiable_size_in_bytes(mut self, input: std::option::Option<i64>) -> Self {
self.classifiable_size_in_bytes = input;
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently retrieved both bucket and object metadata from Amazon S3 for the buckets.</p>
pub fn last_updated(mut self, input: aws_smithy_types::DateTime) -> Self {
self.last_updated = Some(input);
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently retrieved both bucket and object metadata from Amazon S3 for the buckets.</p>
pub fn set_last_updated(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.last_updated = input;
self
}
/// <p>The total number of objects in the buckets.</p>
pub fn object_count(mut self, input: i64) -> Self {
self.object_count = Some(input);
self
}
/// <p>The total number of objects in the buckets.</p>
pub fn set_object_count(mut self, input: std::option::Option<i64>) -> Self {
self.object_count = input;
self
}
/// <p>The total storage size, in bytes, of the buckets.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each object in the buckets. This value doesn't reflect the storage size of all versions of the objects in the buckets.</p>
pub fn size_in_bytes(mut self, input: i64) -> Self {
self.size_in_bytes = Some(input);
self
}
/// <p>The total storage size, in bytes, of the buckets.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each object in the buckets. This value doesn't reflect the storage size of all versions of the objects in the buckets.</p>
pub fn set_size_in_bytes(mut self, input: std::option::Option<i64>) -> Self {
self.size_in_bytes = input;
self
}
/// <p>The total storage size, in bytes, of the objects that are compressed (.gz, .gzip, .zip) files in the buckets.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each applicable object in the buckets. This value doesn't reflect the storage size of all versions of the applicable objects in the buckets.</p>
pub fn size_in_bytes_compressed(mut self, input: i64) -> Self {
self.size_in_bytes_compressed = Some(input);
self
}
/// <p>The total storage size, in bytes, of the objects that are compressed (.gz, .gzip, .zip) files in the buckets.</p>
/// <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each applicable object in the buckets. This value doesn't reflect the storage size of all versions of the applicable objects in the buckets.</p>
pub fn set_size_in_bytes_compressed(mut self, input: std::option::Option<i64>) -> Self {
self.size_in_bytes_compressed = input;
self
}
/// <p>The total number of objects that Amazon Macie can't analyze in the buckets. These objects don't use a supported storage class or don't have a file name extension for a supported file or storage format.</p>
pub fn unclassifiable_object_count(
mut self,
input: crate::model::ObjectLevelStatistics,
) -> Self {
self.unclassifiable_object_count = Some(input);
self
}
/// <p>The total number of objects that Amazon Macie can't analyze in the buckets. These objects don't use a supported storage class or don't have a file name extension for a supported file or storage format.</p>
pub fn set_unclassifiable_object_count(
mut self,
input: std::option::Option<crate::model::ObjectLevelStatistics>,
) -> Self {
self.unclassifiable_object_count = input;
self
}
/// <p>The total storage size, in bytes, of the objects that Amazon Macie can't analyze in the buckets. These objects don't use a supported storage class or don't have a file name extension for a supported file or storage format.</p>
pub fn unclassifiable_object_size_in_bytes(
mut self,
input: crate::model::ObjectLevelStatistics,
) -> Self {
self.unclassifiable_object_size_in_bytes = Some(input);
self
}
/// <p>The total storage size, in bytes, of the objects that Amazon Macie can't analyze in the buckets. These objects don't use a supported storage class or don't have a file name extension for a supported file or storage format.</p>
pub fn set_unclassifiable_object_size_in_bytes(
mut self,
input: std::option::Option<crate::model::ObjectLevelStatistics>,
) -> Self {
self.unclassifiable_object_size_in_bytes = input;
self
}
/// Consumes the builder and constructs a [`GetBucketStatisticsOutput`](crate::output::GetBucketStatisticsOutput).
pub fn build(self) -> crate::output::GetBucketStatisticsOutput {
crate::output::GetBucketStatisticsOutput {
bucket_count: self.bucket_count.unwrap_or_default(),
bucket_count_by_effective_permission: self.bucket_count_by_effective_permission,
bucket_count_by_encryption_type: self.bucket_count_by_encryption_type,
bucket_count_by_object_encryption_requirement: self
.bucket_count_by_object_encryption_requirement,
bucket_count_by_shared_access_type: self.bucket_count_by_shared_access_type,
bucket_statistics_by_sensitivity: self.bucket_statistics_by_sensitivity,
classifiable_object_count: self.classifiable_object_count.unwrap_or_default(),
classifiable_size_in_bytes: self.classifiable_size_in_bytes.unwrap_or_default(),
last_updated: self.last_updated,
object_count: self.object_count.unwrap_or_default(),
size_in_bytes: self.size_in_bytes.unwrap_or_default(),
size_in_bytes_compressed: self.size_in_bytes_compressed.unwrap_or_default(),
unclassifiable_object_count: self.unclassifiable_object_count,
unclassifiable_object_size_in_bytes: self.unclassifiable_object_size_in_bytes,
}
}
}
}
impl GetBucketStatisticsOutput {
/// Creates a new builder-style object to manufacture [`GetBucketStatisticsOutput`](crate::output::GetBucketStatisticsOutput).
pub fn builder() -> crate::output::get_bucket_statistics_output::Builder {
crate::output::get_bucket_statistics_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetAutomatedDiscoveryConfigurationOutput {
/// <p>The unique identifier for the classification scope that's used when performing automated sensitive data discovery for the account. The classification scope specifies S3 buckets to exclude from automated sensitive data discovery.</p>
#[doc(hidden)]
pub classification_scope_id: std::option::Option<std::string::String>,
/// <p>The date and time, in UTC and extended ISO 8601 format, when automated sensitive data discovery was most recently disabled for the account. This value is null if automated sensitive data discovery wasn't enabled and subsequently disabled for the account.</p>
#[doc(hidden)]
pub disabled_at: std::option::Option<aws_smithy_types::DateTime>,
/// <p>The date and time, in UTC and extended ISO 8601 format, when automated sensitive data discovery was initially enabled for the account. This value is null if automated sensitive data discovery has never been enabled for the account.</p>
#[doc(hidden)]
pub first_enabled_at: std::option::Option<aws_smithy_types::DateTime>,
/// <p>The date and time, in UTC and extended ISO 8601 format, when automated sensitive data discovery was most recently enabled or disabled for the account.</p>
#[doc(hidden)]
pub last_updated_at: std::option::Option<aws_smithy_types::DateTime>,
/// <p>The unique identifier for the sensitivity inspection template that's used when performing automated sensitive data discovery for the account. The template specifies which allow lists, custom data identifiers, and managed data identifiers to use when analyzing data.</p>
#[doc(hidden)]
pub sensitivity_inspection_template_id: std::option::Option<std::string::String>,
/// <p>The current status of the automated sensitive data discovery configuration for the account. Possible values are: ENABLED, use the specified settings to perform automated sensitive data discovery activities for the account; and, DISABLED, don't perform automated sensitive data discovery activities for the account.</p>
#[doc(hidden)]
pub status: std::option::Option<crate::model::AutomatedDiscoveryStatus>,
}
impl GetAutomatedDiscoveryConfigurationOutput {
/// <p>The unique identifier for the classification scope that's used when performing automated sensitive data discovery for the account. The classification scope specifies S3 buckets to exclude from automated sensitive data discovery.</p>
pub fn classification_scope_id(&self) -> std::option::Option<&str> {
self.classification_scope_id.as_deref()
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when automated sensitive data discovery was most recently disabled for the account. This value is null if automated sensitive data discovery wasn't enabled and subsequently disabled for the account.</p>
pub fn disabled_at(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.disabled_at.as_ref()
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when automated sensitive data discovery was initially enabled for the account. This value is null if automated sensitive data discovery has never been enabled for the account.</p>
pub fn first_enabled_at(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.first_enabled_at.as_ref()
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when automated sensitive data discovery was most recently enabled or disabled for the account.</p>
pub fn last_updated_at(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.last_updated_at.as_ref()
}
/// <p>The unique identifier for the sensitivity inspection template that's used when performing automated sensitive data discovery for the account. The template specifies which allow lists, custom data identifiers, and managed data identifiers to use when analyzing data.</p>
pub fn sensitivity_inspection_template_id(&self) -> std::option::Option<&str> {
self.sensitivity_inspection_template_id.as_deref()
}
/// <p>The current status of the automated sensitive data discovery configuration for the account. Possible values are: ENABLED, use the specified settings to perform automated sensitive data discovery activities for the account; and, DISABLED, don't perform automated sensitive data discovery activities for the account.</p>
pub fn status(&self) -> std::option::Option<&crate::model::AutomatedDiscoveryStatus> {
self.status.as_ref()
}
}
/// See [`GetAutomatedDiscoveryConfigurationOutput`](crate::output::GetAutomatedDiscoveryConfigurationOutput).
pub mod get_automated_discovery_configuration_output {
/// A builder for [`GetAutomatedDiscoveryConfigurationOutput`](crate::output::GetAutomatedDiscoveryConfigurationOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) classification_scope_id: std::option::Option<std::string::String>,
pub(crate) disabled_at: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) first_enabled_at: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) last_updated_at: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) sensitivity_inspection_template_id: std::option::Option<std::string::String>,
pub(crate) status: std::option::Option<crate::model::AutomatedDiscoveryStatus>,
}
impl Builder {
/// <p>The unique identifier for the classification scope that's used when performing automated sensitive data discovery for the account. The classification scope specifies S3 buckets to exclude from automated sensitive data discovery.</p>
pub fn classification_scope_id(mut self, input: impl Into<std::string::String>) -> Self {
self.classification_scope_id = Some(input.into());
self
}
/// <p>The unique identifier for the classification scope that's used when performing automated sensitive data discovery for the account. The classification scope specifies S3 buckets to exclude from automated sensitive data discovery.</p>
pub fn set_classification_scope_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.classification_scope_id = input;
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when automated sensitive data discovery was most recently disabled for the account. This value is null if automated sensitive data discovery wasn't enabled and subsequently disabled for the account.</p>
pub fn disabled_at(mut self, input: aws_smithy_types::DateTime) -> Self {
self.disabled_at = Some(input);
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when automated sensitive data discovery was most recently disabled for the account. This value is null if automated sensitive data discovery wasn't enabled and subsequently disabled for the account.</p>
pub fn set_disabled_at(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.disabled_at = input;
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when automated sensitive data discovery was initially enabled for the account. This value is null if automated sensitive data discovery has never been enabled for the account.</p>
pub fn first_enabled_at(mut self, input: aws_smithy_types::DateTime) -> Self {
self.first_enabled_at = Some(input);
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when automated sensitive data discovery was initially enabled for the account. This value is null if automated sensitive data discovery has never been enabled for the account.</p>
pub fn set_first_enabled_at(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.first_enabled_at = input;
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when automated sensitive data discovery was most recently enabled or disabled for the account.</p>
pub fn last_updated_at(mut self, input: aws_smithy_types::DateTime) -> Self {
self.last_updated_at = Some(input);
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when automated sensitive data discovery was most recently enabled or disabled for the account.</p>
pub fn set_last_updated_at(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.last_updated_at = input;
self
}
/// <p>The unique identifier for the sensitivity inspection template that's used when performing automated sensitive data discovery for the account. The template specifies which allow lists, custom data identifiers, and managed data identifiers to use when analyzing data.</p>
pub fn sensitivity_inspection_template_id(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.sensitivity_inspection_template_id = Some(input.into());
self
}
/// <p>The unique identifier for the sensitivity inspection template that's used when performing automated sensitive data discovery for the account. The template specifies which allow lists, custom data identifiers, and managed data identifiers to use when analyzing data.</p>
pub fn set_sensitivity_inspection_template_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.sensitivity_inspection_template_id = input;
self
}
/// <p>The current status of the automated sensitive data discovery configuration for the account. Possible values are: ENABLED, use the specified settings to perform automated sensitive data discovery activities for the account; and, DISABLED, don't perform automated sensitive data discovery activities for the account.</p>
pub fn status(mut self, input: crate::model::AutomatedDiscoveryStatus) -> Self {
self.status = Some(input);
self
}
/// <p>The current status of the automated sensitive data discovery configuration for the account. Possible values are: ENABLED, use the specified settings to perform automated sensitive data discovery activities for the account; and, DISABLED, don't perform automated sensitive data discovery activities for the account.</p>
pub fn set_status(
mut self,
input: std::option::Option<crate::model::AutomatedDiscoveryStatus>,
) -> Self {
self.status = input;
self
}
/// Consumes the builder and constructs a [`GetAutomatedDiscoveryConfigurationOutput`](crate::output::GetAutomatedDiscoveryConfigurationOutput).
pub fn build(self) -> crate::output::GetAutomatedDiscoveryConfigurationOutput {
crate::output::GetAutomatedDiscoveryConfigurationOutput {
classification_scope_id: self.classification_scope_id,
disabled_at: self.disabled_at,
first_enabled_at: self.first_enabled_at,
last_updated_at: self.last_updated_at,
sensitivity_inspection_template_id: self.sensitivity_inspection_template_id,
status: self.status,
}
}
}
}
impl GetAutomatedDiscoveryConfigurationOutput {
/// Creates a new builder-style object to manufacture [`GetAutomatedDiscoveryConfigurationOutput`](crate::output::GetAutomatedDiscoveryConfigurationOutput).
pub fn builder() -> crate::output::get_automated_discovery_configuration_output::Builder {
crate::output::get_automated_discovery_configuration_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetAllowListOutput {
/// <p>The Amazon Resource Name (ARN) of the allow list.</p>
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
/// <p>The date and time, in UTC and extended ISO 8601 format, when the allow list was created in Amazon Macie.</p>
#[doc(hidden)]
pub created_at: std::option::Option<aws_smithy_types::DateTime>,
/// <p>The criteria that specify the text or text pattern to ignore. The criteria can be the location and name of an S3 object that lists specific text to ignore (s3WordsList), or a regular expression (regex) that defines a text pattern to ignore.</p>
#[doc(hidden)]
pub criteria: std::option::Option<crate::model::AllowListCriteria>,
/// <p>The custom description of the allow list.</p>
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
/// <p>The unique identifier for the allow list.</p>
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
/// <p>The custom name of the allow list.</p>
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
/// <p>The current status of the allow list, which indicates whether Amazon Macie can access and use the list's criteria.</p>
#[doc(hidden)]
pub status: std::option::Option<crate::model::AllowListStatus>,
/// <p>A map of key-value pairs that specifies which tags (keys and values) are associated with the allow list.</p>
#[doc(hidden)]
pub tags:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
/// <p>The date and time, in UTC and extended ISO 8601 format, when the allow list's settings were most recently changed in Amazon Macie.</p>
#[doc(hidden)]
pub updated_at: std::option::Option<aws_smithy_types::DateTime>,
}
impl GetAllowListOutput {
/// <p>The Amazon Resource Name (ARN) of the allow list.</p>
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when the allow list was created in Amazon Macie.</p>
pub fn created_at(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.created_at.as_ref()
}
/// <p>The criteria that specify the text or text pattern to ignore. The criteria can be the location and name of an S3 object that lists specific text to ignore (s3WordsList), or a regular expression (regex) that defines a text pattern to ignore.</p>
pub fn criteria(&self) -> std::option::Option<&crate::model::AllowListCriteria> {
self.criteria.as_ref()
}
/// <p>The custom description of the allow list.</p>
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
/// <p>The unique identifier for the allow list.</p>
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
/// <p>The custom name of the allow list.</p>
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
/// <p>The current status of the allow list, which indicates whether Amazon Macie can access and use the list's criteria.</p>
pub fn status(&self) -> std::option::Option<&crate::model::AllowListStatus> {
self.status.as_ref()
}
/// <p>A map of key-value pairs that specifies which tags (keys and values) are associated with the allow list.</p>
pub fn tags(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.tags.as_ref()
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when the allow list's settings were most recently changed in Amazon Macie.</p>
pub fn updated_at(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.updated_at.as_ref()
}
}
/// See [`GetAllowListOutput`](crate::output::GetAllowListOutput).
pub mod get_allow_list_output {
/// A builder for [`GetAllowListOutput`](crate::output::GetAllowListOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) created_at: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) criteria: std::option::Option<crate::model::AllowListCriteria>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) id: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) status: std::option::Option<crate::model::AllowListStatus>,
pub(crate) tags: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
pub(crate) updated_at: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
/// <p>The Amazon Resource Name (ARN) of the allow list.</p>
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the allow list.</p>
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when the allow list was created in Amazon Macie.</p>
pub fn created_at(mut self, input: aws_smithy_types::DateTime) -> Self {
self.created_at = Some(input);
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when the allow list was created in Amazon Macie.</p>
pub fn set_created_at(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.created_at = input;
self
}
/// <p>The criteria that specify the text or text pattern to ignore. The criteria can be the location and name of an S3 object that lists specific text to ignore (s3WordsList), or a regular expression (regex) that defines a text pattern to ignore.</p>
pub fn criteria(mut self, input: crate::model::AllowListCriteria) -> Self {
self.criteria = Some(input);
self
}
/// <p>The criteria that specify the text or text pattern to ignore. The criteria can be the location and name of an S3 object that lists specific text to ignore (s3WordsList), or a regular expression (regex) that defines a text pattern to ignore.</p>
pub fn set_criteria(
mut self,
input: std::option::Option<crate::model::AllowListCriteria>,
) -> Self {
self.criteria = input;
self
}
/// <p>The custom description of the allow list.</p>
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
/// <p>The custom description of the allow list.</p>
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
/// <p>The unique identifier for the allow list.</p>
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
/// <p>The unique identifier for the allow list.</p>
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.id = input;
self
}
/// <p>The custom name of the allow list.</p>
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
/// <p>The custom name of the allow list.</p>
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The current status of the allow list, which indicates whether Amazon Macie can access and use the list's criteria.</p>
pub fn status(mut self, input: crate::model::AllowListStatus) -> Self {
self.status = Some(input);
self
}
/// <p>The current status of the allow list, which indicates whether Amazon Macie can access and use the list's criteria.</p>
pub fn set_status(
mut self,
input: std::option::Option<crate::model::AllowListStatus>,
) -> Self {
self.status = input;
self
}
/// Adds a key-value pair to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>A map of key-value pairs that specifies which tags (keys and values) are associated with the allow list.</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>A map of key-value pairs that specifies which tags (keys and values) are associated with the allow list.</p>
pub fn set_tags(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.tags = input;
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when the allow list's settings were most recently changed in Amazon Macie.</p>
pub fn updated_at(mut self, input: aws_smithy_types::DateTime) -> Self {
self.updated_at = Some(input);
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when the allow list's settings were most recently changed in Amazon Macie.</p>
pub fn set_updated_at(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.updated_at = input;
self
}
/// Consumes the builder and constructs a [`GetAllowListOutput`](crate::output::GetAllowListOutput).
pub fn build(self) -> crate::output::GetAllowListOutput {
crate::output::GetAllowListOutput {
arn: self.arn,
created_at: self.created_at,
criteria: self.criteria,
description: self.description,
id: self.id,
name: self.name,
status: self.status,
tags: self.tags,
updated_at: self.updated_at,
}
}
}
}
impl GetAllowListOutput {
/// Creates a new builder-style object to manufacture [`GetAllowListOutput`](crate::output::GetAllowListOutput).
pub fn builder() -> crate::output::get_allow_list_output::Builder {
crate::output::get_allow_list_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetAdministratorAccountOutput {
/// <p>The Amazon Web Services account ID for the administrator account. If the accounts are associated by an Amazon Macie membership invitation, this object also provides details about the invitation that was sent to establish the relationship between the accounts.</p>
#[doc(hidden)]
pub administrator: std::option::Option<crate::model::Invitation>,
}
impl GetAdministratorAccountOutput {
/// <p>The Amazon Web Services account ID for the administrator account. If the accounts are associated by an Amazon Macie membership invitation, this object also provides details about the invitation that was sent to establish the relationship between the accounts.</p>
pub fn administrator(&self) -> std::option::Option<&crate::model::Invitation> {
self.administrator.as_ref()
}
}
/// See [`GetAdministratorAccountOutput`](crate::output::GetAdministratorAccountOutput).
pub mod get_administrator_account_output {
/// A builder for [`GetAdministratorAccountOutput`](crate::output::GetAdministratorAccountOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) administrator: std::option::Option<crate::model::Invitation>,
}
impl Builder {
/// <p>The Amazon Web Services account ID for the administrator account. If the accounts are associated by an Amazon Macie membership invitation, this object also provides details about the invitation that was sent to establish the relationship between the accounts.</p>
pub fn administrator(mut self, input: crate::model::Invitation) -> Self {
self.administrator = Some(input);
self
}
/// <p>The Amazon Web Services account ID for the administrator account. If the accounts are associated by an Amazon Macie membership invitation, this object also provides details about the invitation that was sent to establish the relationship between the accounts.</p>
pub fn set_administrator(
mut self,
input: std::option::Option<crate::model::Invitation>,
) -> Self {
self.administrator = input;
self
}
/// Consumes the builder and constructs a [`GetAdministratorAccountOutput`](crate::output::GetAdministratorAccountOutput).
pub fn build(self) -> crate::output::GetAdministratorAccountOutput {
crate::output::GetAdministratorAccountOutput {
administrator: self.administrator,
}
}
}
}
impl GetAdministratorAccountOutput {
/// Creates a new builder-style object to manufacture [`GetAdministratorAccountOutput`](crate::output::GetAdministratorAccountOutput).
pub fn builder() -> crate::output::get_administrator_account_output::Builder {
crate::output::get_administrator_account_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct EnableOrganizationAdminAccountOutput {}
/// See [`EnableOrganizationAdminAccountOutput`](crate::output::EnableOrganizationAdminAccountOutput).
pub mod enable_organization_admin_account_output {
/// A builder for [`EnableOrganizationAdminAccountOutput`](crate::output::EnableOrganizationAdminAccountOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`EnableOrganizationAdminAccountOutput`](crate::output::EnableOrganizationAdminAccountOutput).
pub fn build(self) -> crate::output::EnableOrganizationAdminAccountOutput {
crate::output::EnableOrganizationAdminAccountOutput {}
}
}
}
impl EnableOrganizationAdminAccountOutput {
/// Creates a new builder-style object to manufacture [`EnableOrganizationAdminAccountOutput`](crate::output::EnableOrganizationAdminAccountOutput).
pub fn builder() -> crate::output::enable_organization_admin_account_output::Builder {
crate::output::enable_organization_admin_account_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct EnableMacieOutput {}
/// See [`EnableMacieOutput`](crate::output::EnableMacieOutput).
pub mod enable_macie_output {
/// A builder for [`EnableMacieOutput`](crate::output::EnableMacieOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`EnableMacieOutput`](crate::output::EnableMacieOutput).
pub fn build(self) -> crate::output::EnableMacieOutput {
crate::output::EnableMacieOutput {}
}
}
}
impl EnableMacieOutput {
/// Creates a new builder-style object to manufacture [`EnableMacieOutput`](crate::output::EnableMacieOutput).
pub fn builder() -> crate::output::enable_macie_output::Builder {
crate::output::enable_macie_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DisassociateMemberOutput {}
/// See [`DisassociateMemberOutput`](crate::output::DisassociateMemberOutput).
pub mod disassociate_member_output {
/// A builder for [`DisassociateMemberOutput`](crate::output::DisassociateMemberOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`DisassociateMemberOutput`](crate::output::DisassociateMemberOutput).
pub fn build(self) -> crate::output::DisassociateMemberOutput {
crate::output::DisassociateMemberOutput {}
}
}
}
impl DisassociateMemberOutput {
/// Creates a new builder-style object to manufacture [`DisassociateMemberOutput`](crate::output::DisassociateMemberOutput).
pub fn builder() -> crate::output::disassociate_member_output::Builder {
crate::output::disassociate_member_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DisassociateFromMasterAccountOutput {}
/// See [`DisassociateFromMasterAccountOutput`](crate::output::DisassociateFromMasterAccountOutput).
pub mod disassociate_from_master_account_output {
/// A builder for [`DisassociateFromMasterAccountOutput`](crate::output::DisassociateFromMasterAccountOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`DisassociateFromMasterAccountOutput`](crate::output::DisassociateFromMasterAccountOutput).
pub fn build(self) -> crate::output::DisassociateFromMasterAccountOutput {
crate::output::DisassociateFromMasterAccountOutput {}
}
}
}
impl DisassociateFromMasterAccountOutput {
/// Creates a new builder-style object to manufacture [`DisassociateFromMasterAccountOutput`](crate::output::DisassociateFromMasterAccountOutput).
pub fn builder() -> crate::output::disassociate_from_master_account_output::Builder {
crate::output::disassociate_from_master_account_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DisassociateFromAdministratorAccountOutput {}
/// See [`DisassociateFromAdministratorAccountOutput`](crate::output::DisassociateFromAdministratorAccountOutput).
pub mod disassociate_from_administrator_account_output {
/// A builder for [`DisassociateFromAdministratorAccountOutput`](crate::output::DisassociateFromAdministratorAccountOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`DisassociateFromAdministratorAccountOutput`](crate::output::DisassociateFromAdministratorAccountOutput).
pub fn build(self) -> crate::output::DisassociateFromAdministratorAccountOutput {
crate::output::DisassociateFromAdministratorAccountOutput {}
}
}
}
impl DisassociateFromAdministratorAccountOutput {
/// Creates a new builder-style object to manufacture [`DisassociateFromAdministratorAccountOutput`](crate::output::DisassociateFromAdministratorAccountOutput).
pub fn builder() -> crate::output::disassociate_from_administrator_account_output::Builder {
crate::output::disassociate_from_administrator_account_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DisableOrganizationAdminAccountOutput {}
/// See [`DisableOrganizationAdminAccountOutput`](crate::output::DisableOrganizationAdminAccountOutput).
pub mod disable_organization_admin_account_output {
/// A builder for [`DisableOrganizationAdminAccountOutput`](crate::output::DisableOrganizationAdminAccountOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`DisableOrganizationAdminAccountOutput`](crate::output::DisableOrganizationAdminAccountOutput).
pub fn build(self) -> crate::output::DisableOrganizationAdminAccountOutput {
crate::output::DisableOrganizationAdminAccountOutput {}
}
}
}
impl DisableOrganizationAdminAccountOutput {
/// Creates a new builder-style object to manufacture [`DisableOrganizationAdminAccountOutput`](crate::output::DisableOrganizationAdminAccountOutput).
pub fn builder() -> crate::output::disable_organization_admin_account_output::Builder {
crate::output::disable_organization_admin_account_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DisableMacieOutput {}
/// See [`DisableMacieOutput`](crate::output::DisableMacieOutput).
pub mod disable_macie_output {
/// A builder for [`DisableMacieOutput`](crate::output::DisableMacieOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`DisableMacieOutput`](crate::output::DisableMacieOutput).
pub fn build(self) -> crate::output::DisableMacieOutput {
crate::output::DisableMacieOutput {}
}
}
}
impl DisableMacieOutput {
/// Creates a new builder-style object to manufacture [`DisableMacieOutput`](crate::output::DisableMacieOutput).
pub fn builder() -> crate::output::disable_macie_output::Builder {
crate::output::disable_macie_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeOrganizationConfigurationOutput {
/// <p>Specifies whether Amazon Macie is enabled automatically for accounts that are added to the organization.</p>
#[doc(hidden)]
pub auto_enable: bool,
/// <p>Specifies whether the maximum number of Amazon Macie member accounts are part of the organization.</p>
#[doc(hidden)]
pub max_account_limit_reached: bool,
}
impl DescribeOrganizationConfigurationOutput {
/// <p>Specifies whether Amazon Macie is enabled automatically for accounts that are added to the organization.</p>
pub fn auto_enable(&self) -> bool {
self.auto_enable
}
/// <p>Specifies whether the maximum number of Amazon Macie member accounts are part of the organization.</p>
pub fn max_account_limit_reached(&self) -> bool {
self.max_account_limit_reached
}
}
/// See [`DescribeOrganizationConfigurationOutput`](crate::output::DescribeOrganizationConfigurationOutput).
pub mod describe_organization_configuration_output {
/// A builder for [`DescribeOrganizationConfigurationOutput`](crate::output::DescribeOrganizationConfigurationOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) auto_enable: std::option::Option<bool>,
pub(crate) max_account_limit_reached: std::option::Option<bool>,
}
impl Builder {
/// <p>Specifies whether Amazon Macie is enabled automatically for accounts that are added to the organization.</p>
pub fn auto_enable(mut self, input: bool) -> Self {
self.auto_enable = Some(input);
self
}
/// <p>Specifies whether Amazon Macie is enabled automatically for accounts that are added to the organization.</p>
pub fn set_auto_enable(mut self, input: std::option::Option<bool>) -> Self {
self.auto_enable = input;
self
}
/// <p>Specifies whether the maximum number of Amazon Macie member accounts are part of the organization.</p>
pub fn max_account_limit_reached(mut self, input: bool) -> Self {
self.max_account_limit_reached = Some(input);
self
}
/// <p>Specifies whether the maximum number of Amazon Macie member accounts are part of the organization.</p>
pub fn set_max_account_limit_reached(mut self, input: std::option::Option<bool>) -> Self {
self.max_account_limit_reached = input;
self
}
/// Consumes the builder and constructs a [`DescribeOrganizationConfigurationOutput`](crate::output::DescribeOrganizationConfigurationOutput).
pub fn build(self) -> crate::output::DescribeOrganizationConfigurationOutput {
crate::output::DescribeOrganizationConfigurationOutput {
auto_enable: self.auto_enable.unwrap_or_default(),
max_account_limit_reached: self.max_account_limit_reached.unwrap_or_default(),
}
}
}
}
impl DescribeOrganizationConfigurationOutput {
/// Creates a new builder-style object to manufacture [`DescribeOrganizationConfigurationOutput`](crate::output::DescribeOrganizationConfigurationOutput).
pub fn builder() -> crate::output::describe_organization_configuration_output::Builder {
crate::output::describe_organization_configuration_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeClassificationJobOutput {
/// <p>An array of unique identifiers, one for each allow list that the job uses when it analyzes data.</p>
#[doc(hidden)]
pub allow_list_ids: std::option::Option<std::vec::Vec<std::string::String>>,
/// <p>The token that was provided to ensure the idempotency of the request to create the job.</p>
#[doc(hidden)]
pub client_token: std::option::Option<std::string::String>,
/// <p>The date and time, in UTC and extended ISO 8601 format, when the job was created.</p>
#[doc(hidden)]
pub created_at: std::option::Option<aws_smithy_types::DateTime>,
/// <p>An array of unique identifiers, one for each custom data identifier that the job uses when it analyzes data. This value is null if the job uses only managed data identifiers to analyze data.</p>
#[doc(hidden)]
pub custom_data_identifier_ids: std::option::Option<std::vec::Vec<std::string::String>>,
/// <p>The custom description of the job.</p>
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
/// <p>For a recurring job, specifies whether you configured the job to analyze all existing, eligible objects immediately after the job was created (true). If you configured the job to analyze only those objects that were created or changed after the job was created and before the job's first scheduled run, this value is false. This value is also false for a one-time job.</p>
#[doc(hidden)]
pub initial_run: bool,
/// <p>The Amazon Resource Name (ARN) of the job.</p>
#[doc(hidden)]
pub job_arn: std::option::Option<std::string::String>,
/// <p>The unique identifier for the job.</p>
#[doc(hidden)]
pub job_id: std::option::Option<std::string::String>,
/// <p>The current status of the job. Possible values are:</p>
/// <ul>
/// <li><p>CANCELLED - You cancelled the job or, if it's a one-time job, you paused the job and didn't resume it within 30 days.</p></li>
/// <li><p>COMPLETE - For a one-time job, Amazon Macie finished processing the data specified for the job. This value doesn't apply to recurring jobs.</p></li>
/// <li><p>IDLE - For a recurring job, the previous scheduled run is complete and the next scheduled run is pending. This value doesn't apply to one-time jobs.</p></li>
/// <li><p>PAUSED - Macie started running the job but additional processing would exceed the monthly sensitive data discovery quota for your account or one or more member accounts that the job analyzes data for.</p></li>
/// <li><p>RUNNING - For a one-time job, the job is in progress. For a recurring job, a scheduled run is in progress.</p></li>
/// <li><p>USER_PAUSED - You paused the job. If you paused the job while it had a status of RUNNING and you don't resume it within 30 days of pausing it, the job or job run will expire and be cancelled, depending on the job's type. To check the expiration date, refer to the UserPausedDetails.jobExpiresAt property.</p></li>
/// </ul>
#[doc(hidden)]
pub job_status: std::option::Option<crate::model::JobStatus>,
/// <p>The schedule for running the job. Possible values are:</p>
/// <ul>
/// <li><p>ONE_TIME - The job runs only once.</p></li>
/// <li><p>SCHEDULED - The job runs on a daily, weekly, or monthly basis. The scheduleFrequency property indicates the recurrence pattern for the job.</p></li>
/// </ul>
#[doc(hidden)]
pub job_type: std::option::Option<crate::model::JobType>,
/// <p>Specifies whether any account- or bucket-level access errors occurred when the job ran. For a recurring job, this value indicates the error status of the job's most recent run.</p>
#[doc(hidden)]
pub last_run_error_status: std::option::Option<crate::model::LastRunErrorStatus>,
/// <p>The date and time, in UTC and extended ISO 8601 format, when the job started. If the job is a recurring job, this value indicates when the most recent run started or, if the job hasn't run yet, when the job was created.</p>
#[doc(hidden)]
pub last_run_time: std::option::Option<aws_smithy_types::DateTime>,
/// <p>An array of unique identifiers, one for each managed data identifier that the job is explicitly configured to include (use) or exclude (not use) when it analyzes data. Inclusion or exclusion depends on the managed data identifier selection type specified for the job (managedDataIdentifierSelector). This value is null if the job's managed data identifier selection type is ALL or the job uses only custom data identifiers (customDataIdentifierIds) to analyze data.</p>
#[doc(hidden)]
pub managed_data_identifier_ids: std::option::Option<std::vec::Vec<std::string::String>>,
/// <p>The selection type that determines which managed data identifiers the job uses to analyze data. Possible values are:</p>
/// <ul>
/// <li><p>ALL - Use all the managed data identifiers that Amazon Macie provides.</p></li>
/// <li><p>EXCLUDE - Use all the managed data identifiers that Macie provides except the managed data identifiers specified by the managedDataIdentifierIds property.</p></li>
/// <li><p>INCLUDE - Use only the managed data identifiers specified by the managedDataIdentifierIds property.</p></li>
/// <li><p>NONE - Don't use any managed data identifiers.</p></li>
/// </ul>
/// <p>If this value is null, the job uses all managed data identifiers. If this value is null, ALL, or EXCLUDE for a recurring job, the job also uses new managed data identifiers as they are released.</p>
#[doc(hidden)]
pub managed_data_identifier_selector:
std::option::Option<crate::model::ManagedDataIdentifierSelector>,
/// <p>The custom name of the job.</p>
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
/// <p>The S3 buckets that contain the objects to analyze, and the scope of that analysis.</p>
#[doc(hidden)]
pub s3_job_definition: std::option::Option<crate::model::S3JobDefinition>,
/// <p>The sampling depth, as a percentage, that determines the percentage of eligible objects that the job analyzes.</p>
#[doc(hidden)]
pub sampling_percentage: i32,
/// <p>The recurrence pattern for running the job. This value is null if the job is configured to run only once.</p>
#[doc(hidden)]
pub schedule_frequency: std::option::Option<crate::model::JobScheduleFrequency>,
/// <p>The number of times that the job has run and processing statistics for the job's current run.</p>
#[doc(hidden)]
pub statistics: std::option::Option<crate::model::Statistics>,
/// <p>A map of key-value pairs that specifies which tags (keys and values) are associated with the classification job.</p>
#[doc(hidden)]
pub tags:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
/// <p>If the current status of the job is USER_PAUSED, specifies when the job was paused and when the job or job run will expire and be cancelled if it isn't resumed. This value is present only if the value for jobStatus is USER_PAUSED.</p>
#[doc(hidden)]
pub user_paused_details: std::option::Option<crate::model::UserPausedDetails>,
}
impl DescribeClassificationJobOutput {
/// <p>An array of unique identifiers, one for each allow list that the job uses when it analyzes data.</p>
pub fn allow_list_ids(&self) -> std::option::Option<&[std::string::String]> {
self.allow_list_ids.as_deref()
}
/// <p>The token that was provided to ensure the idempotency of the request to create the job.</p>
pub fn client_token(&self) -> std::option::Option<&str> {
self.client_token.as_deref()
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when the job was created.</p>
pub fn created_at(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.created_at.as_ref()
}
/// <p>An array of unique identifiers, one for each custom data identifier that the job uses when it analyzes data. This value is null if the job uses only managed data identifiers to analyze data.</p>
pub fn custom_data_identifier_ids(&self) -> std::option::Option<&[std::string::String]> {
self.custom_data_identifier_ids.as_deref()
}
/// <p>The custom description of the job.</p>
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
/// <p>For a recurring job, specifies whether you configured the job to analyze all existing, eligible objects immediately after the job was created (true). If you configured the job to analyze only those objects that were created or changed after the job was created and before the job's first scheduled run, this value is false. This value is also false for a one-time job.</p>
pub fn initial_run(&self) -> bool {
self.initial_run
}
/// <p>The Amazon Resource Name (ARN) of the job.</p>
pub fn job_arn(&self) -> std::option::Option<&str> {
self.job_arn.as_deref()
}
/// <p>The unique identifier for the job.</p>
pub fn job_id(&self) -> std::option::Option<&str> {
self.job_id.as_deref()
}
/// <p>The current status of the job. Possible values are:</p>
/// <ul>
/// <li><p>CANCELLED - You cancelled the job or, if it's a one-time job, you paused the job and didn't resume it within 30 days.</p></li>
/// <li><p>COMPLETE - For a one-time job, Amazon Macie finished processing the data specified for the job. This value doesn't apply to recurring jobs.</p></li>
/// <li><p>IDLE - For a recurring job, the previous scheduled run is complete and the next scheduled run is pending. This value doesn't apply to one-time jobs.</p></li>
/// <li><p>PAUSED - Macie started running the job but additional processing would exceed the monthly sensitive data discovery quota for your account or one or more member accounts that the job analyzes data for.</p></li>
/// <li><p>RUNNING - For a one-time job, the job is in progress. For a recurring job, a scheduled run is in progress.</p></li>
/// <li><p>USER_PAUSED - You paused the job. If you paused the job while it had a status of RUNNING and you don't resume it within 30 days of pausing it, the job or job run will expire and be cancelled, depending on the job's type. To check the expiration date, refer to the UserPausedDetails.jobExpiresAt property.</p></li>
/// </ul>
pub fn job_status(&self) -> std::option::Option<&crate::model::JobStatus> {
self.job_status.as_ref()
}
/// <p>The schedule for running the job. Possible values are:</p>
/// <ul>
/// <li><p>ONE_TIME - The job runs only once.</p></li>
/// <li><p>SCHEDULED - The job runs on a daily, weekly, or monthly basis. The scheduleFrequency property indicates the recurrence pattern for the job.</p></li>
/// </ul>
pub fn job_type(&self) -> std::option::Option<&crate::model::JobType> {
self.job_type.as_ref()
}
/// <p>Specifies whether any account- or bucket-level access errors occurred when the job ran. For a recurring job, this value indicates the error status of the job's most recent run.</p>
pub fn last_run_error_status(&self) -> std::option::Option<&crate::model::LastRunErrorStatus> {
self.last_run_error_status.as_ref()
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when the job started. If the job is a recurring job, this value indicates when the most recent run started or, if the job hasn't run yet, when the job was created.</p>
pub fn last_run_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.last_run_time.as_ref()
}
/// <p>An array of unique identifiers, one for each managed data identifier that the job is explicitly configured to include (use) or exclude (not use) when it analyzes data. Inclusion or exclusion depends on the managed data identifier selection type specified for the job (managedDataIdentifierSelector). This value is null if the job's managed data identifier selection type is ALL or the job uses only custom data identifiers (customDataIdentifierIds) to analyze data.</p>
pub fn managed_data_identifier_ids(&self) -> std::option::Option<&[std::string::String]> {
self.managed_data_identifier_ids.as_deref()
}
/// <p>The selection type that determines which managed data identifiers the job uses to analyze data. Possible values are:</p>
/// <ul>
/// <li><p>ALL - Use all the managed data identifiers that Amazon Macie provides.</p></li>
/// <li><p>EXCLUDE - Use all the managed data identifiers that Macie provides except the managed data identifiers specified by the managedDataIdentifierIds property.</p></li>
/// <li><p>INCLUDE - Use only the managed data identifiers specified by the managedDataIdentifierIds property.</p></li>
/// <li><p>NONE - Don't use any managed data identifiers.</p></li>
/// </ul>
/// <p>If this value is null, the job uses all managed data identifiers. If this value is null, ALL, or EXCLUDE for a recurring job, the job also uses new managed data identifiers as they are released.</p>
pub fn managed_data_identifier_selector(
&self,
) -> std::option::Option<&crate::model::ManagedDataIdentifierSelector> {
self.managed_data_identifier_selector.as_ref()
}
/// <p>The custom name of the job.</p>
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
/// <p>The S3 buckets that contain the objects to analyze, and the scope of that analysis.</p>
pub fn s3_job_definition(&self) -> std::option::Option<&crate::model::S3JobDefinition> {
self.s3_job_definition.as_ref()
}
/// <p>The sampling depth, as a percentage, that determines the percentage of eligible objects that the job analyzes.</p>
pub fn sampling_percentage(&self) -> i32 {
self.sampling_percentage
}
/// <p>The recurrence pattern for running the job. This value is null if the job is configured to run only once.</p>
pub fn schedule_frequency(&self) -> std::option::Option<&crate::model::JobScheduleFrequency> {
self.schedule_frequency.as_ref()
}
/// <p>The number of times that the job has run and processing statistics for the job's current run.</p>
pub fn statistics(&self) -> std::option::Option<&crate::model::Statistics> {
self.statistics.as_ref()
}
/// <p>A map of key-value pairs that specifies which tags (keys and values) are associated with the classification job.</p>
pub fn tags(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.tags.as_ref()
}
/// <p>If the current status of the job is USER_PAUSED, specifies when the job was paused and when the job or job run will expire and be cancelled if it isn't resumed. This value is present only if the value for jobStatus is USER_PAUSED.</p>
pub fn user_paused_details(&self) -> std::option::Option<&crate::model::UserPausedDetails> {
self.user_paused_details.as_ref()
}
}
/// See [`DescribeClassificationJobOutput`](crate::output::DescribeClassificationJobOutput).
pub mod describe_classification_job_output {
/// A builder for [`DescribeClassificationJobOutput`](crate::output::DescribeClassificationJobOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) allow_list_ids: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) client_token: std::option::Option<std::string::String>,
pub(crate) created_at: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) custom_data_identifier_ids:
std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) initial_run: std::option::Option<bool>,
pub(crate) job_arn: std::option::Option<std::string::String>,
pub(crate) job_id: std::option::Option<std::string::String>,
pub(crate) job_status: std::option::Option<crate::model::JobStatus>,
pub(crate) job_type: std::option::Option<crate::model::JobType>,
pub(crate) last_run_error_status: std::option::Option<crate::model::LastRunErrorStatus>,
pub(crate) last_run_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) managed_data_identifier_ids:
std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) managed_data_identifier_selector:
std::option::Option<crate::model::ManagedDataIdentifierSelector>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) s3_job_definition: std::option::Option<crate::model::S3JobDefinition>,
pub(crate) sampling_percentage: std::option::Option<i32>,
pub(crate) schedule_frequency: std::option::Option<crate::model::JobScheduleFrequency>,
pub(crate) statistics: std::option::Option<crate::model::Statistics>,
pub(crate) tags: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
pub(crate) user_paused_details: std::option::Option<crate::model::UserPausedDetails>,
}
impl Builder {
/// Appends an item to `allow_list_ids`.
///
/// To override the contents of this collection use [`set_allow_list_ids`](Self::set_allow_list_ids).
///
/// <p>An array of unique identifiers, one for each allow list that the job uses when it analyzes data.</p>
pub fn allow_list_ids(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.allow_list_ids.unwrap_or_default();
v.push(input.into());
self.allow_list_ids = Some(v);
self
}
/// <p>An array of unique identifiers, one for each allow list that the job uses when it analyzes data.</p>
pub fn set_allow_list_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.allow_list_ids = input;
self
}
/// <p>The token that was provided to ensure the idempotency of the request to create the job.</p>
pub fn client_token(mut self, input: impl Into<std::string::String>) -> Self {
self.client_token = Some(input.into());
self
}
/// <p>The token that was provided to ensure the idempotency of the request to create the job.</p>
pub fn set_client_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.client_token = input;
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when the job was created.</p>
pub fn created_at(mut self, input: aws_smithy_types::DateTime) -> Self {
self.created_at = Some(input);
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when the job was created.</p>
pub fn set_created_at(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.created_at = input;
self
}
/// Appends an item to `custom_data_identifier_ids`.
///
/// To override the contents of this collection use [`set_custom_data_identifier_ids`](Self::set_custom_data_identifier_ids).
///
/// <p>An array of unique identifiers, one for each custom data identifier that the job uses when it analyzes data. This value is null if the job uses only managed data identifiers to analyze data.</p>
pub fn custom_data_identifier_ids(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.custom_data_identifier_ids.unwrap_or_default();
v.push(input.into());
self.custom_data_identifier_ids = Some(v);
self
}
/// <p>An array of unique identifiers, one for each custom data identifier that the job uses when it analyzes data. This value is null if the job uses only managed data identifiers to analyze data.</p>
pub fn set_custom_data_identifier_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.custom_data_identifier_ids = input;
self
}
/// <p>The custom description of the job.</p>
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
/// <p>The custom description of the job.</p>
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
/// <p>For a recurring job, specifies whether you configured the job to analyze all existing, eligible objects immediately after the job was created (true). If you configured the job to analyze only those objects that were created or changed after the job was created and before the job's first scheduled run, this value is false. This value is also false for a one-time job.</p>
pub fn initial_run(mut self, input: bool) -> Self {
self.initial_run = Some(input);
self
}
/// <p>For a recurring job, specifies whether you configured the job to analyze all existing, eligible objects immediately after the job was created (true). If you configured the job to analyze only those objects that were created or changed after the job was created and before the job's first scheduled run, this value is false. This value is also false for a one-time job.</p>
pub fn set_initial_run(mut self, input: std::option::Option<bool>) -> Self {
self.initial_run = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the job.</p>
pub fn job_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.job_arn = Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the job.</p>
pub fn set_job_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.job_arn = input;
self
}
/// <p>The unique identifier for the job.</p>
pub fn job_id(mut self, input: impl Into<std::string::String>) -> Self {
self.job_id = Some(input.into());
self
}
/// <p>The unique identifier for the job.</p>
pub fn set_job_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.job_id = input;
self
}
/// <p>The current status of the job. Possible values are:</p>
/// <ul>
/// <li><p>CANCELLED - You cancelled the job or, if it's a one-time job, you paused the job and didn't resume it within 30 days.</p></li>
/// <li><p>COMPLETE - For a one-time job, Amazon Macie finished processing the data specified for the job. This value doesn't apply to recurring jobs.</p></li>
/// <li><p>IDLE - For a recurring job, the previous scheduled run is complete and the next scheduled run is pending. This value doesn't apply to one-time jobs.</p></li>
/// <li><p>PAUSED - Macie started running the job but additional processing would exceed the monthly sensitive data discovery quota for your account or one or more member accounts that the job analyzes data for.</p></li>
/// <li><p>RUNNING - For a one-time job, the job is in progress. For a recurring job, a scheduled run is in progress.</p></li>
/// <li><p>USER_PAUSED - You paused the job. If you paused the job while it had a status of RUNNING and you don't resume it within 30 days of pausing it, the job or job run will expire and be cancelled, depending on the job's type. To check the expiration date, refer to the UserPausedDetails.jobExpiresAt property.</p></li>
/// </ul>
pub fn job_status(mut self, input: crate::model::JobStatus) -> Self {
self.job_status = Some(input);
self
}
/// <p>The current status of the job. Possible values are:</p>
/// <ul>
/// <li><p>CANCELLED - You cancelled the job or, if it's a one-time job, you paused the job and didn't resume it within 30 days.</p></li>
/// <li><p>COMPLETE - For a one-time job, Amazon Macie finished processing the data specified for the job. This value doesn't apply to recurring jobs.</p></li>
/// <li><p>IDLE - For a recurring job, the previous scheduled run is complete and the next scheduled run is pending. This value doesn't apply to one-time jobs.</p></li>
/// <li><p>PAUSED - Macie started running the job but additional processing would exceed the monthly sensitive data discovery quota for your account or one or more member accounts that the job analyzes data for.</p></li>
/// <li><p>RUNNING - For a one-time job, the job is in progress. For a recurring job, a scheduled run is in progress.</p></li>
/// <li><p>USER_PAUSED - You paused the job. If you paused the job while it had a status of RUNNING and you don't resume it within 30 days of pausing it, the job or job run will expire and be cancelled, depending on the job's type. To check the expiration date, refer to the UserPausedDetails.jobExpiresAt property.</p></li>
/// </ul>
pub fn set_job_status(
mut self,
input: std::option::Option<crate::model::JobStatus>,
) -> Self {
self.job_status = input;
self
}
/// <p>The schedule for running the job. Possible values are:</p>
/// <ul>
/// <li><p>ONE_TIME - The job runs only once.</p></li>
/// <li><p>SCHEDULED - The job runs on a daily, weekly, or monthly basis. The scheduleFrequency property indicates the recurrence pattern for the job.</p></li>
/// </ul>
pub fn job_type(mut self, input: crate::model::JobType) -> Self {
self.job_type = Some(input);
self
}
/// <p>The schedule for running the job. Possible values are:</p>
/// <ul>
/// <li><p>ONE_TIME - The job runs only once.</p></li>
/// <li><p>SCHEDULED - The job runs on a daily, weekly, or monthly basis. The scheduleFrequency property indicates the recurrence pattern for the job.</p></li>
/// </ul>
pub fn set_job_type(mut self, input: std::option::Option<crate::model::JobType>) -> Self {
self.job_type = input;
self
}
/// <p>Specifies whether any account- or bucket-level access errors occurred when the job ran. For a recurring job, this value indicates the error status of the job's most recent run.</p>
pub fn last_run_error_status(mut self, input: crate::model::LastRunErrorStatus) -> Self {
self.last_run_error_status = Some(input);
self
}
/// <p>Specifies whether any account- or bucket-level access errors occurred when the job ran. For a recurring job, this value indicates the error status of the job's most recent run.</p>
pub fn set_last_run_error_status(
mut self,
input: std::option::Option<crate::model::LastRunErrorStatus>,
) -> Self {
self.last_run_error_status = input;
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when the job started. If the job is a recurring job, this value indicates when the most recent run started or, if the job hasn't run yet, when the job was created.</p>
pub fn last_run_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.last_run_time = Some(input);
self
}
/// <p>The date and time, in UTC and extended ISO 8601 format, when the job started. If the job is a recurring job, this value indicates when the most recent run started or, if the job hasn't run yet, when the job was created.</p>
pub fn set_last_run_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.last_run_time = input;
self
}
/// Appends an item to `managed_data_identifier_ids`.
///
/// To override the contents of this collection use [`set_managed_data_identifier_ids`](Self::set_managed_data_identifier_ids).
///
/// <p>An array of unique identifiers, one for each managed data identifier that the job is explicitly configured to include (use) or exclude (not use) when it analyzes data. Inclusion or exclusion depends on the managed data identifier selection type specified for the job (managedDataIdentifierSelector). This value is null if the job's managed data identifier selection type is ALL or the job uses only custom data identifiers (customDataIdentifierIds) to analyze data.</p>
pub fn managed_data_identifier_ids(
mut self,
input: impl Into<std::string::String>,
) -> Self {
let mut v = self.managed_data_identifier_ids.unwrap_or_default();
v.push(input.into());
self.managed_data_identifier_ids = Some(v);
self
}
/// <p>An array of unique identifiers, one for each managed data identifier that the job is explicitly configured to include (use) or exclude (not use) when it analyzes data. Inclusion or exclusion depends on the managed data identifier selection type specified for the job (managedDataIdentifierSelector). This value is null if the job's managed data identifier selection type is ALL or the job uses only custom data identifiers (customDataIdentifierIds) to analyze data.</p>
pub fn set_managed_data_identifier_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.managed_data_identifier_ids = input;
self
}
/// <p>The selection type that determines which managed data identifiers the job uses to analyze data. Possible values are:</p>
/// <ul>
/// <li><p>ALL - Use all the managed data identifiers that Amazon Macie provides.</p></li>
/// <li><p>EXCLUDE - Use all the managed data identifiers that Macie provides except the managed data identifiers specified by the managedDataIdentifierIds property.</p></li>
/// <li><p>INCLUDE - Use only the managed data identifiers specified by the managedDataIdentifierIds property.</p></li>
/// <li><p>NONE - Don't use any managed data identifiers.</p></li>
/// </ul>
/// <p>If this value is null, the job uses all managed data identifiers. If this value is null, ALL, or EXCLUDE for a recurring job, the job also uses new managed data identifiers as they are released.</p>
pub fn managed_data_identifier_selector(
mut self,
input: crate::model::ManagedDataIdentifierSelector,
) -> Self {
self.managed_data_identifier_selector = Some(input);
self
}
/// <p>The selection type that determines which managed data identifiers the job uses to analyze data. Possible values are:</p>
/// <ul>
/// <li><p>ALL - Use all the managed data identifiers that Amazon Macie provides.</p></li>
/// <li><p>EXCLUDE - Use all the managed data identifiers that Macie provides except the managed data identifiers specified by the managedDataIdentifierIds property.</p></li>
/// <li><p>INCLUDE - Use only the managed data identifiers specified by the managedDataIdentifierIds property.</p></li>
/// <li><p>NONE - Don't use any managed data identifiers.</p></li>
/// </ul>
/// <p>If this value is null, the job uses all managed data identifiers. If this value is null, ALL, or EXCLUDE for a recurring job, the job also uses new managed data identifiers as they are released.</p>
pub fn set_managed_data_identifier_selector(
mut self,
input: std::option::Option<crate::model::ManagedDataIdentifierSelector>,
) -> Self {
self.managed_data_identifier_selector = input;
self
}
/// <p>The custom name of the job.</p>
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
/// <p>The custom name of the job.</p>
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The S3 buckets that contain the objects to analyze, and the scope of that analysis.</p>
pub fn s3_job_definition(mut self, input: crate::model::S3JobDefinition) -> Self {
self.s3_job_definition = Some(input);
self
}
/// <p>The S3 buckets that contain the objects to analyze, and the scope of that analysis.</p>
pub fn set_s3_job_definition(
mut self,
input: std::option::Option<crate::model::S3JobDefinition>,
) -> Self {
self.s3_job_definition = input;
self
}
/// <p>The sampling depth, as a percentage, that determines the percentage of eligible objects that the job analyzes.</p>
pub fn sampling_percentage(mut self, input: i32) -> Self {
self.sampling_percentage = Some(input);
self
}
/// <p>The sampling depth, as a percentage, that determines the percentage of eligible objects that the job analyzes.</p>
pub fn set_sampling_percentage(mut self, input: std::option::Option<i32>) -> Self {
self.sampling_percentage = input;
self
}
/// <p>The recurrence pattern for running the job. This value is null if the job is configured to run only once.</p>
pub fn schedule_frequency(mut self, input: crate::model::JobScheduleFrequency) -> Self {
self.schedule_frequency = Some(input);
self
}
/// <p>The recurrence pattern for running the job. This value is null if the job is configured to run only once.</p>
pub fn set_schedule_frequency(
mut self,
input: std::option::Option<crate::model::JobScheduleFrequency>,
) -> Self {
self.schedule_frequency = input;
self
}
/// <p>The number of times that the job has run and processing statistics for the job's current run.</p>
pub fn statistics(mut self, input: crate::model::Statistics) -> Self {
self.statistics = Some(input);
self
}
/// <p>The number of times that the job has run and processing statistics for the job's current run.</p>
pub fn set_statistics(
mut self,
input: std::option::Option<crate::model::Statistics>,
) -> Self {
self.statistics = input;
self
}
/// Adds a key-value pair to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>A map of key-value pairs that specifies which tags (keys and values) are associated with the classification job.</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>A map of key-value pairs that specifies which tags (keys and values) are associated with the classification job.</p>
pub fn set_tags(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.tags = input;
self
}
/// <p>If the current status of the job is USER_PAUSED, specifies when the job was paused and when the job or job run will expire and be cancelled if it isn't resumed. This value is present only if the value for jobStatus is USER_PAUSED.</p>
pub fn user_paused_details(mut self, input: crate::model::UserPausedDetails) -> Self {
self.user_paused_details = Some(input);
self
}
/// <p>If the current status of the job is USER_PAUSED, specifies when the job was paused and when the job or job run will expire and be cancelled if it isn't resumed. This value is present only if the value for jobStatus is USER_PAUSED.</p>
pub fn set_user_paused_details(
mut self,
input: std::option::Option<crate::model::UserPausedDetails>,
) -> Self {
self.user_paused_details = input;
self
}
/// Consumes the builder and constructs a [`DescribeClassificationJobOutput`](crate::output::DescribeClassificationJobOutput).
pub fn build(self) -> crate::output::DescribeClassificationJobOutput {
crate::output::DescribeClassificationJobOutput {
allow_list_ids: self.allow_list_ids,
client_token: self.client_token,
created_at: self.created_at,
custom_data_identifier_ids: self.custom_data_identifier_ids,
description: self.description,
initial_run: self.initial_run.unwrap_or_default(),
job_arn: self.job_arn,
job_id: self.job_id,
job_status: self.job_status,
job_type: self.job_type,
last_run_error_status: self.last_run_error_status,
last_run_time: self.last_run_time,
managed_data_identifier_ids: self.managed_data_identifier_ids,
managed_data_identifier_selector: self.managed_data_identifier_selector,
name: self.name,
s3_job_definition: self.s3_job_definition,
sampling_percentage: self.sampling_percentage.unwrap_or_default(),
schedule_frequency: self.schedule_frequency,
statistics: self.statistics,
tags: self.tags,
user_paused_details: self.user_paused_details,
}
}
}
}
impl DescribeClassificationJobOutput {
/// Creates a new builder-style object to manufacture [`DescribeClassificationJobOutput`](crate::output::DescribeClassificationJobOutput).
pub fn builder() -> crate::output::describe_classification_job_output::Builder {
crate::output::describe_classification_job_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeBucketsOutput {
/// <p>An array of objects, one for each bucket that matches the filter criteria specified in the request.</p>
#[doc(hidden)]
pub buckets: std::option::Option<std::vec::Vec<crate::model::BucketMetadata>>,
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl DescribeBucketsOutput {
/// <p>An array of objects, one for each bucket that matches the filter criteria specified in the request.</p>
pub fn buckets(&self) -> std::option::Option<&[crate::model::BucketMetadata]> {
self.buckets.as_deref()
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
/// See [`DescribeBucketsOutput`](crate::output::DescribeBucketsOutput).
pub mod describe_buckets_output {
/// A builder for [`DescribeBucketsOutput`](crate::output::DescribeBucketsOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) buckets: std::option::Option<std::vec::Vec<crate::model::BucketMetadata>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `buckets`.
///
/// To override the contents of this collection use [`set_buckets`](Self::set_buckets).
///
/// <p>An array of objects, one for each bucket that matches the filter criteria specified in the request.</p>
pub fn buckets(mut self, input: crate::model::BucketMetadata) -> Self {
let mut v = self.buckets.unwrap_or_default();
v.push(input);
self.buckets = Some(v);
self
}
/// <p>An array of objects, one for each bucket that matches the filter criteria specified in the request.</p>
pub fn set_buckets(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::BucketMetadata>>,
) -> Self {
self.buckets = input;
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`DescribeBucketsOutput`](crate::output::DescribeBucketsOutput).
pub fn build(self) -> crate::output::DescribeBucketsOutput {
crate::output::DescribeBucketsOutput {
buckets: self.buckets,
next_token: self.next_token,
}
}
}
}
impl DescribeBucketsOutput {
/// Creates a new builder-style object to manufacture [`DescribeBucketsOutput`](crate::output::DescribeBucketsOutput).
pub fn builder() -> crate::output::describe_buckets_output::Builder {
crate::output::describe_buckets_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteMemberOutput {}
/// See [`DeleteMemberOutput`](crate::output::DeleteMemberOutput).
pub mod delete_member_output {
/// A builder for [`DeleteMemberOutput`](crate::output::DeleteMemberOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`DeleteMemberOutput`](crate::output::DeleteMemberOutput).
pub fn build(self) -> crate::output::DeleteMemberOutput {
crate::output::DeleteMemberOutput {}
}
}
}
impl DeleteMemberOutput {
/// Creates a new builder-style object to manufacture [`DeleteMemberOutput`](crate::output::DeleteMemberOutput).
pub fn builder() -> crate::output::delete_member_output::Builder {
crate::output::delete_member_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteInvitationsOutput {
/// <p>An array of objects, one for each account whose invitation hasn't been deleted. Each object identifies the account and explains why the request hasn't been processed for that account.</p>
#[doc(hidden)]
pub unprocessed_accounts: std::option::Option<std::vec::Vec<crate::model::UnprocessedAccount>>,
}
impl DeleteInvitationsOutput {
/// <p>An array of objects, one for each account whose invitation hasn't been deleted. Each object identifies the account and explains why the request hasn't been processed for that account.</p>
pub fn unprocessed_accounts(&self) -> std::option::Option<&[crate::model::UnprocessedAccount]> {
self.unprocessed_accounts.as_deref()
}
}
/// See [`DeleteInvitationsOutput`](crate::output::DeleteInvitationsOutput).
pub mod delete_invitations_output {
/// A builder for [`DeleteInvitationsOutput`](crate::output::DeleteInvitationsOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) unprocessed_accounts:
std::option::Option<std::vec::Vec<crate::model::UnprocessedAccount>>,
}
impl Builder {
/// Appends an item to `unprocessed_accounts`.
///
/// To override the contents of this collection use [`set_unprocessed_accounts`](Self::set_unprocessed_accounts).
///
/// <p>An array of objects, one for each account whose invitation hasn't been deleted. Each object identifies the account and explains why the request hasn't been processed for that account.</p>
pub fn unprocessed_accounts(mut self, input: crate::model::UnprocessedAccount) -> Self {
let mut v = self.unprocessed_accounts.unwrap_or_default();
v.push(input);
self.unprocessed_accounts = Some(v);
self
}
/// <p>An array of objects, one for each account whose invitation hasn't been deleted. Each object identifies the account and explains why the request hasn't been processed for that account.</p>
pub fn set_unprocessed_accounts(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::UnprocessedAccount>>,
) -> Self {
self.unprocessed_accounts = input;
self
}
/// Consumes the builder and constructs a [`DeleteInvitationsOutput`](crate::output::DeleteInvitationsOutput).
pub fn build(self) -> crate::output::DeleteInvitationsOutput {
crate::output::DeleteInvitationsOutput {
unprocessed_accounts: self.unprocessed_accounts,
}
}
}
}
impl DeleteInvitationsOutput {
/// Creates a new builder-style object to manufacture [`DeleteInvitationsOutput`](crate::output::DeleteInvitationsOutput).
pub fn builder() -> crate::output::delete_invitations_output::Builder {
crate::output::delete_invitations_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteFindingsFilterOutput {}
/// See [`DeleteFindingsFilterOutput`](crate::output::DeleteFindingsFilterOutput).
pub mod delete_findings_filter_output {
/// A builder for [`DeleteFindingsFilterOutput`](crate::output::DeleteFindingsFilterOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`DeleteFindingsFilterOutput`](crate::output::DeleteFindingsFilterOutput).
pub fn build(self) -> crate::output::DeleteFindingsFilterOutput {
crate::output::DeleteFindingsFilterOutput {}
}
}
}
impl DeleteFindingsFilterOutput {
/// Creates a new builder-style object to manufacture [`DeleteFindingsFilterOutput`](crate::output::DeleteFindingsFilterOutput).
pub fn builder() -> crate::output::delete_findings_filter_output::Builder {
crate::output::delete_findings_filter_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteCustomDataIdentifierOutput {}
/// See [`DeleteCustomDataIdentifierOutput`](crate::output::DeleteCustomDataIdentifierOutput).
pub mod delete_custom_data_identifier_output {
/// A builder for [`DeleteCustomDataIdentifierOutput`](crate::output::DeleteCustomDataIdentifierOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`DeleteCustomDataIdentifierOutput`](crate::output::DeleteCustomDataIdentifierOutput).
pub fn build(self) -> crate::output::DeleteCustomDataIdentifierOutput {
crate::output::DeleteCustomDataIdentifierOutput {}
}
}
}
impl DeleteCustomDataIdentifierOutput {
/// Creates a new builder-style object to manufacture [`DeleteCustomDataIdentifierOutput`](crate::output::DeleteCustomDataIdentifierOutput).
pub fn builder() -> crate::output::delete_custom_data_identifier_output::Builder {
crate::output::delete_custom_data_identifier_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteAllowListOutput {}
/// See [`DeleteAllowListOutput`](crate::output::DeleteAllowListOutput).
pub mod delete_allow_list_output {
/// A builder for [`DeleteAllowListOutput`](crate::output::DeleteAllowListOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`DeleteAllowListOutput`](crate::output::DeleteAllowListOutput).
pub fn build(self) -> crate::output::DeleteAllowListOutput {
crate::output::DeleteAllowListOutput {}
}
}
}
impl DeleteAllowListOutput {
/// Creates a new builder-style object to manufacture [`DeleteAllowListOutput`](crate::output::DeleteAllowListOutput).
pub fn builder() -> crate::output::delete_allow_list_output::Builder {
crate::output::delete_allow_list_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeclineInvitationsOutput {
/// <p>An array of objects, one for each account whose invitation hasn't been declined. Each object identifies the account and explains why the request hasn't been processed for that account.</p>
#[doc(hidden)]
pub unprocessed_accounts: std::option::Option<std::vec::Vec<crate::model::UnprocessedAccount>>,
}
impl DeclineInvitationsOutput {
/// <p>An array of objects, one for each account whose invitation hasn't been declined. Each object identifies the account and explains why the request hasn't been processed for that account.</p>
pub fn unprocessed_accounts(&self) -> std::option::Option<&[crate::model::UnprocessedAccount]> {
self.unprocessed_accounts.as_deref()
}
}
/// See [`DeclineInvitationsOutput`](crate::output::DeclineInvitationsOutput).
pub mod decline_invitations_output {
/// A builder for [`DeclineInvitationsOutput`](crate::output::DeclineInvitationsOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) unprocessed_accounts:
std::option::Option<std::vec::Vec<crate::model::UnprocessedAccount>>,
}
impl Builder {
/// Appends an item to `unprocessed_accounts`.
///
/// To override the contents of this collection use [`set_unprocessed_accounts`](Self::set_unprocessed_accounts).
///
/// <p>An array of objects, one for each account whose invitation hasn't been declined. Each object identifies the account and explains why the request hasn't been processed for that account.</p>
pub fn unprocessed_accounts(mut self, input: crate::model::UnprocessedAccount) -> Self {
let mut v = self.unprocessed_accounts.unwrap_or_default();
v.push(input);
self.unprocessed_accounts = Some(v);
self
}
/// <p>An array of objects, one for each account whose invitation hasn't been declined. Each object identifies the account and explains why the request hasn't been processed for that account.</p>
pub fn set_unprocessed_accounts(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::UnprocessedAccount>>,
) -> Self {
self.unprocessed_accounts = input;
self
}
/// Consumes the builder and constructs a [`DeclineInvitationsOutput`](crate::output::DeclineInvitationsOutput).
pub fn build(self) -> crate::output::DeclineInvitationsOutput {
crate::output::DeclineInvitationsOutput {
unprocessed_accounts: self.unprocessed_accounts,
}
}
}
}
impl DeclineInvitationsOutput {
/// Creates a new builder-style object to manufacture [`DeclineInvitationsOutput`](crate::output::DeclineInvitationsOutput).
pub fn builder() -> crate::output::decline_invitations_output::Builder {
crate::output::decline_invitations_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateSampleFindingsOutput {}
/// See [`CreateSampleFindingsOutput`](crate::output::CreateSampleFindingsOutput).
pub mod create_sample_findings_output {
/// A builder for [`CreateSampleFindingsOutput`](crate::output::CreateSampleFindingsOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`CreateSampleFindingsOutput`](crate::output::CreateSampleFindingsOutput).
pub fn build(self) -> crate::output::CreateSampleFindingsOutput {
crate::output::CreateSampleFindingsOutput {}
}
}
}
impl CreateSampleFindingsOutput {
/// Creates a new builder-style object to manufacture [`CreateSampleFindingsOutput`](crate::output::CreateSampleFindingsOutput).
pub fn builder() -> crate::output::create_sample_findings_output::Builder {
crate::output::create_sample_findings_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateMemberOutput {
/// <p>The Amazon Resource Name (ARN) of the account that was associated with the administrator account.</p>
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
}
impl CreateMemberOutput {
/// <p>The Amazon Resource Name (ARN) of the account that was associated with the administrator account.</p>
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
}
/// See [`CreateMemberOutput`](crate::output::CreateMemberOutput).
pub mod create_member_output {
/// A builder for [`CreateMemberOutput`](crate::output::CreateMemberOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) arn: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The Amazon Resource Name (ARN) of the account that was associated with the administrator account.</p>
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the account that was associated with the administrator account.</p>
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
/// Consumes the builder and constructs a [`CreateMemberOutput`](crate::output::CreateMemberOutput).
pub fn build(self) -> crate::output::CreateMemberOutput {
crate::output::CreateMemberOutput { arn: self.arn }
}
}
}
impl CreateMemberOutput {
/// Creates a new builder-style object to manufacture [`CreateMemberOutput`](crate::output::CreateMemberOutput).
pub fn builder() -> crate::output::create_member_output::Builder {
crate::output::create_member_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateInvitationsOutput {
/// <p>An array of objects, one for each account whose invitation hasn't been processed. Each object identifies the account and explains why the invitation hasn't been processed for the account.</p>
#[doc(hidden)]
pub unprocessed_accounts: std::option::Option<std::vec::Vec<crate::model::UnprocessedAccount>>,
}
impl CreateInvitationsOutput {
/// <p>An array of objects, one for each account whose invitation hasn't been processed. Each object identifies the account and explains why the invitation hasn't been processed for the account.</p>
pub fn unprocessed_accounts(&self) -> std::option::Option<&[crate::model::UnprocessedAccount]> {
self.unprocessed_accounts.as_deref()
}
}
/// See [`CreateInvitationsOutput`](crate::output::CreateInvitationsOutput).
pub mod create_invitations_output {
/// A builder for [`CreateInvitationsOutput`](crate::output::CreateInvitationsOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) unprocessed_accounts:
std::option::Option<std::vec::Vec<crate::model::UnprocessedAccount>>,
}
impl Builder {
/// Appends an item to `unprocessed_accounts`.
///
/// To override the contents of this collection use [`set_unprocessed_accounts`](Self::set_unprocessed_accounts).
///
/// <p>An array of objects, one for each account whose invitation hasn't been processed. Each object identifies the account and explains why the invitation hasn't been processed for the account.</p>
pub fn unprocessed_accounts(mut self, input: crate::model::UnprocessedAccount) -> Self {
let mut v = self.unprocessed_accounts.unwrap_or_default();
v.push(input);
self.unprocessed_accounts = Some(v);
self
}
/// <p>An array of objects, one for each account whose invitation hasn't been processed. Each object identifies the account and explains why the invitation hasn't been processed for the account.</p>
pub fn set_unprocessed_accounts(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::UnprocessedAccount>>,
) -> Self {
self.unprocessed_accounts = input;
self
}
/// Consumes the builder and constructs a [`CreateInvitationsOutput`](crate::output::CreateInvitationsOutput).
pub fn build(self) -> crate::output::CreateInvitationsOutput {
crate::output::CreateInvitationsOutput {
unprocessed_accounts: self.unprocessed_accounts,
}
}
}
}
impl CreateInvitationsOutput {
/// Creates a new builder-style object to manufacture [`CreateInvitationsOutput`](crate::output::CreateInvitationsOutput).
pub fn builder() -> crate::output::create_invitations_output::Builder {
crate::output::create_invitations_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateFindingsFilterOutput {
/// <p>The Amazon Resource Name (ARN) of the filter that was created.</p>
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
/// <p>The unique identifier for the filter that was created.</p>
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
}
impl CreateFindingsFilterOutput {
/// <p>The Amazon Resource Name (ARN) of the filter that was created.</p>
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>The unique identifier for the filter that was created.</p>
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
}
/// See [`CreateFindingsFilterOutput`](crate::output::CreateFindingsFilterOutput).
pub mod create_findings_filter_output {
/// A builder for [`CreateFindingsFilterOutput`](crate::output::CreateFindingsFilterOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) id: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The Amazon Resource Name (ARN) of the filter that was created.</p>
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the filter that was created.</p>
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>The unique identifier for the filter that was created.</p>
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
/// <p>The unique identifier for the filter that was created.</p>
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.id = input;
self
}
/// Consumes the builder and constructs a [`CreateFindingsFilterOutput`](crate::output::CreateFindingsFilterOutput).
pub fn build(self) -> crate::output::CreateFindingsFilterOutput {
crate::output::CreateFindingsFilterOutput {
arn: self.arn,
id: self.id,
}
}
}
}
impl CreateFindingsFilterOutput {
/// Creates a new builder-style object to manufacture [`CreateFindingsFilterOutput`](crate::output::CreateFindingsFilterOutput).
pub fn builder() -> crate::output::create_findings_filter_output::Builder {
crate::output::create_findings_filter_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateCustomDataIdentifierOutput {
/// <p>The unique identifier for the custom data identifier that was created.</p>
#[doc(hidden)]
pub custom_data_identifier_id: std::option::Option<std::string::String>,
}
impl CreateCustomDataIdentifierOutput {
/// <p>The unique identifier for the custom data identifier that was created.</p>
pub fn custom_data_identifier_id(&self) -> std::option::Option<&str> {
self.custom_data_identifier_id.as_deref()
}
}
/// See [`CreateCustomDataIdentifierOutput`](crate::output::CreateCustomDataIdentifierOutput).
pub mod create_custom_data_identifier_output {
/// A builder for [`CreateCustomDataIdentifierOutput`](crate::output::CreateCustomDataIdentifierOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) custom_data_identifier_id: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The unique identifier for the custom data identifier that was created.</p>
pub fn custom_data_identifier_id(mut self, input: impl Into<std::string::String>) -> Self {
self.custom_data_identifier_id = Some(input.into());
self
}
/// <p>The unique identifier for the custom data identifier that was created.</p>
pub fn set_custom_data_identifier_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.custom_data_identifier_id = input;
self
}
/// Consumes the builder and constructs a [`CreateCustomDataIdentifierOutput`](crate::output::CreateCustomDataIdentifierOutput).
pub fn build(self) -> crate::output::CreateCustomDataIdentifierOutput {
crate::output::CreateCustomDataIdentifierOutput {
custom_data_identifier_id: self.custom_data_identifier_id,
}
}
}
}
impl CreateCustomDataIdentifierOutput {
/// Creates a new builder-style object to manufacture [`CreateCustomDataIdentifierOutput`](crate::output::CreateCustomDataIdentifierOutput).
pub fn builder() -> crate::output::create_custom_data_identifier_output::Builder {
crate::output::create_custom_data_identifier_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateClassificationJobOutput {
/// <p>The Amazon Resource Name (ARN) of the job.</p>
#[doc(hidden)]
pub job_arn: std::option::Option<std::string::String>,
/// <p>The unique identifier for the job.</p>
#[doc(hidden)]
pub job_id: std::option::Option<std::string::String>,
}
impl CreateClassificationJobOutput {
/// <p>The Amazon Resource Name (ARN) of the job.</p>
pub fn job_arn(&self) -> std::option::Option<&str> {
self.job_arn.as_deref()
}
/// <p>The unique identifier for the job.</p>
pub fn job_id(&self) -> std::option::Option<&str> {
self.job_id.as_deref()
}
}
/// See [`CreateClassificationJobOutput`](crate::output::CreateClassificationJobOutput).
pub mod create_classification_job_output {
/// A builder for [`CreateClassificationJobOutput`](crate::output::CreateClassificationJobOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) job_arn: std::option::Option<std::string::String>,
pub(crate) job_id: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The Amazon Resource Name (ARN) of the job.</p>
pub fn job_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.job_arn = Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the job.</p>
pub fn set_job_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.job_arn = input;
self
}
/// <p>The unique identifier for the job.</p>
pub fn job_id(mut self, input: impl Into<std::string::String>) -> Self {
self.job_id = Some(input.into());
self
}
/// <p>The unique identifier for the job.</p>
pub fn set_job_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.job_id = input;
self
}
/// Consumes the builder and constructs a [`CreateClassificationJobOutput`](crate::output::CreateClassificationJobOutput).
pub fn build(self) -> crate::output::CreateClassificationJobOutput {
crate::output::CreateClassificationJobOutput {
job_arn: self.job_arn,
job_id: self.job_id,
}
}
}
}
impl CreateClassificationJobOutput {
/// Creates a new builder-style object to manufacture [`CreateClassificationJobOutput`](crate::output::CreateClassificationJobOutput).
pub fn builder() -> crate::output::create_classification_job_output::Builder {
crate::output::create_classification_job_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateAllowListOutput {
/// <p>The Amazon Resource Name (ARN) of the allow list.</p>
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
/// <p>The unique identifier for the allow list.</p>
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
}
impl CreateAllowListOutput {
/// <p>The Amazon Resource Name (ARN) of the allow list.</p>
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>The unique identifier for the allow list.</p>
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
}
/// See [`CreateAllowListOutput`](crate::output::CreateAllowListOutput).
pub mod create_allow_list_output {
/// A builder for [`CreateAllowListOutput`](crate::output::CreateAllowListOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) id: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The Amazon Resource Name (ARN) of the allow list.</p>
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the allow list.</p>
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>The unique identifier for the allow list.</p>
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
/// <p>The unique identifier for the allow list.</p>
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.id = input;
self
}
/// Consumes the builder and constructs a [`CreateAllowListOutput`](crate::output::CreateAllowListOutput).
pub fn build(self) -> crate::output::CreateAllowListOutput {
crate::output::CreateAllowListOutput {
arn: self.arn,
id: self.id,
}
}
}
}
impl CreateAllowListOutput {
/// Creates a new builder-style object to manufacture [`CreateAllowListOutput`](crate::output::CreateAllowListOutput).
pub fn builder() -> crate::output::create_allow_list_output::Builder {
crate::output::create_allow_list_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct BatchGetCustomDataIdentifiersOutput {
/// <p>An array of objects, one for each custom data identifier that matches the criteria specified in the request.</p>
#[doc(hidden)]
pub custom_data_identifiers:
std::option::Option<std::vec::Vec<crate::model::BatchGetCustomDataIdentifierSummary>>,
/// <p>An array of custom data identifier IDs, one for each custom data identifier that was specified in the request but doesn't correlate to an existing custom data identifier.</p>
#[doc(hidden)]
pub not_found_identifier_ids: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl BatchGetCustomDataIdentifiersOutput {
/// <p>An array of objects, one for each custom data identifier that matches the criteria specified in the request.</p>
pub fn custom_data_identifiers(
&self,
) -> std::option::Option<&[crate::model::BatchGetCustomDataIdentifierSummary]> {
self.custom_data_identifiers.as_deref()
}
/// <p>An array of custom data identifier IDs, one for each custom data identifier that was specified in the request but doesn't correlate to an existing custom data identifier.</p>
pub fn not_found_identifier_ids(&self) -> std::option::Option<&[std::string::String]> {
self.not_found_identifier_ids.as_deref()
}
}
/// See [`BatchGetCustomDataIdentifiersOutput`](crate::output::BatchGetCustomDataIdentifiersOutput).
pub mod batch_get_custom_data_identifiers_output {
/// A builder for [`BatchGetCustomDataIdentifiersOutput`](crate::output::BatchGetCustomDataIdentifiersOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) custom_data_identifiers:
std::option::Option<std::vec::Vec<crate::model::BatchGetCustomDataIdentifierSummary>>,
pub(crate) not_found_identifier_ids:
std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
/// Appends an item to `custom_data_identifiers`.
///
/// To override the contents of this collection use [`set_custom_data_identifiers`](Self::set_custom_data_identifiers).
///
/// <p>An array of objects, one for each custom data identifier that matches the criteria specified in the request.</p>
pub fn custom_data_identifiers(
mut self,
input: crate::model::BatchGetCustomDataIdentifierSummary,
) -> Self {
let mut v = self.custom_data_identifiers.unwrap_or_default();
v.push(input);
self.custom_data_identifiers = Some(v);
self
}
/// <p>An array of objects, one for each custom data identifier that matches the criteria specified in the request.</p>
pub fn set_custom_data_identifiers(
mut self,
input: std::option::Option<
std::vec::Vec<crate::model::BatchGetCustomDataIdentifierSummary>,
>,
) -> Self {
self.custom_data_identifiers = input;
self
}
/// Appends an item to `not_found_identifier_ids`.
///
/// To override the contents of this collection use [`set_not_found_identifier_ids`](Self::set_not_found_identifier_ids).
///
/// <p>An array of custom data identifier IDs, one for each custom data identifier that was specified in the request but doesn't correlate to an existing custom data identifier.</p>
pub fn not_found_identifier_ids(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.not_found_identifier_ids.unwrap_or_default();
v.push(input.into());
self.not_found_identifier_ids = Some(v);
self
}
/// <p>An array of custom data identifier IDs, one for each custom data identifier that was specified in the request but doesn't correlate to an existing custom data identifier.</p>
pub fn set_not_found_identifier_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.not_found_identifier_ids = input;
self
}
/// Consumes the builder and constructs a [`BatchGetCustomDataIdentifiersOutput`](crate::output::BatchGetCustomDataIdentifiersOutput).
pub fn build(self) -> crate::output::BatchGetCustomDataIdentifiersOutput {
crate::output::BatchGetCustomDataIdentifiersOutput {
custom_data_identifiers: self.custom_data_identifiers,
not_found_identifier_ids: self.not_found_identifier_ids,
}
}
}
}
impl BatchGetCustomDataIdentifiersOutput {
/// Creates a new builder-style object to manufacture [`BatchGetCustomDataIdentifiersOutput`](crate::output::BatchGetCustomDataIdentifiersOutput).
pub fn builder() -> crate::output::batch_get_custom_data_identifiers_output::Builder {
crate::output::batch_get_custom_data_identifiers_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct AcceptInvitationOutput {}
/// See [`AcceptInvitationOutput`](crate::output::AcceptInvitationOutput).
pub mod accept_invitation_output {
/// A builder for [`AcceptInvitationOutput`](crate::output::AcceptInvitationOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`AcceptInvitationOutput`](crate::output::AcceptInvitationOutput).
pub fn build(self) -> crate::output::AcceptInvitationOutput {
crate::output::AcceptInvitationOutput {}
}
}
}
impl AcceptInvitationOutput {
/// Creates a new builder-style object to manufacture [`AcceptInvitationOutput`](crate::output::AcceptInvitationOutput).
pub fn builder() -> crate::output::accept_invitation_output::Builder {
crate::output::accept_invitation_output::Builder::default()
}
}