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/GetWorkflowExecutionHistoryRequest.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
GetWorkflowExecutionHistoryRequest()15 GetWorkflowExecutionHistoryRequest::GetWorkflowExecutionHistoryRequest() :
16 m_domainHasBeenSet(false),
17 m_executionHasBeenSet(false),
18 m_nextPageTokenHasBeenSet(false),
19 m_maximumPageSize(0),
20 m_maximumPageSizeHasBeenSet(false),
21 m_reverseOrder(false),
22 m_reverseOrderHasBeenSet(false)
23 {
24 }
25
SerializePayload() const26 Aws::String GetWorkflowExecutionHistoryRequest::SerializePayload() const
27 {
28 JsonValue payload;
29
30 if(m_domainHasBeenSet)
31 {
32 payload.WithString("domain", m_domain);
33
34 }
35
36 if(m_executionHasBeenSet)
37 {
38 payload.WithObject("execution", m_execution.Jsonize());
39
40 }
41
42 if(m_nextPageTokenHasBeenSet)
43 {
44 payload.WithString("nextPageToken", m_nextPageToken);
45
46 }
47
48 if(m_maximumPageSizeHasBeenSet)
49 {
50 payload.WithInteger("maximumPageSize", m_maximumPageSize);
51
52 }
53
54 if(m_reverseOrderHasBeenSet)
55 {
56 payload.WithBool("reverseOrder", m_reverseOrder);
57
58 }
59
60 return payload.View().WriteReadable();
61 }
62
GetRequestSpecificHeaders() const63 Aws::Http::HeaderValueCollection GetWorkflowExecutionHistoryRequest::GetRequestSpecificHeaders() const
64 {
65 Aws::Http::HeaderValueCollection headers;
66 headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "SimpleWorkflowService.GetWorkflowExecutionHistory"));
67 return headers;
68
69 }
70
71
72
73
74