1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #include <aws/batch/model/DescribeJobQueuesRequest.h> 7 #include <aws/core/utils/json/JsonSerializer.h> 8 9 #include <utility> 10 11 using namespace Aws::Batch::Model; 12 using namespace Aws::Utils::Json; 13 using namespace Aws::Utils; 14 DescribeJobQueuesRequest()15DescribeJobQueuesRequest::DescribeJobQueuesRequest() : 16 m_jobQueuesHasBeenSet(false), 17 m_maxResults(0), 18 m_maxResultsHasBeenSet(false), 19 m_nextTokenHasBeenSet(false) 20 { 21 } 22 SerializePayload() const23Aws::String DescribeJobQueuesRequest::SerializePayload() const 24 { 25 JsonValue payload; 26 27 if(m_jobQueuesHasBeenSet) 28 { 29 Array<JsonValue> jobQueuesJsonList(m_jobQueues.size()); 30 for(unsigned jobQueuesIndex = 0; jobQueuesIndex < jobQueuesJsonList.GetLength(); ++jobQueuesIndex) 31 { 32 jobQueuesJsonList[jobQueuesIndex].AsString(m_jobQueues[jobQueuesIndex]); 33 } 34 payload.WithArray("jobQueues", std::move(jobQueuesJsonList)); 35 36 } 37 38 if(m_maxResultsHasBeenSet) 39 { 40 payload.WithInteger("maxResults", m_maxResults); 41 42 } 43 44 if(m_nextTokenHasBeenSet) 45 { 46 payload.WithString("nextToken", m_nextToken); 47 48 } 49 50 return payload.View().WriteReadable(); 51 } 52 53 54 55 56