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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>The destination phone number's verification status.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct VerifySmsSandboxPhoneNumberOutput {}
impl std::fmt::Debug for VerifySmsSandboxPhoneNumberOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("VerifySmsSandboxPhoneNumberOutput");
formatter.finish()
}
}
/// See [`VerifySmsSandboxPhoneNumberOutput`](crate::output::VerifySmsSandboxPhoneNumberOutput)
pub mod verify_sms_sandbox_phone_number_output {
/// A builder for [`VerifySmsSandboxPhoneNumberOutput`](crate::output::VerifySmsSandboxPhoneNumberOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`VerifySmsSandboxPhoneNumberOutput`](crate::output::VerifySmsSandboxPhoneNumberOutput)
pub fn build(self) -> crate::output::VerifySmsSandboxPhoneNumberOutput {
crate::output::VerifySmsSandboxPhoneNumberOutput {}
}
}
}
impl VerifySmsSandboxPhoneNumberOutput {
/// Creates a new builder-style object to manufacture [`VerifySmsSandboxPhoneNumberOutput`](crate::output::VerifySmsSandboxPhoneNumberOutput)
pub fn builder() -> crate::output::verify_sms_sandbox_phone_number_output::Builder {
crate::output::verify_sms_sandbox_phone_number_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct UntagResourceOutput {}
impl std::fmt::Debug for UntagResourceOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("UntagResourceOutput");
formatter.finish()
}
}
/// See [`UntagResourceOutput`](crate::output::UntagResourceOutput)
pub mod untag_resource_output {
/// A builder for [`UntagResourceOutput`](crate::output::UntagResourceOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`UntagResourceOutput`](crate::output::UntagResourceOutput)
pub fn build(self) -> crate::output::UntagResourceOutput {
crate::output::UntagResourceOutput {}
}
}
}
impl UntagResourceOutput {
/// Creates a new builder-style object to manufacture [`UntagResourceOutput`](crate::output::UntagResourceOutput)
pub fn builder() -> crate::output::untag_resource_output::Builder {
crate::output::untag_resource_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct UnsubscribeOutput {}
impl std::fmt::Debug for UnsubscribeOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("UnsubscribeOutput");
formatter.finish()
}
}
/// See [`UnsubscribeOutput`](crate::output::UnsubscribeOutput)
pub mod unsubscribe_output {
/// A builder for [`UnsubscribeOutput`](crate::output::UnsubscribeOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`UnsubscribeOutput`](crate::output::UnsubscribeOutput)
pub fn build(self) -> crate::output::UnsubscribeOutput {
crate::output::UnsubscribeOutput {}
}
}
}
impl UnsubscribeOutput {
/// Creates a new builder-style object to manufacture [`UnsubscribeOutput`](crate::output::UnsubscribeOutput)
pub fn builder() -> crate::output::unsubscribe_output::Builder {
crate::output::unsubscribe_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TagResourceOutput {}
impl std::fmt::Debug for TagResourceOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TagResourceOutput");
formatter.finish()
}
}
/// See [`TagResourceOutput`](crate::output::TagResourceOutput)
pub mod tag_resource_output {
/// A builder for [`TagResourceOutput`](crate::output::TagResourceOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`TagResourceOutput`](crate::output::TagResourceOutput)
pub fn build(self) -> crate::output::TagResourceOutput {
crate::output::TagResourceOutput {}
}
}
}
impl TagResourceOutput {
/// Creates a new builder-style object to manufacture [`TagResourceOutput`](crate::output::TagResourceOutput)
pub fn builder() -> crate::output::tag_resource_output::Builder {
crate::output::tag_resource_output::Builder::default()
}
}
/// <p>Response for Subscribe action.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SubscribeOutput {
/// <p>The ARN of the subscription if it is confirmed, or the string "pending confirmation" if the subscription requires confirmation. However, if the API request parameter <code>ReturnSubscriptionArn</code> is true, then the value is always the subscription ARN, even if the subscription requires confirmation.</p>
pub subscription_arn: std::option::Option<std::string::String>,
}
impl SubscribeOutput {
/// <p>The ARN of the subscription if it is confirmed, or the string "pending confirmation" if the subscription requires confirmation. However, if the API request parameter <code>ReturnSubscriptionArn</code> is true, then the value is always the subscription ARN, even if the subscription requires confirmation.</p>
pub fn subscription_arn(&self) -> std::option::Option<&str> {
self.subscription_arn.as_deref()
}
}
impl std::fmt::Debug for SubscribeOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SubscribeOutput");
formatter.field("subscription_arn", &self.subscription_arn);
formatter.finish()
}
}
/// See [`SubscribeOutput`](crate::output::SubscribeOutput)
pub mod subscribe_output {
/// A builder for [`SubscribeOutput`](crate::output::SubscribeOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) subscription_arn: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The ARN of the subscription if it is confirmed, or the string "pending confirmation" if the subscription requires confirmation. However, if the API request parameter <code>ReturnSubscriptionArn</code> is true, then the value is always the subscription ARN, even if the subscription requires confirmation.</p>
pub fn subscription_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.subscription_arn = Some(input.into());
self
}
/// <p>The ARN of the subscription if it is confirmed, or the string "pending confirmation" if the subscription requires confirmation. However, if the API request parameter <code>ReturnSubscriptionArn</code> is true, then the value is always the subscription ARN, even if the subscription requires confirmation.</p>
pub fn set_subscription_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.subscription_arn = input;
self
}
/// Consumes the builder and constructs a [`SubscribeOutput`](crate::output::SubscribeOutput)
pub fn build(self) -> crate::output::SubscribeOutput {
crate::output::SubscribeOutput {
subscription_arn: self.subscription_arn,
}
}
}
}
impl SubscribeOutput {
/// Creates a new builder-style object to manufacture [`SubscribeOutput`](crate::output::SubscribeOutput)
pub fn builder() -> crate::output::subscribe_output::Builder {
crate::output::subscribe_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SetTopicAttributesOutput {}
impl std::fmt::Debug for SetTopicAttributesOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SetTopicAttributesOutput");
formatter.finish()
}
}
/// See [`SetTopicAttributesOutput`](crate::output::SetTopicAttributesOutput)
pub mod set_topic_attributes_output {
/// A builder for [`SetTopicAttributesOutput`](crate::output::SetTopicAttributesOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`SetTopicAttributesOutput`](crate::output::SetTopicAttributesOutput)
pub fn build(self) -> crate::output::SetTopicAttributesOutput {
crate::output::SetTopicAttributesOutput {}
}
}
}
impl SetTopicAttributesOutput {
/// Creates a new builder-style object to manufacture [`SetTopicAttributesOutput`](crate::output::SetTopicAttributesOutput)
pub fn builder() -> crate::output::set_topic_attributes_output::Builder {
crate::output::set_topic_attributes_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SetSubscriptionAttributesOutput {}
impl std::fmt::Debug for SetSubscriptionAttributesOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SetSubscriptionAttributesOutput");
formatter.finish()
}
}
/// See [`SetSubscriptionAttributesOutput`](crate::output::SetSubscriptionAttributesOutput)
pub mod set_subscription_attributes_output {
/// A builder for [`SetSubscriptionAttributesOutput`](crate::output::SetSubscriptionAttributesOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`SetSubscriptionAttributesOutput`](crate::output::SetSubscriptionAttributesOutput)
pub fn build(self) -> crate::output::SetSubscriptionAttributesOutput {
crate::output::SetSubscriptionAttributesOutput {}
}
}
}
impl SetSubscriptionAttributesOutput {
/// Creates a new builder-style object to manufacture [`SetSubscriptionAttributesOutput`](crate::output::SetSubscriptionAttributesOutput)
pub fn builder() -> crate::output::set_subscription_attributes_output::Builder {
crate::output::set_subscription_attributes_output::Builder::default()
}
}
/// <p>The response for the SetSMSAttributes action.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SetSmsAttributesOutput {}
impl std::fmt::Debug for SetSmsAttributesOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SetSmsAttributesOutput");
formatter.finish()
}
}
/// See [`SetSmsAttributesOutput`](crate::output::SetSmsAttributesOutput)
pub mod set_sms_attributes_output {
/// A builder for [`SetSmsAttributesOutput`](crate::output::SetSmsAttributesOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`SetSmsAttributesOutput`](crate::output::SetSmsAttributesOutput)
pub fn build(self) -> crate::output::SetSmsAttributesOutput {
crate::output::SetSmsAttributesOutput {}
}
}
}
impl SetSmsAttributesOutput {
/// Creates a new builder-style object to manufacture [`SetSmsAttributesOutput`](crate::output::SetSmsAttributesOutput)
pub fn builder() -> crate::output::set_sms_attributes_output::Builder {
crate::output::set_sms_attributes_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SetPlatformApplicationAttributesOutput {}
impl std::fmt::Debug for SetPlatformApplicationAttributesOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SetPlatformApplicationAttributesOutput");
formatter.finish()
}
}
/// See [`SetPlatformApplicationAttributesOutput`](crate::output::SetPlatformApplicationAttributesOutput)
pub mod set_platform_application_attributes_output {
/// A builder for [`SetPlatformApplicationAttributesOutput`](crate::output::SetPlatformApplicationAttributesOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`SetPlatformApplicationAttributesOutput`](crate::output::SetPlatformApplicationAttributesOutput)
pub fn build(self) -> crate::output::SetPlatformApplicationAttributesOutput {
crate::output::SetPlatformApplicationAttributesOutput {}
}
}
}
impl SetPlatformApplicationAttributesOutput {
/// Creates a new builder-style object to manufacture [`SetPlatformApplicationAttributesOutput`](crate::output::SetPlatformApplicationAttributesOutput)
pub fn builder() -> crate::output::set_platform_application_attributes_output::Builder {
crate::output::set_platform_application_attributes_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SetEndpointAttributesOutput {}
impl std::fmt::Debug for SetEndpointAttributesOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SetEndpointAttributesOutput");
formatter.finish()
}
}
/// See [`SetEndpointAttributesOutput`](crate::output::SetEndpointAttributesOutput)
pub mod set_endpoint_attributes_output {
/// A builder for [`SetEndpointAttributesOutput`](crate::output::SetEndpointAttributesOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`SetEndpointAttributesOutput`](crate::output::SetEndpointAttributesOutput)
pub fn build(self) -> crate::output::SetEndpointAttributesOutput {
crate::output::SetEndpointAttributesOutput {}
}
}
}
impl SetEndpointAttributesOutput {
/// Creates a new builder-style object to manufacture [`SetEndpointAttributesOutput`](crate::output::SetEndpointAttributesOutput)
pub fn builder() -> crate::output::set_endpoint_attributes_output::Builder {
crate::output::set_endpoint_attributes_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct RemovePermissionOutput {}
impl std::fmt::Debug for RemovePermissionOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("RemovePermissionOutput");
formatter.finish()
}
}
/// See [`RemovePermissionOutput`](crate::output::RemovePermissionOutput)
pub mod remove_permission_output {
/// A builder for [`RemovePermissionOutput`](crate::output::RemovePermissionOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`RemovePermissionOutput`](crate::output::RemovePermissionOutput)
pub fn build(self) -> crate::output::RemovePermissionOutput {
crate::output::RemovePermissionOutput {}
}
}
}
impl RemovePermissionOutput {
/// Creates a new builder-style object to manufacture [`RemovePermissionOutput`](crate::output::RemovePermissionOutput)
pub fn builder() -> crate::output::remove_permission_output::Builder {
crate::output::remove_permission_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct PublishBatchOutput {
/// <p>A list of successful <code>PublishBatch</code> responses.</p>
pub successful: std::option::Option<std::vec::Vec<crate::model::PublishBatchResultEntry>>,
/// <p>A list of failed <code>PublishBatch</code> responses. </p>
pub failed: std::option::Option<std::vec::Vec<crate::model::BatchResultErrorEntry>>,
}
impl PublishBatchOutput {
/// <p>A list of successful <code>PublishBatch</code> responses.</p>
pub fn successful(&self) -> std::option::Option<&[crate::model::PublishBatchResultEntry]> {
self.successful.as_deref()
}
/// <p>A list of failed <code>PublishBatch</code> responses. </p>
pub fn failed(&self) -> std::option::Option<&[crate::model::BatchResultErrorEntry]> {
self.failed.as_deref()
}
}
impl std::fmt::Debug for PublishBatchOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("PublishBatchOutput");
formatter.field("successful", &self.successful);
formatter.field("failed", &self.failed);
formatter.finish()
}
}
/// See [`PublishBatchOutput`](crate::output::PublishBatchOutput)
pub mod publish_batch_output {
/// A builder for [`PublishBatchOutput`](crate::output::PublishBatchOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) successful:
std::option::Option<std::vec::Vec<crate::model::PublishBatchResultEntry>>,
pub(crate) failed: std::option::Option<std::vec::Vec<crate::model::BatchResultErrorEntry>>,
}
impl Builder {
/// Appends an item to `successful`.
///
/// To override the contents of this collection use [`set_successful`](Self::set_successful).
///
/// <p>A list of successful <code>PublishBatch</code> responses.</p>
pub fn successful(mut self, input: crate::model::PublishBatchResultEntry) -> Self {
let mut v = self.successful.unwrap_or_default();
v.push(input);
self.successful = Some(v);
self
}
/// <p>A list of successful <code>PublishBatch</code> responses.</p>
pub fn set_successful(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::PublishBatchResultEntry>>,
) -> Self {
self.successful = input;
self
}
/// Appends an item to `failed`.
///
/// To override the contents of this collection use [`set_failed`](Self::set_failed).
///
/// <p>A list of failed <code>PublishBatch</code> responses. </p>
pub fn failed(mut self, input: crate::model::BatchResultErrorEntry) -> Self {
let mut v = self.failed.unwrap_or_default();
v.push(input);
self.failed = Some(v);
self
}
/// <p>A list of failed <code>PublishBatch</code> responses. </p>
pub fn set_failed(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::BatchResultErrorEntry>>,
) -> Self {
self.failed = input;
self
}
/// Consumes the builder and constructs a [`PublishBatchOutput`](crate::output::PublishBatchOutput)
pub fn build(self) -> crate::output::PublishBatchOutput {
crate::output::PublishBatchOutput {
successful: self.successful,
failed: self.failed,
}
}
}
}
impl PublishBatchOutput {
/// Creates a new builder-style object to manufacture [`PublishBatchOutput`](crate::output::PublishBatchOutput)
pub fn builder() -> crate::output::publish_batch_output::Builder {
crate::output::publish_batch_output::Builder::default()
}
}
/// <p>Response for Publish action.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct PublishOutput {
/// <p>Unique identifier assigned to the published message.</p>
/// <p>Length Constraint: Maximum 100 characters</p>
pub message_id: std::option::Option<std::string::String>,
/// <p>This response element applies only to FIFO (first-in-first-out) topics. </p>
/// <p>The sequence number is a large, non-consecutive number that Amazon SNS assigns to each message. The length of <code>SequenceNumber</code> is 128 bits. <code>SequenceNumber</code> continues to increase for each <code>MessageGroupId</code>.</p>
pub sequence_number: std::option::Option<std::string::String>,
}
impl PublishOutput {
/// <p>Unique identifier assigned to the published message.</p>
/// <p>Length Constraint: Maximum 100 characters</p>
pub fn message_id(&self) -> std::option::Option<&str> {
self.message_id.as_deref()
}
/// <p>This response element applies only to FIFO (first-in-first-out) topics. </p>
/// <p>The sequence number is a large, non-consecutive number that Amazon SNS assigns to each message. The length of <code>SequenceNumber</code> is 128 bits. <code>SequenceNumber</code> continues to increase for each <code>MessageGroupId</code>.</p>
pub fn sequence_number(&self) -> std::option::Option<&str> {
self.sequence_number.as_deref()
}
}
impl std::fmt::Debug for PublishOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("PublishOutput");
formatter.field("message_id", &self.message_id);
formatter.field("sequence_number", &self.sequence_number);
formatter.finish()
}
}
/// See [`PublishOutput`](crate::output::PublishOutput)
pub mod publish_output {
/// A builder for [`PublishOutput`](crate::output::PublishOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) message_id: std::option::Option<std::string::String>,
pub(crate) sequence_number: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>Unique identifier assigned to the published message.</p>
/// <p>Length Constraint: Maximum 100 characters</p>
pub fn message_id(mut self, input: impl Into<std::string::String>) -> Self {
self.message_id = Some(input.into());
self
}
/// <p>Unique identifier assigned to the published message.</p>
/// <p>Length Constraint: Maximum 100 characters</p>
pub fn set_message_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message_id = input;
self
}
/// <p>This response element applies only to FIFO (first-in-first-out) topics. </p>
/// <p>The sequence number is a large, non-consecutive number that Amazon SNS assigns to each message. The length of <code>SequenceNumber</code> is 128 bits. <code>SequenceNumber</code> continues to increase for each <code>MessageGroupId</code>.</p>
pub fn sequence_number(mut self, input: impl Into<std::string::String>) -> Self {
self.sequence_number = Some(input.into());
self
}
/// <p>This response element applies only to FIFO (first-in-first-out) topics. </p>
/// <p>The sequence number is a large, non-consecutive number that Amazon SNS assigns to each message. The length of <code>SequenceNumber</code> is 128 bits. <code>SequenceNumber</code> continues to increase for each <code>MessageGroupId</code>.</p>
pub fn set_sequence_number(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.sequence_number = input;
self
}
/// Consumes the builder and constructs a [`PublishOutput`](crate::output::PublishOutput)
pub fn build(self) -> crate::output::PublishOutput {
crate::output::PublishOutput {
message_id: self.message_id,
sequence_number: self.sequence_number,
}
}
}
}
impl PublishOutput {
/// Creates a new builder-style object to manufacture [`PublishOutput`](crate::output::PublishOutput)
pub fn builder() -> crate::output::publish_output::Builder {
crate::output::publish_output::Builder::default()
}
}
/// <p>The response for the OptInPhoneNumber action.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct OptInPhoneNumberOutput {}
impl std::fmt::Debug for OptInPhoneNumberOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("OptInPhoneNumberOutput");
formatter.finish()
}
}
/// See [`OptInPhoneNumberOutput`](crate::output::OptInPhoneNumberOutput)
pub mod opt_in_phone_number_output {
/// A builder for [`OptInPhoneNumberOutput`](crate::output::OptInPhoneNumberOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`OptInPhoneNumberOutput`](crate::output::OptInPhoneNumberOutput)
pub fn build(self) -> crate::output::OptInPhoneNumberOutput {
crate::output::OptInPhoneNumberOutput {}
}
}
}
impl OptInPhoneNumberOutput {
/// Creates a new builder-style object to manufacture [`OptInPhoneNumberOutput`](crate::output::OptInPhoneNumberOutput)
pub fn builder() -> crate::output::opt_in_phone_number_output::Builder {
crate::output::opt_in_phone_number_output::Builder::default()
}
}
/// <p>Response for ListTopics action.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListTopicsOutput {
/// <p>A list of topic ARNs.</p>
pub topics: std::option::Option<std::vec::Vec<crate::model::Topic>>,
/// <p>Token to pass along to the next <code>ListTopics</code> request. This element is returned if there are additional topics to retrieve.</p>
pub next_token: std::option::Option<std::string::String>,
}
impl ListTopicsOutput {
/// <p>A list of topic ARNs.</p>
pub fn topics(&self) -> std::option::Option<&[crate::model::Topic]> {
self.topics.as_deref()
}
/// <p>Token to pass along to the next <code>ListTopics</code> request. This element is returned if there are additional topics to retrieve.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl std::fmt::Debug for ListTopicsOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListTopicsOutput");
formatter.field("topics", &self.topics);
formatter.field("next_token", &self.next_token);
formatter.finish()
}
}
/// See [`ListTopicsOutput`](crate::output::ListTopicsOutput)
pub mod list_topics_output {
/// A builder for [`ListTopicsOutput`](crate::output::ListTopicsOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) topics: std::option::Option<std::vec::Vec<crate::model::Topic>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `topics`.
///
/// To override the contents of this collection use [`set_topics`](Self::set_topics).
///
/// <p>A list of topic ARNs.</p>
pub fn topics(mut self, input: crate::model::Topic) -> Self {
let mut v = self.topics.unwrap_or_default();
v.push(input);
self.topics = Some(v);
self
}
/// <p>A list of topic ARNs.</p>
pub fn set_topics(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Topic>>,
) -> Self {
self.topics = input;
self
}
/// <p>Token to pass along to the next <code>ListTopics</code> request. This element is returned if there are additional topics to retrieve.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>Token to pass along to the next <code>ListTopics</code> request. This element is returned if there are additional topics to retrieve.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListTopicsOutput`](crate::output::ListTopicsOutput)
pub fn build(self) -> crate::output::ListTopicsOutput {
crate::output::ListTopicsOutput {
topics: self.topics,
next_token: self.next_token,
}
}
}
}
impl ListTopicsOutput {
/// Creates a new builder-style object to manufacture [`ListTopicsOutput`](crate::output::ListTopicsOutput)
pub fn builder() -> crate::output::list_topics_output::Builder {
crate::output::list_topics_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListTagsForResourceOutput {
/// <p>The tags associated with the specified topic.</p>
pub tags: std::option::Option<std::vec::Vec<crate::model::Tag>>,
}
impl ListTagsForResourceOutput {
/// <p>The tags associated with the specified topic.</p>
pub fn tags(&self) -> std::option::Option<&[crate::model::Tag]> {
self.tags.as_deref()
}
}
impl std::fmt::Debug for ListTagsForResourceOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListTagsForResourceOutput");
formatter.field("tags", &self.tags);
formatter.finish()
}
}
/// See [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput)
pub mod list_tags_for_resource_output {
/// A builder for [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) tags: std::option::Option<std::vec::Vec<crate::model::Tag>>,
}
impl Builder {
/// Appends an item to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>The tags associated with the specified topic.</p>
pub fn tags(mut self, input: crate::model::Tag) -> Self {
let mut v = self.tags.unwrap_or_default();
v.push(input);
self.tags = Some(v);
self
}
/// <p>The tags associated with the specified topic.</p>
pub fn set_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
) -> Self {
self.tags = input;
self
}
/// Consumes the builder and constructs a [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput)
pub fn build(self) -> crate::output::ListTagsForResourceOutput {
crate::output::ListTagsForResourceOutput { tags: self.tags }
}
}
}
impl ListTagsForResourceOutput {
/// Creates a new builder-style object to manufacture [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput)
pub fn builder() -> crate::output::list_tags_for_resource_output::Builder {
crate::output::list_tags_for_resource_output::Builder::default()
}
}
/// <p>Response for ListSubscriptionsByTopic action.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListSubscriptionsByTopicOutput {
/// <p>A list of subscriptions.</p>
pub subscriptions: std::option::Option<std::vec::Vec<crate::model::Subscription>>,
/// <p>Token to pass along to the next <code>ListSubscriptionsByTopic</code> request. This element is returned if there are more subscriptions to retrieve.</p>
pub next_token: std::option::Option<std::string::String>,
}
impl ListSubscriptionsByTopicOutput {
/// <p>A list of subscriptions.</p>
pub fn subscriptions(&self) -> std::option::Option<&[crate::model::Subscription]> {
self.subscriptions.as_deref()
}
/// <p>Token to pass along to the next <code>ListSubscriptionsByTopic</code> request. This element is returned if there are more subscriptions to retrieve.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl std::fmt::Debug for ListSubscriptionsByTopicOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListSubscriptionsByTopicOutput");
formatter.field("subscriptions", &self.subscriptions);
formatter.field("next_token", &self.next_token);
formatter.finish()
}
}
/// See [`ListSubscriptionsByTopicOutput`](crate::output::ListSubscriptionsByTopicOutput)
pub mod list_subscriptions_by_topic_output {
/// A builder for [`ListSubscriptionsByTopicOutput`](crate::output::ListSubscriptionsByTopicOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) subscriptions: std::option::Option<std::vec::Vec<crate::model::Subscription>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `subscriptions`.
///
/// To override the contents of this collection use [`set_subscriptions`](Self::set_subscriptions).
///
/// <p>A list of subscriptions.</p>
pub fn subscriptions(mut self, input: crate::model::Subscription) -> Self {
let mut v = self.subscriptions.unwrap_or_default();
v.push(input);
self.subscriptions = Some(v);
self
}
/// <p>A list of subscriptions.</p>
pub fn set_subscriptions(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Subscription>>,
) -> Self {
self.subscriptions = input;
self
}
/// <p>Token to pass along to the next <code>ListSubscriptionsByTopic</code> request. This element is returned if there are more subscriptions to retrieve.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>Token to pass along to the next <code>ListSubscriptionsByTopic</code> request. This element is returned if there are more subscriptions to retrieve.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListSubscriptionsByTopicOutput`](crate::output::ListSubscriptionsByTopicOutput)
pub fn build(self) -> crate::output::ListSubscriptionsByTopicOutput {
crate::output::ListSubscriptionsByTopicOutput {
subscriptions: self.subscriptions,
next_token: self.next_token,
}
}
}
}
impl ListSubscriptionsByTopicOutput {
/// Creates a new builder-style object to manufacture [`ListSubscriptionsByTopicOutput`](crate::output::ListSubscriptionsByTopicOutput)
pub fn builder() -> crate::output::list_subscriptions_by_topic_output::Builder {
crate::output::list_subscriptions_by_topic_output::Builder::default()
}
}
/// <p>Response for ListSubscriptions action</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListSubscriptionsOutput {
/// <p>A list of subscriptions.</p>
pub subscriptions: std::option::Option<std::vec::Vec<crate::model::Subscription>>,
/// <p>Token to pass along to the next <code>ListSubscriptions</code> request. This element is returned if there are more subscriptions to retrieve.</p>
pub next_token: std::option::Option<std::string::String>,
}
impl ListSubscriptionsOutput {
/// <p>A list of subscriptions.</p>
pub fn subscriptions(&self) -> std::option::Option<&[crate::model::Subscription]> {
self.subscriptions.as_deref()
}
/// <p>Token to pass along to the next <code>ListSubscriptions</code> request. This element is returned if there are more subscriptions to retrieve.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl std::fmt::Debug for ListSubscriptionsOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListSubscriptionsOutput");
formatter.field("subscriptions", &self.subscriptions);
formatter.field("next_token", &self.next_token);
formatter.finish()
}
}
/// See [`ListSubscriptionsOutput`](crate::output::ListSubscriptionsOutput)
pub mod list_subscriptions_output {
/// A builder for [`ListSubscriptionsOutput`](crate::output::ListSubscriptionsOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) subscriptions: std::option::Option<std::vec::Vec<crate::model::Subscription>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `subscriptions`.
///
/// To override the contents of this collection use [`set_subscriptions`](Self::set_subscriptions).
///
/// <p>A list of subscriptions.</p>
pub fn subscriptions(mut self, input: crate::model::Subscription) -> Self {
let mut v = self.subscriptions.unwrap_or_default();
v.push(input);
self.subscriptions = Some(v);
self
}
/// <p>A list of subscriptions.</p>
pub fn set_subscriptions(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Subscription>>,
) -> Self {
self.subscriptions = input;
self
}
/// <p>Token to pass along to the next <code>ListSubscriptions</code> request. This element is returned if there are more subscriptions to retrieve.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>Token to pass along to the next <code>ListSubscriptions</code> request. This element is returned if there are more subscriptions to retrieve.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListSubscriptionsOutput`](crate::output::ListSubscriptionsOutput)
pub fn build(self) -> crate::output::ListSubscriptionsOutput {
crate::output::ListSubscriptionsOutput {
subscriptions: self.subscriptions,
next_token: self.next_token,
}
}
}
}
impl ListSubscriptionsOutput {
/// Creates a new builder-style object to manufacture [`ListSubscriptionsOutput`](crate::output::ListSubscriptionsOutput)
pub fn builder() -> crate::output::list_subscriptions_output::Builder {
crate::output::list_subscriptions_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListSmsSandboxPhoneNumbersOutput {
/// <p>A list of the calling account's pending and verified phone numbers.</p>
pub phone_numbers: std::option::Option<std::vec::Vec<crate::model::SmsSandboxPhoneNumber>>,
/// <p>A <code>NextToken</code> string is returned when you call the <code>ListSMSSandboxPhoneNumbersInput</code> operation if additional pages of records are available.</p>
pub next_token: std::option::Option<std::string::String>,
}
impl ListSmsSandboxPhoneNumbersOutput {
/// <p>A list of the calling account's pending and verified phone numbers.</p>
pub fn phone_numbers(&self) -> std::option::Option<&[crate::model::SmsSandboxPhoneNumber]> {
self.phone_numbers.as_deref()
}
/// <p>A <code>NextToken</code> string is returned when you call the <code>ListSMSSandboxPhoneNumbersInput</code> operation if additional pages of records are available.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl std::fmt::Debug for ListSmsSandboxPhoneNumbersOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListSmsSandboxPhoneNumbersOutput");
formatter.field("phone_numbers", &self.phone_numbers);
formatter.field("next_token", &self.next_token);
formatter.finish()
}
}
/// See [`ListSmsSandboxPhoneNumbersOutput`](crate::output::ListSmsSandboxPhoneNumbersOutput)
pub mod list_sms_sandbox_phone_numbers_output {
/// A builder for [`ListSmsSandboxPhoneNumbersOutput`](crate::output::ListSmsSandboxPhoneNumbersOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) phone_numbers:
std::option::Option<std::vec::Vec<crate::model::SmsSandboxPhoneNumber>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `phone_numbers`.
///
/// To override the contents of this collection use [`set_phone_numbers`](Self::set_phone_numbers).
///
/// <p>A list of the calling account's pending and verified phone numbers.</p>
pub fn phone_numbers(mut self, input: crate::model::SmsSandboxPhoneNumber) -> Self {
let mut v = self.phone_numbers.unwrap_or_default();
v.push(input);
self.phone_numbers = Some(v);
self
}
/// <p>A list of the calling account's pending and verified phone numbers.</p>
pub fn set_phone_numbers(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::SmsSandboxPhoneNumber>>,
) -> Self {
self.phone_numbers = input;
self
}
/// <p>A <code>NextToken</code> string is returned when you call the <code>ListSMSSandboxPhoneNumbersInput</code> operation if additional pages of records are available.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>A <code>NextToken</code> string is returned when you call the <code>ListSMSSandboxPhoneNumbersInput</code> operation if additional pages of records are available.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListSmsSandboxPhoneNumbersOutput`](crate::output::ListSmsSandboxPhoneNumbersOutput)
pub fn build(self) -> crate::output::ListSmsSandboxPhoneNumbersOutput {
crate::output::ListSmsSandboxPhoneNumbersOutput {
phone_numbers: self.phone_numbers,
next_token: self.next_token,
}
}
}
}
impl ListSmsSandboxPhoneNumbersOutput {
/// Creates a new builder-style object to manufacture [`ListSmsSandboxPhoneNumbersOutput`](crate::output::ListSmsSandboxPhoneNumbersOutput)
pub fn builder() -> crate::output::list_sms_sandbox_phone_numbers_output::Builder {
crate::output::list_sms_sandbox_phone_numbers_output::Builder::default()
}
}
/// <p>Response for ListPlatformApplications action.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListPlatformApplicationsOutput {
/// <p>Platform applications returned when calling ListPlatformApplications action.</p>
pub platform_applications:
std::option::Option<std::vec::Vec<crate::model::PlatformApplication>>,
/// <p>NextToken string is returned when calling ListPlatformApplications action if additional records are available after the first page results.</p>
pub next_token: std::option::Option<std::string::String>,
}
impl ListPlatformApplicationsOutput {
/// <p>Platform applications returned when calling ListPlatformApplications action.</p>
pub fn platform_applications(
&self,
) -> std::option::Option<&[crate::model::PlatformApplication]> {
self.platform_applications.as_deref()
}
/// <p>NextToken string is returned when calling ListPlatformApplications action if additional records are available after the first page results.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl std::fmt::Debug for ListPlatformApplicationsOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListPlatformApplicationsOutput");
formatter.field("platform_applications", &self.platform_applications);
formatter.field("next_token", &self.next_token);
formatter.finish()
}
}
/// See [`ListPlatformApplicationsOutput`](crate::output::ListPlatformApplicationsOutput)
pub mod list_platform_applications_output {
/// A builder for [`ListPlatformApplicationsOutput`](crate::output::ListPlatformApplicationsOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) platform_applications:
std::option::Option<std::vec::Vec<crate::model::PlatformApplication>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `platform_applications`.
///
/// To override the contents of this collection use [`set_platform_applications`](Self::set_platform_applications).
///
/// <p>Platform applications returned when calling ListPlatformApplications action.</p>
pub fn platform_applications(mut self, input: crate::model::PlatformApplication) -> Self {
let mut v = self.platform_applications.unwrap_or_default();
v.push(input);
self.platform_applications = Some(v);
self
}
/// <p>Platform applications returned when calling ListPlatformApplications action.</p>
pub fn set_platform_applications(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::PlatformApplication>>,
) -> Self {
self.platform_applications = input;
self
}
/// <p>NextToken string is returned when calling ListPlatformApplications action if additional records are available after the first page results.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>NextToken string is returned when calling ListPlatformApplications action if additional records are available after the first page results.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListPlatformApplicationsOutput`](crate::output::ListPlatformApplicationsOutput)
pub fn build(self) -> crate::output::ListPlatformApplicationsOutput {
crate::output::ListPlatformApplicationsOutput {
platform_applications: self.platform_applications,
next_token: self.next_token,
}
}
}
}
impl ListPlatformApplicationsOutput {
/// Creates a new builder-style object to manufacture [`ListPlatformApplicationsOutput`](crate::output::ListPlatformApplicationsOutput)
pub fn builder() -> crate::output::list_platform_applications_output::Builder {
crate::output::list_platform_applications_output::Builder::default()
}
}
/// <p>The response from the <code>ListPhoneNumbersOptedOut</code> action.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListPhoneNumbersOptedOutOutput {
/// <p>A list of phone numbers that are opted out of receiving SMS messages. The list is paginated, and each page can contain up to 100 phone numbers.</p>
pub phone_numbers: std::option::Option<std::vec::Vec<std::string::String>>,
/// <p>A <code>NextToken</code> string is returned when you call the <code>ListPhoneNumbersOptedOut</code> action if additional records are available after the first page of results.</p>
pub next_token: std::option::Option<std::string::String>,
}
impl ListPhoneNumbersOptedOutOutput {
/// <p>A list of phone numbers that are opted out of receiving SMS messages. The list is paginated, and each page can contain up to 100 phone numbers.</p>
pub fn phone_numbers(&self) -> std::option::Option<&[std::string::String]> {
self.phone_numbers.as_deref()
}
/// <p>A <code>NextToken</code> string is returned when you call the <code>ListPhoneNumbersOptedOut</code> action if additional records are available after the first page of results.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl std::fmt::Debug for ListPhoneNumbersOptedOutOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListPhoneNumbersOptedOutOutput");
formatter.field("phone_numbers", &self.phone_numbers);
formatter.field("next_token", &self.next_token);
formatter.finish()
}
}
/// See [`ListPhoneNumbersOptedOutOutput`](crate::output::ListPhoneNumbersOptedOutOutput)
pub mod list_phone_numbers_opted_out_output {
/// A builder for [`ListPhoneNumbersOptedOutOutput`](crate::output::ListPhoneNumbersOptedOutOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) phone_numbers: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `phone_numbers`.
///
/// To override the contents of this collection use [`set_phone_numbers`](Self::set_phone_numbers).
///
/// <p>A list of phone numbers that are opted out of receiving SMS messages. The list is paginated, and each page can contain up to 100 phone numbers.</p>
pub fn phone_numbers(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.phone_numbers.unwrap_or_default();
v.push(input.into());
self.phone_numbers = Some(v);
self
}
/// <p>A list of phone numbers that are opted out of receiving SMS messages. The list is paginated, and each page can contain up to 100 phone numbers.</p>
pub fn set_phone_numbers(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.phone_numbers = input;
self
}
/// <p>A <code>NextToken</code> string is returned when you call the <code>ListPhoneNumbersOptedOut</code> action if additional records are available after the first page of results.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>A <code>NextToken</code> string is returned when you call the <code>ListPhoneNumbersOptedOut</code> action if additional records are available after the first page of results.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListPhoneNumbersOptedOutOutput`](crate::output::ListPhoneNumbersOptedOutOutput)
pub fn build(self) -> crate::output::ListPhoneNumbersOptedOutOutput {
crate::output::ListPhoneNumbersOptedOutOutput {
phone_numbers: self.phone_numbers,
next_token: self.next_token,
}
}
}
}
impl ListPhoneNumbersOptedOutOutput {
/// Creates a new builder-style object to manufacture [`ListPhoneNumbersOptedOutOutput`](crate::output::ListPhoneNumbersOptedOutOutput)
pub fn builder() -> crate::output::list_phone_numbers_opted_out_output::Builder {
crate::output::list_phone_numbers_opted_out_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListOriginationNumbersOutput {
/// <p>A <code>NextToken</code> string is returned when you call the <code>ListOriginationNumbers</code> operation if additional pages of records are available.</p>
pub next_token: std::option::Option<std::string::String>,
/// <p>A list of the calling account's verified and pending origination numbers.</p>
pub phone_numbers: std::option::Option<std::vec::Vec<crate::model::PhoneNumberInformation>>,
}
impl ListOriginationNumbersOutput {
/// <p>A <code>NextToken</code> string is returned when you call the <code>ListOriginationNumbers</code> operation if additional pages of records are available.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
/// <p>A list of the calling account's verified and pending origination numbers.</p>
pub fn phone_numbers(&self) -> std::option::Option<&[crate::model::PhoneNumberInformation]> {
self.phone_numbers.as_deref()
}
}
impl std::fmt::Debug for ListOriginationNumbersOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListOriginationNumbersOutput");
formatter.field("next_token", &self.next_token);
formatter.field("phone_numbers", &self.phone_numbers);
formatter.finish()
}
}
/// See [`ListOriginationNumbersOutput`](crate::output::ListOriginationNumbersOutput)
pub mod list_origination_numbers_output {
/// A builder for [`ListOriginationNumbersOutput`](crate::output::ListOriginationNumbersOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) next_token: std::option::Option<std::string::String>,
pub(crate) phone_numbers:
std::option::Option<std::vec::Vec<crate::model::PhoneNumberInformation>>,
}
impl Builder {
/// <p>A <code>NextToken</code> string is returned when you call the <code>ListOriginationNumbers</code> operation if additional pages of records are available.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>A <code>NextToken</code> string is returned when you call the <code>ListOriginationNumbers</code> operation if additional pages of records are available.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Appends an item to `phone_numbers`.
///
/// To override the contents of this collection use [`set_phone_numbers`](Self::set_phone_numbers).
///
/// <p>A list of the calling account's verified and pending origination numbers.</p>
pub fn phone_numbers(mut self, input: crate::model::PhoneNumberInformation) -> Self {
let mut v = self.phone_numbers.unwrap_or_default();
v.push(input);
self.phone_numbers = Some(v);
self
}
/// <p>A list of the calling account's verified and pending origination numbers.</p>
pub fn set_phone_numbers(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::PhoneNumberInformation>>,
) -> Self {
self.phone_numbers = input;
self
}
/// Consumes the builder and constructs a [`ListOriginationNumbersOutput`](crate::output::ListOriginationNumbersOutput)
pub fn build(self) -> crate::output::ListOriginationNumbersOutput {
crate::output::ListOriginationNumbersOutput {
next_token: self.next_token,
phone_numbers: self.phone_numbers,
}
}
}
}
impl ListOriginationNumbersOutput {
/// Creates a new builder-style object to manufacture [`ListOriginationNumbersOutput`](crate::output::ListOriginationNumbersOutput)
pub fn builder() -> crate::output::list_origination_numbers_output::Builder {
crate::output::list_origination_numbers_output::Builder::default()
}
}
/// <p>Response for ListEndpointsByPlatformApplication action.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListEndpointsByPlatformApplicationOutput {
/// <p>Endpoints returned for ListEndpointsByPlatformApplication action.</p>
pub endpoints: std::option::Option<std::vec::Vec<crate::model::Endpoint>>,
/// <p>NextToken string is returned when calling ListEndpointsByPlatformApplication action if additional records are available after the first page results.</p>
pub next_token: std::option::Option<std::string::String>,
}
impl ListEndpointsByPlatformApplicationOutput {
/// <p>Endpoints returned for ListEndpointsByPlatformApplication action.</p>
pub fn endpoints(&self) -> std::option::Option<&[crate::model::Endpoint]> {
self.endpoints.as_deref()
}
/// <p>NextToken string is returned when calling ListEndpointsByPlatformApplication action if additional records are available after the first page results.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl std::fmt::Debug for ListEndpointsByPlatformApplicationOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListEndpointsByPlatformApplicationOutput");
formatter.field("endpoints", &self.endpoints);
formatter.field("next_token", &self.next_token);
formatter.finish()
}
}
/// See [`ListEndpointsByPlatformApplicationOutput`](crate::output::ListEndpointsByPlatformApplicationOutput)
pub mod list_endpoints_by_platform_application_output {
/// A builder for [`ListEndpointsByPlatformApplicationOutput`](crate::output::ListEndpointsByPlatformApplicationOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) endpoints: std::option::Option<std::vec::Vec<crate::model::Endpoint>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `endpoints`.
///
/// To override the contents of this collection use [`set_endpoints`](Self::set_endpoints).
///
/// <p>Endpoints returned for ListEndpointsByPlatformApplication action.</p>
pub fn endpoints(mut self, input: crate::model::Endpoint) -> Self {
let mut v = self.endpoints.unwrap_or_default();
v.push(input);
self.endpoints = Some(v);
self
}
/// <p>Endpoints returned for ListEndpointsByPlatformApplication action.</p>
pub fn set_endpoints(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Endpoint>>,
) -> Self {
self.endpoints = input;
self
}
/// <p>NextToken string is returned when calling ListEndpointsByPlatformApplication action if additional records are available after the first page results.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>NextToken string is returned when calling ListEndpointsByPlatformApplication action if additional records are available after the first page results.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListEndpointsByPlatformApplicationOutput`](crate::output::ListEndpointsByPlatformApplicationOutput)
pub fn build(self) -> crate::output::ListEndpointsByPlatformApplicationOutput {
crate::output::ListEndpointsByPlatformApplicationOutput {
endpoints: self.endpoints,
next_token: self.next_token,
}
}
}
}
impl ListEndpointsByPlatformApplicationOutput {
/// Creates a new builder-style object to manufacture [`ListEndpointsByPlatformApplicationOutput`](crate::output::ListEndpointsByPlatformApplicationOutput)
pub fn builder() -> crate::output::list_endpoints_by_platform_application_output::Builder {
crate::output::list_endpoints_by_platform_application_output::Builder::default()
}
}
/// <p>Response for GetTopicAttributes action.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GetTopicAttributesOutput {
/// <p>A map of the topic's attributes. Attributes in this map include the following:</p>
/// <ul>
/// <li> <p> <code>DeliveryPolicy</code> – The JSON serialization of the topic's delivery policy.</p> </li>
/// <li> <p> <code>DisplayName</code> – The human-readable name used in the <code>From</code> field for notifications to <code>email</code> and <code>email-json</code> endpoints.</p> </li>
/// <li> <p> <code>Owner</code> – The Amazon Web Services account ID of the topic's owner.</p> </li>
/// <li> <p> <code>Policy</code> – The JSON serialization of the topic's access control policy.</p> </li>
/// <li> <p> <code>SubscriptionsConfirmed</code> – The number of confirmed subscriptions for the topic.</p> </li>
/// <li> <p> <code>SubscriptionsDeleted</code> – The number of deleted subscriptions for the topic.</p> </li>
/// <li> <p> <code>SubscriptionsPending</code> – The number of subscriptions pending confirmation for the topic.</p> </li>
/// <li> <p> <code>TopicArn</code> – The topic's ARN.</p> </li>
/// <li> <p> <code>EffectiveDeliveryPolicy</code> – The JSON serialization of the effective delivery policy, taking system defaults into account.</p> </li>
/// </ul>
/// <p>The following attribute applies only to <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html">server-side-encryption</a>:</p>
/// <ul>
/// <li> <p> <code>KmsMasterKeyId</code> - The ID of an Amazon Web Services managed customer master key (CMK) for Amazon SNS or a custom CMK. For more information, see <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html#sse-key-terms">Key Terms</a>. For more examples, see <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters">KeyId</a> in the <i>Key Management Service API Reference</i>.</p> </li>
/// </ul>
/// <p>The following attributes apply only to <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html">FIFO topics</a>:</p>
/// <ul>
/// <li> <p> <code>FifoTopic</code> – When this is set to <code>true</code>, a FIFO topic is created.</p> </li>
/// <li> <p> <code>ContentBasedDeduplication</code> – Enables content-based deduplication for FIFO topics.</p>
/// <ul>
/// <li> <p>By default, <code>ContentBasedDeduplication</code> is set to <code>false</code>. If you create a FIFO topic and this attribute is <code>false</code>, you must specify a value for the <code>MessageDeduplicationId</code> parameter for the <a href="https://docs.aws.amazon.com/sns/latest/api/API_Publish.html">Publish</a> action. </p> </li>
/// <li> <p>When you set <code>ContentBasedDeduplication</code> to <code>true</code>, Amazon SNS uses a SHA-256 hash to generate the <code>MessageDeduplicationId</code> using the body of the message (but not the attributes of the message).</p> <p>(Optional) To override the generated value, you can specify a value for the <code>MessageDeduplicationId</code> parameter for the <code>Publish</code> action.</p> </li>
/// </ul> </li>
/// </ul>
pub attributes:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
}
impl GetTopicAttributesOutput {
/// <p>A map of the topic's attributes. Attributes in this map include the following:</p>
/// <ul>
/// <li> <p> <code>DeliveryPolicy</code> – The JSON serialization of the topic's delivery policy.</p> </li>
/// <li> <p> <code>DisplayName</code> – The human-readable name used in the <code>From</code> field for notifications to <code>email</code> and <code>email-json</code> endpoints.</p> </li>
/// <li> <p> <code>Owner</code> – The Amazon Web Services account ID of the topic's owner.</p> </li>
/// <li> <p> <code>Policy</code> – The JSON serialization of the topic's access control policy.</p> </li>
/// <li> <p> <code>SubscriptionsConfirmed</code> – The number of confirmed subscriptions for the topic.</p> </li>
/// <li> <p> <code>SubscriptionsDeleted</code> – The number of deleted subscriptions for the topic.</p> </li>
/// <li> <p> <code>SubscriptionsPending</code> – The number of subscriptions pending confirmation for the topic.</p> </li>
/// <li> <p> <code>TopicArn</code> – The topic's ARN.</p> </li>
/// <li> <p> <code>EffectiveDeliveryPolicy</code> – The JSON serialization of the effective delivery policy, taking system defaults into account.</p> </li>
/// </ul>
/// <p>The following attribute applies only to <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html">server-side-encryption</a>:</p>
/// <ul>
/// <li> <p> <code>KmsMasterKeyId</code> - The ID of an Amazon Web Services managed customer master key (CMK) for Amazon SNS or a custom CMK. For more information, see <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html#sse-key-terms">Key Terms</a>. For more examples, see <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters">KeyId</a> in the <i>Key Management Service API Reference</i>.</p> </li>
/// </ul>
/// <p>The following attributes apply only to <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html">FIFO topics</a>:</p>
/// <ul>
/// <li> <p> <code>FifoTopic</code> – When this is set to <code>true</code>, a FIFO topic is created.</p> </li>
/// <li> <p> <code>ContentBasedDeduplication</code> – Enables content-based deduplication for FIFO topics.</p>
/// <ul>
/// <li> <p>By default, <code>ContentBasedDeduplication</code> is set to <code>false</code>. If you create a FIFO topic and this attribute is <code>false</code>, you must specify a value for the <code>MessageDeduplicationId</code> parameter for the <a href="https://docs.aws.amazon.com/sns/latest/api/API_Publish.html">Publish</a> action. </p> </li>
/// <li> <p>When you set <code>ContentBasedDeduplication</code> to <code>true</code>, Amazon SNS uses a SHA-256 hash to generate the <code>MessageDeduplicationId</code> using the body of the message (but not the attributes of the message).</p> <p>(Optional) To override the generated value, you can specify a value for the <code>MessageDeduplicationId</code> parameter for the <code>Publish</code> action.</p> </li>
/// </ul> </li>
/// </ul>
pub fn attributes(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.attributes.as_ref()
}
}
impl std::fmt::Debug for GetTopicAttributesOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GetTopicAttributesOutput");
formatter.field("attributes", &self.attributes);
formatter.finish()
}
}
/// See [`GetTopicAttributesOutput`](crate::output::GetTopicAttributesOutput)
pub mod get_topic_attributes_output {
/// A builder for [`GetTopicAttributesOutput`](crate::output::GetTopicAttributesOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) attributes: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
}
impl Builder {
/// Adds a key-value pair to `attributes`.
///
/// To override the contents of this collection use [`set_attributes`](Self::set_attributes).
///
/// <p>A map of the topic's attributes. Attributes in this map include the following:</p>
/// <ul>
/// <li> <p> <code>DeliveryPolicy</code> – The JSON serialization of the topic's delivery policy.</p> </li>
/// <li> <p> <code>DisplayName</code> – The human-readable name used in the <code>From</code> field for notifications to <code>email</code> and <code>email-json</code> endpoints.</p> </li>
/// <li> <p> <code>Owner</code> – The Amazon Web Services account ID of the topic's owner.</p> </li>
/// <li> <p> <code>Policy</code> – The JSON serialization of the topic's access control policy.</p> </li>
/// <li> <p> <code>SubscriptionsConfirmed</code> – The number of confirmed subscriptions for the topic.</p> </li>
/// <li> <p> <code>SubscriptionsDeleted</code> – The number of deleted subscriptions for the topic.</p> </li>
/// <li> <p> <code>SubscriptionsPending</code> – The number of subscriptions pending confirmation for the topic.</p> </li>
/// <li> <p> <code>TopicArn</code> – The topic's ARN.</p> </li>
/// <li> <p> <code>EffectiveDeliveryPolicy</code> – The JSON serialization of the effective delivery policy, taking system defaults into account.</p> </li>
/// </ul>
/// <p>The following attribute applies only to <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html">server-side-encryption</a>:</p>
/// <ul>
/// <li> <p> <code>KmsMasterKeyId</code> - The ID of an Amazon Web Services managed customer master key (CMK) for Amazon SNS or a custom CMK. For more information, see <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html#sse-key-terms">Key Terms</a>. For more examples, see <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters">KeyId</a> in the <i>Key Management Service API Reference</i>.</p> </li>
/// </ul>
/// <p>The following attributes apply only to <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html">FIFO topics</a>:</p>
/// <ul>
/// <li> <p> <code>FifoTopic</code> – When this is set to <code>true</code>, a FIFO topic is created.</p> </li>
/// <li> <p> <code>ContentBasedDeduplication</code> – Enables content-based deduplication for FIFO topics.</p>
/// <ul>
/// <li> <p>By default, <code>ContentBasedDeduplication</code> is set to <code>false</code>. If you create a FIFO topic and this attribute is <code>false</code>, you must specify a value for the <code>MessageDeduplicationId</code> parameter for the <a href="https://docs.aws.amazon.com/sns/latest/api/API_Publish.html">Publish</a> action. </p> </li>
/// <li> <p>When you set <code>ContentBasedDeduplication</code> to <code>true</code>, Amazon SNS uses a SHA-256 hash to generate the <code>MessageDeduplicationId</code> using the body of the message (but not the attributes of the message).</p> <p>(Optional) To override the generated value, you can specify a value for the <code>MessageDeduplicationId</code> parameter for the <code>Publish</code> action.</p> </li>
/// </ul> </li>
/// </ul>
pub fn attributes(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
let mut hash_map = self.attributes.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.attributes = Some(hash_map);
self
}
/// <p>A map of the topic's attributes. Attributes in this map include the following:</p>
/// <ul>
/// <li> <p> <code>DeliveryPolicy</code> – The JSON serialization of the topic's delivery policy.</p> </li>
/// <li> <p> <code>DisplayName</code> – The human-readable name used in the <code>From</code> field for notifications to <code>email</code> and <code>email-json</code> endpoints.</p> </li>
/// <li> <p> <code>Owner</code> – The Amazon Web Services account ID of the topic's owner.</p> </li>
/// <li> <p> <code>Policy</code> – The JSON serialization of the topic's access control policy.</p> </li>
/// <li> <p> <code>SubscriptionsConfirmed</code> – The number of confirmed subscriptions for the topic.</p> </li>
/// <li> <p> <code>SubscriptionsDeleted</code> – The number of deleted subscriptions for the topic.</p> </li>
/// <li> <p> <code>SubscriptionsPending</code> – The number of subscriptions pending confirmation for the topic.</p> </li>
/// <li> <p> <code>TopicArn</code> – The topic's ARN.</p> </li>
/// <li> <p> <code>EffectiveDeliveryPolicy</code> – The JSON serialization of the effective delivery policy, taking system defaults into account.</p> </li>
/// </ul>
/// <p>The following attribute applies only to <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html">server-side-encryption</a>:</p>
/// <ul>
/// <li> <p> <code>KmsMasterKeyId</code> - The ID of an Amazon Web Services managed customer master key (CMK) for Amazon SNS or a custom CMK. For more information, see <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html#sse-key-terms">Key Terms</a>. For more examples, see <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters">KeyId</a> in the <i>Key Management Service API Reference</i>.</p> </li>
/// </ul>
/// <p>The following attributes apply only to <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html">FIFO topics</a>:</p>
/// <ul>
/// <li> <p> <code>FifoTopic</code> – When this is set to <code>true</code>, a FIFO topic is created.</p> </li>
/// <li> <p> <code>ContentBasedDeduplication</code> – Enables content-based deduplication for FIFO topics.</p>
/// <ul>
/// <li> <p>By default, <code>ContentBasedDeduplication</code> is set to <code>false</code>. If you create a FIFO topic and this attribute is <code>false</code>, you must specify a value for the <code>MessageDeduplicationId</code> parameter for the <a href="https://docs.aws.amazon.com/sns/latest/api/API_Publish.html">Publish</a> action. </p> </li>
/// <li> <p>When you set <code>ContentBasedDeduplication</code> to <code>true</code>, Amazon SNS uses a SHA-256 hash to generate the <code>MessageDeduplicationId</code> using the body of the message (but not the attributes of the message).</p> <p>(Optional) To override the generated value, you can specify a value for the <code>MessageDeduplicationId</code> parameter for the <code>Publish</code> action.</p> </li>
/// </ul> </li>
/// </ul>
pub fn set_attributes(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.attributes = input;
self
}
/// Consumes the builder and constructs a [`GetTopicAttributesOutput`](crate::output::GetTopicAttributesOutput)
pub fn build(self) -> crate::output::GetTopicAttributesOutput {
crate::output::GetTopicAttributesOutput {
attributes: self.attributes,
}
}
}
}
impl GetTopicAttributesOutput {
/// Creates a new builder-style object to manufacture [`GetTopicAttributesOutput`](crate::output::GetTopicAttributesOutput)
pub fn builder() -> crate::output::get_topic_attributes_output::Builder {
crate::output::get_topic_attributes_output::Builder::default()
}
}
/// <p>Response for GetSubscriptionAttributes action.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GetSubscriptionAttributesOutput {
/// <p>A map of the subscription's attributes. Attributes in this map include the following:</p>
/// <ul>
/// <li> <p> <code>ConfirmationWasAuthenticated</code> – <code>true</code> if the subscription confirmation request was authenticated.</p> </li>
/// <li> <p> <code>DeliveryPolicy</code> – The JSON serialization of the subscription's delivery policy.</p> </li>
/// <li> <p> <code>EffectiveDeliveryPolicy</code> – The JSON serialization of the effective delivery policy that takes into account the topic delivery policy and account system defaults.</p> </li>
/// <li> <p> <code>FilterPolicy</code> – The filter policy JSON that is assigned to the subscription. For more information, see <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-message-filtering.html">Amazon SNS Message Filtering</a> in the <i>Amazon SNS Developer Guide</i>.</p> </li>
/// <li> <p> <code>Owner</code> – The Amazon Web Services account ID of the subscription's owner.</p> </li>
/// <li> <p> <code>PendingConfirmation</code> – <code>true</code> if the subscription hasn't been confirmed. To confirm a pending subscription, call the <code>ConfirmSubscription</code> action with a confirmation token.</p> </li>
/// <li> <p> <code>RawMessageDelivery</code> – <code>true</code> if raw message delivery is enabled for the subscription. Raw messages are free of JSON formatting and can be sent to HTTP/S and Amazon SQS endpoints.</p> </li>
/// <li> <p> <code>RedrivePolicy</code> – When specified, sends undeliverable messages to the specified Amazon SQS dead-letter queue. Messages that can't be delivered due to client errors (for example, when the subscribed endpoint is unreachable) or server errors (for example, when the service that powers the subscribed endpoint becomes unavailable) are held in the dead-letter queue for further analysis or reprocessing.</p> </li>
/// <li> <p> <code>SubscriptionArn</code> – The subscription's ARN.</p> </li>
/// <li> <p> <code>TopicArn</code> – The topic ARN that the subscription is associated with.</p> </li>
/// </ul>
/// <p>The following attribute applies only to Amazon Kinesis Data Firehose delivery stream subscriptions:</p>
/// <ul>
/// <li> <p> <code>SubscriptionRoleArn</code> – The ARN of the IAM role that has the following:</p>
/// <ul>
/// <li> <p>Permission to write to the Kinesis Data Firehose delivery stream</p> </li>
/// <li> <p>Amazon SNS listed as a trusted entity</p> </li>
/// </ul> <p>Specifying a valid ARN for this attribute is required for Kinesis Data Firehose delivery stream subscriptions. For more information, see <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-firehose-as-subscriber.html">Fanout to Kinesis Data Firehose delivery streams</a> in the <i>Amazon SNS Developer Guide</i>.</p> </li>
/// </ul>
pub attributes:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
}
impl GetSubscriptionAttributesOutput {
/// <p>A map of the subscription's attributes. Attributes in this map include the following:</p>
/// <ul>
/// <li> <p> <code>ConfirmationWasAuthenticated</code> – <code>true</code> if the subscription confirmation request was authenticated.</p> </li>
/// <li> <p> <code>DeliveryPolicy</code> – The JSON serialization of the subscription's delivery policy.</p> </li>
/// <li> <p> <code>EffectiveDeliveryPolicy</code> – The JSON serialization of the effective delivery policy that takes into account the topic delivery policy and account system defaults.</p> </li>
/// <li> <p> <code>FilterPolicy</code> – The filter policy JSON that is assigned to the subscription. For more information, see <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-message-filtering.html">Amazon SNS Message Filtering</a> in the <i>Amazon SNS Developer Guide</i>.</p> </li>
/// <li> <p> <code>Owner</code> – The Amazon Web Services account ID of the subscription's owner.</p> </li>
/// <li> <p> <code>PendingConfirmation</code> – <code>true</code> if the subscription hasn't been confirmed. To confirm a pending subscription, call the <code>ConfirmSubscription</code> action with a confirmation token.</p> </li>
/// <li> <p> <code>RawMessageDelivery</code> – <code>true</code> if raw message delivery is enabled for the subscription. Raw messages are free of JSON formatting and can be sent to HTTP/S and Amazon SQS endpoints.</p> </li>
/// <li> <p> <code>RedrivePolicy</code> – When specified, sends undeliverable messages to the specified Amazon SQS dead-letter queue. Messages that can't be delivered due to client errors (for example, when the subscribed endpoint is unreachable) or server errors (for example, when the service that powers the subscribed endpoint becomes unavailable) are held in the dead-letter queue for further analysis or reprocessing.</p> </li>
/// <li> <p> <code>SubscriptionArn</code> – The subscription's ARN.</p> </li>
/// <li> <p> <code>TopicArn</code> – The topic ARN that the subscription is associated with.</p> </li>
/// </ul>
/// <p>The following attribute applies only to Amazon Kinesis Data Firehose delivery stream subscriptions:</p>
/// <ul>
/// <li> <p> <code>SubscriptionRoleArn</code> – The ARN of the IAM role that has the following:</p>
/// <ul>
/// <li> <p>Permission to write to the Kinesis Data Firehose delivery stream</p> </li>
/// <li> <p>Amazon SNS listed as a trusted entity</p> </li>
/// </ul> <p>Specifying a valid ARN for this attribute is required for Kinesis Data Firehose delivery stream subscriptions. For more information, see <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-firehose-as-subscriber.html">Fanout to Kinesis Data Firehose delivery streams</a> in the <i>Amazon SNS Developer Guide</i>.</p> </li>
/// </ul>
pub fn attributes(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.attributes.as_ref()
}
}
impl std::fmt::Debug for GetSubscriptionAttributesOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GetSubscriptionAttributesOutput");
formatter.field("attributes", &self.attributes);
formatter.finish()
}
}
/// See [`GetSubscriptionAttributesOutput`](crate::output::GetSubscriptionAttributesOutput)
pub mod get_subscription_attributes_output {
/// A builder for [`GetSubscriptionAttributesOutput`](crate::output::GetSubscriptionAttributesOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) attributes: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
}
impl Builder {
/// Adds a key-value pair to `attributes`.
///
/// To override the contents of this collection use [`set_attributes`](Self::set_attributes).
///
/// <p>A map of the subscription's attributes. Attributes in this map include the following:</p>
/// <ul>
/// <li> <p> <code>ConfirmationWasAuthenticated</code> – <code>true</code> if the subscription confirmation request was authenticated.</p> </li>
/// <li> <p> <code>DeliveryPolicy</code> – The JSON serialization of the subscription's delivery policy.</p> </li>
/// <li> <p> <code>EffectiveDeliveryPolicy</code> – The JSON serialization of the effective delivery policy that takes into account the topic delivery policy and account system defaults.</p> </li>
/// <li> <p> <code>FilterPolicy</code> – The filter policy JSON that is assigned to the subscription. For more information, see <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-message-filtering.html">Amazon SNS Message Filtering</a> in the <i>Amazon SNS Developer Guide</i>.</p> </li>
/// <li> <p> <code>Owner</code> – The Amazon Web Services account ID of the subscription's owner.</p> </li>
/// <li> <p> <code>PendingConfirmation</code> – <code>true</code> if the subscription hasn't been confirmed. To confirm a pending subscription, call the <code>ConfirmSubscription</code> action with a confirmation token.</p> </li>
/// <li> <p> <code>RawMessageDelivery</code> – <code>true</code> if raw message delivery is enabled for the subscription. Raw messages are free of JSON formatting and can be sent to HTTP/S and Amazon SQS endpoints.</p> </li>
/// <li> <p> <code>RedrivePolicy</code> – When specified, sends undeliverable messages to the specified Amazon SQS dead-letter queue. Messages that can't be delivered due to client errors (for example, when the subscribed endpoint is unreachable) or server errors (for example, when the service that powers the subscribed endpoint becomes unavailable) are held in the dead-letter queue for further analysis or reprocessing.</p> </li>
/// <li> <p> <code>SubscriptionArn</code> – The subscription's ARN.</p> </li>
/// <li> <p> <code>TopicArn</code> – The topic ARN that the subscription is associated with.</p> </li>
/// </ul>
/// <p>The following attribute applies only to Amazon Kinesis Data Firehose delivery stream subscriptions:</p>
/// <ul>
/// <li> <p> <code>SubscriptionRoleArn</code> – The ARN of the IAM role that has the following:</p>
/// <ul>
/// <li> <p>Permission to write to the Kinesis Data Firehose delivery stream</p> </li>
/// <li> <p>Amazon SNS listed as a trusted entity</p> </li>
/// </ul> <p>Specifying a valid ARN for this attribute is required for Kinesis Data Firehose delivery stream subscriptions. For more information, see <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-firehose-as-subscriber.html">Fanout to Kinesis Data Firehose delivery streams</a> in the <i>Amazon SNS Developer Guide</i>.</p> </li>
/// </ul>
pub fn attributes(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
let mut hash_map = self.attributes.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.attributes = Some(hash_map);
self
}
/// <p>A map of the subscription's attributes. Attributes in this map include the following:</p>
/// <ul>
/// <li> <p> <code>ConfirmationWasAuthenticated</code> – <code>true</code> if the subscription confirmation request was authenticated.</p> </li>
/// <li> <p> <code>DeliveryPolicy</code> – The JSON serialization of the subscription's delivery policy.</p> </li>
/// <li> <p> <code>EffectiveDeliveryPolicy</code> – The JSON serialization of the effective delivery policy that takes into account the topic delivery policy and account system defaults.</p> </li>
/// <li> <p> <code>FilterPolicy</code> – The filter policy JSON that is assigned to the subscription. For more information, see <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-message-filtering.html">Amazon SNS Message Filtering</a> in the <i>Amazon SNS Developer Guide</i>.</p> </li>
/// <li> <p> <code>Owner</code> – The Amazon Web Services account ID of the subscription's owner.</p> </li>
/// <li> <p> <code>PendingConfirmation</code> – <code>true</code> if the subscription hasn't been confirmed. To confirm a pending subscription, call the <code>ConfirmSubscription</code> action with a confirmation token.</p> </li>
/// <li> <p> <code>RawMessageDelivery</code> – <code>true</code> if raw message delivery is enabled for the subscription. Raw messages are free of JSON formatting and can be sent to HTTP/S and Amazon SQS endpoints.</p> </li>
/// <li> <p> <code>RedrivePolicy</code> – When specified, sends undeliverable messages to the specified Amazon SQS dead-letter queue. Messages that can't be delivered due to client errors (for example, when the subscribed endpoint is unreachable) or server errors (for example, when the service that powers the subscribed endpoint becomes unavailable) are held in the dead-letter queue for further analysis or reprocessing.</p> </li>
/// <li> <p> <code>SubscriptionArn</code> – The subscription's ARN.</p> </li>
/// <li> <p> <code>TopicArn</code> – The topic ARN that the subscription is associated with.</p> </li>
/// </ul>
/// <p>The following attribute applies only to Amazon Kinesis Data Firehose delivery stream subscriptions:</p>
/// <ul>
/// <li> <p> <code>SubscriptionRoleArn</code> – The ARN of the IAM role that has the following:</p>
/// <ul>
/// <li> <p>Permission to write to the Kinesis Data Firehose delivery stream</p> </li>
/// <li> <p>Amazon SNS listed as a trusted entity</p> </li>
/// </ul> <p>Specifying a valid ARN for this attribute is required for Kinesis Data Firehose delivery stream subscriptions. For more information, see <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-firehose-as-subscriber.html">Fanout to Kinesis Data Firehose delivery streams</a> in the <i>Amazon SNS Developer Guide</i>.</p> </li>
/// </ul>
pub fn set_attributes(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.attributes = input;
self
}
/// Consumes the builder and constructs a [`GetSubscriptionAttributesOutput`](crate::output::GetSubscriptionAttributesOutput)
pub fn build(self) -> crate::output::GetSubscriptionAttributesOutput {
crate::output::GetSubscriptionAttributesOutput {
attributes: self.attributes,
}
}
}
}
impl GetSubscriptionAttributesOutput {
/// Creates a new builder-style object to manufacture [`GetSubscriptionAttributesOutput`](crate::output::GetSubscriptionAttributesOutput)
pub fn builder() -> crate::output::get_subscription_attributes_output::Builder {
crate::output::get_subscription_attributes_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GetSmsSandboxAccountStatusOutput {
/// <p>Indicates whether the calling Amazon Web Services account is in the SMS sandbox.</p>
pub is_in_sandbox: bool,
}
impl GetSmsSandboxAccountStatusOutput {
/// <p>Indicates whether the calling Amazon Web Services account is in the SMS sandbox.</p>
pub fn is_in_sandbox(&self) -> bool {
self.is_in_sandbox
}
}
impl std::fmt::Debug for GetSmsSandboxAccountStatusOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GetSmsSandboxAccountStatusOutput");
formatter.field("is_in_sandbox", &self.is_in_sandbox);
formatter.finish()
}
}
/// See [`GetSmsSandboxAccountStatusOutput`](crate::output::GetSmsSandboxAccountStatusOutput)
pub mod get_sms_sandbox_account_status_output {
/// A builder for [`GetSmsSandboxAccountStatusOutput`](crate::output::GetSmsSandboxAccountStatusOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) is_in_sandbox: std::option::Option<bool>,
}
impl Builder {
/// <p>Indicates whether the calling Amazon Web Services account is in the SMS sandbox.</p>
pub fn is_in_sandbox(mut self, input: bool) -> Self {
self.is_in_sandbox = Some(input);
self
}
/// <p>Indicates whether the calling Amazon Web Services account is in the SMS sandbox.</p>
pub fn set_is_in_sandbox(mut self, input: std::option::Option<bool>) -> Self {
self.is_in_sandbox = input;
self
}
/// Consumes the builder and constructs a [`GetSmsSandboxAccountStatusOutput`](crate::output::GetSmsSandboxAccountStatusOutput)
pub fn build(self) -> crate::output::GetSmsSandboxAccountStatusOutput {
crate::output::GetSmsSandboxAccountStatusOutput {
is_in_sandbox: self.is_in_sandbox.unwrap_or_default(),
}
}
}
}
impl GetSmsSandboxAccountStatusOutput {
/// Creates a new builder-style object to manufacture [`GetSmsSandboxAccountStatusOutput`](crate::output::GetSmsSandboxAccountStatusOutput)
pub fn builder() -> crate::output::get_sms_sandbox_account_status_output::Builder {
crate::output::get_sms_sandbox_account_status_output::Builder::default()
}
}
/// <p>The response from the <code>GetSMSAttributes</code> request.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GetSmsAttributesOutput {
/// <p>The SMS attribute names and their values.</p>
pub attributes:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
}
impl GetSmsAttributesOutput {
/// <p>The SMS attribute names and their values.</p>
pub fn attributes(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.attributes.as_ref()
}
}
impl std::fmt::Debug for GetSmsAttributesOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GetSmsAttributesOutput");
formatter.field("attributes", &self.attributes);
formatter.finish()
}
}
/// See [`GetSmsAttributesOutput`](crate::output::GetSmsAttributesOutput)
pub mod get_sms_attributes_output {
/// A builder for [`GetSmsAttributesOutput`](crate::output::GetSmsAttributesOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) attributes: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
}
impl Builder {
/// Adds a key-value pair to `attributes`.
///
/// To override the contents of this collection use [`set_attributes`](Self::set_attributes).
///
/// <p>The SMS attribute names and their values.</p>
pub fn attributes(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
let mut hash_map = self.attributes.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.attributes = Some(hash_map);
self
}
/// <p>The SMS attribute names and their values.</p>
pub fn set_attributes(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.attributes = input;
self
}
/// Consumes the builder and constructs a [`GetSmsAttributesOutput`](crate::output::GetSmsAttributesOutput)
pub fn build(self) -> crate::output::GetSmsAttributesOutput {
crate::output::GetSmsAttributesOutput {
attributes: self.attributes,
}
}
}
}
impl GetSmsAttributesOutput {
/// Creates a new builder-style object to manufacture [`GetSmsAttributesOutput`](crate::output::GetSmsAttributesOutput)
pub fn builder() -> crate::output::get_sms_attributes_output::Builder {
crate::output::get_sms_attributes_output::Builder::default()
}
}
/// <p>Response for GetPlatformApplicationAttributes action.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GetPlatformApplicationAttributesOutput {
/// <p>Attributes include the following:</p>
/// <ul>
/// <li> <p> <code>AppleCertificateExpiryDate</code> – The expiry date of the SSL certificate used to configure certificate-based authentication.</p> </li>
/// <li> <p> <code>ApplePlatformTeamID</code> – The Apple developer account ID used to configure token-based authentication.</p> </li>
/// <li> <p> <code>ApplePlatformBundleID</code> – The app identifier used to configure token-based authentication.</p> </li>
/// <li> <p> <code>EventEndpointCreated</code> – Topic ARN to which EndpointCreated event notifications should be sent.</p> </li>
/// <li> <p> <code>EventEndpointDeleted</code> – Topic ARN to which EndpointDeleted event notifications should be sent.</p> </li>
/// <li> <p> <code>EventEndpointUpdated</code> – Topic ARN to which EndpointUpdate event notifications should be sent.</p> </li>
/// <li> <p> <code>EventDeliveryFailure</code> – Topic ARN to which DeliveryFailure event notifications should be sent upon Direct Publish delivery failure (permanent) to one of the application's endpoints.</p> </li>
/// </ul>
pub attributes:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
}
impl GetPlatformApplicationAttributesOutput {
/// <p>Attributes include the following:</p>
/// <ul>
/// <li> <p> <code>AppleCertificateExpiryDate</code> – The expiry date of the SSL certificate used to configure certificate-based authentication.</p> </li>
/// <li> <p> <code>ApplePlatformTeamID</code> – The Apple developer account ID used to configure token-based authentication.</p> </li>
/// <li> <p> <code>ApplePlatformBundleID</code> – The app identifier used to configure token-based authentication.</p> </li>
/// <li> <p> <code>EventEndpointCreated</code> – Topic ARN to which EndpointCreated event notifications should be sent.</p> </li>
/// <li> <p> <code>EventEndpointDeleted</code> – Topic ARN to which EndpointDeleted event notifications should be sent.</p> </li>
/// <li> <p> <code>EventEndpointUpdated</code> – Topic ARN to which EndpointUpdate event notifications should be sent.</p> </li>
/// <li> <p> <code>EventDeliveryFailure</code> – Topic ARN to which DeliveryFailure event notifications should be sent upon Direct Publish delivery failure (permanent) to one of the application's endpoints.</p> </li>
/// </ul>
pub fn attributes(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.attributes.as_ref()
}
}
impl std::fmt::Debug for GetPlatformApplicationAttributesOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GetPlatformApplicationAttributesOutput");
formatter.field("attributes", &self.attributes);
formatter.finish()
}
}
/// See [`GetPlatformApplicationAttributesOutput`](crate::output::GetPlatformApplicationAttributesOutput)
pub mod get_platform_application_attributes_output {
/// A builder for [`GetPlatformApplicationAttributesOutput`](crate::output::GetPlatformApplicationAttributesOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) attributes: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
}
impl Builder {
/// Adds a key-value pair to `attributes`.
///
/// To override the contents of this collection use [`set_attributes`](Self::set_attributes).
///
/// <p>Attributes include the following:</p>
/// <ul>
/// <li> <p> <code>AppleCertificateExpiryDate</code> – The expiry date of the SSL certificate used to configure certificate-based authentication.</p> </li>
/// <li> <p> <code>ApplePlatformTeamID</code> – The Apple developer account ID used to configure token-based authentication.</p> </li>
/// <li> <p> <code>ApplePlatformBundleID</code> – The app identifier used to configure token-based authentication.</p> </li>
/// <li> <p> <code>EventEndpointCreated</code> – Topic ARN to which EndpointCreated event notifications should be sent.</p> </li>
/// <li> <p> <code>EventEndpointDeleted</code> – Topic ARN to which EndpointDeleted event notifications should be sent.</p> </li>
/// <li> <p> <code>EventEndpointUpdated</code> – Topic ARN to which EndpointUpdate event notifications should be sent.</p> </li>
/// <li> <p> <code>EventDeliveryFailure</code> – Topic ARN to which DeliveryFailure event notifications should be sent upon Direct Publish delivery failure (permanent) to one of the application's endpoints.</p> </li>
/// </ul>
pub fn attributes(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
let mut hash_map = self.attributes.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.attributes = Some(hash_map);
self
}
/// <p>Attributes include the following:</p>
/// <ul>
/// <li> <p> <code>AppleCertificateExpiryDate</code> – The expiry date of the SSL certificate used to configure certificate-based authentication.</p> </li>
/// <li> <p> <code>ApplePlatformTeamID</code> – The Apple developer account ID used to configure token-based authentication.</p> </li>
/// <li> <p> <code>ApplePlatformBundleID</code> – The app identifier used to configure token-based authentication.</p> </li>
/// <li> <p> <code>EventEndpointCreated</code> – Topic ARN to which EndpointCreated event notifications should be sent.</p> </li>
/// <li> <p> <code>EventEndpointDeleted</code> – Topic ARN to which EndpointDeleted event notifications should be sent.</p> </li>
/// <li> <p> <code>EventEndpointUpdated</code> – Topic ARN to which EndpointUpdate event notifications should be sent.</p> </li>
/// <li> <p> <code>EventDeliveryFailure</code> – Topic ARN to which DeliveryFailure event notifications should be sent upon Direct Publish delivery failure (permanent) to one of the application's endpoints.</p> </li>
/// </ul>
pub fn set_attributes(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.attributes = input;
self
}
/// Consumes the builder and constructs a [`GetPlatformApplicationAttributesOutput`](crate::output::GetPlatformApplicationAttributesOutput)
pub fn build(self) -> crate::output::GetPlatformApplicationAttributesOutput {
crate::output::GetPlatformApplicationAttributesOutput {
attributes: self.attributes,
}
}
}
}
impl GetPlatformApplicationAttributesOutput {
/// Creates a new builder-style object to manufacture [`GetPlatformApplicationAttributesOutput`](crate::output::GetPlatformApplicationAttributesOutput)
pub fn builder() -> crate::output::get_platform_application_attributes_output::Builder {
crate::output::get_platform_application_attributes_output::Builder::default()
}
}
/// <p>Response from GetEndpointAttributes of the EndpointArn.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GetEndpointAttributesOutput {
/// <p>Attributes include the following:</p>
/// <ul>
/// <li> <p> <code>CustomUserData</code> – arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.</p> </li>
/// <li> <p> <code>Enabled</code> – flag that enables/disables delivery to the endpoint. Amazon SNS will set this to false when a notification service indicates to Amazon SNS that the endpoint is invalid. Users can set it back to true, typically after updating Token.</p> </li>
/// <li> <p> <code>Token</code> – device token, also referred to as a registration id, for an app and mobile device. This is returned from the notification service when an app and mobile device are registered with the notification service.</p> <note>
/// <p>The device token for the iOS platform is returned in lowercase.</p>
/// </note> </li>
/// </ul>
pub attributes:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
}
impl GetEndpointAttributesOutput {
/// <p>Attributes include the following:</p>
/// <ul>
/// <li> <p> <code>CustomUserData</code> – arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.</p> </li>
/// <li> <p> <code>Enabled</code> – flag that enables/disables delivery to the endpoint. Amazon SNS will set this to false when a notification service indicates to Amazon SNS that the endpoint is invalid. Users can set it back to true, typically after updating Token.</p> </li>
/// <li> <p> <code>Token</code> – device token, also referred to as a registration id, for an app and mobile device. This is returned from the notification service when an app and mobile device are registered with the notification service.</p> <note>
/// <p>The device token for the iOS platform is returned in lowercase.</p>
/// </note> </li>
/// </ul>
pub fn attributes(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.attributes.as_ref()
}
}
impl std::fmt::Debug for GetEndpointAttributesOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GetEndpointAttributesOutput");
formatter.field("attributes", &self.attributes);
formatter.finish()
}
}
/// See [`GetEndpointAttributesOutput`](crate::output::GetEndpointAttributesOutput)
pub mod get_endpoint_attributes_output {
/// A builder for [`GetEndpointAttributesOutput`](crate::output::GetEndpointAttributesOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) attributes: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
}
impl Builder {
/// Adds a key-value pair to `attributes`.
///
/// To override the contents of this collection use [`set_attributes`](Self::set_attributes).
///
/// <p>Attributes include the following:</p>
/// <ul>
/// <li> <p> <code>CustomUserData</code> – arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.</p> </li>
/// <li> <p> <code>Enabled</code> – flag that enables/disables delivery to the endpoint. Amazon SNS will set this to false when a notification service indicates to Amazon SNS that the endpoint is invalid. Users can set it back to true, typically after updating Token.</p> </li>
/// <li> <p> <code>Token</code> – device token, also referred to as a registration id, for an app and mobile device. This is returned from the notification service when an app and mobile device are registered with the notification service.</p> <note>
/// <p>The device token for the iOS platform is returned in lowercase.</p>
/// </note> </li>
/// </ul>
pub fn attributes(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
let mut hash_map = self.attributes.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.attributes = Some(hash_map);
self
}
/// <p>Attributes include the following:</p>
/// <ul>
/// <li> <p> <code>CustomUserData</code> – arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.</p> </li>
/// <li> <p> <code>Enabled</code> – flag that enables/disables delivery to the endpoint. Amazon SNS will set this to false when a notification service indicates to Amazon SNS that the endpoint is invalid. Users can set it back to true, typically after updating Token.</p> </li>
/// <li> <p> <code>Token</code> – device token, also referred to as a registration id, for an app and mobile device. This is returned from the notification service when an app and mobile device are registered with the notification service.</p> <note>
/// <p>The device token for the iOS platform is returned in lowercase.</p>
/// </note> </li>
/// </ul>
pub fn set_attributes(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.attributes = input;
self
}
/// Consumes the builder and constructs a [`GetEndpointAttributesOutput`](crate::output::GetEndpointAttributesOutput)
pub fn build(self) -> crate::output::GetEndpointAttributesOutput {
crate::output::GetEndpointAttributesOutput {
attributes: self.attributes,
}
}
}
}
impl GetEndpointAttributesOutput {
/// Creates a new builder-style object to manufacture [`GetEndpointAttributesOutput`](crate::output::GetEndpointAttributesOutput)
pub fn builder() -> crate::output::get_endpoint_attributes_output::Builder {
crate::output::get_endpoint_attributes_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DeleteTopicOutput {}
impl std::fmt::Debug for DeleteTopicOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DeleteTopicOutput");
formatter.finish()
}
}
/// See [`DeleteTopicOutput`](crate::output::DeleteTopicOutput)
pub mod delete_topic_output {
/// A builder for [`DeleteTopicOutput`](crate::output::DeleteTopicOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`DeleteTopicOutput`](crate::output::DeleteTopicOutput)
pub fn build(self) -> crate::output::DeleteTopicOutput {
crate::output::DeleteTopicOutput {}
}
}
}
impl DeleteTopicOutput {
/// Creates a new builder-style object to manufacture [`DeleteTopicOutput`](crate::output::DeleteTopicOutput)
pub fn builder() -> crate::output::delete_topic_output::Builder {
crate::output::delete_topic_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DeleteSmsSandboxPhoneNumberOutput {}
impl std::fmt::Debug for DeleteSmsSandboxPhoneNumberOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DeleteSmsSandboxPhoneNumberOutput");
formatter.finish()
}
}
/// See [`DeleteSmsSandboxPhoneNumberOutput`](crate::output::DeleteSmsSandboxPhoneNumberOutput)
pub mod delete_sms_sandbox_phone_number_output {
/// A builder for [`DeleteSmsSandboxPhoneNumberOutput`](crate::output::DeleteSmsSandboxPhoneNumberOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`DeleteSmsSandboxPhoneNumberOutput`](crate::output::DeleteSmsSandboxPhoneNumberOutput)
pub fn build(self) -> crate::output::DeleteSmsSandboxPhoneNumberOutput {
crate::output::DeleteSmsSandboxPhoneNumberOutput {}
}
}
}
impl DeleteSmsSandboxPhoneNumberOutput {
/// Creates a new builder-style object to manufacture [`DeleteSmsSandboxPhoneNumberOutput`](crate::output::DeleteSmsSandboxPhoneNumberOutput)
pub fn builder() -> crate::output::delete_sms_sandbox_phone_number_output::Builder {
crate::output::delete_sms_sandbox_phone_number_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DeletePlatformApplicationOutput {}
impl std::fmt::Debug for DeletePlatformApplicationOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DeletePlatformApplicationOutput");
formatter.finish()
}
}
/// See [`DeletePlatformApplicationOutput`](crate::output::DeletePlatformApplicationOutput)
pub mod delete_platform_application_output {
/// A builder for [`DeletePlatformApplicationOutput`](crate::output::DeletePlatformApplicationOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`DeletePlatformApplicationOutput`](crate::output::DeletePlatformApplicationOutput)
pub fn build(self) -> crate::output::DeletePlatformApplicationOutput {
crate::output::DeletePlatformApplicationOutput {}
}
}
}
impl DeletePlatformApplicationOutput {
/// Creates a new builder-style object to manufacture [`DeletePlatformApplicationOutput`](crate::output::DeletePlatformApplicationOutput)
pub fn builder() -> crate::output::delete_platform_application_output::Builder {
crate::output::delete_platform_application_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DeleteEndpointOutput {}
impl std::fmt::Debug for DeleteEndpointOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DeleteEndpointOutput");
formatter.finish()
}
}
/// See [`DeleteEndpointOutput`](crate::output::DeleteEndpointOutput)
pub mod delete_endpoint_output {
/// A builder for [`DeleteEndpointOutput`](crate::output::DeleteEndpointOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`DeleteEndpointOutput`](crate::output::DeleteEndpointOutput)
pub fn build(self) -> crate::output::DeleteEndpointOutput {
crate::output::DeleteEndpointOutput {}
}
}
}
impl DeleteEndpointOutput {
/// Creates a new builder-style object to manufacture [`DeleteEndpointOutput`](crate::output::DeleteEndpointOutput)
pub fn builder() -> crate::output::delete_endpoint_output::Builder {
crate::output::delete_endpoint_output::Builder::default()
}
}
/// <p>Response from CreateTopic action.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct CreateTopicOutput {
/// <p>The Amazon Resource Name (ARN) assigned to the created topic.</p>
pub topic_arn: std::option::Option<std::string::String>,
}
impl CreateTopicOutput {
/// <p>The Amazon Resource Name (ARN) assigned to the created topic.</p>
pub fn topic_arn(&self) -> std::option::Option<&str> {
self.topic_arn.as_deref()
}
}
impl std::fmt::Debug for CreateTopicOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("CreateTopicOutput");
formatter.field("topic_arn", &self.topic_arn);
formatter.finish()
}
}
/// See [`CreateTopicOutput`](crate::output::CreateTopicOutput)
pub mod create_topic_output {
/// A builder for [`CreateTopicOutput`](crate::output::CreateTopicOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) topic_arn: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The Amazon Resource Name (ARN) assigned to the created topic.</p>
pub fn topic_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.topic_arn = Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) assigned to the created topic.</p>
pub fn set_topic_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.topic_arn = input;
self
}
/// Consumes the builder and constructs a [`CreateTopicOutput`](crate::output::CreateTopicOutput)
pub fn build(self) -> crate::output::CreateTopicOutput {
crate::output::CreateTopicOutput {
topic_arn: self.topic_arn,
}
}
}
}
impl CreateTopicOutput {
/// Creates a new builder-style object to manufacture [`CreateTopicOutput`](crate::output::CreateTopicOutput)
pub fn builder() -> crate::output::create_topic_output::Builder {
crate::output::create_topic_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct CreateSmsSandboxPhoneNumberOutput {}
impl std::fmt::Debug for CreateSmsSandboxPhoneNumberOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("CreateSmsSandboxPhoneNumberOutput");
formatter.finish()
}
}
/// See [`CreateSmsSandboxPhoneNumberOutput`](crate::output::CreateSmsSandboxPhoneNumberOutput)
pub mod create_sms_sandbox_phone_number_output {
/// A builder for [`CreateSmsSandboxPhoneNumberOutput`](crate::output::CreateSmsSandboxPhoneNumberOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`CreateSmsSandboxPhoneNumberOutput`](crate::output::CreateSmsSandboxPhoneNumberOutput)
pub fn build(self) -> crate::output::CreateSmsSandboxPhoneNumberOutput {
crate::output::CreateSmsSandboxPhoneNumberOutput {}
}
}
}
impl CreateSmsSandboxPhoneNumberOutput {
/// Creates a new builder-style object to manufacture [`CreateSmsSandboxPhoneNumberOutput`](crate::output::CreateSmsSandboxPhoneNumberOutput)
pub fn builder() -> crate::output::create_sms_sandbox_phone_number_output::Builder {
crate::output::create_sms_sandbox_phone_number_output::Builder::default()
}
}
/// <p>Response from CreateEndpoint action.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct CreatePlatformEndpointOutput {
/// <p>EndpointArn returned from CreateEndpoint action.</p>
pub endpoint_arn: std::option::Option<std::string::String>,
}
impl CreatePlatformEndpointOutput {
/// <p>EndpointArn returned from CreateEndpoint action.</p>
pub fn endpoint_arn(&self) -> std::option::Option<&str> {
self.endpoint_arn.as_deref()
}
}
impl std::fmt::Debug for CreatePlatformEndpointOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("CreatePlatformEndpointOutput");
formatter.field("endpoint_arn", &self.endpoint_arn);
formatter.finish()
}
}
/// See [`CreatePlatformEndpointOutput`](crate::output::CreatePlatformEndpointOutput)
pub mod create_platform_endpoint_output {
/// A builder for [`CreatePlatformEndpointOutput`](crate::output::CreatePlatformEndpointOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) endpoint_arn: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>EndpointArn returned from CreateEndpoint action.</p>
pub fn endpoint_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.endpoint_arn = Some(input.into());
self
}
/// <p>EndpointArn returned from CreateEndpoint action.</p>
pub fn set_endpoint_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.endpoint_arn = input;
self
}
/// Consumes the builder and constructs a [`CreatePlatformEndpointOutput`](crate::output::CreatePlatformEndpointOutput)
pub fn build(self) -> crate::output::CreatePlatformEndpointOutput {
crate::output::CreatePlatformEndpointOutput {
endpoint_arn: self.endpoint_arn,
}
}
}
}
impl CreatePlatformEndpointOutput {
/// Creates a new builder-style object to manufacture [`CreatePlatformEndpointOutput`](crate::output::CreatePlatformEndpointOutput)
pub fn builder() -> crate::output::create_platform_endpoint_output::Builder {
crate::output::create_platform_endpoint_output::Builder::default()
}
}
/// <p>Response from CreatePlatformApplication action.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct CreatePlatformApplicationOutput {
/// <p>PlatformApplicationArn is returned.</p>
pub platform_application_arn: std::option::Option<std::string::String>,
}
impl CreatePlatformApplicationOutput {
/// <p>PlatformApplicationArn is returned.</p>
pub fn platform_application_arn(&self) -> std::option::Option<&str> {
self.platform_application_arn.as_deref()
}
}
impl std::fmt::Debug for CreatePlatformApplicationOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("CreatePlatformApplicationOutput");
formatter.field("platform_application_arn", &self.platform_application_arn);
formatter.finish()
}
}
/// See [`CreatePlatformApplicationOutput`](crate::output::CreatePlatformApplicationOutput)
pub mod create_platform_application_output {
/// A builder for [`CreatePlatformApplicationOutput`](crate::output::CreatePlatformApplicationOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) platform_application_arn: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>PlatformApplicationArn is returned.</p>
pub fn platform_application_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.platform_application_arn = Some(input.into());
self
}
/// <p>PlatformApplicationArn is returned.</p>
pub fn set_platform_application_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.platform_application_arn = input;
self
}
/// Consumes the builder and constructs a [`CreatePlatformApplicationOutput`](crate::output::CreatePlatformApplicationOutput)
pub fn build(self) -> crate::output::CreatePlatformApplicationOutput {
crate::output::CreatePlatformApplicationOutput {
platform_application_arn: self.platform_application_arn,
}
}
}
}
impl CreatePlatformApplicationOutput {
/// Creates a new builder-style object to manufacture [`CreatePlatformApplicationOutput`](crate::output::CreatePlatformApplicationOutput)
pub fn builder() -> crate::output::create_platform_application_output::Builder {
crate::output::create_platform_application_output::Builder::default()
}
}
/// <p>Response for ConfirmSubscriptions action.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ConfirmSubscriptionOutput {
/// <p>The ARN of the created subscription.</p>
pub subscription_arn: std::option::Option<std::string::String>,
}
impl ConfirmSubscriptionOutput {
/// <p>The ARN of the created subscription.</p>
pub fn subscription_arn(&self) -> std::option::Option<&str> {
self.subscription_arn.as_deref()
}
}
impl std::fmt::Debug for ConfirmSubscriptionOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ConfirmSubscriptionOutput");
formatter.field("subscription_arn", &self.subscription_arn);
formatter.finish()
}
}
/// See [`ConfirmSubscriptionOutput`](crate::output::ConfirmSubscriptionOutput)
pub mod confirm_subscription_output {
/// A builder for [`ConfirmSubscriptionOutput`](crate::output::ConfirmSubscriptionOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) subscription_arn: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The ARN of the created subscription.</p>
pub fn subscription_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.subscription_arn = Some(input.into());
self
}
/// <p>The ARN of the created subscription.</p>
pub fn set_subscription_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.subscription_arn = input;
self
}
/// Consumes the builder and constructs a [`ConfirmSubscriptionOutput`](crate::output::ConfirmSubscriptionOutput)
pub fn build(self) -> crate::output::ConfirmSubscriptionOutput {
crate::output::ConfirmSubscriptionOutput {
subscription_arn: self.subscription_arn,
}
}
}
}
impl ConfirmSubscriptionOutput {
/// Creates a new builder-style object to manufacture [`ConfirmSubscriptionOutput`](crate::output::ConfirmSubscriptionOutput)
pub fn builder() -> crate::output::confirm_subscription_output::Builder {
crate::output::confirm_subscription_output::Builder::default()
}
}
/// <p>The response from the <code>CheckIfPhoneNumberIsOptedOut</code> action.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct CheckIfPhoneNumberIsOptedOutOutput {
/// <p>Indicates whether the phone number is opted out:</p>
/// <ul>
/// <li> <p> <code>true</code> – The phone number is opted out, meaning you cannot publish SMS messages to it.</p> </li>
/// <li> <p> <code>false</code> – The phone number is opted in, meaning you can publish SMS messages to it.</p> </li>
/// </ul>
pub is_opted_out: bool,
}
impl CheckIfPhoneNumberIsOptedOutOutput {
/// <p>Indicates whether the phone number is opted out:</p>
/// <ul>
/// <li> <p> <code>true</code> – The phone number is opted out, meaning you cannot publish SMS messages to it.</p> </li>
/// <li> <p> <code>false</code> – The phone number is opted in, meaning you can publish SMS messages to it.</p> </li>
/// </ul>
pub fn is_opted_out(&self) -> bool {
self.is_opted_out
}
}
impl std::fmt::Debug for CheckIfPhoneNumberIsOptedOutOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("CheckIfPhoneNumberIsOptedOutOutput");
formatter.field("is_opted_out", &self.is_opted_out);
formatter.finish()
}
}
/// See [`CheckIfPhoneNumberIsOptedOutOutput`](crate::output::CheckIfPhoneNumberIsOptedOutOutput)
pub mod check_if_phone_number_is_opted_out_output {
/// A builder for [`CheckIfPhoneNumberIsOptedOutOutput`](crate::output::CheckIfPhoneNumberIsOptedOutOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) is_opted_out: std::option::Option<bool>,
}
impl Builder {
/// <p>Indicates whether the phone number is opted out:</p>
/// <ul>
/// <li> <p> <code>true</code> – The phone number is opted out, meaning you cannot publish SMS messages to it.</p> </li>
/// <li> <p> <code>false</code> – The phone number is opted in, meaning you can publish SMS messages to it.</p> </li>
/// </ul>
pub fn is_opted_out(mut self, input: bool) -> Self {
self.is_opted_out = Some(input);
self
}
/// <p>Indicates whether the phone number is opted out:</p>
/// <ul>
/// <li> <p> <code>true</code> – The phone number is opted out, meaning you cannot publish SMS messages to it.</p> </li>
/// <li> <p> <code>false</code> – The phone number is opted in, meaning you can publish SMS messages to it.</p> </li>
/// </ul>
pub fn set_is_opted_out(mut self, input: std::option::Option<bool>) -> Self {
self.is_opted_out = input;
self
}
/// Consumes the builder and constructs a [`CheckIfPhoneNumberIsOptedOutOutput`](crate::output::CheckIfPhoneNumberIsOptedOutOutput)
pub fn build(self) -> crate::output::CheckIfPhoneNumberIsOptedOutOutput {
crate::output::CheckIfPhoneNumberIsOptedOutOutput {
is_opted_out: self.is_opted_out.unwrap_or_default(),
}
}
}
}
impl CheckIfPhoneNumberIsOptedOutOutput {
/// Creates a new builder-style object to manufacture [`CheckIfPhoneNumberIsOptedOutOutput`](crate::output::CheckIfPhoneNumberIsOptedOutOutput)
pub fn builder() -> crate::output::check_if_phone_number_is_opted_out_output::Builder {
crate::output::check_if_phone_number_is_opted_out_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct AddPermissionOutput {}
impl std::fmt::Debug for AddPermissionOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("AddPermissionOutput");
formatter.finish()
}
}
/// See [`AddPermissionOutput`](crate::output::AddPermissionOutput)
pub mod add_permission_output {
/// A builder for [`AddPermissionOutput`](crate::output::AddPermissionOutput)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`AddPermissionOutput`](crate::output::AddPermissionOutput)
pub fn build(self) -> crate::output::AddPermissionOutput {
crate::output::AddPermissionOutput {}
}
}
}
impl AddPermissionOutput {
/// Creates a new builder-style object to manufacture [`AddPermissionOutput`](crate::output::AddPermissionOutput)
pub fn builder() -> crate::output::add_permission_output::Builder {
crate::output::add_permission_output::Builder::default()
}
}