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/DescribeJobsRequest.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 DescribeJobsRequest()15DescribeJobsRequest::DescribeJobsRequest() : 16 m_filtersHasBeenSet(false), 17 m_maxResults(0), 18 m_maxResultsHasBeenSet(false), 19 m_nextTokenHasBeenSet(false) 20 { 21 } 22 SerializePayload() const23Aws::String DescribeJobsRequest::SerializePayload() const 24 { 25 JsonValue payload; 26 27 if(m_filtersHasBeenSet) 28 { 29 payload.WithObject("filters", m_filters.Jsonize()); 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