1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #include <aws/swf/model/RecordActivityTaskHeartbeatRequest.h>
7 #include <aws/core/utils/json/JsonSerializer.h>
8 
9 #include <utility>
10 
11 using namespace Aws::SWF::Model;
12 using namespace Aws::Utils::Json;
13 using namespace Aws::Utils;
14 
RecordActivityTaskHeartbeatRequest()15 RecordActivityTaskHeartbeatRequest::RecordActivityTaskHeartbeatRequest() :
16     m_taskTokenHasBeenSet(false),
17     m_detailsHasBeenSet(false)
18 {
19 }
20 
SerializePayload() const21 Aws::String RecordActivityTaskHeartbeatRequest::SerializePayload() const
22 {
23   JsonValue payload;
24 
25   if(m_taskTokenHasBeenSet)
26   {
27    payload.WithString("taskToken", m_taskToken);
28 
29   }
30 
31   if(m_detailsHasBeenSet)
32   {
33    payload.WithString("details", m_details);
34 
35   }
36 
37   return payload.View().WriteReadable();
38 }
39 
GetRequestSpecificHeaders() const40 Aws::Http::HeaderValueCollection RecordActivityTaskHeartbeatRequest::GetRequestSpecificHeaders() const
41 {
42   Aws::Http::HeaderValueCollection headers;
43   headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "SimpleWorkflowService.RecordActivityTaskHeartbeat"));
44   return headers;
45 
46 }
47 
48 
49 
50 
51