1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #include <aws/route53-recovery-control-config/model/CreateClusterRequest.h>
7 #include <aws/core/utils/json/JsonSerializer.h>
8 
9 #include <utility>
10 
11 using namespace Aws::Route53RecoveryControlConfig::Model;
12 using namespace Aws::Utils::Json;
13 using namespace Aws::Utils;
14 
CreateClusterRequest()15 CreateClusterRequest::CreateClusterRequest() :
16     m_clientToken(Aws::Utils::UUID::RandomUUID()),
17     m_clientTokenHasBeenSet(true),
18     m_clusterNameHasBeenSet(false)
19 {
20 }
21 
SerializePayload() const22 Aws::String CreateClusterRequest::SerializePayload() const
23 {
24   JsonValue payload;
25 
26   if(m_clientTokenHasBeenSet)
27   {
28    payload.WithString("ClientToken", m_clientToken);
29 
30   }
31 
32   if(m_clusterNameHasBeenSet)
33   {
34    payload.WithString("ClusterName", m_clusterName);
35 
36   }
37 
38   return payload.View().WriteReadable();
39 }
40 
41 
42 
43 
44