1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
#[allow(warnings)]
use hyper::Client;
use hyper::status::StatusCode;
use rusoto_core::request::DispatchSignedRequest;
use rusoto_core::region;

use std::fmt;
use std::error::Error;
use rusoto_core::request::HttpDispatchError;
use rusoto_core::credential::{CredentialsError, ProvideAwsCredentials};

use serde_json;
use rusoto_core::signature::SignedRequest;
use serde_json::Value as SerdeJsonValue;
use serde_json::from_str;
pub type AddressLine = String;
#[doc="<p>Information for one billing record.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
pub struct BillingRecord {
    #[doc="<p>The date that the operation was billed, in Unix format.</p>"]
    #[serde(rename="BillDate")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub bill_date: Option<Timestamp>,
    #[doc="<p>The name of the domain that the billing record applies to. If the domain name contains characters other than a-z, 0-9, and - (hyphen), such as an internationalized domain name, then this value is in Punycode. For more information, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html\">DNS Domain Name Format</a> in the <i>Amazon Route 53 Developer Guidezzz</i>.</p>"]
    #[serde(rename="DomainName")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub domain_name: Option<DomainName>,
    #[doc="<p>The ID of the invoice that is associated with the billing record.</p>"]
    #[serde(rename="InvoiceId")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub invoice_id: Option<InvoiceId>,
    #[doc="<p>The operation that you were charged for.</p>"]
    #[serde(rename="Operation")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub operation: Option<OperationType>,
    #[doc="<p>The price that you were charged for the operation, in US dollars.</p> <p>Example value: 12.0</p>"]
    #[serde(rename="Price")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub price: Option<Price>,
}

pub type BillingRecords = Vec<BillingRecord>;
pub type Boolean = bool;
#[doc="<p>The CheckDomainAvailability request contains the following elements.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
pub struct CheckDomainAvailabilityRequest {
    #[doc="<p>The name of the domain that you want to get availability for.</p> <p>Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not supported.</p>"]
    #[serde(rename="DomainName")]
    pub domain_name: DomainName,
    #[doc="<p>Reserved for future use.</p>"]
    #[serde(rename="IdnLangCode")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub idn_lang_code: Option<LangCode>,
}

#[doc="<p>The CheckDomainAvailability response includes the following elements.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
pub struct CheckDomainAvailabilityResponse {
    #[doc="<p>Whether the domain name is available for registering.</p> <note> <p>You can only register domains designated as <code>AVAILABLE</code>.</p> </note> <p>Valid values:</p> <dl> <dt>AVAILABLE</dt> <dd> <p>The domain name is available.</p> </dd> <dt>AVAILABLE_RESERVED</dt> <dd> <p>The domain name is reserved under specific conditions.</p> </dd> <dt>AVAILABLE_PREORDER</dt> <dd> <p>The domain name is available and can be preordered.</p> </dd> <dt>DONT_KNOW</dt> <dd> <p>The TLD registry didn't reply with a definitive answer about whether the domain name is available. Amazon Route 53 can return this response for a variety of reasons, for example, the registry is performing maintenance. Try again later.</p> </dd> <dt>PENDING</dt> <dd> <p>The TLD registry didn't return a response in the expected amount of time. When the response is delayed, it usually takes just a few extra seconds. You can resubmit the request immediately.</p> </dd> <dt>RESERVED</dt> <dd> <p>The domain name has been reserved for another person or organization.</p> </dd> <dt>UNAVAILABLE</dt> <dd> <p>The domain name is not available.</p> </dd> <dt>UNAVAILABLE_PREMIUM</dt> <dd> <p>The domain name is not available.</p> </dd> <dt>UNAVAILABLE_RESTRICTED</dt> <dd> <p>The domain name is forbidden.</p> </dd> </dl>"]
    #[serde(rename="Availability")]
    pub availability: DomainAvailability,
}

pub type City = String;
#[doc="<p>ContactDetail includes the following elements.</p>"]
#[derive(Default,Debug,Clone,Serialize,Deserialize)]
pub struct ContactDetail {
    #[doc="<p>First line of the contact's address.</p>"]
    #[serde(rename="AddressLine1")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub address_line_1: Option<AddressLine>,
    #[doc="<p>Second line of contact's address, if any.</p>"]
    #[serde(rename="AddressLine2")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub address_line_2: Option<AddressLine>,
    #[doc="<p>The city of the contact's address.</p>"]
    #[serde(rename="City")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub city: Option<City>,
    #[doc="<p>Indicates whether the contact is a person, company, association, or public organization. If you choose an option other than <code>PERSON</code>, you must enter an organization name, and you can't enable privacy protection for the contact.</p>"]
    #[serde(rename="ContactType")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub contact_type: Option<ContactType>,
    #[doc="<p>Code for the country of the contact's address.</p>"]
    #[serde(rename="CountryCode")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub country_code: Option<CountryCode>,
    #[doc="<p>Email address of the contact.</p>"]
    #[serde(rename="Email")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub email: Option<Email>,
    #[doc="<p>A list of name-value pairs for parameters required by certain top-level domains.</p>"]
    #[serde(rename="ExtraParams")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub extra_params: Option<ExtraParamList>,
    #[doc="<p>Fax number of the contact.</p> <p>Constraints: Phone number must be specified in the format \"+[country dialing code].[number including any area code]\". For example, a US phone number might appear as <code>\"+1.1234567890\"</code>.</p>"]
    #[serde(rename="Fax")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub fax: Option<ContactNumber>,
    #[doc="<p>First name of contact.</p>"]
    #[serde(rename="FirstName")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub first_name: Option<ContactName>,
    #[doc="<p>Last name of contact.</p>"]
    #[serde(rename="LastName")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub last_name: Option<ContactName>,
    #[doc="<p>Name of the organization for contact types other than <code>PERSON</code>.</p>"]
    #[serde(rename="OrganizationName")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub organization_name: Option<ContactName>,
    #[doc="<p>The phone number of the contact.</p> <p>Constraints: Phone number must be specified in the format \"+[country dialing code].[number including any area code&gt;]\". For example, a US phone number might appear as <code>\"+1.1234567890\"</code>.</p>"]
    #[serde(rename="PhoneNumber")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub phone_number: Option<ContactNumber>,
    #[doc="<p>The state or province of the contact's city.</p>"]
    #[serde(rename="State")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub state: Option<State>,
    #[doc="<p>The zip or postal code of the contact's address.</p>"]
    #[serde(rename="ZipCode")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub zip_code: Option<ZipCode>,
}

pub type ContactName = String;
pub type ContactNumber = String;
pub type ContactType = String;
pub type CountryCode = String;
pub type CurrentExpiryYear = i64;
pub type DNSSec = String;
#[doc="<p>The DeleteTagsForDomainRequest includes the following elements.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
pub struct DeleteTagsForDomainRequest {
    #[doc="<p>The domain for which you want to delete one or more tags.</p>"]
    #[serde(rename="DomainName")]
    pub domain_name: DomainName,
    #[doc="<p>A list of tag keys to delete.</p>"]
    #[serde(rename="TagsToDelete")]
    pub tags_to_delete: TagKeyList,
}

#[derive(Default,Debug,Clone,Deserialize)]
pub struct DeleteTagsForDomainResponse;

#[derive(Default,Debug,Clone,Serialize)]
pub struct DisableDomainAutoRenewRequest {
    #[doc="<p>The name of the domain that you want to disable automatic renewal for.</p>"]
    #[serde(rename="DomainName")]
    pub domain_name: DomainName,
}

#[derive(Default,Debug,Clone,Deserialize)]
pub struct DisableDomainAutoRenewResponse;

#[doc="<p>The DisableDomainTransferLock request includes the following element.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
pub struct DisableDomainTransferLockRequest {
    #[doc="<p>The name of the domain that you want to remove the transfer lock for.</p>"]
    #[serde(rename="DomainName")]
    pub domain_name: DomainName,
}

#[doc="<p>The DisableDomainTransferLock response includes the following element.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
pub struct DisableDomainTransferLockResponse {
    #[doc="<p>Identifier for tracking the progress of the request. To use this ID to query the operation status, use <a>GetOperationDetail</a>.</p>"]
    #[serde(rename="OperationId")]
    pub operation_id: OperationId,
}

pub type DomainAuthCode = String;
pub type DomainAvailability = String;
pub type DomainName = String;
pub type DomainStatus = String;
pub type DomainStatusList = Vec<DomainStatus>;
#[doc="<p>Information about one suggested domain name.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
pub struct DomainSuggestion {
    #[doc="<p>Whether the domain name is available for registering.</p> <note> <p>You can register only the domains that are designated as <code>AVAILABLE</code>.</p> </note> <p>Valid values:</p> <dl> <dt>AVAILABLE</dt> <dd> <p>The domain name is available.</p> </dd> <dt>AVAILABLE_RESERVED</dt> <dd> <p>The domain name is reserved under specific conditions.</p> </dd> <dt>AVAILABLE_PREORDER</dt> <dd> <p>The domain name is available and can be preordered.</p> </dd> <dt>DONT_KNOW</dt> <dd> <p>The TLD registry didn't reply with a definitive answer about whether the domain name is available. Amazon Route 53 can return this response for a variety of reasons, for example, the registry is performing maintenance. Try again later.</p> </dd> <dt>PENDING</dt> <dd> <p>The TLD registry didn't return a response in the expected amount of time. When the response is delayed, it usually takes just a few extra seconds. You can resubmit the request immediately.</p> </dd> <dt>RESERVED</dt> <dd> <p>The domain name has been reserved for another person or organization.</p> </dd> <dt>UNAVAILABLE</dt> <dd> <p>The domain name is not available.</p> </dd> <dt>UNAVAILABLE_PREMIUM</dt> <dd> <p>The domain name is not available.</p> </dd> <dt>UNAVAILABLE_RESTRICTED</dt> <dd> <p>The domain name is forbidden.</p> </dd> </dl>"]
    #[serde(rename="Availability")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub availability: Option<String>,
    #[doc="<p>A suggested domain name.</p>"]
    #[serde(rename="DomainName")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub domain_name: Option<DomainName>,
}

pub type DomainSuggestionsList = Vec<DomainSuggestion>;
#[doc="<p>Summary information about one domain.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
pub struct DomainSummary {
    #[doc="<p>Indicates whether the domain is automatically renewed upon expiration.</p>"]
    #[serde(rename="AutoRenew")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub auto_renew: Option<Boolean>,
    #[doc="<p>The name of the domain that the summary information applies to.</p>"]
    #[serde(rename="DomainName")]
    pub domain_name: DomainName,
    #[doc="<p>Expiration date of the domain in Coordinated Universal Time (UTC).</p>"]
    #[serde(rename="Expiry")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub expiry: Option<Timestamp>,
    #[doc="<p>Indicates whether a domain is locked from unauthorized transfer to another party.</p>"]
    #[serde(rename="TransferLock")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub transfer_lock: Option<Boolean>,
}

pub type DomainSummaryList = Vec<DomainSummary>;
pub type DurationInYears = i64;
pub type Email = String;
#[derive(Default,Debug,Clone,Serialize)]
pub struct EnableDomainAutoRenewRequest {
    #[doc="<p>The name of the domain that you want to enable automatic renewal for.</p>"]
    #[serde(rename="DomainName")]
    pub domain_name: DomainName,
}

#[derive(Default,Debug,Clone,Deserialize)]
pub struct EnableDomainAutoRenewResponse;

#[doc="<p>A request to set the transfer lock for the specified domain.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
pub struct EnableDomainTransferLockRequest {
    #[doc="<p>The name of the domain that you want to set the transfer lock for.</p>"]
    #[serde(rename="DomainName")]
    pub domain_name: DomainName,
}

#[doc="<p>The EnableDomainTransferLock response includes the following elements.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
pub struct EnableDomainTransferLockResponse {
    #[doc="<p>Identifier for tracking the progress of the request. To use this ID to query the operation status, use GetOperationDetail.</p>"]
    #[serde(rename="OperationId")]
    pub operation_id: OperationId,
}

pub type ErrorMessage = String;
#[doc="<p>ExtraParam includes the following elements.</p>"]
#[derive(Default,Debug,Clone,Serialize,Deserialize)]
pub struct ExtraParam {
    #[doc="<p>Name of the additional parameter required by the top-level domain.</p>"]
    #[serde(rename="Name")]
    pub name: ExtraParamName,
    #[doc="<p>Values corresponding to the additional parameter names required by some top-level domains.</p>"]
    #[serde(rename="Value")]
    pub value: ExtraParamValue,
}

pub type ExtraParamList = Vec<ExtraParam>;
pub type ExtraParamName = String;
pub type ExtraParamValue = String;
pub type FIAuthKey = String;
#[derive(Default,Debug,Clone,Serialize)]
pub struct GetContactReachabilityStatusRequest {
    #[doc="<p>The name of the domain for which you want to know whether the registrant contact has confirmed that the email address is valid.</p>"]
    #[serde(rename="domainName")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub domain_name: Option<DomainName>,
}

#[derive(Default,Debug,Clone,Deserialize)]
pub struct GetContactReachabilityStatusResponse {
    #[doc="<p>The domain name for which you requested the reachability status.</p>"]
    #[serde(rename="domainName")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub domain_name: Option<DomainName>,
    #[doc="<p>Whether the registrant contact has responded. Values include the following:</p> <dl> <dt>PENDING</dt> <dd> <p>We sent the confirmation email and haven't received a response yet.</p> </dd> <dt>DONE</dt> <dd> <p>We sent the email and got confirmation from the registrant contact.</p> </dd> <dt>EXPIRED</dt> <dd> <p>The time limit expired before the registrant contact responded.</p> </dd> </dl>"]
    #[serde(rename="status")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub status: Option<ReachabilityStatus>,
}

#[doc="<p>The GetDomainDetail request includes the following element.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
pub struct GetDomainDetailRequest {
    #[doc="<p>The name of the domain that you want to get detailed information about.</p>"]
    #[serde(rename="DomainName")]
    pub domain_name: DomainName,
}

#[doc="<p>The GetDomainDetail response includes the following elements.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
pub struct GetDomainDetailResponse {
    #[doc="<p>Email address to contact to report incorrect contact information for a domain, to report that the domain is being used to send spam, to report that someone is cybersquatting on a domain name, or report some other type of abuse.</p>"]
    #[serde(rename="AbuseContactEmail")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub abuse_contact_email: Option<Email>,
    #[doc="<p>Phone number for reporting abuse.</p>"]
    #[serde(rename="AbuseContactPhone")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub abuse_contact_phone: Option<ContactNumber>,
    #[doc="<p>Provides details about the domain administrative contact.</p>"]
    #[serde(rename="AdminContact")]
    pub admin_contact: ContactDetail,
    #[doc="<p>Specifies whether contact information for the admin contact is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS (\"who is\") queries will return contact information for our registrar partner, Gandi, instead of the contact information that you enter.</p>"]
    #[serde(rename="AdminPrivacy")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub admin_privacy: Option<Boolean>,
    #[doc="<p>Specifies whether the domain registration is set to renew automatically.</p>"]
    #[serde(rename="AutoRenew")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub auto_renew: Option<Boolean>,
    #[doc="<p>The date when the domain was created as found in the response to a WHOIS query. The date format is Unix time.</p>"]
    #[serde(rename="CreationDate")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub creation_date: Option<Timestamp>,
    #[doc="<p>Reserved for future use.</p>"]
    #[serde(rename="DnsSec")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub dns_sec: Option<DNSSec>,
    #[doc="<p>The name of a domain.</p>"]
    #[serde(rename="DomainName")]
    pub domain_name: DomainName,
    #[doc="<p>The date when the registration for the domain is set to expire. The date format is Unix time.</p>"]
    #[serde(rename="ExpirationDate")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub expiration_date: Option<Timestamp>,
    #[doc="<p>The name of the domain.</p>"]
    #[serde(rename="Nameservers")]
    pub nameservers: NameserverList,
    #[doc="<p>Provides details about the domain registrant.</p>"]
    #[serde(rename="RegistrantContact")]
    pub registrant_contact: ContactDetail,
    #[doc="<p>Specifies whether contact information for the registrant contact is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS (\"who is\") queries will return contact information for our registrar partner, Gandi, instead of the contact information that you enter.</p>"]
    #[serde(rename="RegistrantPrivacy")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub registrant_privacy: Option<Boolean>,
    #[doc="<p>Name of the registrar of the domain as identified in the registry. Amazon Route 53 domains are registered by registrar Gandi. The value is <code>\"GANDI SAS\"</code>. </p>"]
    #[serde(rename="RegistrarName")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub registrar_name: Option<RegistrarName>,
    #[doc="<p>Web address of the registrar.</p>"]
    #[serde(rename="RegistrarUrl")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub registrar_url: Option<RegistrarUrl>,
    #[doc="<p>Reserved for future use.</p>"]
    #[serde(rename="RegistryDomainId")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub registry_domain_id: Option<RegistryDomainId>,
    #[doc="<p>Reseller of the domain. Domains registered or transferred using Amazon Route 53 domains will have <code>\"Amazon\"</code> as the reseller. </p>"]
    #[serde(rename="Reseller")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub reseller: Option<Reseller>,
    #[doc="<p>An array of domain name status codes, also known as Extensible Provisioning Protocol (EPP) status codes.</p> <p>ICANN, the organization that maintains a central database of domain names, has developed a set of domain name status codes that tell you the status of a variety of operations on a domain name, for example, registering a domain name, transferring a domain name to another registrar, renewing the registration for a domain name, and so on. All registrars use this same set of status codes.</p> <p>For a current list of domain name status codes and an explanation of what each code means, go to the <a href=\"https://www.icann.org/\">ICANN website</a> and search for <code>epp status codes</code>. (Search on the ICANN website; web searches sometimes return an old version of the document.)</p>"]
    #[serde(rename="StatusList")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub status_list: Option<DomainStatusList>,
    #[doc="<p>Provides details about the domain technical contact.</p>"]
    #[serde(rename="TechContact")]
    pub tech_contact: ContactDetail,
    #[doc="<p>Specifies whether contact information for the tech contact is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS (\"who is\") queries will return contact information for our registrar partner, Gandi, instead of the contact information that you enter.</p>"]
    #[serde(rename="TechPrivacy")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub tech_privacy: Option<Boolean>,
    #[doc="<p>The last updated date of the domain as found in the response to a WHOIS query. The date format is Unix time.</p>"]
    #[serde(rename="UpdatedDate")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub updated_date: Option<Timestamp>,
    #[doc="<p>The fully qualified name of the WHOIS server that can answer the WHOIS query for the domain.</p>"]
    #[serde(rename="WhoIsServer")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub who_is_server: Option<RegistrarWhoIsServer>,
}

#[derive(Default,Debug,Clone,Serialize)]
pub struct GetDomainSuggestionsRequest {
    #[doc="<p>A domain name that you want to use as the basis for a list of possible domain names. The domain name must contain a top-level domain (TLD), such as .com, that Amazon Route 53 supports. For a list of TLDs, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html\">Domains that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p>"]
    #[serde(rename="DomainName")]
    pub domain_name: DomainName,
    #[doc="<p>If <code>OnlyAvailable</code> is <code>true</code>, Amazon Route 53 returns only domain names that are available. If <code>OnlyAvailable</code> is <code>false</code>, Amazon Route 53 returns domain names without checking whether they're available to be registered. To determine whether the domain is available, you can call <code>checkDomainAvailability</code> for each suggestion.</p>"]
    #[serde(rename="OnlyAvailable")]
    pub only_available: Boolean,
    #[doc="<p>The number of suggested domain names that you want Amazon Route 53 to return.</p>"]
    #[serde(rename="SuggestionCount")]
    pub suggestion_count: Integer,
}

#[derive(Default,Debug,Clone,Deserialize)]
pub struct GetDomainSuggestionsResponse {
    #[doc="<p>A list of possible domain names. If you specified <code>true</code> for <code>OnlyAvailable</code> in the request, the list contains only domains that are available for registration.</p>"]
    #[serde(rename="SuggestionsList")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub suggestions_list: Option<DomainSuggestionsList>,
}

#[doc="<p>The <a>GetOperationDetail</a> request includes the following element.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
pub struct GetOperationDetailRequest {
    #[doc="<p>The identifier for the operation for which you want to get the status. Amazon Route 53 returned the identifier in the response to the original request.</p>"]
    #[serde(rename="OperationId")]
    pub operation_id: OperationId,
}

#[doc="<p>The GetOperationDetail response includes the following elements.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
pub struct GetOperationDetailResponse {
    #[doc="<p>The name of a domain.</p>"]
    #[serde(rename="DomainName")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub domain_name: Option<DomainName>,
    #[doc="<p>Detailed information on the status including possible errors.</p>"]
    #[serde(rename="Message")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub message: Option<ErrorMessage>,
    #[doc="<p>The identifier for the operation.</p>"]
    #[serde(rename="OperationId")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub operation_id: Option<OperationId>,
    #[doc="<p>The current status of the requested operation in the system.</p>"]
    #[serde(rename="Status")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub status: Option<OperationStatus>,
    #[doc="<p>The date when the request was submitted.</p>"]
    #[serde(rename="SubmittedDate")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub submitted_date: Option<Timestamp>,
    #[doc="<p>The type of operation that was requested.</p>"]
    #[serde(rename="Type")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub type_: Option<OperationType>,
}

pub type GlueIp = String;
pub type GlueIpList = Vec<GlueIp>;
pub type HostName = String;
pub type Integer = i64;
pub type InvoiceId = String;
pub type LangCode = String;
#[doc="<p>The ListDomains request includes the following elements.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
pub struct ListDomainsRequest {
    #[doc="<p>For an initial request for a list of domains, omit this element. If the number of domains that are associated with the current AWS account is greater than the value that you specified for <code>MaxItems</code>, you can use <code>Marker</code> to return additional domains. Get the value of <code>NextPageMarker</code> from the previous response, and submit another request that includes the value of <code>NextPageMarker</code> in the <code>Marker</code> element.</p> <p>Constraints: The marker must match the value specified in the previous request.</p>"]
    #[serde(rename="Marker")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub marker: Option<PageMarker>,
    #[doc="<p>Number of domains to be returned.</p> <p>Default: 20</p>"]
    #[serde(rename="MaxItems")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub max_items: Option<PageMaxItems>,
}

#[doc="<p>The ListDomains response includes the following elements.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
pub struct ListDomainsResponse {
    #[doc="<p>A summary of domains.</p>"]
    #[serde(rename="Domains")]
    pub domains: DomainSummaryList,
    #[doc="<p>If there are more domains than you specified for <code>MaxItems</code> in the request, submit another request and include the value of <code>NextPageMarker</code> in the value of <code>Marker</code>.</p>"]
    #[serde(rename="NextPageMarker")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub next_page_marker: Option<PageMarker>,
}

#[doc="<p>The ListOperations request includes the following elements.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
pub struct ListOperationsRequest {
    #[doc="<p>For an initial request for a list of operations, omit this element. If the number of operations that are not yet complete is greater than the value that you specified for <code>MaxItems</code>, you can use <code>Marker</code> to return additional operations. Get the value of <code>NextPageMarker</code> from the previous response, and submit another request that includes the value of <code>NextPageMarker</code> in the <code>Marker</code> element.</p>"]
    #[serde(rename="Marker")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub marker: Option<PageMarker>,
    #[doc="<p>Number of domains to be returned.</p> <p>Default: 20</p>"]
    #[serde(rename="MaxItems")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub max_items: Option<PageMaxItems>,
}

#[doc="<p>The ListOperations response includes the following elements.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
pub struct ListOperationsResponse {
    #[doc="<p>If there are more operations than you specified for <code>MaxItems</code> in the request, submit another request and include the value of <code>NextPageMarker</code> in the value of <code>Marker</code>.</p>"]
    #[serde(rename="NextPageMarker")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub next_page_marker: Option<PageMarker>,
    #[doc="<p>Lists summaries of the operations.</p>"]
    #[serde(rename="Operations")]
    pub operations: OperationSummaryList,
}

#[doc="<p>The ListTagsForDomainRequest includes the following elements.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
pub struct ListTagsForDomainRequest {
    #[doc="<p>The domain for which you want to get a list of tags.</p>"]
    #[serde(rename="DomainName")]
    pub domain_name: DomainName,
}

#[doc="<p>The ListTagsForDomain response includes the following elements.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
pub struct ListTagsForDomainResponse {
    #[doc="<p>A list of the tags that are associated with the specified domain.</p>"]
    #[serde(rename="TagList")]
    pub tag_list: TagList,
}

#[doc="<p>Nameserver includes the following elements.</p>"]
#[derive(Default,Debug,Clone,Serialize,Deserialize)]
pub struct Nameserver {
    #[doc="<p>Glue IP address of a name server entry. Glue IP addresses are required only when the name of the name server is a subdomain of the domain. For example, if your domain is example.com and the name server for the domain is ns.example.com, you need to specify the IP address for ns.example.com.</p> <p>Constraints: The list can contain only one IPv4 and one IPv6 address.</p>"]
    #[serde(rename="GlueIps")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub glue_ips: Option<GlueIpList>,
    #[doc="<p>The fully qualified host name of the name server.</p> <p>Constraint: Maximum 255 characters</p>"]
    #[serde(rename="Name")]
    pub name: HostName,
}

pub type NameserverList = Vec<Nameserver>;
pub type OperationId = String;
pub type OperationStatus = String;
#[doc="<p>OperationSummary includes the following elements.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
pub struct OperationSummary {
    #[doc="<p>Identifier returned to track the requested action.</p>"]
    #[serde(rename="OperationId")]
    pub operation_id: OperationId,
    #[doc="<p>The current status of the requested operation in the system.</p>"]
    #[serde(rename="Status")]
    pub status: OperationStatus,
    #[doc="<p>The date when the request was submitted.</p>"]
    #[serde(rename="SubmittedDate")]
    pub submitted_date: Timestamp,
    #[doc="<p>Type of the action requested.</p>"]
    #[serde(rename="Type")]
    pub type_: OperationType,
}

pub type OperationSummaryList = Vec<OperationSummary>;
pub type OperationType = String;
pub type PageMarker = String;
pub type PageMaxItems = i64;
pub type Price = f64;
pub type ReachabilityStatus = String;
#[doc="<p>The RegisterDomain request includes the following elements.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
pub struct RegisterDomainRequest {
    #[doc="<p>Provides detailed contact information.</p>"]
    #[serde(rename="AdminContact")]
    pub admin_contact: ContactDetail,
    #[doc="<p>Indicates whether the domain will be automatically renewed (<code>true</code>) or not (<code>false</code>). Autorenewal only takes effect after the account is charged.</p> <p>Default: <code>true</code> </p>"]
    #[serde(rename="AutoRenew")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub auto_renew: Option<Boolean>,
    #[doc="<p>The domain name that you want to register.</p> <p>Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not supported.</p>"]
    #[serde(rename="DomainName")]
    pub domain_name: DomainName,
    #[doc="<p>The number of years that you want to register the domain for. Domains are registered for a minimum of one year. The maximum period depends on the top-level domain. For the range of valid values for your domain, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html\">Domains that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> <p>Default: 1</p>"]
    #[serde(rename="DurationInYears")]
    pub duration_in_years: DurationInYears,
    #[doc="<p>Reserved for future use.</p>"]
    #[serde(rename="IdnLangCode")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub idn_lang_code: Option<LangCode>,
    #[doc="<p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS (\"who is\") queries will return contact information for our registrar partner, Gandi, instead of the contact information that you enter.</p> <p>Default: <code>true</code> </p>"]
    #[serde(rename="PrivacyProtectAdminContact")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub privacy_protect_admin_contact: Option<Boolean>,
    #[doc="<p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS (\"who is\") queries will return contact information for our registrar partner, Gandi, instead of the contact information that you enter.</p> <p>Default: <code>true</code> </p>"]
    #[serde(rename="PrivacyProtectRegistrantContact")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub privacy_protect_registrant_contact: Option<Boolean>,
    #[doc="<p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS (\"who is\") queries will return contact information for our registrar partner, Gandi, instead of the contact information that you enter.</p> <p>Default: <code>true</code> </p>"]
    #[serde(rename="PrivacyProtectTechContact")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub privacy_protect_tech_contact: Option<Boolean>,
    #[doc="<p>Provides detailed contact information.</p>"]
    #[serde(rename="RegistrantContact")]
    pub registrant_contact: ContactDetail,
    #[doc="<p>Provides detailed contact information.</p>"]
    #[serde(rename="TechContact")]
    pub tech_contact: ContactDetail,
}

#[doc="<p>The RegisterDomain response includes the following element.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
pub struct RegisterDomainResponse {
    #[doc="<p>Identifier for tracking the progress of the request. To use this ID to query the operation status, use <a>GetOperationDetail</a>.</p>"]
    #[serde(rename="OperationId")]
    pub operation_id: OperationId,
}

pub type RegistrarName = String;
pub type RegistrarUrl = String;
pub type RegistrarWhoIsServer = String;
pub type RegistryDomainId = String;
#[doc="<p>A <code>RenewDomain</code> request includes the number of years that you want to renew for and the current expiration year.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
pub struct RenewDomainRequest {
    #[doc="<p>The year when the registration for the domain is set to expire. This value must match the current expiration date for the domain.</p>"]
    #[serde(rename="CurrentExpiryYear")]
    pub current_expiry_year: CurrentExpiryYear,
    #[doc="<p>The name of the domain that you want to renew.</p>"]
    #[serde(rename="DomainName")]
    pub domain_name: DomainName,
    #[doc="<p>The number of years that you want to renew the domain for. The maximum number of years depends on the top-level domain. For the range of valid values for your domain, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html\">Domains that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> <p>Default: 1</p>"]
    #[serde(rename="DurationInYears")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub duration_in_years: Option<DurationInYears>,
}

#[derive(Default,Debug,Clone,Deserialize)]
pub struct RenewDomainResponse {
    #[doc="<p>The identifier for tracking the progress of the request. To use this ID to query the operation status, use <a>GetOperationDetail</a>.</p>"]
    #[serde(rename="OperationId")]
    pub operation_id: OperationId,
}

pub type Reseller = String;
#[derive(Default,Debug,Clone,Serialize)]
pub struct ResendContactReachabilityEmailRequest {
    #[doc="<p>The name of the domain for which you want Amazon Route 53 to resend a confirmation email to the registrant contact.</p>"]
    #[serde(rename="domainName")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub domain_name: Option<DomainName>,
}

#[derive(Default,Debug,Clone,Deserialize)]
pub struct ResendContactReachabilityEmailResponse {
    #[doc="<p>The domain name for which you requested a confirmation email.</p>"]
    #[serde(rename="domainName")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub domain_name: Option<DomainName>,
    #[doc="<p>The email address for the registrant contact at the time that we sent the verification email.</p>"]
    #[serde(rename="emailAddress")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub email_address: Option<Email>,
    #[doc="<p> <code>True</code> if the email address for the registrant contact has already been verified, and <code>false</code> otherwise. If the email address has already been verified, we don't send another confirmation email.</p>"]
    #[serde(rename="isAlreadyVerified")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub is_already_verified: Option<Boolean>,
}

#[doc="<p>A request for the authorization code for the specified domain. To transfer a domain to another registrar, you provide this value to the new registrar.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
pub struct RetrieveDomainAuthCodeRequest {
    #[doc="<p>The name of the domain that you want to get an authorization code for.</p>"]
    #[serde(rename="DomainName")]
    pub domain_name: DomainName,
}

#[doc="<p>The RetrieveDomainAuthCode response includes the following element.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
pub struct RetrieveDomainAuthCodeResponse {
    #[doc="<p>The authorization code for the domain.</p>"]
    #[serde(rename="AuthCode")]
    pub auth_code: DomainAuthCode,
}

pub type State = String;
#[doc="<p>Each tag includes the following elements.</p>"]
#[derive(Default,Debug,Clone,Serialize,Deserialize)]
pub struct Tag {
    #[doc="<p>The key (name) of a tag.</p> <p>Valid values: A-Z, a-z, 0-9, space, \".:/=+\\-@\"</p> <p>Constraints: Each key can be 1-128 characters long.</p>"]
    #[serde(rename="Key")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub key: Option<TagKey>,
    #[doc="<p>The value of a tag.</p> <p>Valid values: A-Z, a-z, 0-9, space, \".:/=+\\-@\"</p> <p>Constraints: Each value can be 0-256 characters long.</p>"]
    #[serde(rename="Value")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub value: Option<TagValue>,
}

pub type TagKey = String;
pub type TagKeyList = Vec<TagKey>;
pub type TagList = Vec<Tag>;
pub type TagValue = String;
pub type Timestamp = f64;
#[doc="<p>The TransferDomain request includes the following elements.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
pub struct TransferDomainRequest {
    #[doc="<p>Provides detailed contact information.</p>"]
    #[serde(rename="AdminContact")]
    pub admin_contact: ContactDetail,
    #[doc="<p>The authorization code for the domain. You get this value from the current registrar.</p>"]
    #[serde(rename="AuthCode")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub auth_code: Option<DomainAuthCode>,
    #[doc="<p>Indicates whether the domain will be automatically renewed (true) or not (false). Autorenewal only takes effect after the account is charged.</p> <p>Default: true</p>"]
    #[serde(rename="AutoRenew")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub auto_renew: Option<Boolean>,
    #[doc="<p>The name of the domain that you want to transfer to Amazon Route 53.</p> <p>Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not supported.</p>"]
    #[serde(rename="DomainName")]
    pub domain_name: DomainName,
    #[doc="<p>The number of years that you want to register the domain for. Domains are registered for a minimum of one year. The maximum period depends on the top-level domain.</p> <p>Default: 1</p>"]
    #[serde(rename="DurationInYears")]
    pub duration_in_years: DurationInYears,
    #[doc="<p>Reserved for future use.</p>"]
    #[serde(rename="IdnLangCode")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub idn_lang_code: Option<LangCode>,
    #[doc="<p>Contains details for the host and glue IP addresses.</p>"]
    #[serde(rename="Nameservers")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub nameservers: Option<NameserverList>,
    #[doc="<p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS (\"who is\") queries will return contact information for our registrar partner, Gandi, instead of the contact information that you enter.</p> <p>Default: <code>true</code> </p>"]
    #[serde(rename="PrivacyProtectAdminContact")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub privacy_protect_admin_contact: Option<Boolean>,
    #[doc="<p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS (\"who is\") queries will return contact information for our registrar partner, Gandi, instead of the contact information that you enter.</p> <p>Default: <code>true</code> </p>"]
    #[serde(rename="PrivacyProtectRegistrantContact")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub privacy_protect_registrant_contact: Option<Boolean>,
    #[doc="<p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS (\"who is\") queries will return contact information for our registrar partner, Gandi, instead of the contact information that you enter.</p> <p>Default: <code>true</code> </p>"]
    #[serde(rename="PrivacyProtectTechContact")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub privacy_protect_tech_contact: Option<Boolean>,
    #[doc="<p>Provides detailed contact information.</p>"]
    #[serde(rename="RegistrantContact")]
    pub registrant_contact: ContactDetail,
    #[doc="<p>Provides detailed contact information.</p>"]
    #[serde(rename="TechContact")]
    pub tech_contact: ContactDetail,
}

#[doc="<p>The TranserDomain response includes the following element.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
pub struct TransferDomainResponse {
    #[doc="<p>Identifier for tracking the progress of the request. To use this ID to query the operation status, use <a>GetOperationDetail</a>.</p>"]
    #[serde(rename="OperationId")]
    pub operation_id: OperationId,
}

#[doc="<p>The UpdateDomainContactPrivacy request includes the following elements.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
pub struct UpdateDomainContactPrivacyRequest {
    #[doc="<p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS (\"who is\") queries will return contact information for our registrar partner, Gandi, instead of the contact information that you enter.</p>"]
    #[serde(rename="AdminPrivacy")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub admin_privacy: Option<Boolean>,
    #[doc="<p>The name of the domain that you want to update the privacy setting for.</p>"]
    #[serde(rename="DomainName")]
    pub domain_name: DomainName,
    #[doc="<p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS (\"who is\") queries will return contact information for our registrar partner, Gandi, instead of the contact information that you enter.</p>"]
    #[serde(rename="RegistrantPrivacy")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub registrant_privacy: Option<Boolean>,
    #[doc="<p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS (\"who is\") queries will return contact information for our registrar partner, Gandi, instead of the contact information that you enter.</p>"]
    #[serde(rename="TechPrivacy")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub tech_privacy: Option<Boolean>,
}

#[doc="<p>The UpdateDomainContactPrivacy response includes the following element.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
pub struct UpdateDomainContactPrivacyResponse {
    #[doc="<p>Identifier for tracking the progress of the request. To use this ID to query the operation status, use GetOperationDetail.</p>"]
    #[serde(rename="OperationId")]
    pub operation_id: OperationId,
}

#[doc="<p>The UpdateDomainContact request includes the following elements.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
pub struct UpdateDomainContactRequest {
    #[doc="<p>Provides detailed contact information.</p>"]
    #[serde(rename="AdminContact")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub admin_contact: Option<ContactDetail>,
    #[doc="<p>The name of the domain that you want to update contact information for.</p>"]
    #[serde(rename="DomainName")]
    pub domain_name: DomainName,
    #[doc="<p>Provides detailed contact information.</p>"]
    #[serde(rename="RegistrantContact")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub registrant_contact: Option<ContactDetail>,
    #[doc="<p>Provides detailed contact information.</p>"]
    #[serde(rename="TechContact")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub tech_contact: Option<ContactDetail>,
}

#[doc="<p>The UpdateDomainContact response includes the following element.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
pub struct UpdateDomainContactResponse {
    #[doc="<p>Identifier for tracking the progress of the request. To use this ID to query the operation status, use <a>GetOperationDetail</a>.</p>"]
    #[serde(rename="OperationId")]
    pub operation_id: OperationId,
}

#[doc="<p>Replaces the current set of name servers for the domain with the specified set of name servers. If you use Amazon Route 53 as your DNS service, specify the four name servers in the delegation set for the hosted zone for the domain.</p> <p>If successful, this operation returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email. </p>"]
#[derive(Default,Debug,Clone,Serialize)]
pub struct UpdateDomainNameserversRequest {
    #[doc="<p>The name of the domain that you want to change name servers for.</p>"]
    #[serde(rename="DomainName")]
    pub domain_name: DomainName,
    #[doc="<p>The authorization key for .fi domains</p>"]
    #[serde(rename="FIAuthKey")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub fi_auth_key: Option<FIAuthKey>,
    #[doc="<p>A list of new name servers for the domain.</p>"]
    #[serde(rename="Nameservers")]
    pub nameservers: NameserverList,
}

#[doc="<p>The UpdateDomainNameservers response includes the following element.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
pub struct UpdateDomainNameserversResponse {
    #[doc="<p>Identifier for tracking the progress of the request. To use this ID to query the operation status, use <a>GetOperationDetail</a>.</p>"]
    #[serde(rename="OperationId")]
    pub operation_id: OperationId,
}

#[doc="<p>The UpdateTagsForDomainRequest includes the following elements.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
pub struct UpdateTagsForDomainRequest {
    #[doc="<p>The domain for which you want to add or update tags.</p>"]
    #[serde(rename="DomainName")]
    pub domain_name: DomainName,
    #[doc="<p>A list of the tag keys and values that you want to add or update. If you specify a key that already exists, the corresponding value will be replaced.</p>"]
    #[serde(rename="TagsToUpdate")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub tags_to_update: Option<TagList>,
}

#[derive(Default,Debug,Clone,Deserialize)]
pub struct UpdateTagsForDomainResponse;

#[doc="<p>The ViewBilling request includes the following elements.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
pub struct ViewBillingRequest {
    #[doc="<p>The end date and time for the time period for which you want a list of billing records. Specify the date in Unix time format.</p>"]
    #[serde(rename="End")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub end: Option<Timestamp>,
    #[doc="<p>For an initial request for a list of billing records, omit this element. If the number of billing records that are associated with the current AWS account during the specified period is greater than the value that you specified for <code>MaxItems</code>, you can use <code>Marker</code> to return additional billing records. Get the value of <code>NextPageMarker</code> from the previous response, and submit another request that includes the value of <code>NextPageMarker</code> in the <code>Marker</code> element. </p> <p>Constraints: The marker must match the value of <code>NextPageMarker</code> that was returned in the previous response.</p>"]
    #[serde(rename="Marker")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub marker: Option<PageMarker>,
    #[doc="<p>The number of billing records to be returned.</p> <p>Default: 20</p>"]
    #[serde(rename="MaxItems")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub max_items: Option<PageMaxItems>,
    #[doc="<p>The beginning date and time for the time period for which you want a list of billing records. Specify the date in Unix time format.</p>"]
    #[serde(rename="Start")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub start: Option<Timestamp>,
}

#[doc="<p>The ViewBilling response includes the following elements.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
pub struct ViewBillingResponse {
    #[doc="<p>A summary of billing records.</p>"]
    #[serde(rename="BillingRecords")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub billing_records: Option<BillingRecords>,
    #[doc="<p>If there are more billing records than you specified for <code>MaxItems</code> in the request, submit another request and include the value of <code>NextPageMarker</code> in the value of <code>Marker</code>.</p>"]
    #[serde(rename="NextPageMarker")]
    #[serde(skip_serializing_if="Option::is_none")]
    pub next_page_marker: Option<PageMarker>,
}

pub type ZipCode = String;
/// Errors returned by CheckDomainAvailability
#[derive(Debug, PartialEq)]
pub enum CheckDomainAvailabilityError {
    ///<p>The requested item is not acceptable. For example, for an OperationId it may refer to the ID of an operation that is already completed. For a domain name, it may not be a valid domain name or belong to the requester account.</p>
    InvalidInput(String),
    ///<p>Amazon Route 53 does not support this top-level domain.</p>
    UnsupportedTLD(String),
    /// An error occurred dispatching the HTTP request
    HttpDispatch(HttpDispatchError),
    /// An error was encountered with AWS credentials.
    Credentials(CredentialsError),
    /// A validation error occurred.  Details from AWS are provided.
    Validation(String),
    /// An unknown error occurred.  The raw HTTP response is provided.
    Unknown(String),
}


impl CheckDomainAvailabilityError {
    pub fn from_body(body: &str) -> CheckDomainAvailabilityError {
        match from_str::<SerdeJsonValue>(body) {
            Ok(json) => {
                let raw_error_type = json.get("__type")
                    .and_then(|e| e.as_str())
                    .unwrap_or("Unknown");
                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                let error_type = pieces.last().expect("Expected error type");

                match *error_type {
                    "InvalidInput" => {
                        CheckDomainAvailabilityError::InvalidInput(String::from(error_message))
                    }
                    "UnsupportedTLD" => {
                        CheckDomainAvailabilityError::UnsupportedTLD(String::from(error_message))
                    }
                    "ValidationException" => {
                        CheckDomainAvailabilityError::Validation(error_message.to_string())
                    }
                    _ => CheckDomainAvailabilityError::Unknown(String::from(body)),
                }
            }
            Err(_) => CheckDomainAvailabilityError::Unknown(String::from(body)),
        }
    }
}

impl From<serde_json::error::Error> for CheckDomainAvailabilityError {
    fn from(err: serde_json::error::Error) -> CheckDomainAvailabilityError {
        CheckDomainAvailabilityError::Unknown(err.description().to_string())
    }
}
impl From<CredentialsError> for CheckDomainAvailabilityError {
    fn from(err: CredentialsError) -> CheckDomainAvailabilityError {
        CheckDomainAvailabilityError::Credentials(err)
    }
}
impl From<HttpDispatchError> for CheckDomainAvailabilityError {
    fn from(err: HttpDispatchError) -> CheckDomainAvailabilityError {
        CheckDomainAvailabilityError::HttpDispatch(err)
    }
}
impl fmt::Display for CheckDomainAvailabilityError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.description())
    }
}
impl Error for CheckDomainAvailabilityError {
    fn description(&self) -> &str {
        match *self {
            CheckDomainAvailabilityError::InvalidInput(ref cause) => cause,
            CheckDomainAvailabilityError::UnsupportedTLD(ref cause) => cause,
            CheckDomainAvailabilityError::Validation(ref cause) => cause,
            CheckDomainAvailabilityError::Credentials(ref err) => err.description(),
            CheckDomainAvailabilityError::HttpDispatch(ref dispatch_error) => {
                dispatch_error.description()
            }
            CheckDomainAvailabilityError::Unknown(ref cause) => cause,
        }
    }
}
/// Errors returned by DeleteTagsForDomain
#[derive(Debug, PartialEq)]
pub enum DeleteTagsForDomainError {
    ///<p>The requested item is not acceptable. For example, for an OperationId it may refer to the ID of an operation that is already completed. For a domain name, it may not be a valid domain name or belong to the requester account.</p>
    InvalidInput(String),
    ///<p>The number of operations or jobs running exceeded the allowed threshold for the account.</p>
    OperationLimitExceeded(String),
    ///<p>Amazon Route 53 does not support this top-level domain.</p>
    UnsupportedTLD(String),
    /// An error occurred dispatching the HTTP request
    HttpDispatch(HttpDispatchError),
    /// An error was encountered with AWS credentials.
    Credentials(CredentialsError),
    /// A validation error occurred.  Details from AWS are provided.
    Validation(String),
    /// An unknown error occurred.  The raw HTTP response is provided.
    Unknown(String),
}


impl DeleteTagsForDomainError {
    pub fn from_body(body: &str) -> DeleteTagsForDomainError {
        match from_str::<SerdeJsonValue>(body) {
            Ok(json) => {
                let raw_error_type = json.get("__type")
                    .and_then(|e| e.as_str())
                    .unwrap_or("Unknown");
                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                let error_type = pieces.last().expect("Expected error type");

                match *error_type {
                    "InvalidInput" => {
                        DeleteTagsForDomainError::InvalidInput(String::from(error_message))
                    }
                    "OperationLimitExceeded" => DeleteTagsForDomainError::OperationLimitExceeded(String::from(error_message)),
                    "UnsupportedTLD" => {
                        DeleteTagsForDomainError::UnsupportedTLD(String::from(error_message))
                    }
                    "ValidationException" => {
                        DeleteTagsForDomainError::Validation(error_message.to_string())
                    }
                    _ => DeleteTagsForDomainError::Unknown(String::from(body)),
                }
            }
            Err(_) => DeleteTagsForDomainError::Unknown(String::from(body)),
        }
    }
}

impl From<serde_json::error::Error> for DeleteTagsForDomainError {
    fn from(err: serde_json::error::Error) -> DeleteTagsForDomainError {
        DeleteTagsForDomainError::Unknown(err.description().to_string())
    }
}
impl From<CredentialsError> for DeleteTagsForDomainError {
    fn from(err: CredentialsError) -> DeleteTagsForDomainError {
        DeleteTagsForDomainError::Credentials(err)
    }
}
impl From<HttpDispatchError> for DeleteTagsForDomainError {
    fn from(err: HttpDispatchError) -> DeleteTagsForDomainError {
        DeleteTagsForDomainError::HttpDispatch(err)
    }
}
impl fmt::Display for DeleteTagsForDomainError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.description())
    }
}
impl Error for DeleteTagsForDomainError {
    fn description(&self) -> &str {
        match *self {
            DeleteTagsForDomainError::InvalidInput(ref cause) => cause,
            DeleteTagsForDomainError::OperationLimitExceeded(ref cause) => cause,
            DeleteTagsForDomainError::UnsupportedTLD(ref cause) => cause,
            DeleteTagsForDomainError::Validation(ref cause) => cause,
            DeleteTagsForDomainError::Credentials(ref err) => err.description(),
            DeleteTagsForDomainError::HttpDispatch(ref dispatch_error) => {
                dispatch_error.description()
            }
            DeleteTagsForDomainError::Unknown(ref cause) => cause,
        }
    }
}
/// Errors returned by DisableDomainAutoRenew
#[derive(Debug, PartialEq)]
pub enum DisableDomainAutoRenewError {
    ///<p>The requested item is not acceptable. For example, for an OperationId it may refer to the ID of an operation that is already completed. For a domain name, it may not be a valid domain name or belong to the requester account.</p>
    InvalidInput(String),
    ///<p>Amazon Route 53 does not support this top-level domain.</p>
    UnsupportedTLD(String),
    /// An error occurred dispatching the HTTP request
    HttpDispatch(HttpDispatchError),
    /// An error was encountered with AWS credentials.
    Credentials(CredentialsError),
    /// A validation error occurred.  Details from AWS are provided.
    Validation(String),
    /// An unknown error occurred.  The raw HTTP response is provided.
    Unknown(String),
}


impl DisableDomainAutoRenewError {
    pub fn from_body(body: &str) -> DisableDomainAutoRenewError {
        match from_str::<SerdeJsonValue>(body) {
            Ok(json) => {
                let raw_error_type = json.get("__type")
                    .and_then(|e| e.as_str())
                    .unwrap_or("Unknown");
                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                let error_type = pieces.last().expect("Expected error type");

                match *error_type {
                    "InvalidInput" => {
                        DisableDomainAutoRenewError::InvalidInput(String::from(error_message))
                    }
                    "UnsupportedTLD" => {
                        DisableDomainAutoRenewError::UnsupportedTLD(String::from(error_message))
                    }
                    "ValidationException" => {
                        DisableDomainAutoRenewError::Validation(error_message.to_string())
                    }
                    _ => DisableDomainAutoRenewError::Unknown(String::from(body)),
                }
            }
            Err(_) => DisableDomainAutoRenewError::Unknown(String::from(body)),
        }
    }
}

impl From<serde_json::error::Error> for DisableDomainAutoRenewError {
    fn from(err: serde_json::error::Error) -> DisableDomainAutoRenewError {
        DisableDomainAutoRenewError::Unknown(err.description().to_string())
    }
}
impl From<CredentialsError> for DisableDomainAutoRenewError {
    fn from(err: CredentialsError) -> DisableDomainAutoRenewError {
        DisableDomainAutoRenewError::Credentials(err)
    }
}
impl From<HttpDispatchError> for DisableDomainAutoRenewError {
    fn from(err: HttpDispatchError) -> DisableDomainAutoRenewError {
        DisableDomainAutoRenewError::HttpDispatch(err)
    }
}
impl fmt::Display for DisableDomainAutoRenewError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.description())
    }
}
impl Error for DisableDomainAutoRenewError {
    fn description(&self) -> &str {
        match *self {
            DisableDomainAutoRenewError::InvalidInput(ref cause) => cause,
            DisableDomainAutoRenewError::UnsupportedTLD(ref cause) => cause,
            DisableDomainAutoRenewError::Validation(ref cause) => cause,
            DisableDomainAutoRenewError::Credentials(ref err) => err.description(),
            DisableDomainAutoRenewError::HttpDispatch(ref dispatch_error) => {
                dispatch_error.description()
            }
            DisableDomainAutoRenewError::Unknown(ref cause) => cause,
        }
    }
}
/// Errors returned by DisableDomainTransferLock
#[derive(Debug, PartialEq)]
pub enum DisableDomainTransferLockError {
    ///<p>The request is already in progress for the domain.</p>
    DuplicateRequest(String),
    ///<p>The requested item is not acceptable. For example, for an OperationId it may refer to the ID of an operation that is already completed. For a domain name, it may not be a valid domain name or belong to the requester account.</p>
    InvalidInput(String),
    ///<p>The number of operations or jobs running exceeded the allowed threshold for the account.</p>
    OperationLimitExceeded(String),
    ///<p>The top-level domain does not support this operation.</p>
    TLDRulesViolation(String),
    ///<p>Amazon Route 53 does not support this top-level domain.</p>
    UnsupportedTLD(String),
    /// An error occurred dispatching the HTTP request
    HttpDispatch(HttpDispatchError),
    /// An error was encountered with AWS credentials.
    Credentials(CredentialsError),
    /// A validation error occurred.  Details from AWS are provided.
    Validation(String),
    /// An unknown error occurred.  The raw HTTP response is provided.
    Unknown(String),
}


impl DisableDomainTransferLockError {
    pub fn from_body(body: &str) -> DisableDomainTransferLockError {
        match from_str::<SerdeJsonValue>(body) {
            Ok(json) => {
                let raw_error_type = json.get("__type")
                    .and_then(|e| e.as_str())
                    .unwrap_or("Unknown");
                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                let error_type = pieces.last().expect("Expected error type");

                match *error_type {
                    "DuplicateRequest" => DisableDomainTransferLockError::DuplicateRequest(String::from(error_message)),
                    "InvalidInput" => {
                        DisableDomainTransferLockError::InvalidInput(String::from(error_message))
                    }
                    "OperationLimitExceeded" => DisableDomainTransferLockError::OperationLimitExceeded(String::from(error_message)),
                    "TLDRulesViolation" => DisableDomainTransferLockError::TLDRulesViolation(String::from(error_message)),
                    "UnsupportedTLD" => {
                        DisableDomainTransferLockError::UnsupportedTLD(String::from(error_message))
                    }
                    "ValidationException" => {
                        DisableDomainTransferLockError::Validation(error_message.to_string())
                    }
                    _ => DisableDomainTransferLockError::Unknown(String::from(body)),
                }
            }
            Err(_) => DisableDomainTransferLockError::Unknown(String::from(body)),
        }
    }
}

impl From<serde_json::error::Error> for DisableDomainTransferLockError {
    fn from(err: serde_json::error::Error) -> DisableDomainTransferLockError {
        DisableDomainTransferLockError::Unknown(err.description().to_string())
    }
}
impl From<CredentialsError> for DisableDomainTransferLockError {
    fn from(err: CredentialsError) -> DisableDomainTransferLockError {
        DisableDomainTransferLockError::Credentials(err)
    }
}
impl From<HttpDispatchError> for DisableDomainTransferLockError {
    fn from(err: HttpDispatchError) -> DisableDomainTransferLockError {
        DisableDomainTransferLockError::HttpDispatch(err)
    }
}
impl fmt::Display for DisableDomainTransferLockError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.description())
    }
}
impl Error for DisableDomainTransferLockError {
    fn description(&self) -> &str {
        match *self {
            DisableDomainTransferLockError::DuplicateRequest(ref cause) => cause,
            DisableDomainTransferLockError::InvalidInput(ref cause) => cause,
            DisableDomainTransferLockError::OperationLimitExceeded(ref cause) => cause,
            DisableDomainTransferLockError::TLDRulesViolation(ref cause) => cause,
            DisableDomainTransferLockError::UnsupportedTLD(ref cause) => cause,
            DisableDomainTransferLockError::Validation(ref cause) => cause,
            DisableDomainTransferLockError::Credentials(ref err) => err.description(),
            DisableDomainTransferLockError::HttpDispatch(ref dispatch_error) => {
                dispatch_error.description()
            }
            DisableDomainTransferLockError::Unknown(ref cause) => cause,
        }
    }
}
/// Errors returned by EnableDomainAutoRenew
#[derive(Debug, PartialEq)]
pub enum EnableDomainAutoRenewError {
    ///<p>The requested item is not acceptable. For example, for an OperationId it may refer to the ID of an operation that is already completed. For a domain name, it may not be a valid domain name or belong to the requester account.</p>
    InvalidInput(String),
    ///<p>The top-level domain does not support this operation.</p>
    TLDRulesViolation(String),
    ///<p>Amazon Route 53 does not support this top-level domain.</p>
    UnsupportedTLD(String),
    /// An error occurred dispatching the HTTP request
    HttpDispatch(HttpDispatchError),
    /// An error was encountered with AWS credentials.
    Credentials(CredentialsError),
    /// A validation error occurred.  Details from AWS are provided.
    Validation(String),
    /// An unknown error occurred.  The raw HTTP response is provided.
    Unknown(String),
}


impl EnableDomainAutoRenewError {
    pub fn from_body(body: &str) -> EnableDomainAutoRenewError {
        match from_str::<SerdeJsonValue>(body) {
            Ok(json) => {
                let raw_error_type = json.get("__type")
                    .and_then(|e| e.as_str())
                    .unwrap_or("Unknown");
                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                let error_type = pieces.last().expect("Expected error type");

                match *error_type {
                    "InvalidInput" => {
                        EnableDomainAutoRenewError::InvalidInput(String::from(error_message))
                    }
                    "TLDRulesViolation" => {
                        EnableDomainAutoRenewError::TLDRulesViolation(String::from(error_message))
                    }
                    "UnsupportedTLD" => {
                        EnableDomainAutoRenewError::UnsupportedTLD(String::from(error_message))
                    }
                    "ValidationException" => {
                        EnableDomainAutoRenewError::Validation(error_message.to_string())
                    }
                    _ => EnableDomainAutoRenewError::Unknown(String::from(body)),
                }
            }
            Err(_) => EnableDomainAutoRenewError::Unknown(String::from(body)),
        }
    }
}

impl From<serde_json::error::Error> for EnableDomainAutoRenewError {
    fn from(err: serde_json::error::Error) -> EnableDomainAutoRenewError {
        EnableDomainAutoRenewError::Unknown(err.description().to_string())
    }
}
impl From<CredentialsError> for EnableDomainAutoRenewError {
    fn from(err: CredentialsError) -> EnableDomainAutoRenewError {
        EnableDomainAutoRenewError::Credentials(err)
    }
}
impl From<HttpDispatchError> for EnableDomainAutoRenewError {
    fn from(err: HttpDispatchError) -> EnableDomainAutoRenewError {
        EnableDomainAutoRenewError::HttpDispatch(err)
    }
}
impl fmt::Display for EnableDomainAutoRenewError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.description())
    }
}
impl Error for EnableDomainAutoRenewError {
    fn description(&self) -> &str {
        match *self {
            EnableDomainAutoRenewError::InvalidInput(ref cause) => cause,
            EnableDomainAutoRenewError::TLDRulesViolation(ref cause) => cause,
            EnableDomainAutoRenewError::UnsupportedTLD(ref cause) => cause,
            EnableDomainAutoRenewError::Validation(ref cause) => cause,
            EnableDomainAutoRenewError::Credentials(ref err) => err.description(),
            EnableDomainAutoRenewError::HttpDispatch(ref dispatch_error) => {
                dispatch_error.description()
            }
            EnableDomainAutoRenewError::Unknown(ref cause) => cause,
        }
    }
}
/// Errors returned by EnableDomainTransferLock
#[derive(Debug, PartialEq)]
pub enum EnableDomainTransferLockError {
    ///<p>The request is already in progress for the domain.</p>
    DuplicateRequest(String),
    ///<p>The requested item is not acceptable. For example, for an OperationId it may refer to the ID of an operation that is already completed. For a domain name, it may not be a valid domain name or belong to the requester account.</p>
    InvalidInput(String),
    ///<p>The number of operations or jobs running exceeded the allowed threshold for the account.</p>
    OperationLimitExceeded(String),
    ///<p>The top-level domain does not support this operation.</p>
    TLDRulesViolation(String),
    ///<p>Amazon Route 53 does not support this top-level domain.</p>
    UnsupportedTLD(String),
    /// An error occurred dispatching the HTTP request
    HttpDispatch(HttpDispatchError),
    /// An error was encountered with AWS credentials.
    Credentials(CredentialsError),
    /// A validation error occurred.  Details from AWS are provided.
    Validation(String),
    /// An unknown error occurred.  The raw HTTP response is provided.
    Unknown(String),
}


impl EnableDomainTransferLockError {
    pub fn from_body(body: &str) -> EnableDomainTransferLockError {
        match from_str::<SerdeJsonValue>(body) {
            Ok(json) => {
                let raw_error_type = json.get("__type")
                    .and_then(|e| e.as_str())
                    .unwrap_or("Unknown");
                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                let error_type = pieces.last().expect("Expected error type");

                match *error_type {
                    "DuplicateRequest" => {
                        EnableDomainTransferLockError::DuplicateRequest(String::from(error_message))
                    }
                    "InvalidInput" => {
                        EnableDomainTransferLockError::InvalidInput(String::from(error_message))
                    }
                    "OperationLimitExceeded" => EnableDomainTransferLockError::OperationLimitExceeded(String::from(error_message)),
                    "TLDRulesViolation" => EnableDomainTransferLockError::TLDRulesViolation(String::from(error_message)),
                    "UnsupportedTLD" => {
                        EnableDomainTransferLockError::UnsupportedTLD(String::from(error_message))
                    }
                    "ValidationException" => {
                        EnableDomainTransferLockError::Validation(error_message.to_string())
                    }
                    _ => EnableDomainTransferLockError::Unknown(String::from(body)),
                }
            }
            Err(_) => EnableDomainTransferLockError::Unknown(String::from(body)),
        }
    }
}

impl From<serde_json::error::Error> for EnableDomainTransferLockError {
    fn from(err: serde_json::error::Error) -> EnableDomainTransferLockError {
        EnableDomainTransferLockError::Unknown(err.description().to_string())
    }
}
impl From<CredentialsError> for EnableDomainTransferLockError {
    fn from(err: CredentialsError) -> EnableDomainTransferLockError {
        EnableDomainTransferLockError::Credentials(err)
    }
}
impl From<HttpDispatchError> for EnableDomainTransferLockError {
    fn from(err: HttpDispatchError) -> EnableDomainTransferLockError {
        EnableDomainTransferLockError::HttpDispatch(err)
    }
}
impl fmt::Display for EnableDomainTransferLockError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.description())
    }
}
impl Error for EnableDomainTransferLockError {
    fn description(&self) -> &str {
        match *self {
            EnableDomainTransferLockError::DuplicateRequest(ref cause) => cause,
            EnableDomainTransferLockError::InvalidInput(ref cause) => cause,
            EnableDomainTransferLockError::OperationLimitExceeded(ref cause) => cause,
            EnableDomainTransferLockError::TLDRulesViolation(ref cause) => cause,
            EnableDomainTransferLockError::UnsupportedTLD(ref cause) => cause,
            EnableDomainTransferLockError::Validation(ref cause) => cause,
            EnableDomainTransferLockError::Credentials(ref err) => err.description(),
            EnableDomainTransferLockError::HttpDispatch(ref dispatch_error) => {
                dispatch_error.description()
            }
            EnableDomainTransferLockError::Unknown(ref cause) => cause,
        }
    }
}
/// Errors returned by GetContactReachabilityStatus
#[derive(Debug, PartialEq)]
pub enum GetContactReachabilityStatusError {
    ///<p>The requested item is not acceptable. For example, for an OperationId it may refer to the ID of an operation that is already completed. For a domain name, it may not be a valid domain name or belong to the requester account.</p>
    InvalidInput(String),
    ///<p>The number of operations or jobs running exceeded the allowed threshold for the account.</p>
    OperationLimitExceeded(String),
    ///<p>Amazon Route 53 does not support this top-level domain.</p>
    UnsupportedTLD(String),
    /// An error occurred dispatching the HTTP request
    HttpDispatch(HttpDispatchError),
    /// An error was encountered with AWS credentials.
    Credentials(CredentialsError),
    /// A validation error occurred.  Details from AWS are provided.
    Validation(String),
    /// An unknown error occurred.  The raw HTTP response is provided.
    Unknown(String),
}


impl GetContactReachabilityStatusError {
    pub fn from_body(body: &str) -> GetContactReachabilityStatusError {
        match from_str::<SerdeJsonValue>(body) {
            Ok(json) => {
                let raw_error_type = json.get("__type")
                    .and_then(|e| e.as_str())
                    .unwrap_or("Unknown");
                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                let error_type = pieces.last().expect("Expected error type");

                match *error_type {
                    "InvalidInput" => {
                        GetContactReachabilityStatusError::InvalidInput(String::from(error_message))
                    }
                    "OperationLimitExceeded" => GetContactReachabilityStatusError::OperationLimitExceeded(String::from(error_message)),
                    "UnsupportedTLD" => GetContactReachabilityStatusError::UnsupportedTLD(String::from(error_message)),
                    "ValidationException" => {
                        GetContactReachabilityStatusError::Validation(error_message.to_string())
                    }
                    _ => GetContactReachabilityStatusError::Unknown(String::from(body)),
                }
            }
            Err(_) => GetContactReachabilityStatusError::Unknown(String::from(body)),
        }
    }
}

impl From<serde_json::error::Error> for GetContactReachabilityStatusError {
    fn from(err: serde_json::error::Error) -> GetContactReachabilityStatusError {
        GetContactReachabilityStatusError::Unknown(err.description().to_string())
    }
}
impl From<CredentialsError> for GetContactReachabilityStatusError {
    fn from(err: CredentialsError) -> GetContactReachabilityStatusError {
        GetContactReachabilityStatusError::Credentials(err)
    }
}
impl From<HttpDispatchError> for GetContactReachabilityStatusError {
    fn from(err: HttpDispatchError) -> GetContactReachabilityStatusError {
        GetContactReachabilityStatusError::HttpDispatch(err)
    }
}
impl fmt::Display for GetContactReachabilityStatusError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.description())
    }
}
impl Error for GetContactReachabilityStatusError {
    fn description(&self) -> &str {
        match *self {
            GetContactReachabilityStatusError::InvalidInput(ref cause) => cause,
            GetContactReachabilityStatusError::OperationLimitExceeded(ref cause) => cause,
            GetContactReachabilityStatusError::UnsupportedTLD(ref cause) => cause,
            GetContactReachabilityStatusError::Validation(ref cause) => cause,
            GetContactReachabilityStatusError::Credentials(ref err) => err.description(),
            GetContactReachabilityStatusError::HttpDispatch(ref dispatch_error) => {
                dispatch_error.description()
            }
            GetContactReachabilityStatusError::Unknown(ref cause) => cause,
        }
    }
}
/// Errors returned by GetDomainDetail
#[derive(Debug, PartialEq)]
pub enum GetDomainDetailError {
    ///<p>The requested item is not acceptable. For example, for an OperationId it may refer to the ID of an operation that is already completed. For a domain name, it may not be a valid domain name or belong to the requester account.</p>
    InvalidInput(String),
    ///<p>Amazon Route 53 does not support this top-level domain.</p>
    UnsupportedTLD(String),
    /// An error occurred dispatching the HTTP request
    HttpDispatch(HttpDispatchError),
    /// An error was encountered with AWS credentials.
    Credentials(CredentialsError),
    /// A validation error occurred.  Details from AWS are provided.
    Validation(String),
    /// An unknown error occurred.  The raw HTTP response is provided.
    Unknown(String),
}


impl GetDomainDetailError {
    pub fn from_body(body: &str) -> GetDomainDetailError {
        match from_str::<SerdeJsonValue>(body) {
            Ok(json) => {
                let raw_error_type = json.get("__type")
                    .and_then(|e| e.as_str())
                    .unwrap_or("Unknown");
                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                let error_type = pieces.last().expect("Expected error type");

                match *error_type {
                    "InvalidInput" => {
                        GetDomainDetailError::InvalidInput(String::from(error_message))
                    }
                    "UnsupportedTLD" => {
                        GetDomainDetailError::UnsupportedTLD(String::from(error_message))
                    }
                    "ValidationException" => {
                        GetDomainDetailError::Validation(error_message.to_string())
                    }
                    _ => GetDomainDetailError::Unknown(String::from(body)),
                }
            }
            Err(_) => GetDomainDetailError::Unknown(String::from(body)),
        }
    }
}

impl From<serde_json::error::Error> for GetDomainDetailError {
    fn from(err: serde_json::error::Error) -> GetDomainDetailError {
        GetDomainDetailError::Unknown(err.description().to_string())
    }
}
impl From<CredentialsError> for GetDomainDetailError {
    fn from(err: CredentialsError) -> GetDomainDetailError {
        GetDomainDetailError::Credentials(err)
    }
}
impl From<HttpDispatchError> for GetDomainDetailError {
    fn from(err: HttpDispatchError) -> GetDomainDetailError {
        GetDomainDetailError::HttpDispatch(err)
    }
}
impl fmt::Display for GetDomainDetailError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.description())
    }
}
impl Error for GetDomainDetailError {
    fn description(&self) -> &str {
        match *self {
            GetDomainDetailError::InvalidInput(ref cause) => cause,
            GetDomainDetailError::UnsupportedTLD(ref cause) => cause,
            GetDomainDetailError::Validation(ref cause) => cause,
            GetDomainDetailError::Credentials(ref err) => err.description(),
            GetDomainDetailError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
            GetDomainDetailError::Unknown(ref cause) => cause,
        }
    }
}
/// Errors returned by GetDomainSuggestions
#[derive(Debug, PartialEq)]
pub enum GetDomainSuggestionsError {
    ///<p>The requested item is not acceptable. For example, for an OperationId it may refer to the ID of an operation that is already completed. For a domain name, it may not be a valid domain name or belong to the requester account.</p>
    InvalidInput(String),
    ///<p>Amazon Route 53 does not support this top-level domain.</p>
    UnsupportedTLD(String),
    /// An error occurred dispatching the HTTP request
    HttpDispatch(HttpDispatchError),
    /// An error was encountered with AWS credentials.
    Credentials(CredentialsError),
    /// A validation error occurred.  Details from AWS are provided.
    Validation(String),
    /// An unknown error occurred.  The raw HTTP response is provided.
    Unknown(String),
}


impl GetDomainSuggestionsError {
    pub fn from_body(body: &str) -> GetDomainSuggestionsError {
        match from_str::<SerdeJsonValue>(body) {
            Ok(json) => {
                let raw_error_type = json.get("__type")
                    .and_then(|e| e.as_str())
                    .unwrap_or("Unknown");
                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                let error_type = pieces.last().expect("Expected error type");

                match *error_type {
                    "InvalidInput" => {
                        GetDomainSuggestionsError::InvalidInput(String::from(error_message))
                    }
                    "UnsupportedTLD" => {
                        GetDomainSuggestionsError::UnsupportedTLD(String::from(error_message))
                    }
                    "ValidationException" => {
                        GetDomainSuggestionsError::Validation(error_message.to_string())
                    }
                    _ => GetDomainSuggestionsError::Unknown(String::from(body)),
                }
            }
            Err(_) => GetDomainSuggestionsError::Unknown(String::from(body)),
        }
    }
}

impl From<serde_json::error::Error> for GetDomainSuggestionsError {
    fn from(err: serde_json::error::Error) -> GetDomainSuggestionsError {
        GetDomainSuggestionsError::Unknown(err.description().to_string())
    }
}
impl From<CredentialsError> for GetDomainSuggestionsError {
    fn from(err: CredentialsError) -> GetDomainSuggestionsError {
        GetDomainSuggestionsError::Credentials(err)
    }
}
impl From<HttpDispatchError> for GetDomainSuggestionsError {
    fn from(err: HttpDispatchError) -> GetDomainSuggestionsError {
        GetDomainSuggestionsError::HttpDispatch(err)
    }
}
impl fmt::Display for GetDomainSuggestionsError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.description())
    }
}
impl Error for GetDomainSuggestionsError {
    fn description(&self) -> &str {
        match *self {
            GetDomainSuggestionsError::InvalidInput(ref cause) => cause,
            GetDomainSuggestionsError::UnsupportedTLD(ref cause) => cause,
            GetDomainSuggestionsError::Validation(ref cause) => cause,
            GetDomainSuggestionsError::Credentials(ref err) => err.description(),
            GetDomainSuggestionsError::HttpDispatch(ref dispatch_error) => {
                dispatch_error.description()
            }
            GetDomainSuggestionsError::Unknown(ref cause) => cause,
        }
    }
}
/// Errors returned by GetOperationDetail
#[derive(Debug, PartialEq)]
pub enum GetOperationDetailError {
    ///<p>The requested item is not acceptable. For example, for an OperationId it may refer to the ID of an operation that is already completed. For a domain name, it may not be a valid domain name or belong to the requester account.</p>
    InvalidInput(String),
    /// An error occurred dispatching the HTTP request
    HttpDispatch(HttpDispatchError),
    /// An error was encountered with AWS credentials.
    Credentials(CredentialsError),
    /// A validation error occurred.  Details from AWS are provided.
    Validation(String),
    /// An unknown error occurred.  The raw HTTP response is provided.
    Unknown(String),
}


impl GetOperationDetailError {
    pub fn from_body(body: &str) -> GetOperationDetailError {
        match from_str::<SerdeJsonValue>(body) {
            Ok(json) => {
                let raw_error_type = json.get("__type")
                    .and_then(|e| e.as_str())
                    .unwrap_or("Unknown");
                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                let error_type = pieces.last().expect("Expected error type");

                match *error_type {
                    "InvalidInput" => {
                        GetOperationDetailError::InvalidInput(String::from(error_message))
                    }
                    "ValidationException" => {
                        GetOperationDetailError::Validation(error_message.to_string())
                    }
                    _ => GetOperationDetailError::Unknown(String::from(body)),
                }
            }
            Err(_) => GetOperationDetailError::Unknown(String::from(body)),
        }
    }
}

impl From<serde_json::error::Error> for GetOperationDetailError {
    fn from(err: serde_json::error::Error) -> GetOperationDetailError {
        GetOperationDetailError::Unknown(err.description().to_string())
    }
}
impl From<CredentialsError> for GetOperationDetailError {
    fn from(err: CredentialsError) -> GetOperationDetailError {
        GetOperationDetailError::Credentials(err)
    }
}
impl From<HttpDispatchError> for GetOperationDetailError {
    fn from(err: HttpDispatchError) -> GetOperationDetailError {
        GetOperationDetailError::HttpDispatch(err)
    }
}
impl fmt::Display for GetOperationDetailError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.description())
    }
}
impl Error for GetOperationDetailError {
    fn description(&self) -> &str {
        match *self {
            GetOperationDetailError::InvalidInput(ref cause) => cause,
            GetOperationDetailError::Validation(ref cause) => cause,
            GetOperationDetailError::Credentials(ref err) => err.description(),
            GetOperationDetailError::HttpDispatch(ref dispatch_error) => {
                dispatch_error.description()
            }
            GetOperationDetailError::Unknown(ref cause) => cause,
        }
    }
}
/// Errors returned by ListDomains
#[derive(Debug, PartialEq)]
pub enum ListDomainsError {
    ///<p>The requested item is not acceptable. For example, for an OperationId it may refer to the ID of an operation that is already completed. For a domain name, it may not be a valid domain name or belong to the requester account.</p>
    InvalidInput(String),
    /// An error occurred dispatching the HTTP request
    HttpDispatch(HttpDispatchError),
    /// An error was encountered with AWS credentials.
    Credentials(CredentialsError),
    /// A validation error occurred.  Details from AWS are provided.
    Validation(String),
    /// An unknown error occurred.  The raw HTTP response is provided.
    Unknown(String),
}


impl ListDomainsError {
    pub fn from_body(body: &str) -> ListDomainsError {
        match from_str::<SerdeJsonValue>(body) {
            Ok(json) => {
                let raw_error_type = json.get("__type")
                    .and_then(|e| e.as_str())
                    .unwrap_or("Unknown");
                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                let error_type = pieces.last().expect("Expected error type");

                match *error_type {
                    "InvalidInput" => ListDomainsError::InvalidInput(String::from(error_message)),
                    "ValidationException" => {
                        ListDomainsError::Validation(error_message.to_string())
                    }
                    _ => ListDomainsError::Unknown(String::from(body)),
                }
            }
            Err(_) => ListDomainsError::Unknown(String::from(body)),
        }
    }
}

impl From<serde_json::error::Error> for ListDomainsError {
    fn from(err: serde_json::error::Error) -> ListDomainsError {
        ListDomainsError::Unknown(err.description().to_string())
    }
}
impl From<CredentialsError> for ListDomainsError {
    fn from(err: CredentialsError) -> ListDomainsError {
        ListDomainsError::Credentials(err)
    }
}
impl From<HttpDispatchError> for ListDomainsError {
    fn from(err: HttpDispatchError) -> ListDomainsError {
        ListDomainsError::HttpDispatch(err)
    }
}
impl fmt::Display for ListDomainsError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.description())
    }
}
impl Error for ListDomainsError {
    fn description(&self) -> &str {
        match *self {
            ListDomainsError::InvalidInput(ref cause) => cause,
            ListDomainsError::Validation(ref cause) => cause,
            ListDomainsError::Credentials(ref err) => err.description(),
            ListDomainsError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
            ListDomainsError::Unknown(ref cause) => cause,
        }
    }
}
/// Errors returned by ListOperations
#[derive(Debug, PartialEq)]
pub enum ListOperationsError {
    ///<p>The requested item is not acceptable. For example, for an OperationId it may refer to the ID of an operation that is already completed. For a domain name, it may not be a valid domain name or belong to the requester account.</p>
    InvalidInput(String),
    /// An error occurred dispatching the HTTP request
    HttpDispatch(HttpDispatchError),
    /// An error was encountered with AWS credentials.
    Credentials(CredentialsError),
    /// A validation error occurred.  Details from AWS are provided.
    Validation(String),
    /// An unknown error occurred.  The raw HTTP response is provided.
    Unknown(String),
}


impl ListOperationsError {
    pub fn from_body(body: &str) -> ListOperationsError {
        match from_str::<SerdeJsonValue>(body) {
            Ok(json) => {
                let raw_error_type = json.get("__type")
                    .and_then(|e| e.as_str())
                    .unwrap_or("Unknown");
                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                let error_type = pieces.last().expect("Expected error type");

                match *error_type {
                    "InvalidInput" => {
                        ListOperationsError::InvalidInput(String::from(error_message))
                    }
                    "ValidationException" => {
                        ListOperationsError::Validation(error_message.to_string())
                    }
                    _ => ListOperationsError::Unknown(String::from(body)),
                }
            }
            Err(_) => ListOperationsError::Unknown(String::from(body)),
        }
    }
}

impl From<serde_json::error::Error> for ListOperationsError {
    fn from(err: serde_json::error::Error) -> ListOperationsError {
        ListOperationsError::Unknown(err.description().to_string())
    }
}
impl From<CredentialsError> for ListOperationsError {
    fn from(err: CredentialsError) -> ListOperationsError {
        ListOperationsError::Credentials(err)
    }
}
impl From<HttpDispatchError> for ListOperationsError {
    fn from(err: HttpDispatchError) -> ListOperationsError {
        ListOperationsError::HttpDispatch(err)
    }
}
impl fmt::Display for ListOperationsError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.description())
    }
}
impl Error for ListOperationsError {
    fn description(&self) -> &str {
        match *self {
            ListOperationsError::InvalidInput(ref cause) => cause,
            ListOperationsError::Validation(ref cause) => cause,
            ListOperationsError::Credentials(ref err) => err.description(),
            ListOperationsError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
            ListOperationsError::Unknown(ref cause) => cause,
        }
    }
}
/// Errors returned by ListTagsForDomain
#[derive(Debug, PartialEq)]
pub enum ListTagsForDomainError {
    ///<p>The requested item is not acceptable. For example, for an OperationId it may refer to the ID of an operation that is already completed. For a domain name, it may not be a valid domain name or belong to the requester account.</p>
    InvalidInput(String),
    ///<p>The number of operations or jobs running exceeded the allowed threshold for the account.</p>
    OperationLimitExceeded(String),
    ///<p>Amazon Route 53 does not support this top-level domain.</p>
    UnsupportedTLD(String),
    /// An error occurred dispatching the HTTP request
    HttpDispatch(HttpDispatchError),
    /// An error was encountered with AWS credentials.
    Credentials(CredentialsError),
    /// A validation error occurred.  Details from AWS are provided.
    Validation(String),
    /// An unknown error occurred.  The raw HTTP response is provided.
    Unknown(String),
}


impl ListTagsForDomainError {
    pub fn from_body(body: &str) -> ListTagsForDomainError {
        match from_str::<SerdeJsonValue>(body) {
            Ok(json) => {
                let raw_error_type = json.get("__type")
                    .and_then(|e| e.as_str())
                    .unwrap_or("Unknown");
                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                let error_type = pieces.last().expect("Expected error type");

                match *error_type {
                    "InvalidInput" => {
                        ListTagsForDomainError::InvalidInput(String::from(error_message))
                    }
                    "OperationLimitExceeded" => {
                        ListTagsForDomainError::OperationLimitExceeded(String::from(error_message))
                    }
                    "UnsupportedTLD" => {
                        ListTagsForDomainError::UnsupportedTLD(String::from(error_message))
                    }
                    "ValidationException" => {
                        ListTagsForDomainError::Validation(error_message.to_string())
                    }
                    _ => ListTagsForDomainError::Unknown(String::from(body)),
                }
            }
            Err(_) => ListTagsForDomainError::Unknown(String::from(body)),
        }
    }
}

impl From<serde_json::error::Error> for ListTagsForDomainError {
    fn from(err: serde_json::error::Error) -> ListTagsForDomainError {
        ListTagsForDomainError::Unknown(err.description().to_string())
    }
}
impl From<CredentialsError> for ListTagsForDomainError {
    fn from(err: CredentialsError) -> ListTagsForDomainError {
        ListTagsForDomainError::Credentials(err)
    }
}
impl From<HttpDispatchError> for ListTagsForDomainError {
    fn from(err: HttpDispatchError) -> ListTagsForDomainError {
        ListTagsForDomainError::HttpDispatch(err)
    }
}
impl fmt::Display for ListTagsForDomainError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.description())
    }
}
impl Error for ListTagsForDomainError {
    fn description(&self) -> &str {
        match *self {
            ListTagsForDomainError::InvalidInput(ref cause) => cause,
            ListTagsForDomainError::OperationLimitExceeded(ref cause) => cause,
            ListTagsForDomainError::UnsupportedTLD(ref cause) => cause,
            ListTagsForDomainError::Validation(ref cause) => cause,
            ListTagsForDomainError::Credentials(ref err) => err.description(),
            ListTagsForDomainError::HttpDispatch(ref dispatch_error) => {
                dispatch_error.description()
            }
            ListTagsForDomainError::Unknown(ref cause) => cause,
        }
    }
}
/// Errors returned by RegisterDomain
#[derive(Debug, PartialEq)]
pub enum RegisterDomainError {
    ///<p>The number of domains has exceeded the allowed threshold for the account.</p>
    DomainLimitExceeded(String),
    ///<p>The request is already in progress for the domain.</p>
    DuplicateRequest(String),
    ///<p>The requested item is not acceptable. For example, for an OperationId it may refer to the ID of an operation that is already completed. For a domain name, it may not be a valid domain name or belong to the requester account.</p>
    InvalidInput(String),
    ///<p>The number of operations or jobs running exceeded the allowed threshold for the account.</p>
    OperationLimitExceeded(String),
    ///<p>The top-level domain does not support this operation.</p>
    TLDRulesViolation(String),
    ///<p>Amazon Route 53 does not support this top-level domain.</p>
    UnsupportedTLD(String),
    /// An error occurred dispatching the HTTP request
    HttpDispatch(HttpDispatchError),
    /// An error was encountered with AWS credentials.
    Credentials(CredentialsError),
    /// A validation error occurred.  Details from AWS are provided.
    Validation(String),
    /// An unknown error occurred.  The raw HTTP response is provided.
    Unknown(String),
}


impl RegisterDomainError {
    pub fn from_body(body: &str) -> RegisterDomainError {
        match from_str::<SerdeJsonValue>(body) {
            Ok(json) => {
                let raw_error_type = json.get("__type")
                    .and_then(|e| e.as_str())
                    .unwrap_or("Unknown");
                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                let error_type = pieces.last().expect("Expected error type");

                match *error_type {
                    "DomainLimitExceeded" => {
                        RegisterDomainError::DomainLimitExceeded(String::from(error_message))
                    }
                    "DuplicateRequest" => {
                        RegisterDomainError::DuplicateRequest(String::from(error_message))
                    }
                    "InvalidInput" => {
                        RegisterDomainError::InvalidInput(String::from(error_message))
                    }
                    "OperationLimitExceeded" => {
                        RegisterDomainError::OperationLimitExceeded(String::from(error_message))
                    }
                    "TLDRulesViolation" => {
                        RegisterDomainError::TLDRulesViolation(String::from(error_message))
                    }
                    "UnsupportedTLD" => {
                        RegisterDomainError::UnsupportedTLD(String::from(error_message))
                    }
                    "ValidationException" => {
                        RegisterDomainError::Validation(error_message.to_string())
                    }
                    _ => RegisterDomainError::Unknown(String::from(body)),
                }
            }
            Err(_) => RegisterDomainError::Unknown(String::from(body)),
        }
    }
}

impl From<serde_json::error::Error> for RegisterDomainError {
    fn from(err: serde_json::error::Error) -> RegisterDomainError {
        RegisterDomainError::Unknown(err.description().to_string())
    }
}
impl From<CredentialsError> for RegisterDomainError {
    fn from(err: CredentialsError) -> RegisterDomainError {
        RegisterDomainError::Credentials(err)
    }
}
impl From<HttpDispatchError> for RegisterDomainError {
    fn from(err: HttpDispatchError) -> RegisterDomainError {
        RegisterDomainError::HttpDispatch(err)
    }
}
impl fmt::Display for RegisterDomainError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.description())
    }
}
impl Error for RegisterDomainError {
    fn description(&self) -> &str {
        match *self {
            RegisterDomainError::DomainLimitExceeded(ref cause) => cause,
            RegisterDomainError::DuplicateRequest(ref cause) => cause,
            RegisterDomainError::InvalidInput(ref cause) => cause,
            RegisterDomainError::OperationLimitExceeded(ref cause) => cause,
            RegisterDomainError::TLDRulesViolation(ref cause) => cause,
            RegisterDomainError::UnsupportedTLD(ref cause) => cause,
            RegisterDomainError::Validation(ref cause) => cause,
            RegisterDomainError::Credentials(ref err) => err.description(),
            RegisterDomainError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
            RegisterDomainError::Unknown(ref cause) => cause,
        }
    }
}
/// Errors returned by RenewDomain
#[derive(Debug, PartialEq)]
pub enum RenewDomainError {
    ///<p>The request is already in progress for the domain.</p>
    DuplicateRequest(String),
    ///<p>The requested item is not acceptable. For example, for an OperationId it may refer to the ID of an operation that is already completed. For a domain name, it may not be a valid domain name or belong to the requester account.</p>
    InvalidInput(String),
    ///<p>The number of operations or jobs running exceeded the allowed threshold for the account.</p>
    OperationLimitExceeded(String),
    ///<p>The top-level domain does not support this operation.</p>
    TLDRulesViolation(String),
    ///<p>Amazon Route 53 does not support this top-level domain.</p>
    UnsupportedTLD(String),
    /// An error occurred dispatching the HTTP request
    HttpDispatch(HttpDispatchError),
    /// An error was encountered with AWS credentials.
    Credentials(CredentialsError),
    /// A validation error occurred.  Details from AWS are provided.
    Validation(String),
    /// An unknown error occurred.  The raw HTTP response is provided.
    Unknown(String),
}


impl RenewDomainError {
    pub fn from_body(body: &str) -> RenewDomainError {
        match from_str::<SerdeJsonValue>(body) {
            Ok(json) => {
                let raw_error_type = json.get("__type")
                    .and_then(|e| e.as_str())
                    .unwrap_or("Unknown");
                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                let error_type = pieces.last().expect("Expected error type");

                match *error_type {
                    "DuplicateRequest" => {
                        RenewDomainError::DuplicateRequest(String::from(error_message))
                    }
                    "InvalidInput" => RenewDomainError::InvalidInput(String::from(error_message)),
                    "OperationLimitExceeded" => {
                        RenewDomainError::OperationLimitExceeded(String::from(error_message))
                    }
                    "TLDRulesViolation" => {
                        RenewDomainError::TLDRulesViolation(String::from(error_message))
                    }
                    "UnsupportedTLD" => {
                        RenewDomainError::UnsupportedTLD(String::from(error_message))
                    }
                    "ValidationException" => {
                        RenewDomainError::Validation(error_message.to_string())
                    }
                    _ => RenewDomainError::Unknown(String::from(body)),
                }
            }
            Err(_) => RenewDomainError::Unknown(String::from(body)),
        }
    }
}

impl From<serde_json::error::Error> for RenewDomainError {
    fn from(err: serde_json::error::Error) -> RenewDomainError {
        RenewDomainError::Unknown(err.description().to_string())
    }
}
impl From<CredentialsError> for RenewDomainError {
    fn from(err: CredentialsError) -> RenewDomainError {
        RenewDomainError::Credentials(err)
    }
}
impl From<HttpDispatchError> for RenewDomainError {
    fn from(err: HttpDispatchError) -> RenewDomainError {
        RenewDomainError::HttpDispatch(err)
    }
}
impl fmt::Display for RenewDomainError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.description())
    }
}
impl Error for RenewDomainError {
    fn description(&self) -> &str {
        match *self {
            RenewDomainError::DuplicateRequest(ref cause) => cause,
            RenewDomainError::InvalidInput(ref cause) => cause,
            RenewDomainError::OperationLimitExceeded(ref cause) => cause,
            RenewDomainError::TLDRulesViolation(ref cause) => cause,
            RenewDomainError::UnsupportedTLD(ref cause) => cause,
            RenewDomainError::Validation(ref cause) => cause,
            RenewDomainError::Credentials(ref err) => err.description(),
            RenewDomainError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
            RenewDomainError::Unknown(ref cause) => cause,
        }
    }
}
/// Errors returned by ResendContactReachabilityEmail
#[derive(Debug, PartialEq)]
pub enum ResendContactReachabilityEmailError {
    ///<p>The requested item is not acceptable. For example, for an OperationId it may refer to the ID of an operation that is already completed. For a domain name, it may not be a valid domain name or belong to the requester account.</p>
    InvalidInput(String),
    ///<p>The number of operations or jobs running exceeded the allowed threshold for the account.</p>
    OperationLimitExceeded(String),
    ///<p>Amazon Route 53 does not support this top-level domain.</p>
    UnsupportedTLD(String),
    /// An error occurred dispatching the HTTP request
    HttpDispatch(HttpDispatchError),
    /// An error was encountered with AWS credentials.
    Credentials(CredentialsError),
    /// A validation error occurred.  Details from AWS are provided.
    Validation(String),
    /// An unknown error occurred.  The raw HTTP response is provided.
    Unknown(String),
}


impl ResendContactReachabilityEmailError {
    pub fn from_body(body: &str) -> ResendContactReachabilityEmailError {
        match from_str::<SerdeJsonValue>(body) {
            Ok(json) => {
                let raw_error_type = json.get("__type")
                    .and_then(|e| e.as_str())
                    .unwrap_or("Unknown");
                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                let error_type = pieces.last().expect("Expected error type");

                match *error_type {
                    "InvalidInput" => ResendContactReachabilityEmailError::InvalidInput(String::from(error_message)),
                    "OperationLimitExceeded" => ResendContactReachabilityEmailError::OperationLimitExceeded(String::from(error_message)),
                    "UnsupportedTLD" => ResendContactReachabilityEmailError::UnsupportedTLD(String::from(error_message)),
                    "ValidationException" => {
                        ResendContactReachabilityEmailError::Validation(error_message.to_string())
                    }
                    _ => ResendContactReachabilityEmailError::Unknown(String::from(body)),
                }
            }
            Err(_) => ResendContactReachabilityEmailError::Unknown(String::from(body)),
        }
    }
}

impl From<serde_json::error::Error> for ResendContactReachabilityEmailError {
    fn from(err: serde_json::error::Error) -> ResendContactReachabilityEmailError {
        ResendContactReachabilityEmailError::Unknown(err.description().to_string())
    }
}
impl From<CredentialsError> for ResendContactReachabilityEmailError {
    fn from(err: CredentialsError) -> ResendContactReachabilityEmailError {
        ResendContactReachabilityEmailError::Credentials(err)
    }
}
impl From<HttpDispatchError> for ResendContactReachabilityEmailError {
    fn from(err: HttpDispatchError) -> ResendContactReachabilityEmailError {
        ResendContactReachabilityEmailError::HttpDispatch(err)
    }
}
impl fmt::Display for ResendContactReachabilityEmailError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.description())
    }
}
impl Error for ResendContactReachabilityEmailError {
    fn description(&self) -> &str {
        match *self {
            ResendContactReachabilityEmailError::InvalidInput(ref cause) => cause,
            ResendContactReachabilityEmailError::OperationLimitExceeded(ref cause) => cause,
            ResendContactReachabilityEmailError::UnsupportedTLD(ref cause) => cause,
            ResendContactReachabilityEmailError::Validation(ref cause) => cause,
            ResendContactReachabilityEmailError::Credentials(ref err) => err.description(),
            ResendContactReachabilityEmailError::HttpDispatch(ref dispatch_error) => {
                dispatch_error.description()
            }
            ResendContactReachabilityEmailError::Unknown(ref cause) => cause,
        }
    }
}
/// Errors returned by RetrieveDomainAuthCode
#[derive(Debug, PartialEq)]
pub enum RetrieveDomainAuthCodeError {
    ///<p>The requested item is not acceptable. For example, for an OperationId it may refer to the ID of an operation that is already completed. For a domain name, it may not be a valid domain name or belong to the requester account.</p>
    InvalidInput(String),
    ///<p>Amazon Route 53 does not support this top-level domain.</p>
    UnsupportedTLD(String),
    /// An error occurred dispatching the HTTP request
    HttpDispatch(HttpDispatchError),
    /// An error was encountered with AWS credentials.
    Credentials(CredentialsError),
    /// A validation error occurred.  Details from AWS are provided.
    Validation(String),
    /// An unknown error occurred.  The raw HTTP response is provided.
    Unknown(String),
}


impl RetrieveDomainAuthCodeError {
    pub fn from_body(body: &str) -> RetrieveDomainAuthCodeError {
        match from_str::<SerdeJsonValue>(body) {
            Ok(json) => {
                let raw_error_type = json.get("__type")
                    .and_then(|e| e.as_str())
                    .unwrap_or("Unknown");
                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                let error_type = pieces.last().expect("Expected error type");

                match *error_type {
                    "InvalidInput" => {
                        RetrieveDomainAuthCodeError::InvalidInput(String::from(error_message))
                    }
                    "UnsupportedTLD" => {
                        RetrieveDomainAuthCodeError::UnsupportedTLD(String::from(error_message))
                    }
                    "ValidationException" => {
                        RetrieveDomainAuthCodeError::Validation(error_message.to_string())
                    }
                    _ => RetrieveDomainAuthCodeError::Unknown(String::from(body)),
                }
            }
            Err(_) => RetrieveDomainAuthCodeError::Unknown(String::from(body)),
        }
    }
}

impl From<serde_json::error::Error> for RetrieveDomainAuthCodeError {
    fn from(err: serde_json::error::Error) -> RetrieveDomainAuthCodeError {
        RetrieveDomainAuthCodeError::Unknown(err.description().to_string())
    }
}
impl From<CredentialsError> for RetrieveDomainAuthCodeError {
    fn from(err: CredentialsError) -> RetrieveDomainAuthCodeError {
        RetrieveDomainAuthCodeError::Credentials(err)
    }
}
impl From<HttpDispatchError> for RetrieveDomainAuthCodeError {
    fn from(err: HttpDispatchError) -> RetrieveDomainAuthCodeError {
        RetrieveDomainAuthCodeError::HttpDispatch(err)
    }
}
impl fmt::Display for RetrieveDomainAuthCodeError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.description())
    }
}
impl Error for RetrieveDomainAuthCodeError {
    fn description(&self) -> &str {
        match *self {
            RetrieveDomainAuthCodeError::InvalidInput(ref cause) => cause,
            RetrieveDomainAuthCodeError::UnsupportedTLD(ref cause) => cause,
            RetrieveDomainAuthCodeError::Validation(ref cause) => cause,
            RetrieveDomainAuthCodeError::Credentials(ref err) => err.description(),
            RetrieveDomainAuthCodeError::HttpDispatch(ref dispatch_error) => {
                dispatch_error.description()
            }
            RetrieveDomainAuthCodeError::Unknown(ref cause) => cause,
        }
    }
}
/// Errors returned by TransferDomain
#[derive(Debug, PartialEq)]
pub enum TransferDomainError {
    ///<p>The number of domains has exceeded the allowed threshold for the account.</p>
    DomainLimitExceeded(String),
    ///<p>The request is already in progress for the domain.</p>
    DuplicateRequest(String),
    ///<p>The requested item is not acceptable. For example, for an OperationId it may refer to the ID of an operation that is already completed. For a domain name, it may not be a valid domain name or belong to the requester account.</p>
    InvalidInput(String),
    ///<p>The number of operations or jobs running exceeded the allowed threshold for the account.</p>
    OperationLimitExceeded(String),
    ///<p>The top-level domain does not support this operation.</p>
    TLDRulesViolation(String),
    ///<p>Amazon Route 53 does not support this top-level domain.</p>
    UnsupportedTLD(String),
    /// An error occurred dispatching the HTTP request
    HttpDispatch(HttpDispatchError),
    /// An error was encountered with AWS credentials.
    Credentials(CredentialsError),
    /// A validation error occurred.  Details from AWS are provided.
    Validation(String),
    /// An unknown error occurred.  The raw HTTP response is provided.
    Unknown(String),
}


impl TransferDomainError {
    pub fn from_body(body: &str) -> TransferDomainError {
        match from_str::<SerdeJsonValue>(body) {
            Ok(json) => {
                let raw_error_type = json.get("__type")
                    .and_then(|e| e.as_str())
                    .unwrap_or("Unknown");
                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                let error_type = pieces.last().expect("Expected error type");

                match *error_type {
                    "DomainLimitExceeded" => {
                        TransferDomainError::DomainLimitExceeded(String::from(error_message))
                    }
                    "DuplicateRequest" => {
                        TransferDomainError::DuplicateRequest(String::from(error_message))
                    }
                    "InvalidInput" => {
                        TransferDomainError::InvalidInput(String::from(error_message))
                    }
                    "OperationLimitExceeded" => {
                        TransferDomainError::OperationLimitExceeded(String::from(error_message))
                    }
                    "TLDRulesViolation" => {
                        TransferDomainError::TLDRulesViolation(String::from(error_message))
                    }
                    "UnsupportedTLD" => {
                        TransferDomainError::UnsupportedTLD(String::from(error_message))
                    }
                    "ValidationException" => {
                        TransferDomainError::Validation(error_message.to_string())
                    }
                    _ => TransferDomainError::Unknown(String::from(body)),
                }
            }
            Err(_) => TransferDomainError::Unknown(String::from(body)),
        }
    }
}

impl From<serde_json::error::Error> for TransferDomainError {
    fn from(err: serde_json::error::Error) -> TransferDomainError {
        TransferDomainError::Unknown(err.description().to_string())
    }
}
impl From<CredentialsError> for TransferDomainError {
    fn from(err: CredentialsError) -> TransferDomainError {
        TransferDomainError::Credentials(err)
    }
}
impl From<HttpDispatchError> for TransferDomainError {
    fn from(err: HttpDispatchError) -> TransferDomainError {
        TransferDomainError::HttpDispatch(err)
    }
}
impl fmt::Display for TransferDomainError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.description())
    }
}
impl Error for TransferDomainError {
    fn description(&self) -> &str {
        match *self {
            TransferDomainError::DomainLimitExceeded(ref cause) => cause,
            TransferDomainError::DuplicateRequest(ref cause) => cause,
            TransferDomainError::InvalidInput(ref cause) => cause,
            TransferDomainError::OperationLimitExceeded(ref cause) => cause,
            TransferDomainError::TLDRulesViolation(ref cause) => cause,
            TransferDomainError::UnsupportedTLD(ref cause) => cause,
            TransferDomainError::Validation(ref cause) => cause,
            TransferDomainError::Credentials(ref err) => err.description(),
            TransferDomainError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
            TransferDomainError::Unknown(ref cause) => cause,
        }
    }
}
/// Errors returned by UpdateDomainContact
#[derive(Debug, PartialEq)]
pub enum UpdateDomainContactError {
    ///<p>The request is already in progress for the domain.</p>
    DuplicateRequest(String),
    ///<p>The requested item is not acceptable. For example, for an OperationId it may refer to the ID of an operation that is already completed. For a domain name, it may not be a valid domain name or belong to the requester account.</p>
    InvalidInput(String),
    ///<p>The number of operations or jobs running exceeded the allowed threshold for the account.</p>
    OperationLimitExceeded(String),
    ///<p>The top-level domain does not support this operation.</p>
    TLDRulesViolation(String),
    ///<p>Amazon Route 53 does not support this top-level domain.</p>
    UnsupportedTLD(String),
    /// An error occurred dispatching the HTTP request
    HttpDispatch(HttpDispatchError),
    /// An error was encountered with AWS credentials.
    Credentials(CredentialsError),
    /// A validation error occurred.  Details from AWS are provided.
    Validation(String),
    /// An unknown error occurred.  The raw HTTP response is provided.
    Unknown(String),
}


impl UpdateDomainContactError {
    pub fn from_body(body: &str) -> UpdateDomainContactError {
        match from_str::<SerdeJsonValue>(body) {
            Ok(json) => {
                let raw_error_type = json.get("__type")
                    .and_then(|e| e.as_str())
                    .unwrap_or("Unknown");
                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                let error_type = pieces.last().expect("Expected error type");

                match *error_type {
                    "DuplicateRequest" => {
                        UpdateDomainContactError::DuplicateRequest(String::from(error_message))
                    }
                    "InvalidInput" => {
                        UpdateDomainContactError::InvalidInput(String::from(error_message))
                    }
                    "OperationLimitExceeded" => UpdateDomainContactError::OperationLimitExceeded(String::from(error_message)),
                    "TLDRulesViolation" => {
                        UpdateDomainContactError::TLDRulesViolation(String::from(error_message))
                    }
                    "UnsupportedTLD" => {
                        UpdateDomainContactError::UnsupportedTLD(String::from(error_message))
                    }
                    "ValidationException" => {
                        UpdateDomainContactError::Validation(error_message.to_string())
                    }
                    _ => UpdateDomainContactError::Unknown(String::from(body)),
                }
            }
            Err(_) => UpdateDomainContactError::Unknown(String::from(body)),
        }
    }
}

impl From<serde_json::error::Error> for UpdateDomainContactError {
    fn from(err: serde_json::error::Error) -> UpdateDomainContactError {
        UpdateDomainContactError::Unknown(err.description().to_string())
    }
}
impl From<CredentialsError> for UpdateDomainContactError {
    fn from(err: CredentialsError) -> UpdateDomainContactError {
        UpdateDomainContactError::Credentials(err)
    }
}
impl From<HttpDispatchError> for UpdateDomainContactError {
    fn from(err: HttpDispatchError) -> UpdateDomainContactError {
        UpdateDomainContactError::HttpDispatch(err)
    }
}
impl fmt::Display for UpdateDomainContactError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.description())
    }
}
impl Error for UpdateDomainContactError {
    fn description(&self) -> &str {
        match *self {
            UpdateDomainContactError::DuplicateRequest(ref cause) => cause,
            UpdateDomainContactError::InvalidInput(ref cause) => cause,
            UpdateDomainContactError::OperationLimitExceeded(ref cause) => cause,
            UpdateDomainContactError::TLDRulesViolation(ref cause) => cause,
            UpdateDomainContactError::UnsupportedTLD(ref cause) => cause,
            UpdateDomainContactError::Validation(ref cause) => cause,
            UpdateDomainContactError::Credentials(ref err) => err.description(),
            UpdateDomainContactError::HttpDispatch(ref dispatch_error) => {
                dispatch_error.description()
            }
            UpdateDomainContactError::Unknown(ref cause) => cause,
        }
    }
}
/// Errors returned by UpdateDomainContactPrivacy
#[derive(Debug, PartialEq)]
pub enum UpdateDomainContactPrivacyError {
    ///<p>The request is already in progress for the domain.</p>
    DuplicateRequest(String),
    ///<p>The requested item is not acceptable. For example, for an OperationId it may refer to the ID of an operation that is already completed. For a domain name, it may not be a valid domain name or belong to the requester account.</p>
    InvalidInput(String),
    ///<p>The number of operations or jobs running exceeded the allowed threshold for the account.</p>
    OperationLimitExceeded(String),
    ///<p>The top-level domain does not support this operation.</p>
    TLDRulesViolation(String),
    ///<p>Amazon Route 53 does not support this top-level domain.</p>
    UnsupportedTLD(String),
    /// An error occurred dispatching the HTTP request
    HttpDispatch(HttpDispatchError),
    /// An error was encountered with AWS credentials.
    Credentials(CredentialsError),
    /// A validation error occurred.  Details from AWS are provided.
    Validation(String),
    /// An unknown error occurred.  The raw HTTP response is provided.
    Unknown(String),
}


impl UpdateDomainContactPrivacyError {
    pub fn from_body(body: &str) -> UpdateDomainContactPrivacyError {
        match from_str::<SerdeJsonValue>(body) {
            Ok(json) => {
                let raw_error_type = json.get("__type")
                    .and_then(|e| e.as_str())
                    .unwrap_or("Unknown");
                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                let error_type = pieces.last().expect("Expected error type");

                match *error_type {
                    "DuplicateRequest" => UpdateDomainContactPrivacyError::DuplicateRequest(String::from(error_message)),
                    "InvalidInput" => {
                        UpdateDomainContactPrivacyError::InvalidInput(String::from(error_message))
                    }
                    "OperationLimitExceeded" => UpdateDomainContactPrivacyError::OperationLimitExceeded(String::from(error_message)),
                    "TLDRulesViolation" => UpdateDomainContactPrivacyError::TLDRulesViolation(String::from(error_message)),
                    "UnsupportedTLD" => {
                        UpdateDomainContactPrivacyError::UnsupportedTLD(String::from(error_message))
                    }
                    "ValidationException" => {
                        UpdateDomainContactPrivacyError::Validation(error_message.to_string())
                    }
                    _ => UpdateDomainContactPrivacyError::Unknown(String::from(body)),
                }
            }
            Err(_) => UpdateDomainContactPrivacyError::Unknown(String::from(body)),
        }
    }
}

impl From<serde_json::error::Error> for UpdateDomainContactPrivacyError {
    fn from(err: serde_json::error::Error) -> UpdateDomainContactPrivacyError {
        UpdateDomainContactPrivacyError::Unknown(err.description().to_string())
    }
}
impl From<CredentialsError> for UpdateDomainContactPrivacyError {
    fn from(err: CredentialsError) -> UpdateDomainContactPrivacyError {
        UpdateDomainContactPrivacyError::Credentials(err)
    }
}
impl From<HttpDispatchError> for UpdateDomainContactPrivacyError {
    fn from(err: HttpDispatchError) -> UpdateDomainContactPrivacyError {
        UpdateDomainContactPrivacyError::HttpDispatch(err)
    }
}
impl fmt::Display for UpdateDomainContactPrivacyError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.description())
    }
}
impl Error for UpdateDomainContactPrivacyError {
    fn description(&self) -> &str {
        match *self {
            UpdateDomainContactPrivacyError::DuplicateRequest(ref cause) => cause,
            UpdateDomainContactPrivacyError::InvalidInput(ref cause) => cause,
            UpdateDomainContactPrivacyError::OperationLimitExceeded(ref cause) => cause,
            UpdateDomainContactPrivacyError::TLDRulesViolation(ref cause) => cause,
            UpdateDomainContactPrivacyError::UnsupportedTLD(ref cause) => cause,
            UpdateDomainContactPrivacyError::Validation(ref cause) => cause,
            UpdateDomainContactPrivacyError::Credentials(ref err) => err.description(),
            UpdateDomainContactPrivacyError::HttpDispatch(ref dispatch_error) => {
                dispatch_error.description()
            }
            UpdateDomainContactPrivacyError::Unknown(ref cause) => cause,
        }
    }
}
/// Errors returned by UpdateDomainNameservers
#[derive(Debug, PartialEq)]
pub enum UpdateDomainNameserversError {
    ///<p>The request is already in progress for the domain.</p>
    DuplicateRequest(String),
    ///<p>The requested item is not acceptable. For example, for an OperationId it may refer to the ID of an operation that is already completed. For a domain name, it may not be a valid domain name or belong to the requester account.</p>
    InvalidInput(String),
    ///<p>The number of operations or jobs running exceeded the allowed threshold for the account.</p>
    OperationLimitExceeded(String),
    ///<p>The top-level domain does not support this operation.</p>
    TLDRulesViolation(String),
    ///<p>Amazon Route 53 does not support this top-level domain.</p>
    UnsupportedTLD(String),
    /// An error occurred dispatching the HTTP request
    HttpDispatch(HttpDispatchError),
    /// An error was encountered with AWS credentials.
    Credentials(CredentialsError),
    /// A validation error occurred.  Details from AWS are provided.
    Validation(String),
    /// An unknown error occurred.  The raw HTTP response is provided.
    Unknown(String),
}


impl UpdateDomainNameserversError {
    pub fn from_body(body: &str) -> UpdateDomainNameserversError {
        match from_str::<SerdeJsonValue>(body) {
            Ok(json) => {
                let raw_error_type = json.get("__type")
                    .and_then(|e| e.as_str())
                    .unwrap_or("Unknown");
                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                let error_type = pieces.last().expect("Expected error type");

                match *error_type {
                    "DuplicateRequest" => {
                        UpdateDomainNameserversError::DuplicateRequest(String::from(error_message))
                    }
                    "InvalidInput" => {
                        UpdateDomainNameserversError::InvalidInput(String::from(error_message))
                    }
                    "OperationLimitExceeded" => UpdateDomainNameserversError::OperationLimitExceeded(String::from(error_message)),
                    "TLDRulesViolation" => {
                        UpdateDomainNameserversError::TLDRulesViolation(String::from(error_message))
                    }
                    "UnsupportedTLD" => {
                        UpdateDomainNameserversError::UnsupportedTLD(String::from(error_message))
                    }
                    "ValidationException" => {
                        UpdateDomainNameserversError::Validation(error_message.to_string())
                    }
                    _ => UpdateDomainNameserversError::Unknown(String::from(body)),
                }
            }
            Err(_) => UpdateDomainNameserversError::Unknown(String::from(body)),
        }
    }
}

impl From<serde_json::error::Error> for UpdateDomainNameserversError {
    fn from(err: serde_json::error::Error) -> UpdateDomainNameserversError {
        UpdateDomainNameserversError::Unknown(err.description().to_string())
    }
}
impl From<CredentialsError> for UpdateDomainNameserversError {
    fn from(err: CredentialsError) -> UpdateDomainNameserversError {
        UpdateDomainNameserversError::Credentials(err)
    }
}
impl From<HttpDispatchError> for UpdateDomainNameserversError {
    fn from(err: HttpDispatchError) -> UpdateDomainNameserversError {
        UpdateDomainNameserversError::HttpDispatch(err)
    }
}
impl fmt::Display for UpdateDomainNameserversError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.description())
    }
}
impl Error for UpdateDomainNameserversError {
    fn description(&self) -> &str {
        match *self {
            UpdateDomainNameserversError::DuplicateRequest(ref cause) => cause,
            UpdateDomainNameserversError::InvalidInput(ref cause) => cause,
            UpdateDomainNameserversError::OperationLimitExceeded(ref cause) => cause,
            UpdateDomainNameserversError::TLDRulesViolation(ref cause) => cause,
            UpdateDomainNameserversError::UnsupportedTLD(ref cause) => cause,
            UpdateDomainNameserversError::Validation(ref cause) => cause,
            UpdateDomainNameserversError::Credentials(ref err) => err.description(),
            UpdateDomainNameserversError::HttpDispatch(ref dispatch_error) => {
                dispatch_error.description()
            }
            UpdateDomainNameserversError::Unknown(ref cause) => cause,
        }
    }
}
/// Errors returned by UpdateTagsForDomain
#[derive(Debug, PartialEq)]
pub enum UpdateTagsForDomainError {
    ///<p>The requested item is not acceptable. For example, for an OperationId it may refer to the ID of an operation that is already completed. For a domain name, it may not be a valid domain name or belong to the requester account.</p>
    InvalidInput(String),
    ///<p>The number of operations or jobs running exceeded the allowed threshold for the account.</p>
    OperationLimitExceeded(String),
    ///<p>Amazon Route 53 does not support this top-level domain.</p>
    UnsupportedTLD(String),
    /// An error occurred dispatching the HTTP request
    HttpDispatch(HttpDispatchError),
    /// An error was encountered with AWS credentials.
    Credentials(CredentialsError),
    /// A validation error occurred.  Details from AWS are provided.
    Validation(String),
    /// An unknown error occurred.  The raw HTTP response is provided.
    Unknown(String),
}


impl UpdateTagsForDomainError {
    pub fn from_body(body: &str) -> UpdateTagsForDomainError {
        match from_str::<SerdeJsonValue>(body) {
            Ok(json) => {
                let raw_error_type = json.get("__type")
                    .and_then(|e| e.as_str())
                    .unwrap_or("Unknown");
                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                let error_type = pieces.last().expect("Expected error type");

                match *error_type {
                    "InvalidInput" => {
                        UpdateTagsForDomainError::InvalidInput(String::from(error_message))
                    }
                    "OperationLimitExceeded" => UpdateTagsForDomainError::OperationLimitExceeded(String::from(error_message)),
                    "UnsupportedTLD" => {
                        UpdateTagsForDomainError::UnsupportedTLD(String::from(error_message))
                    }
                    "ValidationException" => {
                        UpdateTagsForDomainError::Validation(error_message.to_string())
                    }
                    _ => UpdateTagsForDomainError::Unknown(String::from(body)),
                }
            }
            Err(_) => UpdateTagsForDomainError::Unknown(String::from(body)),
        }
    }
}

impl From<serde_json::error::Error> for UpdateTagsForDomainError {
    fn from(err: serde_json::error::Error) -> UpdateTagsForDomainError {
        UpdateTagsForDomainError::Unknown(err.description().to_string())
    }
}
impl From<CredentialsError> for UpdateTagsForDomainError {
    fn from(err: CredentialsError) -> UpdateTagsForDomainError {
        UpdateTagsForDomainError::Credentials(err)
    }
}
impl From<HttpDispatchError> for UpdateTagsForDomainError {
    fn from(err: HttpDispatchError) -> UpdateTagsForDomainError {
        UpdateTagsForDomainError::HttpDispatch(err)
    }
}
impl fmt::Display for UpdateTagsForDomainError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.description())
    }
}
impl Error for UpdateTagsForDomainError {
    fn description(&self) -> &str {
        match *self {
            UpdateTagsForDomainError::InvalidInput(ref cause) => cause,
            UpdateTagsForDomainError::OperationLimitExceeded(ref cause) => cause,
            UpdateTagsForDomainError::UnsupportedTLD(ref cause) => cause,
            UpdateTagsForDomainError::Validation(ref cause) => cause,
            UpdateTagsForDomainError::Credentials(ref err) => err.description(),
            UpdateTagsForDomainError::HttpDispatch(ref dispatch_error) => {
                dispatch_error.description()
            }
            UpdateTagsForDomainError::Unknown(ref cause) => cause,
        }
    }
}
/// Errors returned by ViewBilling
#[derive(Debug, PartialEq)]
pub enum ViewBillingError {
    ///<p>The requested item is not acceptable. For example, for an OperationId it may refer to the ID of an operation that is already completed. For a domain name, it may not be a valid domain name or belong to the requester account.</p>
    InvalidInput(String),
    /// An error occurred dispatching the HTTP request
    HttpDispatch(HttpDispatchError),
    /// An error was encountered with AWS credentials.
    Credentials(CredentialsError),
    /// A validation error occurred.  Details from AWS are provided.
    Validation(String),
    /// An unknown error occurred.  The raw HTTP response is provided.
    Unknown(String),
}


impl ViewBillingError {
    pub fn from_body(body: &str) -> ViewBillingError {
        match from_str::<SerdeJsonValue>(body) {
            Ok(json) => {
                let raw_error_type = json.get("__type")
                    .and_then(|e| e.as_str())
                    .unwrap_or("Unknown");
                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                let error_type = pieces.last().expect("Expected error type");

                match *error_type {
                    "InvalidInput" => ViewBillingError::InvalidInput(String::from(error_message)),
                    "ValidationException" => {
                        ViewBillingError::Validation(error_message.to_string())
                    }
                    _ => ViewBillingError::Unknown(String::from(body)),
                }
            }
            Err(_) => ViewBillingError::Unknown(String::from(body)),
        }
    }
}

impl From<serde_json::error::Error> for ViewBillingError {
    fn from(err: serde_json::error::Error) -> ViewBillingError {
        ViewBillingError::Unknown(err.description().to_string())
    }
}
impl From<CredentialsError> for ViewBillingError {
    fn from(err: CredentialsError) -> ViewBillingError {
        ViewBillingError::Credentials(err)
    }
}
impl From<HttpDispatchError> for ViewBillingError {
    fn from(err: HttpDispatchError) -> ViewBillingError {
        ViewBillingError::HttpDispatch(err)
    }
}
impl fmt::Display for ViewBillingError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.description())
    }
}
impl Error for ViewBillingError {
    fn description(&self) -> &str {
        match *self {
            ViewBillingError::InvalidInput(ref cause) => cause,
            ViewBillingError::Validation(ref cause) => cause,
            ViewBillingError::Credentials(ref err) => err.description(),
            ViewBillingError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
            ViewBillingError::Unknown(ref cause) => cause,
        }
    }
}
/// Trait representing the capabilities of the Amazon Route 53 Domains API. Amazon Route 53 Domains clients implement this trait.
pub trait Route53Domains {
    #[doc="<p>This operation checks the availability of one domain name. Note that if the availability status of a domain is pending, you must submit another request to determine the availability of the domain name.</p>"]
    fn check_domain_availability
        (&self,
         input: &CheckDomainAvailabilityRequest)
         -> Result<CheckDomainAvailabilityResponse, CheckDomainAvailabilityError>;


    #[doc="<p>This operation deletes the specified tags for a domain.</p> <p>All tag operations are eventually consistent; subsequent operations may not immediately represent all issued operations.</p>"]
    fn delete_tags_for_domain(&self,
                              input: &DeleteTagsForDomainRequest)
                              -> Result<DeleteTagsForDomainResponse, DeleteTagsForDomainError>;


    #[doc="<p>This operation disables automatic renewal of domain registration for the specified domain.</p>"]
    fn disable_domain_auto_renew
        (&self,
         input: &DisableDomainAutoRenewRequest)
         -> Result<DisableDomainAutoRenewResponse, DisableDomainAutoRenewError>;


    #[doc="<p>This operation removes the transfer lock on the domain (specifically the <code>clientTransferProhibited</code> status) to allow domain transfers. We recommend you refrain from performing this action unless you intend to transfer the domain to a different registrar. Successful submission returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.</p>"]
    fn disable_domain_transfer_lock
        (&self,
         input: &DisableDomainTransferLockRequest)
         -> Result<DisableDomainTransferLockResponse, DisableDomainTransferLockError>;


    #[doc="<p>This operation configures Amazon Route 53 to automatically renew the specified domain before the domain registration expires. The cost of renewing your domain registration is billed to your AWS account.</p> <p>The period during which you can renew a domain name varies by TLD. For a list of TLDs and their renewal policies, see <a href=\"http://wiki.gandi.net/en/domains/renew#renewal_restoration_and_deletion_times\">\"Renewal, restoration, and deletion times\"</a> on the website for our registrar partner, Gandi. Route 53 requires that you renew before the end of the renewal period that is listed on the Gandi website so we can complete processing before the deadline.</p>"]
    fn enable_domain_auto_renew
        (&self,
         input: &EnableDomainAutoRenewRequest)
         -> Result<EnableDomainAutoRenewResponse, EnableDomainAutoRenewError>;


    #[doc="<p>This operation sets the transfer lock on the domain (specifically the <code>clientTransferProhibited</code> status) to prevent domain transfers. Successful submission returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.</p>"]
    fn enable_domain_transfer_lock
        (&self,
         input: &EnableDomainTransferLockRequest)
         -> Result<EnableDomainTransferLockResponse, EnableDomainTransferLockError>;


    #[doc="<p>For operations that require confirmation that the email address for the registrant contact is valid, such as registering a new domain, this operation returns information about whether the registrant contact has responded.</p> <p>If you want us to resend the email, use the <code>ResendContactReachabilityEmail</code> operation.</p>"]
    fn get_contact_reachability_status
        (&self,
         input: &GetContactReachabilityStatusRequest)
         -> Result<GetContactReachabilityStatusResponse, GetContactReachabilityStatusError>;


    #[doc="<p>This operation returns detailed information about a specified domain that is associated with the current AWS account. Contact information for the domain is also returned as part of the output.</p>"]
    fn get_domain_detail(&self,
                         input: &GetDomainDetailRequest)
                         -> Result<GetDomainDetailResponse, GetDomainDetailError>;


    #[doc="<p>The GetDomainSuggestions operation returns a list of suggested domain names given a string, which can either be a domain name or simply a word or phrase (without spaces).</p>"]
    fn get_domain_suggestions
        (&self,
         input: &GetDomainSuggestionsRequest)
         -> Result<GetDomainSuggestionsResponse, GetDomainSuggestionsError>;


    #[doc="<p>This operation returns the current status of an operation that is not completed.</p>"]
    fn get_operation_detail(&self,
                            input: &GetOperationDetailRequest)
                            -> Result<GetOperationDetailResponse, GetOperationDetailError>;


    #[doc="<p>This operation returns all the domain names registered with Amazon Route 53 for the current AWS account.</p>"]
    fn list_domains(&self,
                    input: &ListDomainsRequest)
                    -> Result<ListDomainsResponse, ListDomainsError>;


    #[doc="<p>This operation returns the operation IDs of operations that are not yet complete.</p>"]
    fn list_operations(&self,
                       input: &ListOperationsRequest)
                       -> Result<ListOperationsResponse, ListOperationsError>;


    #[doc="<p>This operation returns all of the tags that are associated with the specified domain.</p> <p>All tag operations are eventually consistent; subsequent operations may not immediately represent all issued operations.</p>"]
    fn list_tags_for_domain(&self,
                            input: &ListTagsForDomainRequest)
                            -> Result<ListTagsForDomainResponse, ListTagsForDomainError>;


    #[doc="<p>This operation registers a domain. Domains are registered by the AWS registrar partner, Gandi. For some top-level domains (TLDs), this operation requires extra parameters.</p> <p>When you register a domain, Amazon Route 53 does the following:</p> <ul> <li> <p>Creates a Amazon Route 53 hosted zone that has the same name as the domain. Amazon Route 53 assigns four name servers to your hosted zone and automatically updates your domain registration with the names of these name servers.</p> </li> <li> <p>Enables autorenew, so your domain registration will renew automatically each year. We'll notify you in advance of the renewal date so you can choose whether to renew the registration.</p> </li> <li> <p>Optionally enables privacy protection, so WHOIS queries return contact information for our registrar partner, Gandi, instead of the information you entered for registrant, admin, and tech contacts.</p> </li> <li> <p>If registration is successful, returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant is notified by email.</p> </li> <li> <p>Charges your AWS account an amount based on the top-level domain. For more information, see <a href=\"http://aws.amazon.com/route53/pricing/\">Amazon Route 53 Pricing</a>.</p> </li> </ul>"]
    fn register_domain(&self,
                       input: &RegisterDomainRequest)
                       -> Result<RegisterDomainResponse, RegisterDomainError>;


    #[doc="<p>This operation renews a domain for the specified number of years. The cost of renewing your domain is billed to your AWS account.</p> <p>We recommend that you renew your domain several weeks before the expiration date. Some TLD registries delete domains before the expiration date if you haven't renewed far enough in advance. For more information about renewing domain registration, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-renew.html\">Renewing Registration for a Domain</a> in the Amazon Route 53 Developer Guide.</p>"]
    fn renew_domain(&self,
                    input: &RenewDomainRequest)
                    -> Result<RenewDomainResponse, RenewDomainError>;


    #[doc="<p>For operations that require confirmation that the email address for the registrant contact is valid, such as registering a new domain, this operation resends the confirmation email to the current email address for the registrant contact.</p>"]
    fn resend_contact_reachability_email
        (&self,
         input: &ResendContactReachabilityEmailRequest)
         -> Result<ResendContactReachabilityEmailResponse, ResendContactReachabilityEmailError>;


    #[doc="<p>This operation returns the AuthCode for the domain. To transfer a domain to another registrar, you provide this value to the new registrar.</p>"]
    fn retrieve_domain_auth_code
        (&self,
         input: &RetrieveDomainAuthCodeRequest)
         -> Result<RetrieveDomainAuthCodeResponse, RetrieveDomainAuthCodeError>;


    #[doc="<p>This operation transfers a domain from another registrar to Amazon Route 53. When the transfer is complete, the domain is registered with the AWS registrar partner, Gandi.</p> <p>For transfer requirements, a detailed procedure, and information about viewing the status of a domain transfer, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-transfer-to-route-53.html\">Transferring Registration for a Domain to Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> <p>If the registrar for your domain is also the DNS service provider for the domain, we highly recommend that you consider transferring your DNS service to Amazon Route 53 or to another DNS service provider before you transfer your registration. Some registrars provide free DNS service when you purchase a domain registration. When you transfer the registration, the previous registrar will not renew your domain registration and could end your DNS service at any time.</p> <important> <p>If the registrar for your domain is also the DNS service provider for the domain and you don't transfer DNS service to another provider, your website, email, and the web applications associated with the domain might become unavailable.</p> </important> <p>If the transfer is successful, this method returns an operation ID that you can use to track the progress and completion of the action. If the transfer doesn't complete successfully, the domain registrant will be notified by email.</p>"]
    fn transfer_domain(&self,
                       input: &TransferDomainRequest)
                       -> Result<TransferDomainResponse, TransferDomainError>;


    #[doc="<p>This operation updates the contact information for a particular domain. Information for at least one contact (registrant, administrator, or technical) must be supplied for update.</p> <p>If the update is successful, this method returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.</p>"]
    fn update_domain_contact(&self,
                             input: &UpdateDomainContactRequest)
                             -> Result<UpdateDomainContactResponse, UpdateDomainContactError>;


    #[doc="<p>This operation updates the specified domain contact's privacy setting. When the privacy option is enabled, personal information such as postal or email address is hidden from the results of a public WHOIS query. The privacy services are provided by the AWS registrar, Gandi. For more information, see the <a href=\"http://www.gandi.net/domain/whois/?currency=USD&amp;amp;lang=en\">Gandi privacy features</a>.</p> <p>This operation only affects the privacy of the specified contact type (registrant, administrator, or tech). Successful acceptance returns an operation ID that you can use with <a>GetOperationDetail</a> to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.</p>"]
    fn update_domain_contact_privacy
        (&self,
         input: &UpdateDomainContactPrivacyRequest)
         -> Result<UpdateDomainContactPrivacyResponse, UpdateDomainContactPrivacyError>;


    #[doc="<p>This operation replaces the current set of name servers for the domain with the specified set of name servers. If you use Amazon Route 53 as your DNS service, specify the four name servers in the delegation set for the hosted zone for the domain.</p> <p>If successful, this operation returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.</p>"]
    fn update_domain_nameservers
        (&self,
         input: &UpdateDomainNameserversRequest)
         -> Result<UpdateDomainNameserversResponse, UpdateDomainNameserversError>;


    #[doc="<p>This operation adds or updates tags for a specified domain.</p> <p>All tag operations are eventually consistent; subsequent operations may not immediately represent all issued operations.</p>"]
    fn update_tags_for_domain(&self,
                              input: &UpdateTagsForDomainRequest)
                              -> Result<UpdateTagsForDomainResponse, UpdateTagsForDomainError>;


    #[doc="<p>Returns all the domain-related billing records for the current AWS account for a specified period</p>"]
    fn view_billing(&self,
                    input: &ViewBillingRequest)
                    -> Result<ViewBillingResponse, ViewBillingError>;
}
/// A client for the Amazon Route 53 Domains API.
pub struct Route53DomainsClient<P, D>
    where P: ProvideAwsCredentials,
          D: DispatchSignedRequest
{
    credentials_provider: P,
    region: region::Region,
    dispatcher: D,
}

impl<P, D> Route53DomainsClient<P, D>
    where P: ProvideAwsCredentials,
          D: DispatchSignedRequest
{
    pub fn new(request_dispatcher: D, credentials_provider: P, region: region::Region) -> Self {
        Route53DomainsClient {
            credentials_provider: credentials_provider,
            region: region,
            dispatcher: request_dispatcher,
        }
    }
}

impl<P, D> Route53Domains for Route53DomainsClient<P, D>
    where P: ProvideAwsCredentials,
          D: DispatchSignedRequest
{
    #[doc="<p>This operation checks the availability of one domain name. Note that if the availability status of a domain is pending, you must submit another request to determine the availability of the domain name.</p>"]
    fn check_domain_availability
        (&self,
         input: &CheckDomainAvailabilityRequest)
         -> Result<CheckDomainAvailabilityResponse, CheckDomainAvailabilityError> {
        let mut request = SignedRequest::new("POST", "route53domains", self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target",
                           "Route53Domains_v20140515.CheckDomainAvailability");
        let encoded = serde_json::to_string(input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        request.sign(&try!(self.credentials_provider.credentials()));

        let response = try!(self.dispatcher.dispatch(&request));

        match response.status {
            StatusCode::Ok => {
                            Ok(serde_json::from_str::<CheckDomainAvailabilityResponse>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
            _ => Err(CheckDomainAvailabilityError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
        }
    }


    #[doc="<p>This operation deletes the specified tags for a domain.</p> <p>All tag operations are eventually consistent; subsequent operations may not immediately represent all issued operations.</p>"]
    fn delete_tags_for_domain(&self,
                              input: &DeleteTagsForDomainRequest)
                              -> Result<DeleteTagsForDomainResponse, DeleteTagsForDomainError> {
        let mut request = SignedRequest::new("POST", "route53domains", self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target",
                           "Route53Domains_v20140515.DeleteTagsForDomain");
        let encoded = serde_json::to_string(input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        request.sign(&try!(self.credentials_provider.credentials()));

        let response = try!(self.dispatcher.dispatch(&request));

        match response.status {
            StatusCode::Ok => {
                            Ok(serde_json::from_str::<DeleteTagsForDomainResponse>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
            _ => {
                Err(DeleteTagsForDomainError::from_body(String::from_utf8_lossy(&response.body)
                                                            .as_ref()))
            }
        }
    }


    #[doc="<p>This operation disables automatic renewal of domain registration for the specified domain.</p>"]
    fn disable_domain_auto_renew
        (&self,
         input: &DisableDomainAutoRenewRequest)
         -> Result<DisableDomainAutoRenewResponse, DisableDomainAutoRenewError> {
        let mut request = SignedRequest::new("POST", "route53domains", self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target",
                           "Route53Domains_v20140515.DisableDomainAutoRenew");
        let encoded = serde_json::to_string(input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        request.sign(&try!(self.credentials_provider.credentials()));

        let response = try!(self.dispatcher.dispatch(&request));

        match response.status {
            StatusCode::Ok => {
                            Ok(serde_json::from_str::<DisableDomainAutoRenewResponse>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
            _ => {
                Err(DisableDomainAutoRenewError::from_body(String::from_utf8_lossy(&response.body)
                                                               .as_ref()))
            }
        }
    }


    #[doc="<p>This operation removes the transfer lock on the domain (specifically the <code>clientTransferProhibited</code> status) to allow domain transfers. We recommend you refrain from performing this action unless you intend to transfer the domain to a different registrar. Successful submission returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.</p>"]
    fn disable_domain_transfer_lock
        (&self,
         input: &DisableDomainTransferLockRequest)
         -> Result<DisableDomainTransferLockResponse, DisableDomainTransferLockError> {
        let mut request = SignedRequest::new("POST", "route53domains", self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target",
                           "Route53Domains_v20140515.DisableDomainTransferLock");
        let encoded = serde_json::to_string(input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        request.sign(&try!(self.credentials_provider.credentials()));

        let response = try!(self.dispatcher.dispatch(&request));

        match response.status {
            StatusCode::Ok => {
                            Ok(serde_json::from_str::<DisableDomainTransferLockResponse>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
            _ => Err(DisableDomainTransferLockError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
        }
    }


    #[doc="<p>This operation configures Amazon Route 53 to automatically renew the specified domain before the domain registration expires. The cost of renewing your domain registration is billed to your AWS account.</p> <p>The period during which you can renew a domain name varies by TLD. For a list of TLDs and their renewal policies, see <a href=\"http://wiki.gandi.net/en/domains/renew#renewal_restoration_and_deletion_times\">\"Renewal, restoration, and deletion times\"</a> on the website for our registrar partner, Gandi. Route 53 requires that you renew before the end of the renewal period that is listed on the Gandi website so we can complete processing before the deadline.</p>"]
    fn enable_domain_auto_renew
        (&self,
         input: &EnableDomainAutoRenewRequest)
         -> Result<EnableDomainAutoRenewResponse, EnableDomainAutoRenewError> {
        let mut request = SignedRequest::new("POST", "route53domains", self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target",
                           "Route53Domains_v20140515.EnableDomainAutoRenew");
        let encoded = serde_json::to_string(input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        request.sign(&try!(self.credentials_provider.credentials()));

        let response = try!(self.dispatcher.dispatch(&request));

        match response.status {
            StatusCode::Ok => {
                            Ok(serde_json::from_str::<EnableDomainAutoRenewResponse>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
            _ => {
                Err(EnableDomainAutoRenewError::from_body(String::from_utf8_lossy(&response.body)
                                                              .as_ref()))
            }
        }
    }


    #[doc="<p>This operation sets the transfer lock on the domain (specifically the <code>clientTransferProhibited</code> status) to prevent domain transfers. Successful submission returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.</p>"]
    fn enable_domain_transfer_lock
        (&self,
         input: &EnableDomainTransferLockRequest)
         -> Result<EnableDomainTransferLockResponse, EnableDomainTransferLockError> {
        let mut request = SignedRequest::new("POST", "route53domains", self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target",
                           "Route53Domains_v20140515.EnableDomainTransferLock");
        let encoded = serde_json::to_string(input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        request.sign(&try!(self.credentials_provider.credentials()));

        let response = try!(self.dispatcher.dispatch(&request));

        match response.status {
            StatusCode::Ok => {
                            Ok(serde_json::from_str::<EnableDomainTransferLockResponse>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
            _ => Err(EnableDomainTransferLockError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
        }
    }


    #[doc="<p>For operations that require confirmation that the email address for the registrant contact is valid, such as registering a new domain, this operation returns information about whether the registrant contact has responded.</p> <p>If you want us to resend the email, use the <code>ResendContactReachabilityEmail</code> operation.</p>"]
    fn get_contact_reachability_status
        (&self,
         input: &GetContactReachabilityStatusRequest)
         -> Result<GetContactReachabilityStatusResponse, GetContactReachabilityStatusError> {
        let mut request = SignedRequest::new("POST", "route53domains", self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target",
                           "Route53Domains_v20140515.GetContactReachabilityStatus");
        let encoded = serde_json::to_string(input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        request.sign(&try!(self.credentials_provider.credentials()));

        let response = try!(self.dispatcher.dispatch(&request));

        match response.status {
            StatusCode::Ok => {
                            Ok(serde_json::from_str::<GetContactReachabilityStatusResponse>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
            _ => Err(GetContactReachabilityStatusError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
        }
    }


    #[doc="<p>This operation returns detailed information about a specified domain that is associated with the current AWS account. Contact information for the domain is also returned as part of the output.</p>"]
    fn get_domain_detail(&self,
                         input: &GetDomainDetailRequest)
                         -> Result<GetDomainDetailResponse, GetDomainDetailError> {
        let mut request = SignedRequest::new("POST", "route53domains", self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target", "Route53Domains_v20140515.GetDomainDetail");
        let encoded = serde_json::to_string(input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        request.sign(&try!(self.credentials_provider.credentials()));

        let response = try!(self.dispatcher.dispatch(&request));

        match response.status {
            StatusCode::Ok => {
                            Ok(serde_json::from_str::<GetDomainDetailResponse>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
            _ => {
                Err(GetDomainDetailError::from_body(String::from_utf8_lossy(&response.body)
                                                        .as_ref()))
            }
        }
    }


    #[doc="<p>The GetDomainSuggestions operation returns a list of suggested domain names given a string, which can either be a domain name or simply a word or phrase (without spaces).</p>"]
    fn get_domain_suggestions
        (&self,
         input: &GetDomainSuggestionsRequest)
         -> Result<GetDomainSuggestionsResponse, GetDomainSuggestionsError> {
        let mut request = SignedRequest::new("POST", "route53domains", self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target",
                           "Route53Domains_v20140515.GetDomainSuggestions");
        let encoded = serde_json::to_string(input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        request.sign(&try!(self.credentials_provider.credentials()));

        let response = try!(self.dispatcher.dispatch(&request));

        match response.status {
            StatusCode::Ok => {
                            Ok(serde_json::from_str::<GetDomainSuggestionsResponse>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
            _ => {
                Err(GetDomainSuggestionsError::from_body(String::from_utf8_lossy(&response.body)
                                                             .as_ref()))
            }
        }
    }


    #[doc="<p>This operation returns the current status of an operation that is not completed.</p>"]
    fn get_operation_detail(&self,
                            input: &GetOperationDetailRequest)
                            -> Result<GetOperationDetailResponse, GetOperationDetailError> {
        let mut request = SignedRequest::new("POST", "route53domains", self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target",
                           "Route53Domains_v20140515.GetOperationDetail");
        let encoded = serde_json::to_string(input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        request.sign(&try!(self.credentials_provider.credentials()));

        let response = try!(self.dispatcher.dispatch(&request));

        match response.status {
            StatusCode::Ok => {
                            Ok(serde_json::from_str::<GetOperationDetailResponse>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
            _ => {
                Err(GetOperationDetailError::from_body(String::from_utf8_lossy(&response.body)
                                                           .as_ref()))
            }
        }
    }


    #[doc="<p>This operation returns all the domain names registered with Amazon Route 53 for the current AWS account.</p>"]
    fn list_domains(&self,
                    input: &ListDomainsRequest)
                    -> Result<ListDomainsResponse, ListDomainsError> {
        let mut request = SignedRequest::new("POST", "route53domains", self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target", "Route53Domains_v20140515.ListDomains");
        let encoded = serde_json::to_string(input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        request.sign(&try!(self.credentials_provider.credentials()));

        let response = try!(self.dispatcher.dispatch(&request));

        match response.status {
            StatusCode::Ok => {
                            Ok(serde_json::from_str::<ListDomainsResponse>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
            _ => Err(ListDomainsError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
        }
    }


    #[doc="<p>This operation returns the operation IDs of operations that are not yet complete.</p>"]
    fn list_operations(&self,
                       input: &ListOperationsRequest)
                       -> Result<ListOperationsResponse, ListOperationsError> {
        let mut request = SignedRequest::new("POST", "route53domains", self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target", "Route53Domains_v20140515.ListOperations");
        let encoded = serde_json::to_string(input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        request.sign(&try!(self.credentials_provider.credentials()));

        let response = try!(self.dispatcher.dispatch(&request));

        match response.status {
            StatusCode::Ok => {
                            Ok(serde_json::from_str::<ListOperationsResponse>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
            _ => {
                Err(ListOperationsError::from_body(String::from_utf8_lossy(&response.body)
                                                       .as_ref()))
            }
        }
    }


    #[doc="<p>This operation returns all of the tags that are associated with the specified domain.</p> <p>All tag operations are eventually consistent; subsequent operations may not immediately represent all issued operations.</p>"]
    fn list_tags_for_domain(&self,
                            input: &ListTagsForDomainRequest)
                            -> Result<ListTagsForDomainResponse, ListTagsForDomainError> {
        let mut request = SignedRequest::new("POST", "route53domains", self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target", "Route53Domains_v20140515.ListTagsForDomain");
        let encoded = serde_json::to_string(input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        request.sign(&try!(self.credentials_provider.credentials()));

        let response = try!(self.dispatcher.dispatch(&request));

        match response.status {
            StatusCode::Ok => {
                            Ok(serde_json::from_str::<ListTagsForDomainResponse>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
            _ => {
                Err(ListTagsForDomainError::from_body(String::from_utf8_lossy(&response.body)
                                                          .as_ref()))
            }
        }
    }


    #[doc="<p>This operation registers a domain. Domains are registered by the AWS registrar partner, Gandi. For some top-level domains (TLDs), this operation requires extra parameters.</p> <p>When you register a domain, Amazon Route 53 does the following:</p> <ul> <li> <p>Creates a Amazon Route 53 hosted zone that has the same name as the domain. Amazon Route 53 assigns four name servers to your hosted zone and automatically updates your domain registration with the names of these name servers.</p> </li> <li> <p>Enables autorenew, so your domain registration will renew automatically each year. We'll notify you in advance of the renewal date so you can choose whether to renew the registration.</p> </li> <li> <p>Optionally enables privacy protection, so WHOIS queries return contact information for our registrar partner, Gandi, instead of the information you entered for registrant, admin, and tech contacts.</p> </li> <li> <p>If registration is successful, returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant is notified by email.</p> </li> <li> <p>Charges your AWS account an amount based on the top-level domain. For more information, see <a href=\"http://aws.amazon.com/route53/pricing/\">Amazon Route 53 Pricing</a>.</p> </li> </ul>"]
    fn register_domain(&self,
                       input: &RegisterDomainRequest)
                       -> Result<RegisterDomainResponse, RegisterDomainError> {
        let mut request = SignedRequest::new("POST", "route53domains", self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target", "Route53Domains_v20140515.RegisterDomain");
        let encoded = serde_json::to_string(input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        request.sign(&try!(self.credentials_provider.credentials()));

        let response = try!(self.dispatcher.dispatch(&request));

        match response.status {
            StatusCode::Ok => {
                            Ok(serde_json::from_str::<RegisterDomainResponse>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
            _ => {
                Err(RegisterDomainError::from_body(String::from_utf8_lossy(&response.body)
                                                       .as_ref()))
            }
        }
    }


    #[doc="<p>This operation renews a domain for the specified number of years. The cost of renewing your domain is billed to your AWS account.</p> <p>We recommend that you renew your domain several weeks before the expiration date. Some TLD registries delete domains before the expiration date if you haven't renewed far enough in advance. For more information about renewing domain registration, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-renew.html\">Renewing Registration for a Domain</a> in the Amazon Route 53 Developer Guide.</p>"]
    fn renew_domain(&self,
                    input: &RenewDomainRequest)
                    -> Result<RenewDomainResponse, RenewDomainError> {
        let mut request = SignedRequest::new("POST", "route53domains", self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target", "Route53Domains_v20140515.RenewDomain");
        let encoded = serde_json::to_string(input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        request.sign(&try!(self.credentials_provider.credentials()));

        let response = try!(self.dispatcher.dispatch(&request));

        match response.status {
            StatusCode::Ok => {
                            Ok(serde_json::from_str::<RenewDomainResponse>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
            _ => Err(RenewDomainError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
        }
    }


    #[doc="<p>For operations that require confirmation that the email address for the registrant contact is valid, such as registering a new domain, this operation resends the confirmation email to the current email address for the registrant contact.</p>"]
    fn resend_contact_reachability_email
        (&self,
         input: &ResendContactReachabilityEmailRequest)
         -> Result<ResendContactReachabilityEmailResponse, ResendContactReachabilityEmailError> {
        let mut request = SignedRequest::new("POST", "route53domains", self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target",
                           "Route53Domains_v20140515.ResendContactReachabilityEmail");
        let encoded = serde_json::to_string(input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        request.sign(&try!(self.credentials_provider.credentials()));

        let response = try!(self.dispatcher.dispatch(&request));

        match response.status {
            StatusCode::Ok => {
                            Ok(serde_json::from_str::<ResendContactReachabilityEmailResponse>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
            _ => Err(ResendContactReachabilityEmailError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
        }
    }


    #[doc="<p>This operation returns the AuthCode for the domain. To transfer a domain to another registrar, you provide this value to the new registrar.</p>"]
    fn retrieve_domain_auth_code
        (&self,
         input: &RetrieveDomainAuthCodeRequest)
         -> Result<RetrieveDomainAuthCodeResponse, RetrieveDomainAuthCodeError> {
        let mut request = SignedRequest::new("POST", "route53domains", self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target",
                           "Route53Domains_v20140515.RetrieveDomainAuthCode");
        let encoded = serde_json::to_string(input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        request.sign(&try!(self.credentials_provider.credentials()));

        let response = try!(self.dispatcher.dispatch(&request));

        match response.status {
            StatusCode::Ok => {
                            Ok(serde_json::from_str::<RetrieveDomainAuthCodeResponse>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
            _ => {
                Err(RetrieveDomainAuthCodeError::from_body(String::from_utf8_lossy(&response.body)
                                                               .as_ref()))
            }
        }
    }


    #[doc="<p>This operation transfers a domain from another registrar to Amazon Route 53. When the transfer is complete, the domain is registered with the AWS registrar partner, Gandi.</p> <p>For transfer requirements, a detailed procedure, and information about viewing the status of a domain transfer, see <a href=\"http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-transfer-to-route-53.html\">Transferring Registration for a Domain to Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> <p>If the registrar for your domain is also the DNS service provider for the domain, we highly recommend that you consider transferring your DNS service to Amazon Route 53 or to another DNS service provider before you transfer your registration. Some registrars provide free DNS service when you purchase a domain registration. When you transfer the registration, the previous registrar will not renew your domain registration and could end your DNS service at any time.</p> <important> <p>If the registrar for your domain is also the DNS service provider for the domain and you don't transfer DNS service to another provider, your website, email, and the web applications associated with the domain might become unavailable.</p> </important> <p>If the transfer is successful, this method returns an operation ID that you can use to track the progress and completion of the action. If the transfer doesn't complete successfully, the domain registrant will be notified by email.</p>"]
    fn transfer_domain(&self,
                       input: &TransferDomainRequest)
                       -> Result<TransferDomainResponse, TransferDomainError> {
        let mut request = SignedRequest::new("POST", "route53domains", self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target", "Route53Domains_v20140515.TransferDomain");
        let encoded = serde_json::to_string(input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        request.sign(&try!(self.credentials_provider.credentials()));

        let response = try!(self.dispatcher.dispatch(&request));

        match response.status {
            StatusCode::Ok => {
                            Ok(serde_json::from_str::<TransferDomainResponse>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
            _ => {
                Err(TransferDomainError::from_body(String::from_utf8_lossy(&response.body)
                                                       .as_ref()))
            }
        }
    }


    #[doc="<p>This operation updates the contact information for a particular domain. Information for at least one contact (registrant, administrator, or technical) must be supplied for update.</p> <p>If the update is successful, this method returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.</p>"]
    fn update_domain_contact(&self,
                             input: &UpdateDomainContactRequest)
                             -> Result<UpdateDomainContactResponse, UpdateDomainContactError> {
        let mut request = SignedRequest::new("POST", "route53domains", self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target",
                           "Route53Domains_v20140515.UpdateDomainContact");
        let encoded = serde_json::to_string(input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        request.sign(&try!(self.credentials_provider.credentials()));

        let response = try!(self.dispatcher.dispatch(&request));

        match response.status {
            StatusCode::Ok => {
                            Ok(serde_json::from_str::<UpdateDomainContactResponse>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
            _ => {
                Err(UpdateDomainContactError::from_body(String::from_utf8_lossy(&response.body)
                                                            .as_ref()))
            }
        }
    }


    #[doc="<p>This operation updates the specified domain contact's privacy setting. When the privacy option is enabled, personal information such as postal or email address is hidden from the results of a public WHOIS query. The privacy services are provided by the AWS registrar, Gandi. For more information, see the <a href=\"http://www.gandi.net/domain/whois/?currency=USD&amp;amp;lang=en\">Gandi privacy features</a>.</p> <p>This operation only affects the privacy of the specified contact type (registrant, administrator, or tech). Successful acceptance returns an operation ID that you can use with <a>GetOperationDetail</a> to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.</p>"]
    fn update_domain_contact_privacy
        (&self,
         input: &UpdateDomainContactPrivacyRequest)
         -> Result<UpdateDomainContactPrivacyResponse, UpdateDomainContactPrivacyError> {
        let mut request = SignedRequest::new("POST", "route53domains", self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target",
                           "Route53Domains_v20140515.UpdateDomainContactPrivacy");
        let encoded = serde_json::to_string(input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        request.sign(&try!(self.credentials_provider.credentials()));

        let response = try!(self.dispatcher.dispatch(&request));

        match response.status {
            StatusCode::Ok => {
                            Ok(serde_json::from_str::<UpdateDomainContactPrivacyResponse>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
            _ => Err(UpdateDomainContactPrivacyError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
        }
    }


    #[doc="<p>This operation replaces the current set of name servers for the domain with the specified set of name servers. If you use Amazon Route 53 as your DNS service, specify the four name servers in the delegation set for the hosted zone for the domain.</p> <p>If successful, this operation returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.</p>"]
    fn update_domain_nameservers
        (&self,
         input: &UpdateDomainNameserversRequest)
         -> Result<UpdateDomainNameserversResponse, UpdateDomainNameserversError> {
        let mut request = SignedRequest::new("POST", "route53domains", self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target",
                           "Route53Domains_v20140515.UpdateDomainNameservers");
        let encoded = serde_json::to_string(input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        request.sign(&try!(self.credentials_provider.credentials()));

        let response = try!(self.dispatcher.dispatch(&request));

        match response.status {
            StatusCode::Ok => {
                            Ok(serde_json::from_str::<UpdateDomainNameserversResponse>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
            _ => Err(UpdateDomainNameserversError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
        }
    }


    #[doc="<p>This operation adds or updates tags for a specified domain.</p> <p>All tag operations are eventually consistent; subsequent operations may not immediately represent all issued operations.</p>"]
    fn update_tags_for_domain(&self,
                              input: &UpdateTagsForDomainRequest)
                              -> Result<UpdateTagsForDomainResponse, UpdateTagsForDomainError> {
        let mut request = SignedRequest::new("POST", "route53domains", self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target",
                           "Route53Domains_v20140515.UpdateTagsForDomain");
        let encoded = serde_json::to_string(input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        request.sign(&try!(self.credentials_provider.credentials()));

        let response = try!(self.dispatcher.dispatch(&request));

        match response.status {
            StatusCode::Ok => {
                            Ok(serde_json::from_str::<UpdateTagsForDomainResponse>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
            _ => {
                Err(UpdateTagsForDomainError::from_body(String::from_utf8_lossy(&response.body)
                                                            .as_ref()))
            }
        }
    }


    #[doc="<p>Returns all the domain-related billing records for the current AWS account for a specified period</p>"]
    fn view_billing(&self,
                    input: &ViewBillingRequest)
                    -> Result<ViewBillingResponse, ViewBillingError> {
        let mut request = SignedRequest::new("POST", "route53domains", self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target", "Route53Domains_v20140515.ViewBilling");
        let encoded = serde_json::to_string(input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        request.sign(&try!(self.credentials_provider.credentials()));

        let response = try!(self.dispatcher.dispatch(&request));

        match response.status {
            StatusCode::Ok => {
                            Ok(serde_json::from_str::<ViewBillingResponse>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
            _ => Err(ViewBillingError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
        }
    }
}

#[cfg(test)]
mod protocol_tests {}