1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #include <aws/mgn/model/DescribeJobLogItemsRequest.h>
7 #include <aws/core/utils/json/JsonSerializer.h>
8 
9 #include <utility>
10 
11 using namespace Aws::mgn::Model;
12 using namespace Aws::Utils::Json;
13 using namespace Aws::Utils;
14 
DescribeJobLogItemsRequest()15 DescribeJobLogItemsRequest::DescribeJobLogItemsRequest() :
16     m_jobIDHasBeenSet(false),
17     m_maxResults(0),
18     m_maxResultsHasBeenSet(false),
19     m_nextTokenHasBeenSet(false)
20 {
21 }
22 
SerializePayload() const23 Aws::String DescribeJobLogItemsRequest::SerializePayload() const
24 {
25   JsonValue payload;
26 
27   if(m_jobIDHasBeenSet)
28   {
29    payload.WithString("jobID", m_jobID);
30 
31   }
32 
33   if(m_maxResultsHasBeenSet)
34   {
35    payload.WithInteger("maxResults", m_maxResults);
36 
37   }
38 
39   if(m_nextTokenHasBeenSet)
40   {
41    payload.WithString("nextToken", m_nextToken);
42 
43   }
44 
45   return payload.View().WriteReadable();
46 }
47 
48 
49 
50 
51