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 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[derive(Debug)]
pub(crate) struct Handle {
pub(crate) client: aws_smithy_client::Client<
aws_smithy_client::erase::DynConnector,
aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
>,
pub(crate) conf: crate::Config,
}
/// Client for Amazon WorkMail
///
/// Client for invoking operations on Amazon WorkMail. Each operation on Amazon WorkMail is a method on this
/// this struct. `.send()` MUST be invoked on the generated operations to dispatch the request to the service.
///
/// # Examples
/// **Constructing a client and invoking an operation**
/// ```rust,no_run
/// # async fn docs() {
/// // create a shared configuration. This can be used & shared between multiple service clients.
/// let shared_config = aws_config::load_from_env().await;
/// let client = aws_sdk_workmail::Client::new(&shared_config);
/// // invoke an operation
/// /* let rsp = client
/// .<operation_name>().
/// .<param>("some value")
/// .send().await; */
/// # }
/// ```
/// **Constructing a client with custom configuration**
/// ```rust,no_run
/// use aws_config::RetryConfig;
/// # async fn docs() {
/// let shared_config = aws_config::load_from_env().await;
/// let config = aws_sdk_workmail::config::Builder::from(&shared_config)
/// .retry_config(RetryConfig::disabled())
/// .build();
/// let client = aws_sdk_workmail::Client::from_conf(config);
/// # }
#[derive(std::fmt::Debug)]
pub struct Client {
handle: std::sync::Arc<Handle>,
}
impl std::clone::Clone for Client {
fn clone(&self) -> Self {
Self {
handle: self.handle.clone(),
}
}
}
#[doc(inline)]
pub use aws_smithy_client::Builder;
impl
From<
aws_smithy_client::Client<
aws_smithy_client::erase::DynConnector,
aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
>,
> for Client
{
fn from(
client: aws_smithy_client::Client<
aws_smithy_client::erase::DynConnector,
aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
>,
) -> Self {
Self::with_config(client, crate::Config::builder().build())
}
}
impl Client {
/// Creates a client with the given service configuration.
pub fn with_config(
client: aws_smithy_client::Client<
aws_smithy_client::erase::DynConnector,
aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
>,
conf: crate::Config,
) -> Self {
Self {
handle: std::sync::Arc::new(Handle { client, conf }),
}
}
/// Returns the client's configuration.
pub fn conf(&self) -> &crate::Config {
&self.handle.conf
}
}
impl Client {
/// Constructs a fluent builder for the [`AssociateDelegateToResource`](crate::client::fluent_builders::AssociateDelegateToResource) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::AssociateDelegateToResource::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::AssociateDelegateToResource::set_organization_id): <p>The organization under which the resource exists.</p>
/// - [`resource_id(impl Into<String>)`](crate::client::fluent_builders::AssociateDelegateToResource::resource_id) / [`set_resource_id(Option<String>)`](crate::client::fluent_builders::AssociateDelegateToResource::set_resource_id): <p>The resource for which members (users or groups) are associated.</p>
/// - [`entity_id(impl Into<String>)`](crate::client::fluent_builders::AssociateDelegateToResource::entity_id) / [`set_entity_id(Option<String>)`](crate::client::fluent_builders::AssociateDelegateToResource::set_entity_id): <p>The member (user or group) to associate to the resource.</p>
/// - On success, responds with [`AssociateDelegateToResourceOutput`](crate::output::AssociateDelegateToResourceOutput)
/// - On failure, responds with [`SdkError<AssociateDelegateToResourceError>`](crate::error::AssociateDelegateToResourceError)
pub fn associate_delegate_to_resource(&self) -> fluent_builders::AssociateDelegateToResource {
fluent_builders::AssociateDelegateToResource::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`AssociateMemberToGroup`](crate::client::fluent_builders::AssociateMemberToGroup) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::AssociateMemberToGroup::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::AssociateMemberToGroup::set_organization_id): <p>The organization under which the group exists.</p>
/// - [`group_id(impl Into<String>)`](crate::client::fluent_builders::AssociateMemberToGroup::group_id) / [`set_group_id(Option<String>)`](crate::client::fluent_builders::AssociateMemberToGroup::set_group_id): <p>The group to which the member (user or group) is associated.</p>
/// - [`member_id(impl Into<String>)`](crate::client::fluent_builders::AssociateMemberToGroup::member_id) / [`set_member_id(Option<String>)`](crate::client::fluent_builders::AssociateMemberToGroup::set_member_id): <p>The member (user or group) to associate to the group.</p>
/// - On success, responds with [`AssociateMemberToGroupOutput`](crate::output::AssociateMemberToGroupOutput)
/// - On failure, responds with [`SdkError<AssociateMemberToGroupError>`](crate::error::AssociateMemberToGroupError)
pub fn associate_member_to_group(&self) -> fluent_builders::AssociateMemberToGroup {
fluent_builders::AssociateMemberToGroup::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CancelMailboxExportJob`](crate::client::fluent_builders::CancelMailboxExportJob) operation.
///
/// - The fluent builder is configurable:
/// - [`client_token(impl Into<String>)`](crate::client::fluent_builders::CancelMailboxExportJob::client_token) / [`set_client_token(Option<String>)`](crate::client::fluent_builders::CancelMailboxExportJob::set_client_token): <p>The idempotency token for the client request.</p>
/// - [`job_id(impl Into<String>)`](crate::client::fluent_builders::CancelMailboxExportJob::job_id) / [`set_job_id(Option<String>)`](crate::client::fluent_builders::CancelMailboxExportJob::set_job_id): <p>The job ID.</p>
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::CancelMailboxExportJob::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::CancelMailboxExportJob::set_organization_id): <p>The organization ID.</p>
/// - On success, responds with [`CancelMailboxExportJobOutput`](crate::output::CancelMailboxExportJobOutput)
/// - On failure, responds with [`SdkError<CancelMailboxExportJobError>`](crate::error::CancelMailboxExportJobError)
pub fn cancel_mailbox_export_job(&self) -> fluent_builders::CancelMailboxExportJob {
fluent_builders::CancelMailboxExportJob::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateAlias`](crate::client::fluent_builders::CreateAlias) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::CreateAlias::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::CreateAlias::set_organization_id): <p>The organization under which the member (user or group) exists.</p>
/// - [`entity_id(impl Into<String>)`](crate::client::fluent_builders::CreateAlias::entity_id) / [`set_entity_id(Option<String>)`](crate::client::fluent_builders::CreateAlias::set_entity_id): <p>The member (user or group) to which this alias is added.</p>
/// - [`alias(impl Into<String>)`](crate::client::fluent_builders::CreateAlias::alias) / [`set_alias(Option<String>)`](crate::client::fluent_builders::CreateAlias::set_alias): <p>The alias to add to the member set.</p>
/// - On success, responds with [`CreateAliasOutput`](crate::output::CreateAliasOutput)
/// - On failure, responds with [`SdkError<CreateAliasError>`](crate::error::CreateAliasError)
pub fn create_alias(&self) -> fluent_builders::CreateAlias {
fluent_builders::CreateAlias::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateGroup`](crate::client::fluent_builders::CreateGroup) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::CreateGroup::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::CreateGroup::set_organization_id): <p>The organization under which the group is to be created.</p>
/// - [`name(impl Into<String>)`](crate::client::fluent_builders::CreateGroup::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::CreateGroup::set_name): <p>The name of the group.</p>
/// - On success, responds with [`CreateGroupOutput`](crate::output::CreateGroupOutput) with field(s):
/// - [`group_id(Option<String>)`](crate::output::CreateGroupOutput::group_id): <p>The identifier of the group.</p>
/// - On failure, responds with [`SdkError<CreateGroupError>`](crate::error::CreateGroupError)
pub fn create_group(&self) -> fluent_builders::CreateGroup {
fluent_builders::CreateGroup::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateMobileDeviceAccessRule`](crate::client::fluent_builders::CreateMobileDeviceAccessRule) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::set_organization_id): <p>The Amazon WorkMail organization under which the rule will be created.</p>
/// - [`client_token(impl Into<String>)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::client_token) / [`set_client_token(Option<String>)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::set_client_token): <p>The idempotency token for the client request.</p>
/// - [`name(impl Into<String>)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::set_name): <p>The rule name.</p>
/// - [`description(impl Into<String>)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::description) / [`set_description(Option<String>)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::set_description): <p>The rule description.</p>
/// - [`effect(MobileDeviceAccessRuleEffect)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::effect) / [`set_effect(Option<MobileDeviceAccessRuleEffect>)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::set_effect): <p>The effect of the rule when it matches. Allowed values are <code>ALLOW</code> or <code>DENY</code>.</p>
/// - [`device_types(Vec<String>)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::device_types) / [`set_device_types(Option<Vec<String>>)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::set_device_types): <p>Device types that the rule will match.</p>
/// - [`not_device_types(Vec<String>)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::not_device_types) / [`set_not_device_types(Option<Vec<String>>)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::set_not_device_types): <p>Device types that the rule <b>will not</b> match. All other device types will match.</p>
/// - [`device_models(Vec<String>)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::device_models) / [`set_device_models(Option<Vec<String>>)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::set_device_models): <p>Device models that the rule will match.</p>
/// - [`not_device_models(Vec<String>)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::not_device_models) / [`set_not_device_models(Option<Vec<String>>)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::set_not_device_models): <p>Device models that the rule <b>will not</b> match. All other device models will match.</p>
/// - [`device_operating_systems(Vec<String>)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::device_operating_systems) / [`set_device_operating_systems(Option<Vec<String>>)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::set_device_operating_systems): <p>Device operating systems that the rule will match.</p>
/// - [`not_device_operating_systems(Vec<String>)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::not_device_operating_systems) / [`set_not_device_operating_systems(Option<Vec<String>>)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::set_not_device_operating_systems): <p>Device operating systems that the rule <b>will not</b> match. All other device operating systems will match.</p>
/// - [`device_user_agents(Vec<String>)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::device_user_agents) / [`set_device_user_agents(Option<Vec<String>>)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::set_device_user_agents): <p>Device user agents that the rule will match.</p>
/// - [`not_device_user_agents(Vec<String>)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::not_device_user_agents) / [`set_not_device_user_agents(Option<Vec<String>>)`](crate::client::fluent_builders::CreateMobileDeviceAccessRule::set_not_device_user_agents): <p>Device user agents that the rule <b>will not</b> match. All other device user agents will match.</p>
/// - On success, responds with [`CreateMobileDeviceAccessRuleOutput`](crate::output::CreateMobileDeviceAccessRuleOutput) with field(s):
/// - [`mobile_device_access_rule_id(Option<String>)`](crate::output::CreateMobileDeviceAccessRuleOutput::mobile_device_access_rule_id): <p>The identifier for the newly created mobile device access rule.</p>
/// - On failure, responds with [`SdkError<CreateMobileDeviceAccessRuleError>`](crate::error::CreateMobileDeviceAccessRuleError)
pub fn create_mobile_device_access_rule(
&self,
) -> fluent_builders::CreateMobileDeviceAccessRule {
fluent_builders::CreateMobileDeviceAccessRule::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateOrganization`](crate::client::fluent_builders::CreateOrganization) operation.
///
/// - The fluent builder is configurable:
/// - [`directory_id(impl Into<String>)`](crate::client::fluent_builders::CreateOrganization::directory_id) / [`set_directory_id(Option<String>)`](crate::client::fluent_builders::CreateOrganization::set_directory_id): <p>The AWS Directory Service directory ID.</p>
/// - [`alias(impl Into<String>)`](crate::client::fluent_builders::CreateOrganization::alias) / [`set_alias(Option<String>)`](crate::client::fluent_builders::CreateOrganization::set_alias): <p>The organization alias.</p>
/// - [`client_token(impl Into<String>)`](crate::client::fluent_builders::CreateOrganization::client_token) / [`set_client_token(Option<String>)`](crate::client::fluent_builders::CreateOrganization::set_client_token): <p>The idempotency token associated with the request.</p>
/// - [`domains(Vec<Domain>)`](crate::client::fluent_builders::CreateOrganization::domains) / [`set_domains(Option<Vec<Domain>>)`](crate::client::fluent_builders::CreateOrganization::set_domains): <p>The email domains to associate with the organization.</p>
/// - [`kms_key_arn(impl Into<String>)`](crate::client::fluent_builders::CreateOrganization::kms_key_arn) / [`set_kms_key_arn(Option<String>)`](crate::client::fluent_builders::CreateOrganization::set_kms_key_arn): <p>The Amazon Resource Name (ARN) of a customer managed master key from AWS KMS.</p>
/// - [`enable_interoperability(bool)`](crate::client::fluent_builders::CreateOrganization::enable_interoperability) / [`set_enable_interoperability(bool)`](crate::client::fluent_builders::CreateOrganization::set_enable_interoperability): <p>When <code>true</code>, allows organization interoperability between Amazon WorkMail and Microsoft Exchange. Can only be set to <code>true</code> if an AD Connector directory ID is included in the request.</p>
/// - On success, responds with [`CreateOrganizationOutput`](crate::output::CreateOrganizationOutput) with field(s):
/// - [`organization_id(Option<String>)`](crate::output::CreateOrganizationOutput::organization_id): <p>The organization ID.</p>
/// - On failure, responds with [`SdkError<CreateOrganizationError>`](crate::error::CreateOrganizationError)
pub fn create_organization(&self) -> fluent_builders::CreateOrganization {
fluent_builders::CreateOrganization::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateResource`](crate::client::fluent_builders::CreateResource) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::CreateResource::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::CreateResource::set_organization_id): <p>The identifier associated with the organization for which the resource is created.</p>
/// - [`name(impl Into<String>)`](crate::client::fluent_builders::CreateResource::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::CreateResource::set_name): <p>The name of the new resource.</p>
/// - [`r#type(ResourceType)`](crate::client::fluent_builders::CreateResource::type) / [`set_type(Option<ResourceType>)`](crate::client::fluent_builders::CreateResource::set_type): <p>The type of the new resource. The available types are <code>equipment</code> and <code>room</code>.</p>
/// - On success, responds with [`CreateResourceOutput`](crate::output::CreateResourceOutput) with field(s):
/// - [`resource_id(Option<String>)`](crate::output::CreateResourceOutput::resource_id): <p>The identifier of the new resource.</p>
/// - On failure, responds with [`SdkError<CreateResourceError>`](crate::error::CreateResourceError)
pub fn create_resource(&self) -> fluent_builders::CreateResource {
fluent_builders::CreateResource::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateUser`](crate::client::fluent_builders::CreateUser) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::CreateUser::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::CreateUser::set_organization_id): <p>The identifier of the organization for which the user is created.</p>
/// - [`name(impl Into<String>)`](crate::client::fluent_builders::CreateUser::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::CreateUser::set_name): <p>The name for the new user. WorkMail directory user names have a maximum length of 64. All others have a maximum length of 20.</p>
/// - [`display_name(impl Into<String>)`](crate::client::fluent_builders::CreateUser::display_name) / [`set_display_name(Option<String>)`](crate::client::fluent_builders::CreateUser::set_display_name): <p>The display name for the new user.</p>
/// - [`password(impl Into<String>)`](crate::client::fluent_builders::CreateUser::password) / [`set_password(Option<String>)`](crate::client::fluent_builders::CreateUser::set_password): <p>The password for the new user.</p>
/// - On success, responds with [`CreateUserOutput`](crate::output::CreateUserOutput) with field(s):
/// - [`user_id(Option<String>)`](crate::output::CreateUserOutput::user_id): <p>The identifier for the new user.</p>
/// - On failure, responds with [`SdkError<CreateUserError>`](crate::error::CreateUserError)
pub fn create_user(&self) -> fluent_builders::CreateUser {
fluent_builders::CreateUser::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteAccessControlRule`](crate::client::fluent_builders::DeleteAccessControlRule) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::DeleteAccessControlRule::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::DeleteAccessControlRule::set_organization_id): <p>The identifier for the organization.</p>
/// - [`name(impl Into<String>)`](crate::client::fluent_builders::DeleteAccessControlRule::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::DeleteAccessControlRule::set_name): <p>The name of the access control rule.</p>
/// - On success, responds with [`DeleteAccessControlRuleOutput`](crate::output::DeleteAccessControlRuleOutput)
/// - On failure, responds with [`SdkError<DeleteAccessControlRuleError>`](crate::error::DeleteAccessControlRuleError)
pub fn delete_access_control_rule(&self) -> fluent_builders::DeleteAccessControlRule {
fluent_builders::DeleteAccessControlRule::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteAlias`](crate::client::fluent_builders::DeleteAlias) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::DeleteAlias::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::DeleteAlias::set_organization_id): <p>The identifier for the organization under which the user exists.</p>
/// - [`entity_id(impl Into<String>)`](crate::client::fluent_builders::DeleteAlias::entity_id) / [`set_entity_id(Option<String>)`](crate::client::fluent_builders::DeleteAlias::set_entity_id): <p>The identifier for the member (user or group) from which to have the aliases removed.</p>
/// - [`alias(impl Into<String>)`](crate::client::fluent_builders::DeleteAlias::alias) / [`set_alias(Option<String>)`](crate::client::fluent_builders::DeleteAlias::set_alias): <p>The aliases to be removed from the user's set of aliases. Duplicate entries in the list are collapsed into single entries (the list is transformed into a set).</p>
/// - On success, responds with [`DeleteAliasOutput`](crate::output::DeleteAliasOutput)
/// - On failure, responds with [`SdkError<DeleteAliasError>`](crate::error::DeleteAliasError)
pub fn delete_alias(&self) -> fluent_builders::DeleteAlias {
fluent_builders::DeleteAlias::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteEmailMonitoringConfiguration`](crate::client::fluent_builders::DeleteEmailMonitoringConfiguration) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::DeleteEmailMonitoringConfiguration::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::DeleteEmailMonitoringConfiguration::set_organization_id): <p>The ID of the organization from which the email monitoring configuration is deleted.</p>
/// - On success, responds with [`DeleteEmailMonitoringConfigurationOutput`](crate::output::DeleteEmailMonitoringConfigurationOutput)
/// - On failure, responds with [`SdkError<DeleteEmailMonitoringConfigurationError>`](crate::error::DeleteEmailMonitoringConfigurationError)
pub fn delete_email_monitoring_configuration(
&self,
) -> fluent_builders::DeleteEmailMonitoringConfiguration {
fluent_builders::DeleteEmailMonitoringConfiguration::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteGroup`](crate::client::fluent_builders::DeleteGroup) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::DeleteGroup::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::DeleteGroup::set_organization_id): <p>The organization that contains the group.</p>
/// - [`group_id(impl Into<String>)`](crate::client::fluent_builders::DeleteGroup::group_id) / [`set_group_id(Option<String>)`](crate::client::fluent_builders::DeleteGroup::set_group_id): <p>The identifier of the group to be deleted.</p>
/// - On success, responds with [`DeleteGroupOutput`](crate::output::DeleteGroupOutput)
/// - On failure, responds with [`SdkError<DeleteGroupError>`](crate::error::DeleteGroupError)
pub fn delete_group(&self) -> fluent_builders::DeleteGroup {
fluent_builders::DeleteGroup::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteMailboxPermissions`](crate::client::fluent_builders::DeleteMailboxPermissions) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::DeleteMailboxPermissions::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::DeleteMailboxPermissions::set_organization_id): <p>The identifier of the organization under which the member (user or group) exists.</p>
/// - [`entity_id(impl Into<String>)`](crate::client::fluent_builders::DeleteMailboxPermissions::entity_id) / [`set_entity_id(Option<String>)`](crate::client::fluent_builders::DeleteMailboxPermissions::set_entity_id): <p>The identifier of the member (user or group) that owns the mailbox.</p>
/// - [`grantee_id(impl Into<String>)`](crate::client::fluent_builders::DeleteMailboxPermissions::grantee_id) / [`set_grantee_id(Option<String>)`](crate::client::fluent_builders::DeleteMailboxPermissions::set_grantee_id): <p>The identifier of the member (user or group) for which to delete granted permissions.</p>
/// - On success, responds with [`DeleteMailboxPermissionsOutput`](crate::output::DeleteMailboxPermissionsOutput)
/// - On failure, responds with [`SdkError<DeleteMailboxPermissionsError>`](crate::error::DeleteMailboxPermissionsError)
pub fn delete_mailbox_permissions(&self) -> fluent_builders::DeleteMailboxPermissions {
fluent_builders::DeleteMailboxPermissions::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteMobileDeviceAccessOverride`](crate::client::fluent_builders::DeleteMobileDeviceAccessOverride) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::DeleteMobileDeviceAccessOverride::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::DeleteMobileDeviceAccessOverride::set_organization_id): <p>The Amazon WorkMail organization for which the access override will be deleted.</p>
/// - [`user_id(impl Into<String>)`](crate::client::fluent_builders::DeleteMobileDeviceAccessOverride::user_id) / [`set_user_id(Option<String>)`](crate::client::fluent_builders::DeleteMobileDeviceAccessOverride::set_user_id): <p>The WorkMail user for which you want to delete the override. Accepts the following types of user identities:</p> <ul> <li> <p>User ID: <code>12345678-1234-1234-1234-123456789012</code> or <code>S-1-1-12-1234567890-123456789-123456789-1234</code> </p> </li> <li> <p>Email address: <code>user@domain.tld</code> </p> </li> <li> <p>User name: <code>user</code> </p> </li> </ul>
/// - [`device_id(impl Into<String>)`](crate::client::fluent_builders::DeleteMobileDeviceAccessOverride::device_id) / [`set_device_id(Option<String>)`](crate::client::fluent_builders::DeleteMobileDeviceAccessOverride::set_device_id): <p>The mobile device for which you delete the override. <code>DeviceId</code> is case insensitive.</p>
/// - On success, responds with [`DeleteMobileDeviceAccessOverrideOutput`](crate::output::DeleteMobileDeviceAccessOverrideOutput)
/// - On failure, responds with [`SdkError<DeleteMobileDeviceAccessOverrideError>`](crate::error::DeleteMobileDeviceAccessOverrideError)
pub fn delete_mobile_device_access_override(
&self,
) -> fluent_builders::DeleteMobileDeviceAccessOverride {
fluent_builders::DeleteMobileDeviceAccessOverride::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteMobileDeviceAccessRule`](crate::client::fluent_builders::DeleteMobileDeviceAccessRule) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::DeleteMobileDeviceAccessRule::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::DeleteMobileDeviceAccessRule::set_organization_id): <p>The Amazon WorkMail organization under which the rule will be deleted.</p>
/// - [`mobile_device_access_rule_id(impl Into<String>)`](crate::client::fluent_builders::DeleteMobileDeviceAccessRule::mobile_device_access_rule_id) / [`set_mobile_device_access_rule_id(Option<String>)`](crate::client::fluent_builders::DeleteMobileDeviceAccessRule::set_mobile_device_access_rule_id): <p>The identifier of the rule to be deleted.</p>
/// - On success, responds with [`DeleteMobileDeviceAccessRuleOutput`](crate::output::DeleteMobileDeviceAccessRuleOutput)
/// - On failure, responds with [`SdkError<DeleteMobileDeviceAccessRuleError>`](crate::error::DeleteMobileDeviceAccessRuleError)
pub fn delete_mobile_device_access_rule(
&self,
) -> fluent_builders::DeleteMobileDeviceAccessRule {
fluent_builders::DeleteMobileDeviceAccessRule::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteOrganization`](crate::client::fluent_builders::DeleteOrganization) operation.
///
/// - The fluent builder is configurable:
/// - [`client_token(impl Into<String>)`](crate::client::fluent_builders::DeleteOrganization::client_token) / [`set_client_token(Option<String>)`](crate::client::fluent_builders::DeleteOrganization::set_client_token): <p>The idempotency token associated with the request.</p>
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::DeleteOrganization::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::DeleteOrganization::set_organization_id): <p>The organization ID.</p>
/// - [`delete_directory(bool)`](crate::client::fluent_builders::DeleteOrganization::delete_directory) / [`set_delete_directory(bool)`](crate::client::fluent_builders::DeleteOrganization::set_delete_directory): <p>If true, deletes the AWS Directory Service directory associated with the organization.</p>
/// - On success, responds with [`DeleteOrganizationOutput`](crate::output::DeleteOrganizationOutput) with field(s):
/// - [`organization_id(Option<String>)`](crate::output::DeleteOrganizationOutput::organization_id): <p>The organization ID.</p>
/// - [`state(Option<String>)`](crate::output::DeleteOrganizationOutput::state): <p>The state of the organization.</p>
/// - On failure, responds with [`SdkError<DeleteOrganizationError>`](crate::error::DeleteOrganizationError)
pub fn delete_organization(&self) -> fluent_builders::DeleteOrganization {
fluent_builders::DeleteOrganization::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteResource`](crate::client::fluent_builders::DeleteResource) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::DeleteResource::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::DeleteResource::set_organization_id): <p>The identifier associated with the organization from which the resource is deleted.</p>
/// - [`resource_id(impl Into<String>)`](crate::client::fluent_builders::DeleteResource::resource_id) / [`set_resource_id(Option<String>)`](crate::client::fluent_builders::DeleteResource::set_resource_id): <p>The identifier of the resource to be deleted.</p>
/// - On success, responds with [`DeleteResourceOutput`](crate::output::DeleteResourceOutput)
/// - On failure, responds with [`SdkError<DeleteResourceError>`](crate::error::DeleteResourceError)
pub fn delete_resource(&self) -> fluent_builders::DeleteResource {
fluent_builders::DeleteResource::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteRetentionPolicy`](crate::client::fluent_builders::DeleteRetentionPolicy) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::DeleteRetentionPolicy::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::DeleteRetentionPolicy::set_organization_id): <p>The organization ID.</p>
/// - [`id(impl Into<String>)`](crate::client::fluent_builders::DeleteRetentionPolicy::id) / [`set_id(Option<String>)`](crate::client::fluent_builders::DeleteRetentionPolicy::set_id): <p>The retention policy ID.</p>
/// - On success, responds with [`DeleteRetentionPolicyOutput`](crate::output::DeleteRetentionPolicyOutput)
/// - On failure, responds with [`SdkError<DeleteRetentionPolicyError>`](crate::error::DeleteRetentionPolicyError)
pub fn delete_retention_policy(&self) -> fluent_builders::DeleteRetentionPolicy {
fluent_builders::DeleteRetentionPolicy::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteUser`](crate::client::fluent_builders::DeleteUser) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::DeleteUser::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::DeleteUser::set_organization_id): <p>The organization that contains the user to be deleted.</p>
/// - [`user_id(impl Into<String>)`](crate::client::fluent_builders::DeleteUser::user_id) / [`set_user_id(Option<String>)`](crate::client::fluent_builders::DeleteUser::set_user_id): <p>The identifier of the user to be deleted.</p>
/// - On success, responds with [`DeleteUserOutput`](crate::output::DeleteUserOutput)
/// - On failure, responds with [`SdkError<DeleteUserError>`](crate::error::DeleteUserError)
pub fn delete_user(&self) -> fluent_builders::DeleteUser {
fluent_builders::DeleteUser::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeregisterFromWorkMail`](crate::client::fluent_builders::DeregisterFromWorkMail) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::DeregisterFromWorkMail::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::DeregisterFromWorkMail::set_organization_id): <p>The identifier for the organization under which the Amazon WorkMail entity exists.</p>
/// - [`entity_id(impl Into<String>)`](crate::client::fluent_builders::DeregisterFromWorkMail::entity_id) / [`set_entity_id(Option<String>)`](crate::client::fluent_builders::DeregisterFromWorkMail::set_entity_id): <p>The identifier for the member (user or group) to be updated.</p>
/// - On success, responds with [`DeregisterFromWorkMailOutput`](crate::output::DeregisterFromWorkMailOutput)
/// - On failure, responds with [`SdkError<DeregisterFromWorkMailError>`](crate::error::DeregisterFromWorkMailError)
pub fn deregister_from_work_mail(&self) -> fluent_builders::DeregisterFromWorkMail {
fluent_builders::DeregisterFromWorkMail::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeregisterMailDomain`](crate::client::fluent_builders::DeregisterMailDomain) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::DeregisterMailDomain::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::DeregisterMailDomain::set_organization_id): <p>The Amazon WorkMail organization for which the domain will be deregistered.</p>
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::DeregisterMailDomain::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::DeregisterMailDomain::set_domain_name): <p>The domain to deregister in WorkMail and SES. </p>
/// - On success, responds with [`DeregisterMailDomainOutput`](crate::output::DeregisterMailDomainOutput)
/// - On failure, responds with [`SdkError<DeregisterMailDomainError>`](crate::error::DeregisterMailDomainError)
pub fn deregister_mail_domain(&self) -> fluent_builders::DeregisterMailDomain {
fluent_builders::DeregisterMailDomain::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DescribeEmailMonitoringConfiguration`](crate::client::fluent_builders::DescribeEmailMonitoringConfiguration) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::DescribeEmailMonitoringConfiguration::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::DescribeEmailMonitoringConfiguration::set_organization_id): <p>The ID of the organization for which the email monitoring configuration is described.</p>
/// - On success, responds with [`DescribeEmailMonitoringConfigurationOutput`](crate::output::DescribeEmailMonitoringConfigurationOutput) with field(s):
/// - [`role_arn(Option<String>)`](crate::output::DescribeEmailMonitoringConfigurationOutput::role_arn): <p>The Amazon Resource Name (ARN) of the IAM Role associated with the email monitoring configuration.</p>
/// - [`log_group_arn(Option<String>)`](crate::output::DescribeEmailMonitoringConfigurationOutput::log_group_arn): <p>The Amazon Resource Name (ARN) of the CloudWatch Log group associated with the email monitoring configuration.</p>
/// - On failure, responds with [`SdkError<DescribeEmailMonitoringConfigurationError>`](crate::error::DescribeEmailMonitoringConfigurationError)
pub fn describe_email_monitoring_configuration(
&self,
) -> fluent_builders::DescribeEmailMonitoringConfiguration {
fluent_builders::DescribeEmailMonitoringConfiguration::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DescribeGroup`](crate::client::fluent_builders::DescribeGroup) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::DescribeGroup::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::DescribeGroup::set_organization_id): <p>The identifier for the organization under which the group exists.</p>
/// - [`group_id(impl Into<String>)`](crate::client::fluent_builders::DescribeGroup::group_id) / [`set_group_id(Option<String>)`](crate::client::fluent_builders::DescribeGroup::set_group_id): <p>The identifier for the group to be described.</p>
/// - On success, responds with [`DescribeGroupOutput`](crate::output::DescribeGroupOutput) with field(s):
/// - [`group_id(Option<String>)`](crate::output::DescribeGroupOutput::group_id): <p>The identifier of the described group.</p>
/// - [`name(Option<String>)`](crate::output::DescribeGroupOutput::name): <p>The name of the described group.</p>
/// - [`email(Option<String>)`](crate::output::DescribeGroupOutput::email): <p>The email of the described group.</p>
/// - [`state(Option<EntityState>)`](crate::output::DescribeGroupOutput::state): <p>The state of the user: enabled (registered to Amazon WorkMail) or disabled (deregistered or never registered to WorkMail).</p>
/// - [`enabled_date(Option<DateTime>)`](crate::output::DescribeGroupOutput::enabled_date): <p>The date and time when a user was registered to WorkMail, in UNIX epoch time format.</p>
/// - [`disabled_date(Option<DateTime>)`](crate::output::DescribeGroupOutput::disabled_date): <p>The date and time when a user was deregistered from WorkMail, in UNIX epoch time format.</p>
/// - On failure, responds with [`SdkError<DescribeGroupError>`](crate::error::DescribeGroupError)
pub fn describe_group(&self) -> fluent_builders::DescribeGroup {
fluent_builders::DescribeGroup::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DescribeInboundDmarcSettings`](crate::client::fluent_builders::DescribeInboundDmarcSettings) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::DescribeInboundDmarcSettings::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::DescribeInboundDmarcSettings::set_organization_id): <p>Lists the ID of the given organization.</p>
/// - On success, responds with [`DescribeInboundDmarcSettingsOutput`](crate::output::DescribeInboundDmarcSettingsOutput) with field(s):
/// - [`enforced(bool)`](crate::output::DescribeInboundDmarcSettingsOutput::enforced): <p>Lists the enforcement setting of the applied policy.</p>
/// - On failure, responds with [`SdkError<DescribeInboundDmarcSettingsError>`](crate::error::DescribeInboundDmarcSettingsError)
pub fn describe_inbound_dmarc_settings(&self) -> fluent_builders::DescribeInboundDmarcSettings {
fluent_builders::DescribeInboundDmarcSettings::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DescribeMailboxExportJob`](crate::client::fluent_builders::DescribeMailboxExportJob) operation.
///
/// - The fluent builder is configurable:
/// - [`job_id(impl Into<String>)`](crate::client::fluent_builders::DescribeMailboxExportJob::job_id) / [`set_job_id(Option<String>)`](crate::client::fluent_builders::DescribeMailboxExportJob::set_job_id): <p>The mailbox export job ID.</p>
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::DescribeMailboxExportJob::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::DescribeMailboxExportJob::set_organization_id): <p>The organization ID.</p>
/// - On success, responds with [`DescribeMailboxExportJobOutput`](crate::output::DescribeMailboxExportJobOutput) with field(s):
/// - [`entity_id(Option<String>)`](crate::output::DescribeMailboxExportJobOutput::entity_id): <p>The identifier of the user or resource associated with the mailbox.</p>
/// - [`description(Option<String>)`](crate::output::DescribeMailboxExportJobOutput::description): <p>The mailbox export job description.</p>
/// - [`role_arn(Option<String>)`](crate::output::DescribeMailboxExportJobOutput::role_arn): <p>The ARN of the AWS Identity and Access Management (IAM) role that grants write permission to the Amazon Simple Storage Service (Amazon S3) bucket.</p>
/// - [`kms_key_arn(Option<String>)`](crate::output::DescribeMailboxExportJobOutput::kms_key_arn): <p>The Amazon Resource Name (ARN) of the symmetric AWS Key Management Service (AWS KMS) key that encrypts the exported mailbox content.</p>
/// - [`s3_bucket_name(Option<String>)`](crate::output::DescribeMailboxExportJobOutput::s3_bucket_name): <p>The name of the S3 bucket.</p>
/// - [`s3_prefix(Option<String>)`](crate::output::DescribeMailboxExportJobOutput::s3_prefix): <p>The S3 bucket prefix.</p>
/// - [`s3_path(Option<String>)`](crate::output::DescribeMailboxExportJobOutput::s3_path): <p>The path to the S3 bucket and file that the mailbox export job is exporting to.</p>
/// - [`estimated_progress(i32)`](crate::output::DescribeMailboxExportJobOutput::estimated_progress): <p>The estimated progress of the mailbox export job, in percentage points.</p>
/// - [`state(Option<MailboxExportJobState>)`](crate::output::DescribeMailboxExportJobOutput::state): <p>The state of the mailbox export job.</p>
/// - [`error_info(Option<String>)`](crate::output::DescribeMailboxExportJobOutput::error_info): <p>Error information for failed mailbox export jobs.</p>
/// - [`start_time(Option<DateTime>)`](crate::output::DescribeMailboxExportJobOutput::start_time): <p>The mailbox export job start timestamp.</p>
/// - [`end_time(Option<DateTime>)`](crate::output::DescribeMailboxExportJobOutput::end_time): <p>The mailbox export job end timestamp.</p>
/// - On failure, responds with [`SdkError<DescribeMailboxExportJobError>`](crate::error::DescribeMailboxExportJobError)
pub fn describe_mailbox_export_job(&self) -> fluent_builders::DescribeMailboxExportJob {
fluent_builders::DescribeMailboxExportJob::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DescribeOrganization`](crate::client::fluent_builders::DescribeOrganization) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::DescribeOrganization::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::DescribeOrganization::set_organization_id): <p>The identifier for the organization to be described.</p>
/// - On success, responds with [`DescribeOrganizationOutput`](crate::output::DescribeOrganizationOutput) with field(s):
/// - [`organization_id(Option<String>)`](crate::output::DescribeOrganizationOutput::organization_id): <p>The identifier of an organization.</p>
/// - [`alias(Option<String>)`](crate::output::DescribeOrganizationOutput::alias): <p>The alias for an organization.</p>
/// - [`state(Option<String>)`](crate::output::DescribeOrganizationOutput::state): <p>The state of an organization.</p>
/// - [`directory_id(Option<String>)`](crate::output::DescribeOrganizationOutput::directory_id): <p>The identifier for the directory associated with an Amazon WorkMail organization.</p>
/// - [`directory_type(Option<String>)`](crate::output::DescribeOrganizationOutput::directory_type): <p>The type of directory associated with the WorkMail organization.</p>
/// - [`default_mail_domain(Option<String>)`](crate::output::DescribeOrganizationOutput::default_mail_domain): <p>The default mail domain associated with the organization.</p>
/// - [`completed_date(Option<DateTime>)`](crate::output::DescribeOrganizationOutput::completed_date): <p>The date at which the organization became usable in the WorkMail context, in UNIX epoch time format.</p>
/// - [`error_message(Option<String>)`](crate::output::DescribeOrganizationOutput::error_message): <p>(Optional) The error message indicating if unexpected behavior was encountered with regards to the organization.</p>
/// - [`arn(Option<String>)`](crate::output::DescribeOrganizationOutput::arn): <p>The Amazon Resource Name (ARN) of the organization.</p>
/// - On failure, responds with [`SdkError<DescribeOrganizationError>`](crate::error::DescribeOrganizationError)
pub fn describe_organization(&self) -> fluent_builders::DescribeOrganization {
fluent_builders::DescribeOrganization::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DescribeResource`](crate::client::fluent_builders::DescribeResource) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::DescribeResource::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::DescribeResource::set_organization_id): <p>The identifier associated with the organization for which the resource is described.</p>
/// - [`resource_id(impl Into<String>)`](crate::client::fluent_builders::DescribeResource::resource_id) / [`set_resource_id(Option<String>)`](crate::client::fluent_builders::DescribeResource::set_resource_id): <p>The identifier of the resource to be described.</p>
/// - On success, responds with [`DescribeResourceOutput`](crate::output::DescribeResourceOutput) with field(s):
/// - [`resource_id(Option<String>)`](crate::output::DescribeResourceOutput::resource_id): <p>The identifier of the described resource.</p>
/// - [`email(Option<String>)`](crate::output::DescribeResourceOutput::email): <p>The email of the described resource.</p>
/// - [`name(Option<String>)`](crate::output::DescribeResourceOutput::name): <p>The name of the described resource.</p>
/// - [`r#type(Option<ResourceType>)`](crate::output::DescribeResourceOutput::type): <p>The type of the described resource.</p>
/// - [`booking_options(Option<BookingOptions>)`](crate::output::DescribeResourceOutput::booking_options): <p>The booking options for the described resource.</p>
/// - [`state(Option<EntityState>)`](crate::output::DescribeResourceOutput::state): <p>The state of the resource: enabled (registered to Amazon WorkMail), disabled (deregistered or never registered to WorkMail), or deleted.</p>
/// - [`enabled_date(Option<DateTime>)`](crate::output::DescribeResourceOutput::enabled_date): <p>The date and time when a resource was enabled for WorkMail, in UNIX epoch time format.</p>
/// - [`disabled_date(Option<DateTime>)`](crate::output::DescribeResourceOutput::disabled_date): <p>The date and time when a resource was disabled from WorkMail, in UNIX epoch time format.</p>
/// - On failure, responds with [`SdkError<DescribeResourceError>`](crate::error::DescribeResourceError)
pub fn describe_resource(&self) -> fluent_builders::DescribeResource {
fluent_builders::DescribeResource::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DescribeUser`](crate::client::fluent_builders::DescribeUser) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::DescribeUser::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::DescribeUser::set_organization_id): <p>The identifier for the organization under which the user exists.</p>
/// - [`user_id(impl Into<String>)`](crate::client::fluent_builders::DescribeUser::user_id) / [`set_user_id(Option<String>)`](crate::client::fluent_builders::DescribeUser::set_user_id): <p>The identifier for the user to be described.</p>
/// - On success, responds with [`DescribeUserOutput`](crate::output::DescribeUserOutput) with field(s):
/// - [`user_id(Option<String>)`](crate::output::DescribeUserOutput::user_id): <p>The identifier for the described user.</p>
/// - [`name(Option<String>)`](crate::output::DescribeUserOutput::name): <p>The name for the user.</p>
/// - [`email(Option<String>)`](crate::output::DescribeUserOutput::email): <p>The email of the user.</p>
/// - [`display_name(Option<String>)`](crate::output::DescribeUserOutput::display_name): <p>The display name of the user.</p>
/// - [`state(Option<EntityState>)`](crate::output::DescribeUserOutput::state): <p>The state of a user: enabled (registered to Amazon WorkMail) or disabled (deregistered or never registered to WorkMail).</p>
/// - [`user_role(Option<UserRole>)`](crate::output::DescribeUserOutput::user_role): <p>In certain cases, other entities are modeled as users. If interoperability is enabled, resources are imported into Amazon WorkMail as users. Because different WorkMail organizations rely on different directory types, administrators can distinguish between an unregistered user (account is disabled and has a user role) and the directory administrators. The values are USER, RESOURCE, and SYSTEM_USER.</p>
/// - [`enabled_date(Option<DateTime>)`](crate::output::DescribeUserOutput::enabled_date): <p>The date and time at which the user was enabled for Amazon WorkMail usage, in UNIX epoch time format.</p>
/// - [`disabled_date(Option<DateTime>)`](crate::output::DescribeUserOutput::disabled_date): <p>The date and time at which the user was disabled for Amazon WorkMail usage, in UNIX epoch time format.</p>
/// - On failure, responds with [`SdkError<DescribeUserError>`](crate::error::DescribeUserError)
pub fn describe_user(&self) -> fluent_builders::DescribeUser {
fluent_builders::DescribeUser::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DisassociateDelegateFromResource`](crate::client::fluent_builders::DisassociateDelegateFromResource) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::DisassociateDelegateFromResource::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::DisassociateDelegateFromResource::set_organization_id): <p>The identifier for the organization under which the resource exists.</p>
/// - [`resource_id(impl Into<String>)`](crate::client::fluent_builders::DisassociateDelegateFromResource::resource_id) / [`set_resource_id(Option<String>)`](crate::client::fluent_builders::DisassociateDelegateFromResource::set_resource_id): <p>The identifier of the resource from which delegates' set members are removed. </p>
/// - [`entity_id(impl Into<String>)`](crate::client::fluent_builders::DisassociateDelegateFromResource::entity_id) / [`set_entity_id(Option<String>)`](crate::client::fluent_builders::DisassociateDelegateFromResource::set_entity_id): <p>The identifier for the member (user, group) to be removed from the resource's delegates.</p>
/// - On success, responds with [`DisassociateDelegateFromResourceOutput`](crate::output::DisassociateDelegateFromResourceOutput)
/// - On failure, responds with [`SdkError<DisassociateDelegateFromResourceError>`](crate::error::DisassociateDelegateFromResourceError)
pub fn disassociate_delegate_from_resource(
&self,
) -> fluent_builders::DisassociateDelegateFromResource {
fluent_builders::DisassociateDelegateFromResource::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DisassociateMemberFromGroup`](crate::client::fluent_builders::DisassociateMemberFromGroup) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::DisassociateMemberFromGroup::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::DisassociateMemberFromGroup::set_organization_id): <p>The identifier for the organization under which the group exists.</p>
/// - [`group_id(impl Into<String>)`](crate::client::fluent_builders::DisassociateMemberFromGroup::group_id) / [`set_group_id(Option<String>)`](crate::client::fluent_builders::DisassociateMemberFromGroup::set_group_id): <p>The identifier for the group from which members are removed.</p>
/// - [`member_id(impl Into<String>)`](crate::client::fluent_builders::DisassociateMemberFromGroup::member_id) / [`set_member_id(Option<String>)`](crate::client::fluent_builders::DisassociateMemberFromGroup::set_member_id): <p>The identifier for the member to be removed to the group.</p>
/// - On success, responds with [`DisassociateMemberFromGroupOutput`](crate::output::DisassociateMemberFromGroupOutput)
/// - On failure, responds with [`SdkError<DisassociateMemberFromGroupError>`](crate::error::DisassociateMemberFromGroupError)
pub fn disassociate_member_from_group(&self) -> fluent_builders::DisassociateMemberFromGroup {
fluent_builders::DisassociateMemberFromGroup::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetAccessControlEffect`](crate::client::fluent_builders::GetAccessControlEffect) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::GetAccessControlEffect::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::GetAccessControlEffect::set_organization_id): <p>The identifier for the organization.</p>
/// - [`ip_address(impl Into<String>)`](crate::client::fluent_builders::GetAccessControlEffect::ip_address) / [`set_ip_address(Option<String>)`](crate::client::fluent_builders::GetAccessControlEffect::set_ip_address): <p>The IPv4 address.</p>
/// - [`action(impl Into<String>)`](crate::client::fluent_builders::GetAccessControlEffect::action) / [`set_action(Option<String>)`](crate::client::fluent_builders::GetAccessControlEffect::set_action): <p>The access protocol action. Valid values include <code>ActiveSync</code>, <code>AutoDiscover</code>, <code>EWS</code>, <code>IMAP</code>, <code>SMTP</code>, <code>WindowsOutlook</code>, and <code>WebMail</code>.</p>
/// - [`user_id(impl Into<String>)`](crate::client::fluent_builders::GetAccessControlEffect::user_id) / [`set_user_id(Option<String>)`](crate::client::fluent_builders::GetAccessControlEffect::set_user_id): <p>The user ID.</p>
/// - On success, responds with [`GetAccessControlEffectOutput`](crate::output::GetAccessControlEffectOutput) with field(s):
/// - [`effect(Option<AccessControlRuleEffect>)`](crate::output::GetAccessControlEffectOutput::effect): <p>The rule effect.</p>
/// - [`matched_rules(Option<Vec<String>>)`](crate::output::GetAccessControlEffectOutput::matched_rules): <p>The rules that match the given parameters, resulting in an effect.</p>
/// - On failure, responds with [`SdkError<GetAccessControlEffectError>`](crate::error::GetAccessControlEffectError)
pub fn get_access_control_effect(&self) -> fluent_builders::GetAccessControlEffect {
fluent_builders::GetAccessControlEffect::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetDefaultRetentionPolicy`](crate::client::fluent_builders::GetDefaultRetentionPolicy) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::GetDefaultRetentionPolicy::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::GetDefaultRetentionPolicy::set_organization_id): <p>The organization ID.</p>
/// - On success, responds with [`GetDefaultRetentionPolicyOutput`](crate::output::GetDefaultRetentionPolicyOutput) with field(s):
/// - [`id(Option<String>)`](crate::output::GetDefaultRetentionPolicyOutput::id): <p>The retention policy ID.</p>
/// - [`name(Option<String>)`](crate::output::GetDefaultRetentionPolicyOutput::name): <p>The retention policy name.</p>
/// - [`description(Option<String>)`](crate::output::GetDefaultRetentionPolicyOutput::description): <p>The retention policy description.</p>
/// - [`folder_configurations(Option<Vec<FolderConfiguration>>)`](crate::output::GetDefaultRetentionPolicyOutput::folder_configurations): <p>The retention policy folder configurations.</p>
/// - On failure, responds with [`SdkError<GetDefaultRetentionPolicyError>`](crate::error::GetDefaultRetentionPolicyError)
pub fn get_default_retention_policy(&self) -> fluent_builders::GetDefaultRetentionPolicy {
fluent_builders::GetDefaultRetentionPolicy::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetMailboxDetails`](crate::client::fluent_builders::GetMailboxDetails) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::GetMailboxDetails::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::GetMailboxDetails::set_organization_id): <p>The identifier for the organization that contains the user whose mailbox details are being requested.</p>
/// - [`user_id(impl Into<String>)`](crate::client::fluent_builders::GetMailboxDetails::user_id) / [`set_user_id(Option<String>)`](crate::client::fluent_builders::GetMailboxDetails::set_user_id): <p>The identifier for the user whose mailbox details are being requested.</p>
/// - On success, responds with [`GetMailboxDetailsOutput`](crate::output::GetMailboxDetailsOutput) with field(s):
/// - [`mailbox_quota(Option<i32>)`](crate::output::GetMailboxDetailsOutput::mailbox_quota): <p>The maximum allowed mailbox size, in MB, for the specified user.</p>
/// - [`mailbox_size(f64)`](crate::output::GetMailboxDetailsOutput::mailbox_size): <p>The current mailbox size, in MB, for the specified user.</p>
/// - On failure, responds with [`SdkError<GetMailboxDetailsError>`](crate::error::GetMailboxDetailsError)
pub fn get_mailbox_details(&self) -> fluent_builders::GetMailboxDetails {
fluent_builders::GetMailboxDetails::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetMailDomain`](crate::client::fluent_builders::GetMailDomain) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::GetMailDomain::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::GetMailDomain::set_organization_id): <p>The Amazon WorkMail organization for which the domain is retrieved.</p>
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::GetMailDomain::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::GetMailDomain::set_domain_name): <p>The domain from which you want to retrieve details.</p>
/// - On success, responds with [`GetMailDomainOutput`](crate::output::GetMailDomainOutput) with field(s):
/// - [`records(Option<Vec<DnsRecord>>)`](crate::output::GetMailDomainOutput::records): <p>A list of the DNS records that Amazon WorkMail recommends adding in your DNS provider for the best user experience. The records configure your domain with DMARC, SPF, DKIM, and direct incoming email traffic to SES. See admin guide for more details.</p>
/// - [`is_test_domain(bool)`](crate::output::GetMailDomainOutput::is_test_domain): <p>Specifies whether the domain is a test domain provided by WorkMail, or a custom domain.</p>
/// - [`is_default(bool)`](crate::output::GetMailDomainOutput::is_default): <p>Specifies whether the domain is the default domain for your organization.</p>
/// - [`ownership_verification_status(Option<DnsRecordVerificationStatus>)`](crate::output::GetMailDomainOutput::ownership_verification_status): <p> Indicates the status of the domain ownership verification.</p>
/// - [`dkim_verification_status(Option<DnsRecordVerificationStatus>)`](crate::output::GetMailDomainOutput::dkim_verification_status): <p>Indicates the status of a DKIM verification.</p>
/// - On failure, responds with [`SdkError<GetMailDomainError>`](crate::error::GetMailDomainError)
pub fn get_mail_domain(&self) -> fluent_builders::GetMailDomain {
fluent_builders::GetMailDomain::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetMobileDeviceAccessEffect`](crate::client::fluent_builders::GetMobileDeviceAccessEffect) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::GetMobileDeviceAccessEffect::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::GetMobileDeviceAccessEffect::set_organization_id): <p>The Amazon WorkMail organization to simulate the access effect for.</p>
/// - [`device_type(impl Into<String>)`](crate::client::fluent_builders::GetMobileDeviceAccessEffect::device_type) / [`set_device_type(Option<String>)`](crate::client::fluent_builders::GetMobileDeviceAccessEffect::set_device_type): <p>Device type the simulated user will report.</p>
/// - [`device_model(impl Into<String>)`](crate::client::fluent_builders::GetMobileDeviceAccessEffect::device_model) / [`set_device_model(Option<String>)`](crate::client::fluent_builders::GetMobileDeviceAccessEffect::set_device_model): <p>Device model the simulated user will report.</p>
/// - [`device_operating_system(impl Into<String>)`](crate::client::fluent_builders::GetMobileDeviceAccessEffect::device_operating_system) / [`set_device_operating_system(Option<String>)`](crate::client::fluent_builders::GetMobileDeviceAccessEffect::set_device_operating_system): <p>Device operating system the simulated user will report.</p>
/// - [`device_user_agent(impl Into<String>)`](crate::client::fluent_builders::GetMobileDeviceAccessEffect::device_user_agent) / [`set_device_user_agent(Option<String>)`](crate::client::fluent_builders::GetMobileDeviceAccessEffect::set_device_user_agent): <p>Device user agent the simulated user will report.</p>
/// - On success, responds with [`GetMobileDeviceAccessEffectOutput`](crate::output::GetMobileDeviceAccessEffectOutput) with field(s):
/// - [`effect(Option<MobileDeviceAccessRuleEffect>)`](crate::output::GetMobileDeviceAccessEffectOutput::effect): <p>The effect of the simulated access, <code>ALLOW</code> or <code>DENY</code>, after evaluating mobile device access rules in the Amazon WorkMail organization for the simulated user parameters.</p>
/// - [`matched_rules(Option<Vec<MobileDeviceAccessMatchedRule>>)`](crate::output::GetMobileDeviceAccessEffectOutput::matched_rules): <p>A list of the rules which matched the simulated user input and produced the effect.</p>
/// - On failure, responds with [`SdkError<GetMobileDeviceAccessEffectError>`](crate::error::GetMobileDeviceAccessEffectError)
pub fn get_mobile_device_access_effect(&self) -> fluent_builders::GetMobileDeviceAccessEffect {
fluent_builders::GetMobileDeviceAccessEffect::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetMobileDeviceAccessOverride`](crate::client::fluent_builders::GetMobileDeviceAccessOverride) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::GetMobileDeviceAccessOverride::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::GetMobileDeviceAccessOverride::set_organization_id): <p>The Amazon WorkMail organization to which you want to apply the override.</p>
/// - [`user_id(impl Into<String>)`](crate::client::fluent_builders::GetMobileDeviceAccessOverride::user_id) / [`set_user_id(Option<String>)`](crate::client::fluent_builders::GetMobileDeviceAccessOverride::set_user_id): <p>Identifies the WorkMail user for the override. Accepts the following types of user identities: </p> <ul> <li> <p>User ID: <code>12345678-1234-1234-1234-123456789012</code> or <code>S-1-1-12-1234567890-123456789-123456789-1234</code> </p> </li> <li> <p>Email address: <code>user@domain.tld</code> </p> </li> <li> <p>User name: <code>user</code> </p> </li> </ul>
/// - [`device_id(impl Into<String>)`](crate::client::fluent_builders::GetMobileDeviceAccessOverride::device_id) / [`set_device_id(Option<String>)`](crate::client::fluent_builders::GetMobileDeviceAccessOverride::set_device_id): <p>The mobile device to which the override applies. <code>DeviceId</code> is case insensitive.</p>
/// - On success, responds with [`GetMobileDeviceAccessOverrideOutput`](crate::output::GetMobileDeviceAccessOverrideOutput) with field(s):
/// - [`user_id(Option<String>)`](crate::output::GetMobileDeviceAccessOverrideOutput::user_id): <p>The WorkMail user to which the access override applies.</p>
/// - [`device_id(Option<String>)`](crate::output::GetMobileDeviceAccessOverrideOutput::device_id): <p>The device to which the access override applies.</p>
/// - [`effect(Option<MobileDeviceAccessRuleEffect>)`](crate::output::GetMobileDeviceAccessOverrideOutput::effect): <p>The effect of the override, <code>ALLOW</code> or <code>DENY</code>.</p>
/// - [`description(Option<String>)`](crate::output::GetMobileDeviceAccessOverrideOutput::description): <p>A description of the override.</p>
/// - [`date_created(Option<DateTime>)`](crate::output::GetMobileDeviceAccessOverrideOutput::date_created): <p>The date the override was first created.</p>
/// - [`date_modified(Option<DateTime>)`](crate::output::GetMobileDeviceAccessOverrideOutput::date_modified): <p>The date the description was last modified.</p>
/// - On failure, responds with [`SdkError<GetMobileDeviceAccessOverrideError>`](crate::error::GetMobileDeviceAccessOverrideError)
pub fn get_mobile_device_access_override(
&self,
) -> fluent_builders::GetMobileDeviceAccessOverride {
fluent_builders::GetMobileDeviceAccessOverride::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListAccessControlRules`](crate::client::fluent_builders::ListAccessControlRules) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::ListAccessControlRules::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::ListAccessControlRules::set_organization_id): <p>The identifier for the organization.</p>
/// - On success, responds with [`ListAccessControlRulesOutput`](crate::output::ListAccessControlRulesOutput) with field(s):
/// - [`rules(Option<Vec<AccessControlRule>>)`](crate::output::ListAccessControlRulesOutput::rules): <p>The access control rules.</p>
/// - On failure, responds with [`SdkError<ListAccessControlRulesError>`](crate::error::ListAccessControlRulesError)
pub fn list_access_control_rules(&self) -> fluent_builders::ListAccessControlRules {
fluent_builders::ListAccessControlRules::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListAliases`](crate::client::fluent_builders::ListAliases) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListAliases::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::ListAliases::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::ListAliases::set_organization_id): <p>The identifier for the organization under which the entity exists.</p>
/// - [`entity_id(impl Into<String>)`](crate::client::fluent_builders::ListAliases::entity_id) / [`set_entity_id(Option<String>)`](crate::client::fluent_builders::ListAliases::set_entity_id): <p>The identifier for the entity for which to list the aliases.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListAliases::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListAliases::set_next_token): <p>The token to use to retrieve the next page of results. The first call does not contain any tokens.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::ListAliases::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::ListAliases::set_max_results): <p>The maximum number of results to return in a single call.</p>
/// - On success, responds with [`ListAliasesOutput`](crate::output::ListAliasesOutput) with field(s):
/// - [`aliases(Option<Vec<String>>)`](crate::output::ListAliasesOutput::aliases): <p>The entity's paginated aliases.</p>
/// - [`next_token(Option<String>)`](crate::output::ListAliasesOutput::next_token): <p>The token to use to retrieve the next page of results. The value is "null" when there are no more results to return.</p>
/// - On failure, responds with [`SdkError<ListAliasesError>`](crate::error::ListAliasesError)
pub fn list_aliases(&self) -> fluent_builders::ListAliases {
fluent_builders::ListAliases::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListGroupMembers`](crate::client::fluent_builders::ListGroupMembers) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListGroupMembers::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::ListGroupMembers::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::ListGroupMembers::set_organization_id): <p>The identifier for the organization under which the group exists.</p>
/// - [`group_id(impl Into<String>)`](crate::client::fluent_builders::ListGroupMembers::group_id) / [`set_group_id(Option<String>)`](crate::client::fluent_builders::ListGroupMembers::set_group_id): <p>The identifier for the group to which the members (users or groups) are associated.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListGroupMembers::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListGroupMembers::set_next_token): <p> The token to use to retrieve the next page of results. The first call does not contain any tokens.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::ListGroupMembers::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::ListGroupMembers::set_max_results): <p>The maximum number of results to return in a single call.</p>
/// - On success, responds with [`ListGroupMembersOutput`](crate::output::ListGroupMembersOutput) with field(s):
/// - [`members(Option<Vec<Member>>)`](crate::output::ListGroupMembersOutput::members): <p>The members associated to the group.</p>
/// - [`next_token(Option<String>)`](crate::output::ListGroupMembersOutput::next_token): <p>The token to use to retrieve the next page of results. The first call does not contain any tokens.</p>
/// - On failure, responds with [`SdkError<ListGroupMembersError>`](crate::error::ListGroupMembersError)
pub fn list_group_members(&self) -> fluent_builders::ListGroupMembers {
fluent_builders::ListGroupMembers::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListGroups`](crate::client::fluent_builders::ListGroups) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListGroups::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::ListGroups::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::ListGroups::set_organization_id): <p>The identifier for the organization under which the groups exist.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListGroups::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListGroups::set_next_token): <p>The token to use to retrieve the next page of results. The first call does not contain any tokens.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::ListGroups::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::ListGroups::set_max_results): <p>The maximum number of results to return in a single call.</p>
/// - On success, responds with [`ListGroupsOutput`](crate::output::ListGroupsOutput) with field(s):
/// - [`groups(Option<Vec<Group>>)`](crate::output::ListGroupsOutput::groups): <p>The overview of groups for an organization.</p>
/// - [`next_token(Option<String>)`](crate::output::ListGroupsOutput::next_token): <p>The token to use to retrieve the next page of results. The value is "null" when there are no more results to return.</p>
/// - On failure, responds with [`SdkError<ListGroupsError>`](crate::error::ListGroupsError)
pub fn list_groups(&self) -> fluent_builders::ListGroups {
fluent_builders::ListGroups::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListMailboxExportJobs`](crate::client::fluent_builders::ListMailboxExportJobs) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListMailboxExportJobs::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::ListMailboxExportJobs::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::ListMailboxExportJobs::set_organization_id): <p>The organization ID.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListMailboxExportJobs::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListMailboxExportJobs::set_next_token): <p>The token to use to retrieve the next page of results.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::ListMailboxExportJobs::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::ListMailboxExportJobs::set_max_results): <p>The maximum number of results to return in a single call.</p>
/// - On success, responds with [`ListMailboxExportJobsOutput`](crate::output::ListMailboxExportJobsOutput) with field(s):
/// - [`jobs(Option<Vec<MailboxExportJob>>)`](crate::output::ListMailboxExportJobsOutput::jobs): <p>The mailbox export job details.</p>
/// - [`next_token(Option<String>)`](crate::output::ListMailboxExportJobsOutput::next_token): <p>The token to use to retrieve the next page of results.</p>
/// - On failure, responds with [`SdkError<ListMailboxExportJobsError>`](crate::error::ListMailboxExportJobsError)
pub fn list_mailbox_export_jobs(&self) -> fluent_builders::ListMailboxExportJobs {
fluent_builders::ListMailboxExportJobs::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListMailboxPermissions`](crate::client::fluent_builders::ListMailboxPermissions) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListMailboxPermissions::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::ListMailboxPermissions::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::ListMailboxPermissions::set_organization_id): <p>The identifier of the organization under which the user, group, or resource exists.</p>
/// - [`entity_id(impl Into<String>)`](crate::client::fluent_builders::ListMailboxPermissions::entity_id) / [`set_entity_id(Option<String>)`](crate::client::fluent_builders::ListMailboxPermissions::set_entity_id): <p>The identifier of the user, group, or resource for which to list mailbox permissions.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListMailboxPermissions::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListMailboxPermissions::set_next_token): <p>The token to use to retrieve the next page of results. The first call does not contain any tokens.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::ListMailboxPermissions::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::ListMailboxPermissions::set_max_results): <p>The maximum number of results to return in a single call.</p>
/// - On success, responds with [`ListMailboxPermissionsOutput`](crate::output::ListMailboxPermissionsOutput) with field(s):
/// - [`permissions(Option<Vec<Permission>>)`](crate::output::ListMailboxPermissionsOutput::permissions): <p>One page of the user, group, or resource mailbox permissions.</p>
/// - [`next_token(Option<String>)`](crate::output::ListMailboxPermissionsOutput::next_token): <p>The token to use to retrieve the next page of results. The value is "null" when there are no more results to return.</p>
/// - On failure, responds with [`SdkError<ListMailboxPermissionsError>`](crate::error::ListMailboxPermissionsError)
pub fn list_mailbox_permissions(&self) -> fluent_builders::ListMailboxPermissions {
fluent_builders::ListMailboxPermissions::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListMailDomains`](crate::client::fluent_builders::ListMailDomains) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListMailDomains::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::ListMailDomains::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::ListMailDomains::set_organization_id): <p>The Amazon WorkMail organization for which to list domains.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::ListMailDomains::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::ListMailDomains::set_max_results): <p>The maximum number of results to return in a single call.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListMailDomains::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListMailDomains::set_next_token): <p>The token to use to retrieve the next page of results. The first call does not require a token.</p>
/// - On success, responds with [`ListMailDomainsOutput`](crate::output::ListMailDomainsOutput) with field(s):
/// - [`mail_domains(Option<Vec<MailDomainSummary>>)`](crate::output::ListMailDomainsOutput::mail_domains): <p>The list of mail domain summaries, specifying domains that exist in the specified Amazon WorkMail organization, along with the information about whether the domain is or isn't the default.</p>
/// - [`next_token(Option<String>)`](crate::output::ListMailDomainsOutput::next_token): <p>The token to use to retrieve the next page of results. The value becomes <code>null</code> when there are no more results to return.</p>
/// - On failure, responds with [`SdkError<ListMailDomainsError>`](crate::error::ListMailDomainsError)
pub fn list_mail_domains(&self) -> fluent_builders::ListMailDomains {
fluent_builders::ListMailDomains::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListMobileDeviceAccessOverrides`](crate::client::fluent_builders::ListMobileDeviceAccessOverrides) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListMobileDeviceAccessOverrides::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::ListMobileDeviceAccessOverrides::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::ListMobileDeviceAccessOverrides::set_organization_id): <p>The Amazon WorkMail organization under which to list mobile device access overrides.</p>
/// - [`user_id(impl Into<String>)`](crate::client::fluent_builders::ListMobileDeviceAccessOverrides::user_id) / [`set_user_id(Option<String>)`](crate::client::fluent_builders::ListMobileDeviceAccessOverrides::set_user_id): <p>The WorkMail user under which you list the mobile device access overrides. Accepts the following types of user identities:</p> <ul> <li> <p>User ID: <code>12345678-1234-1234-1234-123456789012</code> or <code>S-1-1-12-1234567890-123456789-123456789-1234</code> </p> </li> <li> <p>Email address: <code>user@domain.tld</code> </p> </li> <li> <p>User name: <code>user</code> </p> </li> </ul>
/// - [`device_id(impl Into<String>)`](crate::client::fluent_builders::ListMobileDeviceAccessOverrides::device_id) / [`set_device_id(Option<String>)`](crate::client::fluent_builders::ListMobileDeviceAccessOverrides::set_device_id): <p>The mobile device to which the access override applies.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListMobileDeviceAccessOverrides::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListMobileDeviceAccessOverrides::set_next_token): <p>The token to use to retrieve the next page of results. The first call does not require a token.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::ListMobileDeviceAccessOverrides::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::ListMobileDeviceAccessOverrides::set_max_results): <p>The maximum number of results to return in a single call.</p>
/// - On success, responds with [`ListMobileDeviceAccessOverridesOutput`](crate::output::ListMobileDeviceAccessOverridesOutput) with field(s):
/// - [`overrides(Option<Vec<MobileDeviceAccessOverride>>)`](crate::output::ListMobileDeviceAccessOverridesOutput::overrides): <p>The list of mobile device access overrides that exist for the specified Amazon WorkMail organization and user.</p>
/// - [`next_token(Option<String>)`](crate::output::ListMobileDeviceAccessOverridesOutput::next_token): <p>The token to use to retrieve the next page of results. The value is “null” when there are no more results to return.</p>
/// - On failure, responds with [`SdkError<ListMobileDeviceAccessOverridesError>`](crate::error::ListMobileDeviceAccessOverridesError)
pub fn list_mobile_device_access_overrides(
&self,
) -> fluent_builders::ListMobileDeviceAccessOverrides {
fluent_builders::ListMobileDeviceAccessOverrides::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListMobileDeviceAccessRules`](crate::client::fluent_builders::ListMobileDeviceAccessRules) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::ListMobileDeviceAccessRules::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::ListMobileDeviceAccessRules::set_organization_id): <p>The Amazon WorkMail organization for which to list the rules.</p>
/// - On success, responds with [`ListMobileDeviceAccessRulesOutput`](crate::output::ListMobileDeviceAccessRulesOutput) with field(s):
/// - [`rules(Option<Vec<MobileDeviceAccessRule>>)`](crate::output::ListMobileDeviceAccessRulesOutput::rules): <p>The list of mobile device access rules that exist under the specified Amazon WorkMail organization.</p>
/// - On failure, responds with [`SdkError<ListMobileDeviceAccessRulesError>`](crate::error::ListMobileDeviceAccessRulesError)
pub fn list_mobile_device_access_rules(&self) -> fluent_builders::ListMobileDeviceAccessRules {
fluent_builders::ListMobileDeviceAccessRules::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListOrganizations`](crate::client::fluent_builders::ListOrganizations) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListOrganizations::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListOrganizations::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListOrganizations::set_next_token): <p>The token to use to retrieve the next page of results. The first call does not contain any tokens.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::ListOrganizations::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::ListOrganizations::set_max_results): <p>The maximum number of results to return in a single call.</p>
/// - On success, responds with [`ListOrganizationsOutput`](crate::output::ListOrganizationsOutput) with field(s):
/// - [`organization_summaries(Option<Vec<OrganizationSummary>>)`](crate::output::ListOrganizationsOutput::organization_summaries): <p>The overview of owned organizations presented as a list of organization summaries.</p>
/// - [`next_token(Option<String>)`](crate::output::ListOrganizationsOutput::next_token): <p>The token to use to retrieve the next page of results. The value is "null" when there are no more results to return.</p>
/// - On failure, responds with [`SdkError<ListOrganizationsError>`](crate::error::ListOrganizationsError)
pub fn list_organizations(&self) -> fluent_builders::ListOrganizations {
fluent_builders::ListOrganizations::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListResourceDelegates`](crate::client::fluent_builders::ListResourceDelegates) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListResourceDelegates::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::ListResourceDelegates::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::ListResourceDelegates::set_organization_id): <p>The identifier for the organization that contains the resource for which delegates are listed.</p>
/// - [`resource_id(impl Into<String>)`](crate::client::fluent_builders::ListResourceDelegates::resource_id) / [`set_resource_id(Option<String>)`](crate::client::fluent_builders::ListResourceDelegates::set_resource_id): <p>The identifier for the resource whose delegates are listed.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListResourceDelegates::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListResourceDelegates::set_next_token): <p>The token used to paginate through the delegates associated with a resource.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::ListResourceDelegates::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::ListResourceDelegates::set_max_results): <p>The number of maximum results in a page.</p>
/// - On success, responds with [`ListResourceDelegatesOutput`](crate::output::ListResourceDelegatesOutput) with field(s):
/// - [`delegates(Option<Vec<Delegate>>)`](crate::output::ListResourceDelegatesOutput::delegates): <p>One page of the resource's delegates.</p>
/// - [`next_token(Option<String>)`](crate::output::ListResourceDelegatesOutput::next_token): <p>The token used to paginate through the delegates associated with a resource. While results are still available, it has an associated value. When the last page is reached, the token is empty. </p>
/// - On failure, responds with [`SdkError<ListResourceDelegatesError>`](crate::error::ListResourceDelegatesError)
pub fn list_resource_delegates(&self) -> fluent_builders::ListResourceDelegates {
fluent_builders::ListResourceDelegates::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListResources`](crate::client::fluent_builders::ListResources) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListResources::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::ListResources::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::ListResources::set_organization_id): <p>The identifier for the organization under which the resources exist.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListResources::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListResources::set_next_token): <p>The token to use to retrieve the next page of results. The first call does not contain any tokens.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::ListResources::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::ListResources::set_max_results): <p>The maximum number of results to return in a single call.</p>
/// - On success, responds with [`ListResourcesOutput`](crate::output::ListResourcesOutput) with field(s):
/// - [`resources(Option<Vec<Resource>>)`](crate::output::ListResourcesOutput::resources): <p>One page of the organization's resource representation.</p>
/// - [`next_token(Option<String>)`](crate::output::ListResourcesOutput::next_token): <p> The token used to paginate through all the organization's resources. While results are still available, it has an associated value. When the last page is reached, the token is empty.</p>
/// - On failure, responds with [`SdkError<ListResourcesError>`](crate::error::ListResourcesError)
pub fn list_resources(&self) -> fluent_builders::ListResources {
fluent_builders::ListResources::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListTagsForResource`](crate::client::fluent_builders::ListTagsForResource) operation.
///
/// - The fluent builder is configurable:
/// - [`resource_arn(impl Into<String>)`](crate::client::fluent_builders::ListTagsForResource::resource_arn) / [`set_resource_arn(Option<String>)`](crate::client::fluent_builders::ListTagsForResource::set_resource_arn): <p>The resource ARN.</p>
/// - On success, responds with [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput) with field(s):
/// - [`tags(Option<Vec<Tag>>)`](crate::output::ListTagsForResourceOutput::tags): <p>A list of tag key-value pairs.</p>
/// - On failure, responds with [`SdkError<ListTagsForResourceError>`](crate::error::ListTagsForResourceError)
pub fn list_tags_for_resource(&self) -> fluent_builders::ListTagsForResource {
fluent_builders::ListTagsForResource::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListUsers`](crate::client::fluent_builders::ListUsers) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListUsers::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::ListUsers::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::ListUsers::set_organization_id): <p>The identifier for the organization under which the users exist.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListUsers::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListUsers::set_next_token): <p>The token to use to retrieve the next page of results. The first call does not contain any tokens.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::ListUsers::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::ListUsers::set_max_results): <p>The maximum number of results to return in a single call.</p>
/// - On success, responds with [`ListUsersOutput`](crate::output::ListUsersOutput) with field(s):
/// - [`users(Option<Vec<User>>)`](crate::output::ListUsersOutput::users): <p>The overview of users for an organization.</p>
/// - [`next_token(Option<String>)`](crate::output::ListUsersOutput::next_token): <p> The token to use to retrieve the next page of results. This value is `null` when there are no more results to return.</p>
/// - On failure, responds with [`SdkError<ListUsersError>`](crate::error::ListUsersError)
pub fn list_users(&self) -> fluent_builders::ListUsers {
fluent_builders::ListUsers::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`PutAccessControlRule`](crate::client::fluent_builders::PutAccessControlRule) operation.
///
/// - The fluent builder is configurable:
/// - [`name(impl Into<String>)`](crate::client::fluent_builders::PutAccessControlRule::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::PutAccessControlRule::set_name): <p>The rule name.</p>
/// - [`effect(AccessControlRuleEffect)`](crate::client::fluent_builders::PutAccessControlRule::effect) / [`set_effect(Option<AccessControlRuleEffect>)`](crate::client::fluent_builders::PutAccessControlRule::set_effect): <p>The rule effect.</p>
/// - [`description(impl Into<String>)`](crate::client::fluent_builders::PutAccessControlRule::description) / [`set_description(Option<String>)`](crate::client::fluent_builders::PutAccessControlRule::set_description): <p>The rule description.</p>
/// - [`ip_ranges(Vec<String>)`](crate::client::fluent_builders::PutAccessControlRule::ip_ranges) / [`set_ip_ranges(Option<Vec<String>>)`](crate::client::fluent_builders::PutAccessControlRule::set_ip_ranges): <p>IPv4 CIDR ranges to include in the rule.</p>
/// - [`not_ip_ranges(Vec<String>)`](crate::client::fluent_builders::PutAccessControlRule::not_ip_ranges) / [`set_not_ip_ranges(Option<Vec<String>>)`](crate::client::fluent_builders::PutAccessControlRule::set_not_ip_ranges): <p>IPv4 CIDR ranges to exclude from the rule.</p>
/// - [`actions(Vec<String>)`](crate::client::fluent_builders::PutAccessControlRule::actions) / [`set_actions(Option<Vec<String>>)`](crate::client::fluent_builders::PutAccessControlRule::set_actions): <p>Access protocol actions to include in the rule. Valid values include <code>ActiveSync</code>, <code>AutoDiscover</code>, <code>EWS</code>, <code>IMAP</code>, <code>SMTP</code>, <code>WindowsOutlook</code>, and <code>WebMail</code>.</p>
/// - [`not_actions(Vec<String>)`](crate::client::fluent_builders::PutAccessControlRule::not_actions) / [`set_not_actions(Option<Vec<String>>)`](crate::client::fluent_builders::PutAccessControlRule::set_not_actions): <p>Access protocol actions to exclude from the rule. Valid values include <code>ActiveSync</code>, <code>AutoDiscover</code>, <code>EWS</code>, <code>IMAP</code>, <code>SMTP</code>, <code>WindowsOutlook</code>, and <code>WebMail</code>.</p>
/// - [`user_ids(Vec<String>)`](crate::client::fluent_builders::PutAccessControlRule::user_ids) / [`set_user_ids(Option<Vec<String>>)`](crate::client::fluent_builders::PutAccessControlRule::set_user_ids): <p>User IDs to include in the rule.</p>
/// - [`not_user_ids(Vec<String>)`](crate::client::fluent_builders::PutAccessControlRule::not_user_ids) / [`set_not_user_ids(Option<Vec<String>>)`](crate::client::fluent_builders::PutAccessControlRule::set_not_user_ids): <p>User IDs to exclude from the rule.</p>
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::PutAccessControlRule::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::PutAccessControlRule::set_organization_id): <p>The identifier of the organization.</p>
/// - On success, responds with [`PutAccessControlRuleOutput`](crate::output::PutAccessControlRuleOutput)
/// - On failure, responds with [`SdkError<PutAccessControlRuleError>`](crate::error::PutAccessControlRuleError)
pub fn put_access_control_rule(&self) -> fluent_builders::PutAccessControlRule {
fluent_builders::PutAccessControlRule::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`PutEmailMonitoringConfiguration`](crate::client::fluent_builders::PutEmailMonitoringConfiguration) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::PutEmailMonitoringConfiguration::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::PutEmailMonitoringConfiguration::set_organization_id): <p>The ID of the organization for which the email monitoring configuration is set.</p>
/// - [`role_arn(impl Into<String>)`](crate::client::fluent_builders::PutEmailMonitoringConfiguration::role_arn) / [`set_role_arn(Option<String>)`](crate::client::fluent_builders::PutEmailMonitoringConfiguration::set_role_arn): <p>The Amazon Resource Name (ARN) of the IAM Role associated with the email monitoring configuration.</p>
/// - [`log_group_arn(impl Into<String>)`](crate::client::fluent_builders::PutEmailMonitoringConfiguration::log_group_arn) / [`set_log_group_arn(Option<String>)`](crate::client::fluent_builders::PutEmailMonitoringConfiguration::set_log_group_arn): <p>The Amazon Resource Name (ARN) of the CloudWatch Log group associated with the email monitoring configuration.</p>
/// - On success, responds with [`PutEmailMonitoringConfigurationOutput`](crate::output::PutEmailMonitoringConfigurationOutput)
/// - On failure, responds with [`SdkError<PutEmailMonitoringConfigurationError>`](crate::error::PutEmailMonitoringConfigurationError)
pub fn put_email_monitoring_configuration(
&self,
) -> fluent_builders::PutEmailMonitoringConfiguration {
fluent_builders::PutEmailMonitoringConfiguration::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`PutInboundDmarcSettings`](crate::client::fluent_builders::PutInboundDmarcSettings) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::PutInboundDmarcSettings::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::PutInboundDmarcSettings::set_organization_id): <p>The ID of the organization that you are applying the DMARC policy to. </p>
/// - [`enforced(bool)`](crate::client::fluent_builders::PutInboundDmarcSettings::enforced) / [`set_enforced(Option<bool>)`](crate::client::fluent_builders::PutInboundDmarcSettings::set_enforced): <p>Enforces or suspends a policy after it's applied.</p>
/// - On success, responds with [`PutInboundDmarcSettingsOutput`](crate::output::PutInboundDmarcSettingsOutput)
/// - On failure, responds with [`SdkError<PutInboundDmarcSettingsError>`](crate::error::PutInboundDmarcSettingsError)
pub fn put_inbound_dmarc_settings(&self) -> fluent_builders::PutInboundDmarcSettings {
fluent_builders::PutInboundDmarcSettings::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`PutMailboxPermissions`](crate::client::fluent_builders::PutMailboxPermissions) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::PutMailboxPermissions::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::PutMailboxPermissions::set_organization_id): <p>The identifier of the organization under which the user, group, or resource exists.</p>
/// - [`entity_id(impl Into<String>)`](crate::client::fluent_builders::PutMailboxPermissions::entity_id) / [`set_entity_id(Option<String>)`](crate::client::fluent_builders::PutMailboxPermissions::set_entity_id): <p>The identifier of the user, group, or resource for which to update mailbox permissions.</p>
/// - [`grantee_id(impl Into<String>)`](crate::client::fluent_builders::PutMailboxPermissions::grantee_id) / [`set_grantee_id(Option<String>)`](crate::client::fluent_builders::PutMailboxPermissions::set_grantee_id): <p>The identifier of the user, group, or resource to which to grant the permissions.</p>
/// - [`permission_values(Vec<PermissionType>)`](crate::client::fluent_builders::PutMailboxPermissions::permission_values) / [`set_permission_values(Option<Vec<PermissionType>>)`](crate::client::fluent_builders::PutMailboxPermissions::set_permission_values): <p>The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions set on the mailbox.</p>
/// - On success, responds with [`PutMailboxPermissionsOutput`](crate::output::PutMailboxPermissionsOutput)
/// - On failure, responds with [`SdkError<PutMailboxPermissionsError>`](crate::error::PutMailboxPermissionsError)
pub fn put_mailbox_permissions(&self) -> fluent_builders::PutMailboxPermissions {
fluent_builders::PutMailboxPermissions::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`PutMobileDeviceAccessOverride`](crate::client::fluent_builders::PutMobileDeviceAccessOverride) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::PutMobileDeviceAccessOverride::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::PutMobileDeviceAccessOverride::set_organization_id): <p>Identifies the Amazon WorkMail organization for which you create the override.</p>
/// - [`user_id(impl Into<String>)`](crate::client::fluent_builders::PutMobileDeviceAccessOverride::user_id) / [`set_user_id(Option<String>)`](crate::client::fluent_builders::PutMobileDeviceAccessOverride::set_user_id): <p>The WorkMail user for which you create the override. Accepts the following types of user identities:</p> <ul> <li> <p>User ID: <code>12345678-1234-1234-1234-123456789012</code> or <code>S-1-1-12-1234567890-123456789-123456789-1234</code> </p> </li> <li> <p>Email address: <code>user@domain.tld</code> </p> </li> <li> <p>User name: <code>user</code> </p> </li> </ul>
/// - [`device_id(impl Into<String>)`](crate::client::fluent_builders::PutMobileDeviceAccessOverride::device_id) / [`set_device_id(Option<String>)`](crate::client::fluent_builders::PutMobileDeviceAccessOverride::set_device_id): <p>The mobile device for which you create the override. <code>DeviceId</code> is case insensitive.</p>
/// - [`effect(MobileDeviceAccessRuleEffect)`](crate::client::fluent_builders::PutMobileDeviceAccessOverride::effect) / [`set_effect(Option<MobileDeviceAccessRuleEffect>)`](crate::client::fluent_builders::PutMobileDeviceAccessOverride::set_effect): <p>The effect of the override, <code>ALLOW</code> or <code>DENY</code>.</p>
/// - [`description(impl Into<String>)`](crate::client::fluent_builders::PutMobileDeviceAccessOverride::description) / [`set_description(Option<String>)`](crate::client::fluent_builders::PutMobileDeviceAccessOverride::set_description): <p>A description of the override.</p>
/// - On success, responds with [`PutMobileDeviceAccessOverrideOutput`](crate::output::PutMobileDeviceAccessOverrideOutput)
/// - On failure, responds with [`SdkError<PutMobileDeviceAccessOverrideError>`](crate::error::PutMobileDeviceAccessOverrideError)
pub fn put_mobile_device_access_override(
&self,
) -> fluent_builders::PutMobileDeviceAccessOverride {
fluent_builders::PutMobileDeviceAccessOverride::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`PutRetentionPolicy`](crate::client::fluent_builders::PutRetentionPolicy) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::PutRetentionPolicy::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::PutRetentionPolicy::set_organization_id): <p>The organization ID.</p>
/// - [`id(impl Into<String>)`](crate::client::fluent_builders::PutRetentionPolicy::id) / [`set_id(Option<String>)`](crate::client::fluent_builders::PutRetentionPolicy::set_id): <p>The retention policy ID.</p>
/// - [`name(impl Into<String>)`](crate::client::fluent_builders::PutRetentionPolicy::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::PutRetentionPolicy::set_name): <p>The retention policy name.</p>
/// - [`description(impl Into<String>)`](crate::client::fluent_builders::PutRetentionPolicy::description) / [`set_description(Option<String>)`](crate::client::fluent_builders::PutRetentionPolicy::set_description): <p>The retention policy description.</p>
/// - [`folder_configurations(Vec<FolderConfiguration>)`](crate::client::fluent_builders::PutRetentionPolicy::folder_configurations) / [`set_folder_configurations(Option<Vec<FolderConfiguration>>)`](crate::client::fluent_builders::PutRetentionPolicy::set_folder_configurations): <p>The retention policy folder configurations.</p>
/// - On success, responds with [`PutRetentionPolicyOutput`](crate::output::PutRetentionPolicyOutput)
/// - On failure, responds with [`SdkError<PutRetentionPolicyError>`](crate::error::PutRetentionPolicyError)
pub fn put_retention_policy(&self) -> fluent_builders::PutRetentionPolicy {
fluent_builders::PutRetentionPolicy::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`RegisterMailDomain`](crate::client::fluent_builders::RegisterMailDomain) operation.
///
/// - The fluent builder is configurable:
/// - [`client_token(impl Into<String>)`](crate::client::fluent_builders::RegisterMailDomain::client_token) / [`set_client_token(Option<String>)`](crate::client::fluent_builders::RegisterMailDomain::set_client_token): <p>Idempotency token used when retrying requests.</p>
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::RegisterMailDomain::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::RegisterMailDomain::set_organization_id): <p>The Amazon WorkMail organization under which you're creating the domain.</p>
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::RegisterMailDomain::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::RegisterMailDomain::set_domain_name): <p>The name of the mail domain to create in Amazon WorkMail and SES.</p>
/// - On success, responds with [`RegisterMailDomainOutput`](crate::output::RegisterMailDomainOutput)
/// - On failure, responds with [`SdkError<RegisterMailDomainError>`](crate::error::RegisterMailDomainError)
pub fn register_mail_domain(&self) -> fluent_builders::RegisterMailDomain {
fluent_builders::RegisterMailDomain::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`RegisterToWorkMail`](crate::client::fluent_builders::RegisterToWorkMail) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::RegisterToWorkMail::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::RegisterToWorkMail::set_organization_id): <p>The identifier for the organization under which the user, group, or resource exists.</p>
/// - [`entity_id(impl Into<String>)`](crate::client::fluent_builders::RegisterToWorkMail::entity_id) / [`set_entity_id(Option<String>)`](crate::client::fluent_builders::RegisterToWorkMail::set_entity_id): <p>The identifier for the user, group, or resource to be updated.</p>
/// - [`email(impl Into<String>)`](crate::client::fluent_builders::RegisterToWorkMail::email) / [`set_email(Option<String>)`](crate::client::fluent_builders::RegisterToWorkMail::set_email): <p>The email for the user, group, or resource to be updated.</p>
/// - On success, responds with [`RegisterToWorkMailOutput`](crate::output::RegisterToWorkMailOutput)
/// - On failure, responds with [`SdkError<RegisterToWorkMailError>`](crate::error::RegisterToWorkMailError)
pub fn register_to_work_mail(&self) -> fluent_builders::RegisterToWorkMail {
fluent_builders::RegisterToWorkMail::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ResetPassword`](crate::client::fluent_builders::ResetPassword) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::ResetPassword::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::ResetPassword::set_organization_id): <p>The identifier of the organization that contains the user for which the password is reset.</p>
/// - [`user_id(impl Into<String>)`](crate::client::fluent_builders::ResetPassword::user_id) / [`set_user_id(Option<String>)`](crate::client::fluent_builders::ResetPassword::set_user_id): <p>The identifier of the user for whom the password is reset.</p>
/// - [`password(impl Into<String>)`](crate::client::fluent_builders::ResetPassword::password) / [`set_password(Option<String>)`](crate::client::fluent_builders::ResetPassword::set_password): <p>The new password for the user.</p>
/// - On success, responds with [`ResetPasswordOutput`](crate::output::ResetPasswordOutput)
/// - On failure, responds with [`SdkError<ResetPasswordError>`](crate::error::ResetPasswordError)
pub fn reset_password(&self) -> fluent_builders::ResetPassword {
fluent_builders::ResetPassword::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`StartMailboxExportJob`](crate::client::fluent_builders::StartMailboxExportJob) operation.
///
/// - The fluent builder is configurable:
/// - [`client_token(impl Into<String>)`](crate::client::fluent_builders::StartMailboxExportJob::client_token) / [`set_client_token(Option<String>)`](crate::client::fluent_builders::StartMailboxExportJob::set_client_token): <p>The idempotency token for the client request.</p>
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::StartMailboxExportJob::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::StartMailboxExportJob::set_organization_id): <p>The identifier associated with the organization.</p>
/// - [`entity_id(impl Into<String>)`](crate::client::fluent_builders::StartMailboxExportJob::entity_id) / [`set_entity_id(Option<String>)`](crate::client::fluent_builders::StartMailboxExportJob::set_entity_id): <p>The identifier of the user or resource associated with the mailbox.</p>
/// - [`description(impl Into<String>)`](crate::client::fluent_builders::StartMailboxExportJob::description) / [`set_description(Option<String>)`](crate::client::fluent_builders::StartMailboxExportJob::set_description): <p>The mailbox export job description.</p>
/// - [`role_arn(impl Into<String>)`](crate::client::fluent_builders::StartMailboxExportJob::role_arn) / [`set_role_arn(Option<String>)`](crate::client::fluent_builders::StartMailboxExportJob::set_role_arn): <p>The ARN of the AWS Identity and Access Management (IAM) role that grants write permission to the S3 bucket.</p>
/// - [`kms_key_arn(impl Into<String>)`](crate::client::fluent_builders::StartMailboxExportJob::kms_key_arn) / [`set_kms_key_arn(Option<String>)`](crate::client::fluent_builders::StartMailboxExportJob::set_kms_key_arn): <p>The Amazon Resource Name (ARN) of the symmetric AWS Key Management Service (AWS KMS) key that encrypts the exported mailbox content.</p>
/// - [`s3_bucket_name(impl Into<String>)`](crate::client::fluent_builders::StartMailboxExportJob::s3_bucket_name) / [`set_s3_bucket_name(Option<String>)`](crate::client::fluent_builders::StartMailboxExportJob::set_s3_bucket_name): <p>The name of the S3 bucket.</p>
/// - [`s3_prefix(impl Into<String>)`](crate::client::fluent_builders::StartMailboxExportJob::s3_prefix) / [`set_s3_prefix(Option<String>)`](crate::client::fluent_builders::StartMailboxExportJob::set_s3_prefix): <p>The S3 bucket prefix.</p>
/// - On success, responds with [`StartMailboxExportJobOutput`](crate::output::StartMailboxExportJobOutput) with field(s):
/// - [`job_id(Option<String>)`](crate::output::StartMailboxExportJobOutput::job_id): <p>The job ID.</p>
/// - On failure, responds with [`SdkError<StartMailboxExportJobError>`](crate::error::StartMailboxExportJobError)
pub fn start_mailbox_export_job(&self) -> fluent_builders::StartMailboxExportJob {
fluent_builders::StartMailboxExportJob::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`TagResource`](crate::client::fluent_builders::TagResource) operation.
///
/// - The fluent builder is configurable:
/// - [`resource_arn(impl Into<String>)`](crate::client::fluent_builders::TagResource::resource_arn) / [`set_resource_arn(Option<String>)`](crate::client::fluent_builders::TagResource::set_resource_arn): <p>The resource ARN.</p>
/// - [`tags(Vec<Tag>)`](crate::client::fluent_builders::TagResource::tags) / [`set_tags(Option<Vec<Tag>>)`](crate::client::fluent_builders::TagResource::set_tags): <p>The tag key-value pairs.</p>
/// - On success, responds with [`TagResourceOutput`](crate::output::TagResourceOutput)
/// - On failure, responds with [`SdkError<TagResourceError>`](crate::error::TagResourceError)
pub fn tag_resource(&self) -> fluent_builders::TagResource {
fluent_builders::TagResource::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UntagResource`](crate::client::fluent_builders::UntagResource) operation.
///
/// - The fluent builder is configurable:
/// - [`resource_arn(impl Into<String>)`](crate::client::fluent_builders::UntagResource::resource_arn) / [`set_resource_arn(Option<String>)`](crate::client::fluent_builders::UntagResource::set_resource_arn): <p>The resource ARN.</p>
/// - [`tag_keys(Vec<String>)`](crate::client::fluent_builders::UntagResource::tag_keys) / [`set_tag_keys(Option<Vec<String>>)`](crate::client::fluent_builders::UntagResource::set_tag_keys): <p>The tag keys.</p>
/// - On success, responds with [`UntagResourceOutput`](crate::output::UntagResourceOutput)
/// - On failure, responds with [`SdkError<UntagResourceError>`](crate::error::UntagResourceError)
pub fn untag_resource(&self) -> fluent_builders::UntagResource {
fluent_builders::UntagResource::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateDefaultMailDomain`](crate::client::fluent_builders::UpdateDefaultMailDomain) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::UpdateDefaultMailDomain::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::UpdateDefaultMailDomain::set_organization_id): <p>The Amazon WorkMail organization for which to list domains.</p>
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::UpdateDefaultMailDomain::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::UpdateDefaultMailDomain::set_domain_name): <p>The domain name that will become the default domain.</p>
/// - On success, responds with [`UpdateDefaultMailDomainOutput`](crate::output::UpdateDefaultMailDomainOutput)
/// - On failure, responds with [`SdkError<UpdateDefaultMailDomainError>`](crate::error::UpdateDefaultMailDomainError)
pub fn update_default_mail_domain(&self) -> fluent_builders::UpdateDefaultMailDomain {
fluent_builders::UpdateDefaultMailDomain::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateMailboxQuota`](crate::client::fluent_builders::UpdateMailboxQuota) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::UpdateMailboxQuota::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::UpdateMailboxQuota::set_organization_id): <p>The identifier for the organization that contains the user for whom to update the mailbox quota.</p>
/// - [`user_id(impl Into<String>)`](crate::client::fluent_builders::UpdateMailboxQuota::user_id) / [`set_user_id(Option<String>)`](crate::client::fluent_builders::UpdateMailboxQuota::set_user_id): <p>The identifer for the user for whom to update the mailbox quota.</p>
/// - [`mailbox_quota(i32)`](crate::client::fluent_builders::UpdateMailboxQuota::mailbox_quota) / [`set_mailbox_quota(Option<i32>)`](crate::client::fluent_builders::UpdateMailboxQuota::set_mailbox_quota): <p>The updated mailbox quota, in MB, for the specified user.</p>
/// - On success, responds with [`UpdateMailboxQuotaOutput`](crate::output::UpdateMailboxQuotaOutput)
/// - On failure, responds with [`SdkError<UpdateMailboxQuotaError>`](crate::error::UpdateMailboxQuotaError)
pub fn update_mailbox_quota(&self) -> fluent_builders::UpdateMailboxQuota {
fluent_builders::UpdateMailboxQuota::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateMobileDeviceAccessRule`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::set_organization_id): <p>The Amazon WorkMail organization under which the rule will be updated.</p>
/// - [`mobile_device_access_rule_id(impl Into<String>)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::mobile_device_access_rule_id) / [`set_mobile_device_access_rule_id(Option<String>)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::set_mobile_device_access_rule_id): <p>The identifier of the rule to be updated.</p>
/// - [`name(impl Into<String>)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::set_name): <p>The updated rule name.</p>
/// - [`description(impl Into<String>)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::description) / [`set_description(Option<String>)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::set_description): <p>The updated rule description.</p>
/// - [`effect(MobileDeviceAccessRuleEffect)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::effect) / [`set_effect(Option<MobileDeviceAccessRuleEffect>)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::set_effect): <p>The effect of the rule when it matches. Allowed values are <code>ALLOW</code> or <code>DENY</code>.</p>
/// - [`device_types(Vec<String>)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::device_types) / [`set_device_types(Option<Vec<String>>)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::set_device_types): <p>Device types that the updated rule will match.</p>
/// - [`not_device_types(Vec<String>)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::not_device_types) / [`set_not_device_types(Option<Vec<String>>)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::set_not_device_types): <p>Device types that the updated rule <b>will not</b> match. All other device types will match.</p>
/// - [`device_models(Vec<String>)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::device_models) / [`set_device_models(Option<Vec<String>>)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::set_device_models): <p>Device models that the updated rule will match.</p>
/// - [`not_device_models(Vec<String>)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::not_device_models) / [`set_not_device_models(Option<Vec<String>>)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::set_not_device_models): <p>Device models that the updated rule <b>will not</b> match. All other device models will match.</p>
/// - [`device_operating_systems(Vec<String>)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::device_operating_systems) / [`set_device_operating_systems(Option<Vec<String>>)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::set_device_operating_systems): <p>Device operating systems that the updated rule will match.</p>
/// - [`not_device_operating_systems(Vec<String>)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::not_device_operating_systems) / [`set_not_device_operating_systems(Option<Vec<String>>)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::set_not_device_operating_systems): <p>Device operating systems that the updated rule <b>will not</b> match. All other device operating systems will match.</p>
/// - [`device_user_agents(Vec<String>)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::device_user_agents) / [`set_device_user_agents(Option<Vec<String>>)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::set_device_user_agents): <p>User agents that the updated rule will match.</p>
/// - [`not_device_user_agents(Vec<String>)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::not_device_user_agents) / [`set_not_device_user_agents(Option<Vec<String>>)`](crate::client::fluent_builders::UpdateMobileDeviceAccessRule::set_not_device_user_agents): <p>User agents that the updated rule <b>will not</b> match. All other user agents will match.</p>
/// - On success, responds with [`UpdateMobileDeviceAccessRuleOutput`](crate::output::UpdateMobileDeviceAccessRuleOutput)
/// - On failure, responds with [`SdkError<UpdateMobileDeviceAccessRuleError>`](crate::error::UpdateMobileDeviceAccessRuleError)
pub fn update_mobile_device_access_rule(
&self,
) -> fluent_builders::UpdateMobileDeviceAccessRule {
fluent_builders::UpdateMobileDeviceAccessRule::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdatePrimaryEmailAddress`](crate::client::fluent_builders::UpdatePrimaryEmailAddress) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::UpdatePrimaryEmailAddress::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::UpdatePrimaryEmailAddress::set_organization_id): <p>The organization that contains the user, group, or resource to update.</p>
/// - [`entity_id(impl Into<String>)`](crate::client::fluent_builders::UpdatePrimaryEmailAddress::entity_id) / [`set_entity_id(Option<String>)`](crate::client::fluent_builders::UpdatePrimaryEmailAddress::set_entity_id): <p>The user, group, or resource to update.</p>
/// - [`email(impl Into<String>)`](crate::client::fluent_builders::UpdatePrimaryEmailAddress::email) / [`set_email(Option<String>)`](crate::client::fluent_builders::UpdatePrimaryEmailAddress::set_email): <p>The value of the email to be updated as primary.</p>
/// - On success, responds with [`UpdatePrimaryEmailAddressOutput`](crate::output::UpdatePrimaryEmailAddressOutput)
/// - On failure, responds with [`SdkError<UpdatePrimaryEmailAddressError>`](crate::error::UpdatePrimaryEmailAddressError)
pub fn update_primary_email_address(&self) -> fluent_builders::UpdatePrimaryEmailAddress {
fluent_builders::UpdatePrimaryEmailAddress::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateResource`](crate::client::fluent_builders::UpdateResource) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::client::fluent_builders::UpdateResource::organization_id) / [`set_organization_id(Option<String>)`](crate::client::fluent_builders::UpdateResource::set_organization_id): <p>The identifier associated with the organization for which the resource is updated.</p>
/// - [`resource_id(impl Into<String>)`](crate::client::fluent_builders::UpdateResource::resource_id) / [`set_resource_id(Option<String>)`](crate::client::fluent_builders::UpdateResource::set_resource_id): <p>The identifier of the resource to be updated.</p>
/// - [`name(impl Into<String>)`](crate::client::fluent_builders::UpdateResource::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::UpdateResource::set_name): <p>The name of the resource to be updated.</p>
/// - [`booking_options(BookingOptions)`](crate::client::fluent_builders::UpdateResource::booking_options) / [`set_booking_options(Option<BookingOptions>)`](crate::client::fluent_builders::UpdateResource::set_booking_options): <p>The resource's booking options to be updated.</p>
/// - On success, responds with [`UpdateResourceOutput`](crate::output::UpdateResourceOutput)
/// - On failure, responds with [`SdkError<UpdateResourceError>`](crate::error::UpdateResourceError)
pub fn update_resource(&self) -> fluent_builders::UpdateResource {
fluent_builders::UpdateResource::new(self.handle.clone())
}
}
pub mod fluent_builders {
//!
//! Utilities to ergonomically construct a request to the service.
//!
//! Fluent builders are created through the [`Client`](crate::client::Client) by calling
//! one if its operation methods. After parameters are set using the builder methods,
//! the `send` method can be called to initiate the request.
//!
/// Fluent builder constructing a request to `AssociateDelegateToResource`.
///
/// <p>Adds a member (user or group) to the resource's set of delegates.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct AssociateDelegateToResource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::associate_delegate_to_resource_input::Builder,
}
impl AssociateDelegateToResource {
/// Creates a new `AssociateDelegateToResource`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::AssociateDelegateToResourceOutput,
aws_smithy_http::result::SdkError<crate::error::AssociateDelegateToResourceError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The organization under which the resource exists.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The organization under which the resource exists.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The resource for which members (users or groups) are associated.</p>
pub fn resource_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.resource_id(input.into());
self
}
/// <p>The resource for which members (users or groups) are associated.</p>
pub fn set_resource_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_resource_id(input);
self
}
/// <p>The member (user or group) to associate to the resource.</p>
pub fn entity_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.entity_id(input.into());
self
}
/// <p>The member (user or group) to associate to the resource.</p>
pub fn set_entity_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_entity_id(input);
self
}
}
/// Fluent builder constructing a request to `AssociateMemberToGroup`.
///
/// <p>Adds a member (user or group) to the group's set.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct AssociateMemberToGroup {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::associate_member_to_group_input::Builder,
}
impl AssociateMemberToGroup {
/// Creates a new `AssociateMemberToGroup`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::AssociateMemberToGroupOutput,
aws_smithy_http::result::SdkError<crate::error::AssociateMemberToGroupError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The organization under which the group exists.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The organization under which the group exists.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The group to which the member (user or group) is associated.</p>
pub fn group_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.group_id(input.into());
self
}
/// <p>The group to which the member (user or group) is associated.</p>
pub fn set_group_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_group_id(input);
self
}
/// <p>The member (user or group) to associate to the group.</p>
pub fn member_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.member_id(input.into());
self
}
/// <p>The member (user or group) to associate to the group.</p>
pub fn set_member_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_member_id(input);
self
}
}
/// Fluent builder constructing a request to `CancelMailboxExportJob`.
///
/// <p>Cancels a mailbox export job.</p> <note>
/// <p>If the mailbox export job is near completion, it might not be possible to cancel it.</p>
/// </note>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CancelMailboxExportJob {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::cancel_mailbox_export_job_input::Builder,
}
impl CancelMailboxExportJob {
/// Creates a new `CancelMailboxExportJob`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CancelMailboxExportJobOutput,
aws_smithy_http::result::SdkError<crate::error::CancelMailboxExportJobError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The idempotency token for the client request.</p>
pub fn client_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.client_token(input.into());
self
}
/// <p>The idempotency token for the client request.</p>
pub fn set_client_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_client_token(input);
self
}
/// <p>The job ID.</p>
pub fn job_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.job_id(input.into());
self
}
/// <p>The job ID.</p>
pub fn set_job_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_job_id(input);
self
}
/// <p>The organization ID.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The organization ID.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
}
/// Fluent builder constructing a request to `CreateAlias`.
///
/// <p>Adds an alias to the set of a given member (user or group) of Amazon WorkMail.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateAlias {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_alias_input::Builder,
}
impl CreateAlias {
/// Creates a new `CreateAlias`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateAliasOutput,
aws_smithy_http::result::SdkError<crate::error::CreateAliasError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The organization under which the member (user or group) exists.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The organization under which the member (user or group) exists.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The member (user or group) to which this alias is added.</p>
pub fn entity_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.entity_id(input.into());
self
}
/// <p>The member (user or group) to which this alias is added.</p>
pub fn set_entity_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_entity_id(input);
self
}
/// <p>The alias to add to the member set.</p>
pub fn alias(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.alias(input.into());
self
}
/// <p>The alias to add to the member set.</p>
pub fn set_alias(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_alias(input);
self
}
}
/// Fluent builder constructing a request to `CreateGroup`.
///
/// <p>Creates a group that can be used in Amazon WorkMail by calling the <code>RegisterToWorkMail</code> operation.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateGroup {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_group_input::Builder,
}
impl CreateGroup {
/// Creates a new `CreateGroup`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateGroupOutput,
aws_smithy_http::result::SdkError<crate::error::CreateGroupError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The organization under which the group is to be created.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The organization under which the group is to be created.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The name of the group.</p>
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
/// <p>The name of the group.</p>
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
}
/// Fluent builder constructing a request to `CreateMobileDeviceAccessRule`.
///
/// <p>Creates a new mobile device access rule for the specified Amazon WorkMail organization.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateMobileDeviceAccessRule {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_mobile_device_access_rule_input::Builder,
}
impl CreateMobileDeviceAccessRule {
/// Creates a new `CreateMobileDeviceAccessRule`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateMobileDeviceAccessRuleOutput,
aws_smithy_http::result::SdkError<crate::error::CreateMobileDeviceAccessRuleError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The Amazon WorkMail organization under which the rule will be created.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The Amazon WorkMail organization under which the rule will be created.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The idempotency token for the client request.</p>
pub fn client_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.client_token(input.into());
self
}
/// <p>The idempotency token for the client request.</p>
pub fn set_client_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_client_token(input);
self
}
/// <p>The rule name.</p>
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
/// <p>The rule name.</p>
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
/// <p>The rule description.</p>
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.description(input.into());
self
}
/// <p>The rule description.</p>
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_description(input);
self
}
/// <p>The effect of the rule when it matches. Allowed values are <code>ALLOW</code> or <code>DENY</code>.</p>
pub fn effect(mut self, input: crate::model::MobileDeviceAccessRuleEffect) -> Self {
self.inner = self.inner.effect(input);
self
}
/// <p>The effect of the rule when it matches. Allowed values are <code>ALLOW</code> or <code>DENY</code>.</p>
pub fn set_effect(
mut self,
input: std::option::Option<crate::model::MobileDeviceAccessRuleEffect>,
) -> Self {
self.inner = self.inner.set_effect(input);
self
}
/// Appends an item to `DeviceTypes`.
///
/// To override the contents of this collection use [`set_device_types`](Self::set_device_types).
///
/// <p>Device types that the rule will match.</p>
pub fn device_types(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.device_types(input.into());
self
}
/// <p>Device types that the rule will match.</p>
pub fn set_device_types(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_device_types(input);
self
}
/// Appends an item to `NotDeviceTypes`.
///
/// To override the contents of this collection use [`set_not_device_types`](Self::set_not_device_types).
///
/// <p>Device types that the rule <b>will not</b> match. All other device types will match.</p>
pub fn not_device_types(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.not_device_types(input.into());
self
}
/// <p>Device types that the rule <b>will not</b> match. All other device types will match.</p>
pub fn set_not_device_types(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_not_device_types(input);
self
}
/// Appends an item to `DeviceModels`.
///
/// To override the contents of this collection use [`set_device_models`](Self::set_device_models).
///
/// <p>Device models that the rule will match.</p>
pub fn device_models(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.device_models(input.into());
self
}
/// <p>Device models that the rule will match.</p>
pub fn set_device_models(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_device_models(input);
self
}
/// Appends an item to `NotDeviceModels`.
///
/// To override the contents of this collection use [`set_not_device_models`](Self::set_not_device_models).
///
/// <p>Device models that the rule <b>will not</b> match. All other device models will match.</p>
pub fn not_device_models(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.not_device_models(input.into());
self
}
/// <p>Device models that the rule <b>will not</b> match. All other device models will match.</p>
pub fn set_not_device_models(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_not_device_models(input);
self
}
/// Appends an item to `DeviceOperatingSystems`.
///
/// To override the contents of this collection use [`set_device_operating_systems`](Self::set_device_operating_systems).
///
/// <p>Device operating systems that the rule will match.</p>
pub fn device_operating_systems(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.device_operating_systems(input.into());
self
}
/// <p>Device operating systems that the rule will match.</p>
pub fn set_device_operating_systems(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_device_operating_systems(input);
self
}
/// Appends an item to `NotDeviceOperatingSystems`.
///
/// To override the contents of this collection use [`set_not_device_operating_systems`](Self::set_not_device_operating_systems).
///
/// <p>Device operating systems that the rule <b>will not</b> match. All other device operating systems will match.</p>
pub fn not_device_operating_systems(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.inner = self.inner.not_device_operating_systems(input.into());
self
}
/// <p>Device operating systems that the rule <b>will not</b> match. All other device operating systems will match.</p>
pub fn set_not_device_operating_systems(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_not_device_operating_systems(input);
self
}
/// Appends an item to `DeviceUserAgents`.
///
/// To override the contents of this collection use [`set_device_user_agents`](Self::set_device_user_agents).
///
/// <p>Device user agents that the rule will match.</p>
pub fn device_user_agents(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.device_user_agents(input.into());
self
}
/// <p>Device user agents that the rule will match.</p>
pub fn set_device_user_agents(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_device_user_agents(input);
self
}
/// Appends an item to `NotDeviceUserAgents`.
///
/// To override the contents of this collection use [`set_not_device_user_agents`](Self::set_not_device_user_agents).
///
/// <p>Device user agents that the rule <b>will not</b> match. All other device user agents will match.</p>
pub fn not_device_user_agents(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.not_device_user_agents(input.into());
self
}
/// <p>Device user agents that the rule <b>will not</b> match. All other device user agents will match.</p>
pub fn set_not_device_user_agents(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_not_device_user_agents(input);
self
}
}
/// Fluent builder constructing a request to `CreateOrganization`.
///
/// <p>Creates a new Amazon WorkMail organization. Optionally, you can choose to associate an existing AWS Directory Service directory with your organization. If an AWS Directory Service directory ID is specified, the organization alias must match the directory alias. If you choose not to associate an existing directory with your organization, then we create a new Amazon WorkMail directory for you. For more information, see <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/add_new_organization.html">Adding an organization</a> in the <i>Amazon WorkMail Administrator Guide</i>.</p>
/// <p>You can associate multiple email domains with an organization, then set your default email domain from the Amazon WorkMail console. You can also associate a domain that is managed in an Amazon Route 53 public hosted zone. For more information, see <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/add_domain.html">Adding a domain</a> and <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/default_domain.html">Choosing the default domain</a> in the <i>Amazon WorkMail Administrator Guide</i>.</p>
/// <p>Optionally, you can use a customer managed master key from AWS Key Management Service (AWS KMS) to encrypt email for your organization. If you don't associate an AWS KMS key, Amazon WorkMail creates a default AWS managed master key for you.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateOrganization {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_organization_input::Builder,
}
impl CreateOrganization {
/// Creates a new `CreateOrganization`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateOrganizationOutput,
aws_smithy_http::result::SdkError<crate::error::CreateOrganizationError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The AWS Directory Service directory ID.</p>
pub fn directory_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.directory_id(input.into());
self
}
/// <p>The AWS Directory Service directory ID.</p>
pub fn set_directory_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_directory_id(input);
self
}
/// <p>The organization alias.</p>
pub fn alias(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.alias(input.into());
self
}
/// <p>The organization alias.</p>
pub fn set_alias(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_alias(input);
self
}
/// <p>The idempotency token associated with the request.</p>
pub fn client_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.client_token(input.into());
self
}
/// <p>The idempotency token associated with the request.</p>
pub fn set_client_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_client_token(input);
self
}
/// Appends an item to `Domains`.
///
/// To override the contents of this collection use [`set_domains`](Self::set_domains).
///
/// <p>The email domains to associate with the organization.</p>
pub fn domains(mut self, input: crate::model::Domain) -> Self {
self.inner = self.inner.domains(input);
self
}
/// <p>The email domains to associate with the organization.</p>
pub fn set_domains(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Domain>>,
) -> Self {
self.inner = self.inner.set_domains(input);
self
}
/// <p>The Amazon Resource Name (ARN) of a customer managed master key from AWS KMS.</p>
pub fn kms_key_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.kms_key_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of a customer managed master key from AWS KMS.</p>
pub fn set_kms_key_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_kms_key_arn(input);
self
}
/// <p>When <code>true</code>, allows organization interoperability between Amazon WorkMail and Microsoft Exchange. Can only be set to <code>true</code> if an AD Connector directory ID is included in the request.</p>
pub fn enable_interoperability(mut self, input: bool) -> Self {
self.inner = self.inner.enable_interoperability(input);
self
}
/// <p>When <code>true</code>, allows organization interoperability between Amazon WorkMail and Microsoft Exchange. Can only be set to <code>true</code> if an AD Connector directory ID is included in the request.</p>
pub fn set_enable_interoperability(mut self, input: std::option::Option<bool>) -> Self {
self.inner = self.inner.set_enable_interoperability(input);
self
}
}
/// Fluent builder constructing a request to `CreateResource`.
///
/// <p>Creates a new Amazon WorkMail resource. </p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateResource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_resource_input::Builder,
}
impl CreateResource {
/// Creates a new `CreateResource`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateResourceOutput,
aws_smithy_http::result::SdkError<crate::error::CreateResourceError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identifier associated with the organization for which the resource is created.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier associated with the organization for which the resource is created.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The name of the new resource.</p>
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
/// <p>The name of the new resource.</p>
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
/// <p>The type of the new resource. The available types are <code>equipment</code> and <code>room</code>.</p>
pub fn r#type(mut self, input: crate::model::ResourceType) -> Self {
self.inner = self.inner.r#type(input);
self
}
/// <p>The type of the new resource. The available types are <code>equipment</code> and <code>room</code>.</p>
pub fn set_type(mut self, input: std::option::Option<crate::model::ResourceType>) -> Self {
self.inner = self.inner.set_type(input);
self
}
}
/// Fluent builder constructing a request to `CreateUser`.
///
/// <p>Creates a user who can be used in Amazon WorkMail by calling the <code>RegisterToWorkMail</code> operation.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateUser {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_user_input::Builder,
}
impl CreateUser {
/// Creates a new `CreateUser`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateUserOutput,
aws_smithy_http::result::SdkError<crate::error::CreateUserError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identifier of the organization for which the user is created.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier of the organization for which the user is created.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The name for the new user. WorkMail directory user names have a maximum length of 64. All others have a maximum length of 20.</p>
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
/// <p>The name for the new user. WorkMail directory user names have a maximum length of 64. All others have a maximum length of 20.</p>
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
/// <p>The display name for the new user.</p>
pub fn display_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.display_name(input.into());
self
}
/// <p>The display name for the new user.</p>
pub fn set_display_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_display_name(input);
self
}
/// <p>The password for the new user.</p>
pub fn password(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.password(input.into());
self
}
/// <p>The password for the new user.</p>
pub fn set_password(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_password(input);
self
}
}
/// Fluent builder constructing a request to `DeleteAccessControlRule`.
///
/// <p>Deletes an access control rule for the specified WorkMail organization.</p> <note>
/// <p>Deleting already deleted and non-existing rules does not produce an error. In those cases, the service sends back an HTTP 200 response with an empty HTTP body.</p>
/// </note>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteAccessControlRule {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_access_control_rule_input::Builder,
}
impl DeleteAccessControlRule {
/// Creates a new `DeleteAccessControlRule`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteAccessControlRuleOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteAccessControlRuleError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identifier for the organization.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier for the organization.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The name of the access control rule.</p>
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
/// <p>The name of the access control rule.</p>
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
}
/// Fluent builder constructing a request to `DeleteAlias`.
///
/// <p>Remove one or more specified aliases from a set of aliases for a given user.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteAlias {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_alias_input::Builder,
}
impl DeleteAlias {
/// Creates a new `DeleteAlias`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteAliasOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteAliasError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identifier for the organization under which the user exists.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier for the organization under which the user exists.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The identifier for the member (user or group) from which to have the aliases removed.</p>
pub fn entity_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.entity_id(input.into());
self
}
/// <p>The identifier for the member (user or group) from which to have the aliases removed.</p>
pub fn set_entity_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_entity_id(input);
self
}
/// <p>The aliases to be removed from the user's set of aliases. Duplicate entries in the list are collapsed into single entries (the list is transformed into a set).</p>
pub fn alias(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.alias(input.into());
self
}
/// <p>The aliases to be removed from the user's set of aliases. Duplicate entries in the list are collapsed into single entries (the list is transformed into a set).</p>
pub fn set_alias(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_alias(input);
self
}
}
/// Fluent builder constructing a request to `DeleteEmailMonitoringConfiguration`.
///
/// <p>Deletes the email monitoring configuration for a specified organization.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteEmailMonitoringConfiguration {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_email_monitoring_configuration_input::Builder,
}
impl DeleteEmailMonitoringConfiguration {
/// Creates a new `DeleteEmailMonitoringConfiguration`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteEmailMonitoringConfigurationOutput,
aws_smithy_http::result::SdkError<
crate::error::DeleteEmailMonitoringConfigurationError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The ID of the organization from which the email monitoring configuration is deleted.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The ID of the organization from which the email monitoring configuration is deleted.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
}
/// Fluent builder constructing a request to `DeleteGroup`.
///
/// <p>Deletes a group from Amazon WorkMail.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteGroup {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_group_input::Builder,
}
impl DeleteGroup {
/// Creates a new `DeleteGroup`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteGroupOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteGroupError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The organization that contains the group.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The organization that contains the group.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The identifier of the group to be deleted.</p>
pub fn group_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.group_id(input.into());
self
}
/// <p>The identifier of the group to be deleted.</p>
pub fn set_group_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_group_id(input);
self
}
}
/// Fluent builder constructing a request to `DeleteMailboxPermissions`.
///
/// <p>Deletes permissions granted to a member (user or group).</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteMailboxPermissions {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_mailbox_permissions_input::Builder,
}
impl DeleteMailboxPermissions {
/// Creates a new `DeleteMailboxPermissions`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteMailboxPermissionsOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteMailboxPermissionsError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identifier of the organization under which the member (user or group) exists.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier of the organization under which the member (user or group) exists.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The identifier of the member (user or group) that owns the mailbox.</p>
pub fn entity_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.entity_id(input.into());
self
}
/// <p>The identifier of the member (user or group) that owns the mailbox.</p>
pub fn set_entity_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_entity_id(input);
self
}
/// <p>The identifier of the member (user or group) for which to delete granted permissions.</p>
pub fn grantee_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.grantee_id(input.into());
self
}
/// <p>The identifier of the member (user or group) for which to delete granted permissions.</p>
pub fn set_grantee_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_grantee_id(input);
self
}
}
/// Fluent builder constructing a request to `DeleteMobileDeviceAccessOverride`.
///
/// <p>Deletes the mobile device access override for the given WorkMail organization, user, and device.</p> <note>
/// <p>Deleting already deleted and non-existing overrides does not produce an error. In those cases, the service sends back an HTTP 200 response with an empty HTTP body.</p>
/// </note>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteMobileDeviceAccessOverride {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_mobile_device_access_override_input::Builder,
}
impl DeleteMobileDeviceAccessOverride {
/// Creates a new `DeleteMobileDeviceAccessOverride`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteMobileDeviceAccessOverrideOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteMobileDeviceAccessOverrideError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The Amazon WorkMail organization for which the access override will be deleted.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The Amazon WorkMail organization for which the access override will be deleted.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The WorkMail user for which you want to delete the override. Accepts the following types of user identities:</p>
/// <ul>
/// <li> <p>User ID: <code>12345678-1234-1234-1234-123456789012</code> or <code>S-1-1-12-1234567890-123456789-123456789-1234</code> </p> </li>
/// <li> <p>Email address: <code>user@domain.tld</code> </p> </li>
/// <li> <p>User name: <code>user</code> </p> </li>
/// </ul>
pub fn user_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.user_id(input.into());
self
}
/// <p>The WorkMail user for which you want to delete the override. Accepts the following types of user identities:</p>
/// <ul>
/// <li> <p>User ID: <code>12345678-1234-1234-1234-123456789012</code> or <code>S-1-1-12-1234567890-123456789-123456789-1234</code> </p> </li>
/// <li> <p>Email address: <code>user@domain.tld</code> </p> </li>
/// <li> <p>User name: <code>user</code> </p> </li>
/// </ul>
pub fn set_user_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_user_id(input);
self
}
/// <p>The mobile device for which you delete the override. <code>DeviceId</code> is case insensitive.</p>
pub fn device_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.device_id(input.into());
self
}
/// <p>The mobile device for which you delete the override. <code>DeviceId</code> is case insensitive.</p>
pub fn set_device_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_device_id(input);
self
}
}
/// Fluent builder constructing a request to `DeleteMobileDeviceAccessRule`.
///
/// <p>Deletes a mobile device access rule for the specified Amazon WorkMail organization.</p> <note>
/// <p>Deleting already deleted and non-existing rules does not produce an error. In those cases, the service sends back an HTTP 200 response with an empty HTTP body.</p>
/// </note>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteMobileDeviceAccessRule {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_mobile_device_access_rule_input::Builder,
}
impl DeleteMobileDeviceAccessRule {
/// Creates a new `DeleteMobileDeviceAccessRule`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteMobileDeviceAccessRuleOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteMobileDeviceAccessRuleError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The Amazon WorkMail organization under which the rule will be deleted.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The Amazon WorkMail organization under which the rule will be deleted.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The identifier of the rule to be deleted.</p>
pub fn mobile_device_access_rule_id(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.inner = self.inner.mobile_device_access_rule_id(input.into());
self
}
/// <p>The identifier of the rule to be deleted.</p>
pub fn set_mobile_device_access_rule_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_mobile_device_access_rule_id(input);
self
}
}
/// Fluent builder constructing a request to `DeleteOrganization`.
///
/// <p>Deletes an Amazon WorkMail organization and all underlying AWS resources managed by Amazon WorkMail as part of the organization. You can choose whether to delete the associated directory. For more information, see <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/remove_organization.html">Removing an organization</a> in the <i>Amazon WorkMail Administrator Guide</i>.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteOrganization {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_organization_input::Builder,
}
impl DeleteOrganization {
/// Creates a new `DeleteOrganization`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteOrganizationOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteOrganizationError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The idempotency token associated with the request.</p>
pub fn client_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.client_token(input.into());
self
}
/// <p>The idempotency token associated with the request.</p>
pub fn set_client_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_client_token(input);
self
}
/// <p>The organization ID.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The organization ID.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>If true, deletes the AWS Directory Service directory associated with the organization.</p>
pub fn delete_directory(mut self, input: bool) -> Self {
self.inner = self.inner.delete_directory(input);
self
}
/// <p>If true, deletes the AWS Directory Service directory associated with the organization.</p>
pub fn set_delete_directory(mut self, input: std::option::Option<bool>) -> Self {
self.inner = self.inner.set_delete_directory(input);
self
}
}
/// Fluent builder constructing a request to `DeleteResource`.
///
/// <p>Deletes the specified resource. </p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteResource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_resource_input::Builder,
}
impl DeleteResource {
/// Creates a new `DeleteResource`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteResourceOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteResourceError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identifier associated with the organization from which the resource is deleted.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier associated with the organization from which the resource is deleted.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The identifier of the resource to be deleted.</p>
pub fn resource_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.resource_id(input.into());
self
}
/// <p>The identifier of the resource to be deleted.</p>
pub fn set_resource_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_resource_id(input);
self
}
}
/// Fluent builder constructing a request to `DeleteRetentionPolicy`.
///
/// <p>Deletes the specified retention policy from the specified organization.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteRetentionPolicy {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_retention_policy_input::Builder,
}
impl DeleteRetentionPolicy {
/// Creates a new `DeleteRetentionPolicy`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteRetentionPolicyOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteRetentionPolicyError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The organization ID.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The organization ID.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The retention policy ID.</p>
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.id(input.into());
self
}
/// <p>The retention policy ID.</p>
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_id(input);
self
}
}
/// Fluent builder constructing a request to `DeleteUser`.
///
/// <p>Deletes a user from Amazon WorkMail and all subsequent systems. Before you can delete a user, the user state must be <code>DISABLED</code>. Use the <code>DescribeUser</code> action to confirm the user state.</p>
/// <p>Deleting a user is permanent and cannot be undone. WorkMail archives user mailboxes for 30 days before they are permanently removed.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteUser {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_user_input::Builder,
}
impl DeleteUser {
/// Creates a new `DeleteUser`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteUserOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteUserError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The organization that contains the user to be deleted.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The organization that contains the user to be deleted.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The identifier of the user to be deleted.</p>
pub fn user_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.user_id(input.into());
self
}
/// <p>The identifier of the user to be deleted.</p>
pub fn set_user_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_user_id(input);
self
}
}
/// Fluent builder constructing a request to `DeregisterFromWorkMail`.
///
/// <p>Mark a user, group, or resource as no longer used in Amazon WorkMail. This action disassociates the mailbox and schedules it for clean-up. WorkMail keeps mailboxes for 30 days before they are permanently removed. The functionality in the console is <i>Disable</i>.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeregisterFromWorkMail {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::deregister_from_work_mail_input::Builder,
}
impl DeregisterFromWorkMail {
/// Creates a new `DeregisterFromWorkMail`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeregisterFromWorkMailOutput,
aws_smithy_http::result::SdkError<crate::error::DeregisterFromWorkMailError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identifier for the organization under which the Amazon WorkMail entity exists.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier for the organization under which the Amazon WorkMail entity exists.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The identifier for the member (user or group) to be updated.</p>
pub fn entity_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.entity_id(input.into());
self
}
/// <p>The identifier for the member (user or group) to be updated.</p>
pub fn set_entity_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_entity_id(input);
self
}
}
/// Fluent builder constructing a request to `DeregisterMailDomain`.
///
/// <p>Removes a domain from Amazon WorkMail, stops email routing to WorkMail, and removes the authorization allowing WorkMail use. SES keeps the domain because other applications may use it. You must first remove any email address used by WorkMail entities before you remove the domain.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeregisterMailDomain {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::deregister_mail_domain_input::Builder,
}
impl DeregisterMailDomain {
/// Creates a new `DeregisterMailDomain`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeregisterMailDomainOutput,
aws_smithy_http::result::SdkError<crate::error::DeregisterMailDomainError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The Amazon WorkMail organization for which the domain will be deregistered.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The Amazon WorkMail organization for which the domain will be deregistered.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The domain to deregister in WorkMail and SES. </p>
pub fn domain_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.domain_name(input.into());
self
}
/// <p>The domain to deregister in WorkMail and SES. </p>
pub fn set_domain_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_domain_name(input);
self
}
}
/// Fluent builder constructing a request to `DescribeEmailMonitoringConfiguration`.
///
/// <p>Describes the current email monitoring configuration for a specified organization.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DescribeEmailMonitoringConfiguration {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::describe_email_monitoring_configuration_input::Builder,
}
impl DescribeEmailMonitoringConfiguration {
/// Creates a new `DescribeEmailMonitoringConfiguration`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DescribeEmailMonitoringConfigurationOutput,
aws_smithy_http::result::SdkError<
crate::error::DescribeEmailMonitoringConfigurationError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The ID of the organization for which the email monitoring configuration is described.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The ID of the organization for which the email monitoring configuration is described.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
}
/// Fluent builder constructing a request to `DescribeGroup`.
///
/// <p>Returns the data available for the group.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DescribeGroup {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::describe_group_input::Builder,
}
impl DescribeGroup {
/// Creates a new `DescribeGroup`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DescribeGroupOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeGroupError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identifier for the organization under which the group exists.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier for the organization under which the group exists.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The identifier for the group to be described.</p>
pub fn group_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.group_id(input.into());
self
}
/// <p>The identifier for the group to be described.</p>
pub fn set_group_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_group_id(input);
self
}
}
/// Fluent builder constructing a request to `DescribeInboundDmarcSettings`.
///
/// <p>Lists the settings in a DMARC policy for a specified organization.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DescribeInboundDmarcSettings {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::describe_inbound_dmarc_settings_input::Builder,
}
impl DescribeInboundDmarcSettings {
/// Creates a new `DescribeInboundDmarcSettings`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DescribeInboundDmarcSettingsOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeInboundDmarcSettingsError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>Lists the ID of the given organization.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>Lists the ID of the given organization.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
}
/// Fluent builder constructing a request to `DescribeMailboxExportJob`.
///
/// <p>Describes the current status of a mailbox export job.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DescribeMailboxExportJob {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::describe_mailbox_export_job_input::Builder,
}
impl DescribeMailboxExportJob {
/// Creates a new `DescribeMailboxExportJob`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DescribeMailboxExportJobOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeMailboxExportJobError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The mailbox export job ID.</p>
pub fn job_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.job_id(input.into());
self
}
/// <p>The mailbox export job ID.</p>
pub fn set_job_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_job_id(input);
self
}
/// <p>The organization ID.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The organization ID.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
}
/// Fluent builder constructing a request to `DescribeOrganization`.
///
/// <p>Provides more information regarding a given organization based on its identifier.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DescribeOrganization {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::describe_organization_input::Builder,
}
impl DescribeOrganization {
/// Creates a new `DescribeOrganization`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DescribeOrganizationOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeOrganizationError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identifier for the organization to be described.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier for the organization to be described.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
}
/// Fluent builder constructing a request to `DescribeResource`.
///
/// <p>Returns the data available for the resource.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DescribeResource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::describe_resource_input::Builder,
}
impl DescribeResource {
/// Creates a new `DescribeResource`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DescribeResourceOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeResourceError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identifier associated with the organization for which the resource is described.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier associated with the organization for which the resource is described.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The identifier of the resource to be described.</p>
pub fn resource_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.resource_id(input.into());
self
}
/// <p>The identifier of the resource to be described.</p>
pub fn set_resource_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_resource_id(input);
self
}
}
/// Fluent builder constructing a request to `DescribeUser`.
///
/// <p>Provides information regarding the user.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DescribeUser {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::describe_user_input::Builder,
}
impl DescribeUser {
/// Creates a new `DescribeUser`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DescribeUserOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeUserError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identifier for the organization under which the user exists.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier for the organization under which the user exists.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The identifier for the user to be described.</p>
pub fn user_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.user_id(input.into());
self
}
/// <p>The identifier for the user to be described.</p>
pub fn set_user_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_user_id(input);
self
}
}
/// Fluent builder constructing a request to `DisassociateDelegateFromResource`.
///
/// <p>Removes a member from the resource's set of delegates.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DisassociateDelegateFromResource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::disassociate_delegate_from_resource_input::Builder,
}
impl DisassociateDelegateFromResource {
/// Creates a new `DisassociateDelegateFromResource`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DisassociateDelegateFromResourceOutput,
aws_smithy_http::result::SdkError<crate::error::DisassociateDelegateFromResourceError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identifier for the organization under which the resource exists.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier for the organization under which the resource exists.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The identifier of the resource from which delegates' set members are removed. </p>
pub fn resource_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.resource_id(input.into());
self
}
/// <p>The identifier of the resource from which delegates' set members are removed. </p>
pub fn set_resource_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_resource_id(input);
self
}
/// <p>The identifier for the member (user, group) to be removed from the resource's delegates.</p>
pub fn entity_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.entity_id(input.into());
self
}
/// <p>The identifier for the member (user, group) to be removed from the resource's delegates.</p>
pub fn set_entity_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_entity_id(input);
self
}
}
/// Fluent builder constructing a request to `DisassociateMemberFromGroup`.
///
/// <p>Removes a member from a group.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DisassociateMemberFromGroup {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::disassociate_member_from_group_input::Builder,
}
impl DisassociateMemberFromGroup {
/// Creates a new `DisassociateMemberFromGroup`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DisassociateMemberFromGroupOutput,
aws_smithy_http::result::SdkError<crate::error::DisassociateMemberFromGroupError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identifier for the organization under which the group exists.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier for the organization under which the group exists.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The identifier for the group from which members are removed.</p>
pub fn group_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.group_id(input.into());
self
}
/// <p>The identifier for the group from which members are removed.</p>
pub fn set_group_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_group_id(input);
self
}
/// <p>The identifier for the member to be removed to the group.</p>
pub fn member_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.member_id(input.into());
self
}
/// <p>The identifier for the member to be removed to the group.</p>
pub fn set_member_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_member_id(input);
self
}
}
/// Fluent builder constructing a request to `GetAccessControlEffect`.
///
/// <p>Gets the effects of an organization's access control rules as they apply to a specified IPv4 address, access protocol action, or user ID. </p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetAccessControlEffect {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_access_control_effect_input::Builder,
}
impl GetAccessControlEffect {
/// Creates a new `GetAccessControlEffect`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetAccessControlEffectOutput,
aws_smithy_http::result::SdkError<crate::error::GetAccessControlEffectError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identifier for the organization.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier for the organization.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The IPv4 address.</p>
pub fn ip_address(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.ip_address(input.into());
self
}
/// <p>The IPv4 address.</p>
pub fn set_ip_address(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_ip_address(input);
self
}
/// <p>The access protocol action. Valid values include <code>ActiveSync</code>, <code>AutoDiscover</code>, <code>EWS</code>, <code>IMAP</code>, <code>SMTP</code>, <code>WindowsOutlook</code>, and <code>WebMail</code>.</p>
pub fn action(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.action(input.into());
self
}
/// <p>The access protocol action. Valid values include <code>ActiveSync</code>, <code>AutoDiscover</code>, <code>EWS</code>, <code>IMAP</code>, <code>SMTP</code>, <code>WindowsOutlook</code>, and <code>WebMail</code>.</p>
pub fn set_action(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_action(input);
self
}
/// <p>The user ID.</p>
pub fn user_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.user_id(input.into());
self
}
/// <p>The user ID.</p>
pub fn set_user_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_user_id(input);
self
}
}
/// Fluent builder constructing a request to `GetDefaultRetentionPolicy`.
///
/// <p>Gets the default retention policy details for the specified organization.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetDefaultRetentionPolicy {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_default_retention_policy_input::Builder,
}
impl GetDefaultRetentionPolicy {
/// Creates a new `GetDefaultRetentionPolicy`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetDefaultRetentionPolicyOutput,
aws_smithy_http::result::SdkError<crate::error::GetDefaultRetentionPolicyError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The organization ID.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The organization ID.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
}
/// Fluent builder constructing a request to `GetMailboxDetails`.
///
/// <p>Requests a user's mailbox details for a specified organization and user.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetMailboxDetails {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_mailbox_details_input::Builder,
}
impl GetMailboxDetails {
/// Creates a new `GetMailboxDetails`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetMailboxDetailsOutput,
aws_smithy_http::result::SdkError<crate::error::GetMailboxDetailsError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identifier for the organization that contains the user whose mailbox details are being requested.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier for the organization that contains the user whose mailbox details are being requested.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The identifier for the user whose mailbox details are being requested.</p>
pub fn user_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.user_id(input.into());
self
}
/// <p>The identifier for the user whose mailbox details are being requested.</p>
pub fn set_user_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_user_id(input);
self
}
}
/// Fluent builder constructing a request to `GetMailDomain`.
///
/// <p>Gets details for a mail domain, including domain records required to configure your domain with recommended security.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetMailDomain {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_mail_domain_input::Builder,
}
impl GetMailDomain {
/// Creates a new `GetMailDomain`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetMailDomainOutput,
aws_smithy_http::result::SdkError<crate::error::GetMailDomainError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The Amazon WorkMail organization for which the domain is retrieved.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The Amazon WorkMail organization for which the domain is retrieved.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The domain from which you want to retrieve details.</p>
pub fn domain_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.domain_name(input.into());
self
}
/// <p>The domain from which you want to retrieve details.</p>
pub fn set_domain_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_domain_name(input);
self
}
}
/// Fluent builder constructing a request to `GetMobileDeviceAccessEffect`.
///
/// <p>Simulates the effect of the mobile device access rules for the given attributes of a sample access event. Use this method to test the effects of the current set of mobile device access rules for the Amazon WorkMail organization for a particular user's attributes.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetMobileDeviceAccessEffect {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_mobile_device_access_effect_input::Builder,
}
impl GetMobileDeviceAccessEffect {
/// Creates a new `GetMobileDeviceAccessEffect`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetMobileDeviceAccessEffectOutput,
aws_smithy_http::result::SdkError<crate::error::GetMobileDeviceAccessEffectError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The Amazon WorkMail organization to simulate the access effect for.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The Amazon WorkMail organization to simulate the access effect for.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>Device type the simulated user will report.</p>
pub fn device_type(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.device_type(input.into());
self
}
/// <p>Device type the simulated user will report.</p>
pub fn set_device_type(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_device_type(input);
self
}
/// <p>Device model the simulated user will report.</p>
pub fn device_model(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.device_model(input.into());
self
}
/// <p>Device model the simulated user will report.</p>
pub fn set_device_model(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_device_model(input);
self
}
/// <p>Device operating system the simulated user will report.</p>
pub fn device_operating_system(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.device_operating_system(input.into());
self
}
/// <p>Device operating system the simulated user will report.</p>
pub fn set_device_operating_system(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_device_operating_system(input);
self
}
/// <p>Device user agent the simulated user will report.</p>
pub fn device_user_agent(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.device_user_agent(input.into());
self
}
/// <p>Device user agent the simulated user will report.</p>
pub fn set_device_user_agent(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_device_user_agent(input);
self
}
}
/// Fluent builder constructing a request to `GetMobileDeviceAccessOverride`.
///
/// <p>Gets the mobile device access override for the given WorkMail organization, user, and device.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetMobileDeviceAccessOverride {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_mobile_device_access_override_input::Builder,
}
impl GetMobileDeviceAccessOverride {
/// Creates a new `GetMobileDeviceAccessOverride`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetMobileDeviceAccessOverrideOutput,
aws_smithy_http::result::SdkError<crate::error::GetMobileDeviceAccessOverrideError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The Amazon WorkMail organization to which you want to apply the override.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The Amazon WorkMail organization to which you want to apply the override.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>Identifies the WorkMail user for the override. Accepts the following types of user identities: </p>
/// <ul>
/// <li> <p>User ID: <code>12345678-1234-1234-1234-123456789012</code> or <code>S-1-1-12-1234567890-123456789-123456789-1234</code> </p> </li>
/// <li> <p>Email address: <code>user@domain.tld</code> </p> </li>
/// <li> <p>User name: <code>user</code> </p> </li>
/// </ul>
pub fn user_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.user_id(input.into());
self
}
/// <p>Identifies the WorkMail user for the override. Accepts the following types of user identities: </p>
/// <ul>
/// <li> <p>User ID: <code>12345678-1234-1234-1234-123456789012</code> or <code>S-1-1-12-1234567890-123456789-123456789-1234</code> </p> </li>
/// <li> <p>Email address: <code>user@domain.tld</code> </p> </li>
/// <li> <p>User name: <code>user</code> </p> </li>
/// </ul>
pub fn set_user_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_user_id(input);
self
}
/// <p>The mobile device to which the override applies. <code>DeviceId</code> is case insensitive.</p>
pub fn device_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.device_id(input.into());
self
}
/// <p>The mobile device to which the override applies. <code>DeviceId</code> is case insensitive.</p>
pub fn set_device_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_device_id(input);
self
}
}
/// Fluent builder constructing a request to `ListAccessControlRules`.
///
/// <p>Lists the access control rules for the specified organization.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListAccessControlRules {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_access_control_rules_input::Builder,
}
impl ListAccessControlRules {
/// Creates a new `ListAccessControlRules`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListAccessControlRulesOutput,
aws_smithy_http::result::SdkError<crate::error::ListAccessControlRulesError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identifier for the organization.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier for the organization.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
}
/// Fluent builder constructing a request to `ListAliases`.
///
/// <p>Creates a paginated call to list the aliases associated with a given entity.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListAliases {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_aliases_input::Builder,
}
impl ListAliases {
/// Creates a new `ListAliases`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListAliasesOutput,
aws_smithy_http::result::SdkError<crate::error::ListAliasesError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListAliasesPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListAliasesPaginator {
crate::paginator::ListAliasesPaginator::new(self.handle, self.inner)
}
/// <p>The identifier for the organization under which the entity exists.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier for the organization under which the entity exists.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The identifier for the entity for which to list the aliases.</p>
pub fn entity_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.entity_id(input.into());
self
}
/// <p>The identifier for the entity for which to list the aliases.</p>
pub fn set_entity_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_entity_id(input);
self
}
/// <p>The token to use to retrieve the next page of results. The first call does not contain any tokens.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>The token to use to retrieve the next page of results. The first call does not contain any tokens.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
/// <p>The maximum number of results to return in a single call.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of results to return in a single call.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
}
/// Fluent builder constructing a request to `ListGroupMembers`.
///
/// <p>Returns an overview of the members of a group. Users and groups can be members of a group.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListGroupMembers {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_group_members_input::Builder,
}
impl ListGroupMembers {
/// Creates a new `ListGroupMembers`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListGroupMembersOutput,
aws_smithy_http::result::SdkError<crate::error::ListGroupMembersError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListGroupMembersPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListGroupMembersPaginator {
crate::paginator::ListGroupMembersPaginator::new(self.handle, self.inner)
}
/// <p>The identifier for the organization under which the group exists.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier for the organization under which the group exists.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The identifier for the group to which the members (users or groups) are associated.</p>
pub fn group_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.group_id(input.into());
self
}
/// <p>The identifier for the group to which the members (users or groups) are associated.</p>
pub fn set_group_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_group_id(input);
self
}
/// <p> The token to use to retrieve the next page of results. The first call does not contain any tokens.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p> The token to use to retrieve the next page of results. The first call does not contain any tokens.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
/// <p>The maximum number of results to return in a single call.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of results to return in a single call.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
}
/// Fluent builder constructing a request to `ListGroups`.
///
/// <p>Returns summaries of the organization's groups.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListGroups {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_groups_input::Builder,
}
impl ListGroups {
/// Creates a new `ListGroups`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListGroupsOutput,
aws_smithy_http::result::SdkError<crate::error::ListGroupsError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListGroupsPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListGroupsPaginator {
crate::paginator::ListGroupsPaginator::new(self.handle, self.inner)
}
/// <p>The identifier for the organization under which the groups exist.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier for the organization under which the groups exist.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The token to use to retrieve the next page of results. The first call does not contain any tokens.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>The token to use to retrieve the next page of results. The first call does not contain any tokens.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
/// <p>The maximum number of results to return in a single call.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of results to return in a single call.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
}
/// Fluent builder constructing a request to `ListMailboxExportJobs`.
///
/// <p>Lists the mailbox export jobs started for the specified organization within the last seven days.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListMailboxExportJobs {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_mailbox_export_jobs_input::Builder,
}
impl ListMailboxExportJobs {
/// Creates a new `ListMailboxExportJobs`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListMailboxExportJobsOutput,
aws_smithy_http::result::SdkError<crate::error::ListMailboxExportJobsError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListMailboxExportJobsPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListMailboxExportJobsPaginator {
crate::paginator::ListMailboxExportJobsPaginator::new(self.handle, self.inner)
}
/// <p>The organization ID.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The organization ID.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The token to use to retrieve the next page of results.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>The token to use to retrieve the next page of results.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
/// <p>The maximum number of results to return in a single call.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of results to return in a single call.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
}
/// Fluent builder constructing a request to `ListMailboxPermissions`.
///
/// <p>Lists the mailbox permissions associated with a user, group, or resource mailbox.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListMailboxPermissions {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_mailbox_permissions_input::Builder,
}
impl ListMailboxPermissions {
/// Creates a new `ListMailboxPermissions`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListMailboxPermissionsOutput,
aws_smithy_http::result::SdkError<crate::error::ListMailboxPermissionsError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListMailboxPermissionsPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListMailboxPermissionsPaginator {
crate::paginator::ListMailboxPermissionsPaginator::new(self.handle, self.inner)
}
/// <p>The identifier of the organization under which the user, group, or resource exists.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier of the organization under which the user, group, or resource exists.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The identifier of the user, group, or resource for which to list mailbox permissions.</p>
pub fn entity_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.entity_id(input.into());
self
}
/// <p>The identifier of the user, group, or resource for which to list mailbox permissions.</p>
pub fn set_entity_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_entity_id(input);
self
}
/// <p>The token to use to retrieve the next page of results. The first call does not contain any tokens.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>The token to use to retrieve the next page of results. The first call does not contain any tokens.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
/// <p>The maximum number of results to return in a single call.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of results to return in a single call.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
}
/// Fluent builder constructing a request to `ListMailDomains`.
///
/// <p>Lists the mail domains in a given Amazon WorkMail organization.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListMailDomains {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_mail_domains_input::Builder,
}
impl ListMailDomains {
/// Creates a new `ListMailDomains`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListMailDomainsOutput,
aws_smithy_http::result::SdkError<crate::error::ListMailDomainsError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListMailDomainsPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListMailDomainsPaginator {
crate::paginator::ListMailDomainsPaginator::new(self.handle, self.inner)
}
/// <p>The Amazon WorkMail organization for which to list domains.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The Amazon WorkMail organization for which to list domains.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The maximum number of results to return in a single call.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of results to return in a single call.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
/// <p>The token to use to retrieve the next page of results. The first call does not require a token.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>The token to use to retrieve the next page of results. The first call does not require a token.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
}
/// Fluent builder constructing a request to `ListMobileDeviceAccessOverrides`.
///
/// <p>Lists all the mobile device access overrides for any given combination of WorkMail organization, user, or device.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListMobileDeviceAccessOverrides {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_mobile_device_access_overrides_input::Builder,
}
impl ListMobileDeviceAccessOverrides {
/// Creates a new `ListMobileDeviceAccessOverrides`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListMobileDeviceAccessOverridesOutput,
aws_smithy_http::result::SdkError<crate::error::ListMobileDeviceAccessOverridesError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListMobileDeviceAccessOverridesPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListMobileDeviceAccessOverridesPaginator {
crate::paginator::ListMobileDeviceAccessOverridesPaginator::new(self.handle, self.inner)
}
/// <p>The Amazon WorkMail organization under which to list mobile device access overrides.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The Amazon WorkMail organization under which to list mobile device access overrides.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The WorkMail user under which you list the mobile device access overrides. Accepts the following types of user identities:</p>
/// <ul>
/// <li> <p>User ID: <code>12345678-1234-1234-1234-123456789012</code> or <code>S-1-1-12-1234567890-123456789-123456789-1234</code> </p> </li>
/// <li> <p>Email address: <code>user@domain.tld</code> </p> </li>
/// <li> <p>User name: <code>user</code> </p> </li>
/// </ul>
pub fn user_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.user_id(input.into());
self
}
/// <p>The WorkMail user under which you list the mobile device access overrides. Accepts the following types of user identities:</p>
/// <ul>
/// <li> <p>User ID: <code>12345678-1234-1234-1234-123456789012</code> or <code>S-1-1-12-1234567890-123456789-123456789-1234</code> </p> </li>
/// <li> <p>Email address: <code>user@domain.tld</code> </p> </li>
/// <li> <p>User name: <code>user</code> </p> </li>
/// </ul>
pub fn set_user_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_user_id(input);
self
}
/// <p>The mobile device to which the access override applies.</p>
pub fn device_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.device_id(input.into());
self
}
/// <p>The mobile device to which the access override applies.</p>
pub fn set_device_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_device_id(input);
self
}
/// <p>The token to use to retrieve the next page of results. The first call does not require a token.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>The token to use to retrieve the next page of results. The first call does not require a token.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
/// <p>The maximum number of results to return in a single call.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of results to return in a single call.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
}
/// Fluent builder constructing a request to `ListMobileDeviceAccessRules`.
///
/// <p>Lists the mobile device access rules for the specified Amazon WorkMail organization.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListMobileDeviceAccessRules {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_mobile_device_access_rules_input::Builder,
}
impl ListMobileDeviceAccessRules {
/// Creates a new `ListMobileDeviceAccessRules`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListMobileDeviceAccessRulesOutput,
aws_smithy_http::result::SdkError<crate::error::ListMobileDeviceAccessRulesError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The Amazon WorkMail organization for which to list the rules.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The Amazon WorkMail organization for which to list the rules.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
}
/// Fluent builder constructing a request to `ListOrganizations`.
///
/// <p>Returns summaries of the customer's organizations.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListOrganizations {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_organizations_input::Builder,
}
impl ListOrganizations {
/// Creates a new `ListOrganizations`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListOrganizationsOutput,
aws_smithy_http::result::SdkError<crate::error::ListOrganizationsError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListOrganizationsPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListOrganizationsPaginator {
crate::paginator::ListOrganizationsPaginator::new(self.handle, self.inner)
}
/// <p>The token to use to retrieve the next page of results. The first call does not contain any tokens.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>The token to use to retrieve the next page of results. The first call does not contain any tokens.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
/// <p>The maximum number of results to return in a single call.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of results to return in a single call.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
}
/// Fluent builder constructing a request to `ListResourceDelegates`.
///
/// <p>Lists the delegates associated with a resource. Users and groups can be resource delegates and answer requests on behalf of the resource.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListResourceDelegates {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_resource_delegates_input::Builder,
}
impl ListResourceDelegates {
/// Creates a new `ListResourceDelegates`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListResourceDelegatesOutput,
aws_smithy_http::result::SdkError<crate::error::ListResourceDelegatesError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListResourceDelegatesPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListResourceDelegatesPaginator {
crate::paginator::ListResourceDelegatesPaginator::new(self.handle, self.inner)
}
/// <p>The identifier for the organization that contains the resource for which delegates are listed.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier for the organization that contains the resource for which delegates are listed.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The identifier for the resource whose delegates are listed.</p>
pub fn resource_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.resource_id(input.into());
self
}
/// <p>The identifier for the resource whose delegates are listed.</p>
pub fn set_resource_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_resource_id(input);
self
}
/// <p>The token used to paginate through the delegates associated with a resource.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>The token used to paginate through the delegates associated with a resource.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
/// <p>The number of maximum results in a page.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The number of maximum results in a page.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
}
/// Fluent builder constructing a request to `ListResources`.
///
/// <p>Returns summaries of the organization's resources.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListResources {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_resources_input::Builder,
}
impl ListResources {
/// Creates a new `ListResources`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListResourcesOutput,
aws_smithy_http::result::SdkError<crate::error::ListResourcesError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListResourcesPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListResourcesPaginator {
crate::paginator::ListResourcesPaginator::new(self.handle, self.inner)
}
/// <p>The identifier for the organization under which the resources exist.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier for the organization under which the resources exist.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The token to use to retrieve the next page of results. The first call does not contain any tokens.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>The token to use to retrieve the next page of results. The first call does not contain any tokens.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
/// <p>The maximum number of results to return in a single call.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of results to return in a single call.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
}
/// Fluent builder constructing a request to `ListTagsForResource`.
///
/// <p>Lists the tags applied to an Amazon WorkMail organization resource.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListTagsForResource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_tags_for_resource_input::Builder,
}
impl ListTagsForResource {
/// Creates a new `ListTagsForResource`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListTagsForResourceOutput,
aws_smithy_http::result::SdkError<crate::error::ListTagsForResourceError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The resource ARN.</p>
pub fn resource_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.resource_arn(input.into());
self
}
/// <p>The resource ARN.</p>
pub fn set_resource_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_resource_arn(input);
self
}
}
/// Fluent builder constructing a request to `ListUsers`.
///
/// <p>Returns summaries of the organization's users.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListUsers {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_users_input::Builder,
}
impl ListUsers {
/// Creates a new `ListUsers`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListUsersOutput,
aws_smithy_http::result::SdkError<crate::error::ListUsersError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListUsersPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListUsersPaginator {
crate::paginator::ListUsersPaginator::new(self.handle, self.inner)
}
/// <p>The identifier for the organization under which the users exist.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier for the organization under which the users exist.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The token to use to retrieve the next page of results. The first call does not contain any tokens.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>The token to use to retrieve the next page of results. The first call does not contain any tokens.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
/// <p>The maximum number of results to return in a single call.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of results to return in a single call.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
}
/// Fluent builder constructing a request to `PutAccessControlRule`.
///
/// <p>Adds a new access control rule for the specified organization. The rule allows or denies access to the organization for the specified IPv4 addresses, access protocol actions, and user IDs. Adding a new rule with the same name as an existing rule replaces the older rule.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct PutAccessControlRule {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::put_access_control_rule_input::Builder,
}
impl PutAccessControlRule {
/// Creates a new `PutAccessControlRule`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::PutAccessControlRuleOutput,
aws_smithy_http::result::SdkError<crate::error::PutAccessControlRuleError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The rule name.</p>
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
/// <p>The rule name.</p>
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
/// <p>The rule effect.</p>
pub fn effect(mut self, input: crate::model::AccessControlRuleEffect) -> Self {
self.inner = self.inner.effect(input);
self
}
/// <p>The rule effect.</p>
pub fn set_effect(
mut self,
input: std::option::Option<crate::model::AccessControlRuleEffect>,
) -> Self {
self.inner = self.inner.set_effect(input);
self
}
/// <p>The rule description.</p>
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.description(input.into());
self
}
/// <p>The rule description.</p>
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_description(input);
self
}
/// Appends an item to `IpRanges`.
///
/// To override the contents of this collection use [`set_ip_ranges`](Self::set_ip_ranges).
///
/// <p>IPv4 CIDR ranges to include in the rule.</p>
pub fn ip_ranges(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.ip_ranges(input.into());
self
}
/// <p>IPv4 CIDR ranges to include in the rule.</p>
pub fn set_ip_ranges(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_ip_ranges(input);
self
}
/// Appends an item to `NotIpRanges`.
///
/// To override the contents of this collection use [`set_not_ip_ranges`](Self::set_not_ip_ranges).
///
/// <p>IPv4 CIDR ranges to exclude from the rule.</p>
pub fn not_ip_ranges(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.not_ip_ranges(input.into());
self
}
/// <p>IPv4 CIDR ranges to exclude from the rule.</p>
pub fn set_not_ip_ranges(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_not_ip_ranges(input);
self
}
/// Appends an item to `Actions`.
///
/// To override the contents of this collection use [`set_actions`](Self::set_actions).
///
/// <p>Access protocol actions to include in the rule. Valid values include <code>ActiveSync</code>, <code>AutoDiscover</code>, <code>EWS</code>, <code>IMAP</code>, <code>SMTP</code>, <code>WindowsOutlook</code>, and <code>WebMail</code>.</p>
pub fn actions(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.actions(input.into());
self
}
/// <p>Access protocol actions to include in the rule. Valid values include <code>ActiveSync</code>, <code>AutoDiscover</code>, <code>EWS</code>, <code>IMAP</code>, <code>SMTP</code>, <code>WindowsOutlook</code>, and <code>WebMail</code>.</p>
pub fn set_actions(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_actions(input);
self
}
/// Appends an item to `NotActions`.
///
/// To override the contents of this collection use [`set_not_actions`](Self::set_not_actions).
///
/// <p>Access protocol actions to exclude from the rule. Valid values include <code>ActiveSync</code>, <code>AutoDiscover</code>, <code>EWS</code>, <code>IMAP</code>, <code>SMTP</code>, <code>WindowsOutlook</code>, and <code>WebMail</code>.</p>
pub fn not_actions(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.not_actions(input.into());
self
}
/// <p>Access protocol actions to exclude from the rule. Valid values include <code>ActiveSync</code>, <code>AutoDiscover</code>, <code>EWS</code>, <code>IMAP</code>, <code>SMTP</code>, <code>WindowsOutlook</code>, and <code>WebMail</code>.</p>
pub fn set_not_actions(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_not_actions(input);
self
}
/// Appends an item to `UserIds`.
///
/// To override the contents of this collection use [`set_user_ids`](Self::set_user_ids).
///
/// <p>User IDs to include in the rule.</p>
pub fn user_ids(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.user_ids(input.into());
self
}
/// <p>User IDs to include in the rule.</p>
pub fn set_user_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_user_ids(input);
self
}
/// Appends an item to `NotUserIds`.
///
/// To override the contents of this collection use [`set_not_user_ids`](Self::set_not_user_ids).
///
/// <p>User IDs to exclude from the rule.</p>
pub fn not_user_ids(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.not_user_ids(input.into());
self
}
/// <p>User IDs to exclude from the rule.</p>
pub fn set_not_user_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_not_user_ids(input);
self
}
/// <p>The identifier of the organization.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier of the organization.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
}
/// Fluent builder constructing a request to `PutEmailMonitoringConfiguration`.
///
/// <p>Creates or updates the email monitoring configuration for a specified organization.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct PutEmailMonitoringConfiguration {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::put_email_monitoring_configuration_input::Builder,
}
impl PutEmailMonitoringConfiguration {
/// Creates a new `PutEmailMonitoringConfiguration`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::PutEmailMonitoringConfigurationOutput,
aws_smithy_http::result::SdkError<crate::error::PutEmailMonitoringConfigurationError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The ID of the organization for which the email monitoring configuration is set.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The ID of the organization for which the email monitoring configuration is set.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The Amazon Resource Name (ARN) of the IAM Role associated with the email monitoring configuration.</p>
pub fn role_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.role_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the IAM Role associated with the email monitoring configuration.</p>
pub fn set_role_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_role_arn(input);
self
}
/// <p>The Amazon Resource Name (ARN) of the CloudWatch Log group associated with the email monitoring configuration.</p>
pub fn log_group_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.log_group_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the CloudWatch Log group associated with the email monitoring configuration.</p>
pub fn set_log_group_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_log_group_arn(input);
self
}
}
/// Fluent builder constructing a request to `PutInboundDmarcSettings`.
///
/// <p>Enables or disables a DMARC policy for a given organization.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct PutInboundDmarcSettings {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::put_inbound_dmarc_settings_input::Builder,
}
impl PutInboundDmarcSettings {
/// Creates a new `PutInboundDmarcSettings`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::PutInboundDmarcSettingsOutput,
aws_smithy_http::result::SdkError<crate::error::PutInboundDmarcSettingsError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The ID of the organization that you are applying the DMARC policy to. </p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The ID of the organization that you are applying the DMARC policy to. </p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>Enforces or suspends a policy after it's applied.</p>
pub fn enforced(mut self, input: bool) -> Self {
self.inner = self.inner.enforced(input);
self
}
/// <p>Enforces or suspends a policy after it's applied.</p>
pub fn set_enforced(mut self, input: std::option::Option<bool>) -> Self {
self.inner = self.inner.set_enforced(input);
self
}
}
/// Fluent builder constructing a request to `PutMailboxPermissions`.
///
/// <p>Sets permissions for a user, group, or resource. This replaces any pre-existing permissions.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct PutMailboxPermissions {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::put_mailbox_permissions_input::Builder,
}
impl PutMailboxPermissions {
/// Creates a new `PutMailboxPermissions`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::PutMailboxPermissionsOutput,
aws_smithy_http::result::SdkError<crate::error::PutMailboxPermissionsError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identifier of the organization under which the user, group, or resource exists.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier of the organization under which the user, group, or resource exists.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The identifier of the user, group, or resource for which to update mailbox permissions.</p>
pub fn entity_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.entity_id(input.into());
self
}
/// <p>The identifier of the user, group, or resource for which to update mailbox permissions.</p>
pub fn set_entity_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_entity_id(input);
self
}
/// <p>The identifier of the user, group, or resource to which to grant the permissions.</p>
pub fn grantee_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.grantee_id(input.into());
self
}
/// <p>The identifier of the user, group, or resource to which to grant the permissions.</p>
pub fn set_grantee_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_grantee_id(input);
self
}
/// Appends an item to `PermissionValues`.
///
/// To override the contents of this collection use [`set_permission_values`](Self::set_permission_values).
///
/// <p>The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions set on the mailbox.</p>
pub fn permission_values(mut self, input: crate::model::PermissionType) -> Self {
self.inner = self.inner.permission_values(input);
self
}
/// <p>The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions set on the mailbox.</p>
pub fn set_permission_values(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::PermissionType>>,
) -> Self {
self.inner = self.inner.set_permission_values(input);
self
}
}
/// Fluent builder constructing a request to `PutMobileDeviceAccessOverride`.
///
/// <p>Creates or updates a mobile device access override for the given WorkMail organization, user, and device.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct PutMobileDeviceAccessOverride {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::put_mobile_device_access_override_input::Builder,
}
impl PutMobileDeviceAccessOverride {
/// Creates a new `PutMobileDeviceAccessOverride`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::PutMobileDeviceAccessOverrideOutput,
aws_smithy_http::result::SdkError<crate::error::PutMobileDeviceAccessOverrideError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>Identifies the Amazon WorkMail organization for which you create the override.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>Identifies the Amazon WorkMail organization for which you create the override.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The WorkMail user for which you create the override. Accepts the following types of user identities:</p>
/// <ul>
/// <li> <p>User ID: <code>12345678-1234-1234-1234-123456789012</code> or <code>S-1-1-12-1234567890-123456789-123456789-1234</code> </p> </li>
/// <li> <p>Email address: <code>user@domain.tld</code> </p> </li>
/// <li> <p>User name: <code>user</code> </p> </li>
/// </ul>
pub fn user_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.user_id(input.into());
self
}
/// <p>The WorkMail user for which you create the override. Accepts the following types of user identities:</p>
/// <ul>
/// <li> <p>User ID: <code>12345678-1234-1234-1234-123456789012</code> or <code>S-1-1-12-1234567890-123456789-123456789-1234</code> </p> </li>
/// <li> <p>Email address: <code>user@domain.tld</code> </p> </li>
/// <li> <p>User name: <code>user</code> </p> </li>
/// </ul>
pub fn set_user_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_user_id(input);
self
}
/// <p>The mobile device for which you create the override. <code>DeviceId</code> is case insensitive.</p>
pub fn device_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.device_id(input.into());
self
}
/// <p>The mobile device for which you create the override. <code>DeviceId</code> is case insensitive.</p>
pub fn set_device_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_device_id(input);
self
}
/// <p>The effect of the override, <code>ALLOW</code> or <code>DENY</code>.</p>
pub fn effect(mut self, input: crate::model::MobileDeviceAccessRuleEffect) -> Self {
self.inner = self.inner.effect(input);
self
}
/// <p>The effect of the override, <code>ALLOW</code> or <code>DENY</code>.</p>
pub fn set_effect(
mut self,
input: std::option::Option<crate::model::MobileDeviceAccessRuleEffect>,
) -> Self {
self.inner = self.inner.set_effect(input);
self
}
/// <p>A description of the override.</p>
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.description(input.into());
self
}
/// <p>A description of the override.</p>
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_description(input);
self
}
}
/// Fluent builder constructing a request to `PutRetentionPolicy`.
///
/// <p>Puts a retention policy to the specified organization.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct PutRetentionPolicy {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::put_retention_policy_input::Builder,
}
impl PutRetentionPolicy {
/// Creates a new `PutRetentionPolicy`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::PutRetentionPolicyOutput,
aws_smithy_http::result::SdkError<crate::error::PutRetentionPolicyError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The organization ID.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The organization ID.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The retention policy ID.</p>
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.id(input.into());
self
}
/// <p>The retention policy ID.</p>
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_id(input);
self
}
/// <p>The retention policy name.</p>
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
/// <p>The retention policy name.</p>
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
/// <p>The retention policy description.</p>
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.description(input.into());
self
}
/// <p>The retention policy description.</p>
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_description(input);
self
}
/// Appends an item to `FolderConfigurations`.
///
/// To override the contents of this collection use [`set_folder_configurations`](Self::set_folder_configurations).
///
/// <p>The retention policy folder configurations.</p>
pub fn folder_configurations(mut self, input: crate::model::FolderConfiguration) -> Self {
self.inner = self.inner.folder_configurations(input);
self
}
/// <p>The retention policy folder configurations.</p>
pub fn set_folder_configurations(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::FolderConfiguration>>,
) -> Self {
self.inner = self.inner.set_folder_configurations(input);
self
}
}
/// Fluent builder constructing a request to `RegisterMailDomain`.
///
/// <p>Registers a new domain in Amazon WorkMail and SES, and configures it for use by WorkMail. Emails received by SES for this domain are routed to the specified WorkMail organization, and WorkMail has permanent permission to use the specified domain for sending your users' emails.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct RegisterMailDomain {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::register_mail_domain_input::Builder,
}
impl RegisterMailDomain {
/// Creates a new `RegisterMailDomain`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::RegisterMailDomainOutput,
aws_smithy_http::result::SdkError<crate::error::RegisterMailDomainError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>Idempotency token used when retrying requests.</p>
pub fn client_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.client_token(input.into());
self
}
/// <p>Idempotency token used when retrying requests.</p>
pub fn set_client_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_client_token(input);
self
}
/// <p>The Amazon WorkMail organization under which you're creating the domain.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The Amazon WorkMail organization under which you're creating the domain.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The name of the mail domain to create in Amazon WorkMail and SES.</p>
pub fn domain_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.domain_name(input.into());
self
}
/// <p>The name of the mail domain to create in Amazon WorkMail and SES.</p>
pub fn set_domain_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_domain_name(input);
self
}
}
/// Fluent builder constructing a request to `RegisterToWorkMail`.
///
/// <p>Registers an existing and disabled user, group, or resource for Amazon WorkMail use by associating a mailbox and calendaring capabilities. It performs no change if the user, group, or resource is enabled and fails if the user, group, or resource is deleted. This operation results in the accumulation of costs. For more information, see <a href="https://aws.amazon.com/workmail/pricing">Pricing</a>. The equivalent console functionality for this operation is <i>Enable</i>. </p>
/// <p>Users can either be created by calling the <code>CreateUser</code> API operation or they can be synchronized from your directory. For more information, see <code>DeregisterFromWorkMail</code>.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct RegisterToWorkMail {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::register_to_work_mail_input::Builder,
}
impl RegisterToWorkMail {
/// Creates a new `RegisterToWorkMail`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::RegisterToWorkMailOutput,
aws_smithy_http::result::SdkError<crate::error::RegisterToWorkMailError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identifier for the organization under which the user, group, or resource exists.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier for the organization under which the user, group, or resource exists.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The identifier for the user, group, or resource to be updated.</p>
pub fn entity_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.entity_id(input.into());
self
}
/// <p>The identifier for the user, group, or resource to be updated.</p>
pub fn set_entity_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_entity_id(input);
self
}
/// <p>The email for the user, group, or resource to be updated.</p>
pub fn email(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.email(input.into());
self
}
/// <p>The email for the user, group, or resource to be updated.</p>
pub fn set_email(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_email(input);
self
}
}
/// Fluent builder constructing a request to `ResetPassword`.
///
/// <p>Allows the administrator to reset the password for a user.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ResetPassword {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::reset_password_input::Builder,
}
impl ResetPassword {
/// Creates a new `ResetPassword`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ResetPasswordOutput,
aws_smithy_http::result::SdkError<crate::error::ResetPasswordError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identifier of the organization that contains the user for which the password is reset.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier of the organization that contains the user for which the password is reset.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The identifier of the user for whom the password is reset.</p>
pub fn user_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.user_id(input.into());
self
}
/// <p>The identifier of the user for whom the password is reset.</p>
pub fn set_user_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_user_id(input);
self
}
/// <p>The new password for the user.</p>
pub fn password(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.password(input.into());
self
}
/// <p>The new password for the user.</p>
pub fn set_password(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_password(input);
self
}
}
/// Fluent builder constructing a request to `StartMailboxExportJob`.
///
/// <p>Starts a mailbox export job to export MIME-format email messages and calendar items from the specified mailbox to the specified Amazon Simple Storage Service (Amazon S3) bucket. For more information, see <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/mail-export.html">Exporting mailbox content</a> in the <i>Amazon WorkMail Administrator Guide</i>.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct StartMailboxExportJob {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::start_mailbox_export_job_input::Builder,
}
impl StartMailboxExportJob {
/// Creates a new `StartMailboxExportJob`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::StartMailboxExportJobOutput,
aws_smithy_http::result::SdkError<crate::error::StartMailboxExportJobError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The idempotency token for the client request.</p>
pub fn client_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.client_token(input.into());
self
}
/// <p>The idempotency token for the client request.</p>
pub fn set_client_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_client_token(input);
self
}
/// <p>The identifier associated with the organization.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier associated with the organization.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The identifier of the user or resource associated with the mailbox.</p>
pub fn entity_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.entity_id(input.into());
self
}
/// <p>The identifier of the user or resource associated with the mailbox.</p>
pub fn set_entity_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_entity_id(input);
self
}
/// <p>The mailbox export job description.</p>
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.description(input.into());
self
}
/// <p>The mailbox export job description.</p>
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_description(input);
self
}
/// <p>The ARN of the AWS Identity and Access Management (IAM) role that grants write permission to the S3 bucket.</p>
pub fn role_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.role_arn(input.into());
self
}
/// <p>The ARN of the AWS Identity and Access Management (IAM) role that grants write permission to the S3 bucket.</p>
pub fn set_role_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_role_arn(input);
self
}
/// <p>The Amazon Resource Name (ARN) of the symmetric AWS Key Management Service (AWS KMS) key that encrypts the exported mailbox content.</p>
pub fn kms_key_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.kms_key_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the symmetric AWS Key Management Service (AWS KMS) key that encrypts the exported mailbox content.</p>
pub fn set_kms_key_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_kms_key_arn(input);
self
}
/// <p>The name of the S3 bucket.</p>
pub fn s3_bucket_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.s3_bucket_name(input.into());
self
}
/// <p>The name of the S3 bucket.</p>
pub fn set_s3_bucket_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_s3_bucket_name(input);
self
}
/// <p>The S3 bucket prefix.</p>
pub fn s3_prefix(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.s3_prefix(input.into());
self
}
/// <p>The S3 bucket prefix.</p>
pub fn set_s3_prefix(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_s3_prefix(input);
self
}
}
/// Fluent builder constructing a request to `TagResource`.
///
/// <p>Applies the specified tags to the specified Amazon WorkMail organization resource.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct TagResource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::tag_resource_input::Builder,
}
impl TagResource {
/// Creates a new `TagResource`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::TagResourceOutput,
aws_smithy_http::result::SdkError<crate::error::TagResourceError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The resource ARN.</p>
pub fn resource_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.resource_arn(input.into());
self
}
/// <p>The resource ARN.</p>
pub fn set_resource_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_resource_arn(input);
self
}
/// Appends an item to `Tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>The tag key-value pairs.</p>
pub fn tags(mut self, input: crate::model::Tag) -> Self {
self.inner = self.inner.tags(input);
self
}
/// <p>The tag key-value pairs.</p>
pub fn set_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
) -> Self {
self.inner = self.inner.set_tags(input);
self
}
}
/// Fluent builder constructing a request to `UntagResource`.
///
/// <p>Untags the specified tags from the specified Amazon WorkMail organization resource.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UntagResource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::untag_resource_input::Builder,
}
impl UntagResource {
/// Creates a new `UntagResource`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UntagResourceOutput,
aws_smithy_http::result::SdkError<crate::error::UntagResourceError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The resource ARN.</p>
pub fn resource_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.resource_arn(input.into());
self
}
/// <p>The resource ARN.</p>
pub fn set_resource_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_resource_arn(input);
self
}
/// Appends an item to `TagKeys`.
///
/// To override the contents of this collection use [`set_tag_keys`](Self::set_tag_keys).
///
/// <p>The tag keys.</p>
pub fn tag_keys(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.tag_keys(input.into());
self
}
/// <p>The tag keys.</p>
pub fn set_tag_keys(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_tag_keys(input);
self
}
}
/// Fluent builder constructing a request to `UpdateDefaultMailDomain`.
///
/// <p>Updates the default mail domain for an organization. The default mail domain is used by the WorkMail AWS Console to suggest an email address when enabling a mail user. You can only have one default domain.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateDefaultMailDomain {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::update_default_mail_domain_input::Builder,
}
impl UpdateDefaultMailDomain {
/// Creates a new `UpdateDefaultMailDomain`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateDefaultMailDomainOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateDefaultMailDomainError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The Amazon WorkMail organization for which to list domains.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The Amazon WorkMail organization for which to list domains.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The domain name that will become the default domain.</p>
pub fn domain_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.domain_name(input.into());
self
}
/// <p>The domain name that will become the default domain.</p>
pub fn set_domain_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_domain_name(input);
self
}
}
/// Fluent builder constructing a request to `UpdateMailboxQuota`.
///
/// <p>Updates a user's current mailbox quota for a specified organization and user.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateMailboxQuota {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::update_mailbox_quota_input::Builder,
}
impl UpdateMailboxQuota {
/// Creates a new `UpdateMailboxQuota`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateMailboxQuotaOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateMailboxQuotaError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identifier for the organization that contains the user for whom to update the mailbox quota.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier for the organization that contains the user for whom to update the mailbox quota.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The identifer for the user for whom to update the mailbox quota.</p>
pub fn user_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.user_id(input.into());
self
}
/// <p>The identifer for the user for whom to update the mailbox quota.</p>
pub fn set_user_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_user_id(input);
self
}
/// <p>The updated mailbox quota, in MB, for the specified user.</p>
pub fn mailbox_quota(mut self, input: i32) -> Self {
self.inner = self.inner.mailbox_quota(input);
self
}
/// <p>The updated mailbox quota, in MB, for the specified user.</p>
pub fn set_mailbox_quota(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_mailbox_quota(input);
self
}
}
/// Fluent builder constructing a request to `UpdateMobileDeviceAccessRule`.
///
/// <p>Updates a mobile device access rule for the specified Amazon WorkMail organization.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateMobileDeviceAccessRule {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::update_mobile_device_access_rule_input::Builder,
}
impl UpdateMobileDeviceAccessRule {
/// Creates a new `UpdateMobileDeviceAccessRule`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateMobileDeviceAccessRuleOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateMobileDeviceAccessRuleError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The Amazon WorkMail organization under which the rule will be updated.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The Amazon WorkMail organization under which the rule will be updated.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The identifier of the rule to be updated.</p>
pub fn mobile_device_access_rule_id(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.inner = self.inner.mobile_device_access_rule_id(input.into());
self
}
/// <p>The identifier of the rule to be updated.</p>
pub fn set_mobile_device_access_rule_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_mobile_device_access_rule_id(input);
self
}
/// <p>The updated rule name.</p>
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
/// <p>The updated rule name.</p>
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
/// <p>The updated rule description.</p>
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.description(input.into());
self
}
/// <p>The updated rule description.</p>
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_description(input);
self
}
/// <p>The effect of the rule when it matches. Allowed values are <code>ALLOW</code> or <code>DENY</code>.</p>
pub fn effect(mut self, input: crate::model::MobileDeviceAccessRuleEffect) -> Self {
self.inner = self.inner.effect(input);
self
}
/// <p>The effect of the rule when it matches. Allowed values are <code>ALLOW</code> or <code>DENY</code>.</p>
pub fn set_effect(
mut self,
input: std::option::Option<crate::model::MobileDeviceAccessRuleEffect>,
) -> Self {
self.inner = self.inner.set_effect(input);
self
}
/// Appends an item to `DeviceTypes`.
///
/// To override the contents of this collection use [`set_device_types`](Self::set_device_types).
///
/// <p>Device types that the updated rule will match.</p>
pub fn device_types(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.device_types(input.into());
self
}
/// <p>Device types that the updated rule will match.</p>
pub fn set_device_types(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_device_types(input);
self
}
/// Appends an item to `NotDeviceTypes`.
///
/// To override the contents of this collection use [`set_not_device_types`](Self::set_not_device_types).
///
/// <p>Device types that the updated rule <b>will not</b> match. All other device types will match.</p>
pub fn not_device_types(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.not_device_types(input.into());
self
}
/// <p>Device types that the updated rule <b>will not</b> match. All other device types will match.</p>
pub fn set_not_device_types(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_not_device_types(input);
self
}
/// Appends an item to `DeviceModels`.
///
/// To override the contents of this collection use [`set_device_models`](Self::set_device_models).
///
/// <p>Device models that the updated rule will match.</p>
pub fn device_models(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.device_models(input.into());
self
}
/// <p>Device models that the updated rule will match.</p>
pub fn set_device_models(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_device_models(input);
self
}
/// Appends an item to `NotDeviceModels`.
///
/// To override the contents of this collection use [`set_not_device_models`](Self::set_not_device_models).
///
/// <p>Device models that the updated rule <b>will not</b> match. All other device models will match.</p>
pub fn not_device_models(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.not_device_models(input.into());
self
}
/// <p>Device models that the updated rule <b>will not</b> match. All other device models will match.</p>
pub fn set_not_device_models(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_not_device_models(input);
self
}
/// Appends an item to `DeviceOperatingSystems`.
///
/// To override the contents of this collection use [`set_device_operating_systems`](Self::set_device_operating_systems).
///
/// <p>Device operating systems that the updated rule will match.</p>
pub fn device_operating_systems(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.device_operating_systems(input.into());
self
}
/// <p>Device operating systems that the updated rule will match.</p>
pub fn set_device_operating_systems(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_device_operating_systems(input);
self
}
/// Appends an item to `NotDeviceOperatingSystems`.
///
/// To override the contents of this collection use [`set_not_device_operating_systems`](Self::set_not_device_operating_systems).
///
/// <p>Device operating systems that the updated rule <b>will not</b> match. All other device operating systems will match.</p>
pub fn not_device_operating_systems(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.inner = self.inner.not_device_operating_systems(input.into());
self
}
/// <p>Device operating systems that the updated rule <b>will not</b> match. All other device operating systems will match.</p>
pub fn set_not_device_operating_systems(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_not_device_operating_systems(input);
self
}
/// Appends an item to `DeviceUserAgents`.
///
/// To override the contents of this collection use [`set_device_user_agents`](Self::set_device_user_agents).
///
/// <p>User agents that the updated rule will match.</p>
pub fn device_user_agents(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.device_user_agents(input.into());
self
}
/// <p>User agents that the updated rule will match.</p>
pub fn set_device_user_agents(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_device_user_agents(input);
self
}
/// Appends an item to `NotDeviceUserAgents`.
///
/// To override the contents of this collection use [`set_not_device_user_agents`](Self::set_not_device_user_agents).
///
/// <p>User agents that the updated rule <b>will not</b> match. All other user agents will match.</p>
pub fn not_device_user_agents(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.not_device_user_agents(input.into());
self
}
/// <p>User agents that the updated rule <b>will not</b> match. All other user agents will match.</p>
pub fn set_not_device_user_agents(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_not_device_user_agents(input);
self
}
}
/// Fluent builder constructing a request to `UpdatePrimaryEmailAddress`.
///
/// <p>Updates the primary email for a user, group, or resource. The current email is moved into the list of aliases (or swapped between an existing alias and the current primary email), and the email provided in the input is promoted as the primary.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdatePrimaryEmailAddress {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::update_primary_email_address_input::Builder,
}
impl UpdatePrimaryEmailAddress {
/// Creates a new `UpdatePrimaryEmailAddress`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdatePrimaryEmailAddressOutput,
aws_smithy_http::result::SdkError<crate::error::UpdatePrimaryEmailAddressError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The organization that contains the user, group, or resource to update.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The organization that contains the user, group, or resource to update.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The user, group, or resource to update.</p>
pub fn entity_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.entity_id(input.into());
self
}
/// <p>The user, group, or resource to update.</p>
pub fn set_entity_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_entity_id(input);
self
}
/// <p>The value of the email to be updated as primary.</p>
pub fn email(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.email(input.into());
self
}
/// <p>The value of the email to be updated as primary.</p>
pub fn set_email(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_email(input);
self
}
}
/// Fluent builder constructing a request to `UpdateResource`.
///
/// <p>Updates data for the resource. To have the latest information, it must be preceded by a <code>DescribeResource</code> call. The dataset in the request should be the one expected when performing another <code>DescribeResource</code> call.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateResource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::update_resource_input::Builder,
}
impl UpdateResource {
/// Creates a new `UpdateResource`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateResourceOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateResourceError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identifier associated with the organization for which the resource is updated.</p>
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.organization_id(input.into());
self
}
/// <p>The identifier associated with the organization for which the resource is updated.</p>
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_organization_id(input);
self
}
/// <p>The identifier of the resource to be updated.</p>
pub fn resource_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.resource_id(input.into());
self
}
/// <p>The identifier of the resource to be updated.</p>
pub fn set_resource_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_resource_id(input);
self
}
/// <p>The name of the resource to be updated.</p>
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
/// <p>The name of the resource to be updated.</p>
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
/// <p>The resource's booking options to be updated.</p>
pub fn booking_options(mut self, input: crate::model::BookingOptions) -> Self {
self.inner = self.inner.booking_options(input);
self
}
/// <p>The resource's booking options to be updated.</p>
pub fn set_booking_options(
mut self,
input: std::option::Option<crate::model::BookingOptions>,
) -> Self {
self.inner = self.inner.set_booking_options(input);
self
}
}
}
impl Client {
/// Creates a client with the given service config and connector override.
pub fn from_conf_conn<C, E>(conf: crate::Config, conn: C) -> Self
where
C: aws_smithy_client::bounds::SmithyConnector<Error = E> + Send + 'static,
E: Into<aws_smithy_http::result::ConnectorError>,
{
let retry_config = conf.retry_config.as_ref().cloned().unwrap_or_default();
let timeout_config = conf.timeout_config.as_ref().cloned().unwrap_or_default();
let sleep_impl = conf.sleep_impl.clone();
let mut builder = aws_smithy_client::Builder::new()
.connector(aws_smithy_client::erase::DynConnector::new(conn))
.middleware(aws_smithy_client::erase::DynMiddleware::new(
crate::middleware::DefaultMiddleware::new(),
));
builder.set_retry_config(retry_config.into());
builder.set_timeout_config(timeout_config);
if let Some(sleep_impl) = sleep_impl {
builder.set_sleep_impl(Some(sleep_impl));
}
let client = builder.build();
Self {
handle: std::sync::Arc::new(Handle { client, conf }),
}
}
/// Creates a new client from a shared config.
#[cfg(any(feature = "rustls", feature = "native-tls"))]
pub fn new(sdk_config: &aws_types::sdk_config::SdkConfig) -> Self {
Self::from_conf(sdk_config.into())
}
/// Creates a new client from the service [`Config`](crate::Config).
#[cfg(any(feature = "rustls", feature = "native-tls"))]
pub fn from_conf(conf: crate::Config) -> Self {
let retry_config = conf.retry_config.as_ref().cloned().unwrap_or_default();
let timeout_config = conf.timeout_config.as_ref().cloned().unwrap_or_default();
let sleep_impl = conf.sleep_impl.clone();
let mut builder = aws_smithy_client::Builder::dyn_https().middleware(
aws_smithy_client::erase::DynMiddleware::new(
crate::middleware::DefaultMiddleware::new(),
),
);
builder.set_retry_config(retry_config.into());
builder.set_timeout_config(timeout_config);
// the builder maintains a try-state. To avoid suppressing the warning when sleep is unset,
// only set it if we actually have a sleep impl.
if let Some(sleep_impl) = sleep_impl {
builder.set_sleep_impl(Some(sleep_impl));
}
let client = builder.build();
Self {
handle: std::sync::Arc::new(Handle { client, conf }),
}
}
}