1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #include <aws/route53domains/model/CancelDomainTransferToAnotherAwsAccountRequest.h>
7 #include <aws/core/utils/json/JsonSerializer.h>
8 
9 #include <utility>
10 
11 using namespace Aws::Route53Domains::Model;
12 using namespace Aws::Utils::Json;
13 using namespace Aws::Utils;
14 
CancelDomainTransferToAnotherAwsAccountRequest()15 CancelDomainTransferToAnotherAwsAccountRequest::CancelDomainTransferToAnotherAwsAccountRequest() :
16     m_domainNameHasBeenSet(false)
17 {
18 }
19 
SerializePayload() const20 Aws::String CancelDomainTransferToAnotherAwsAccountRequest::SerializePayload() const
21 {
22   JsonValue payload;
23 
24   if(m_domainNameHasBeenSet)
25   {
26    payload.WithString("DomainName", m_domainName);
27 
28   }
29 
30   return payload.View().WriteReadable();
31 }
32 
GetRequestSpecificHeaders() const33 Aws::Http::HeaderValueCollection CancelDomainTransferToAnotherAwsAccountRequest::GetRequestSpecificHeaders() const
34 {
35   Aws::Http::HeaderValueCollection headers;
36   headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "Route53Domains_v20140515.CancelDomainTransferToAnotherAwsAccount"));
37   return headers;
38 
39 }
40 
41 
42 
43 
44