/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::DeviceFarm::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; ListDevicesRequest::ListDevicesRequest() : m_arnHasBeenSet(false), m_nextTokenHasBeenSet(false), m_filtersHasBeenSet(false) { } Aws::String ListDevicesRequest::SerializePayload() const { JsonValue payload; if(m_arnHasBeenSet) { payload.WithString("arn", m_arn); } if(m_nextTokenHasBeenSet) { payload.WithString("nextToken", m_nextToken); } if(m_filtersHasBeenSet) { Aws::Utils::Array filtersJsonList(m_filters.size()); for(unsigned filtersIndex = 0; filtersIndex < filtersJsonList.GetLength(); ++filtersIndex) { filtersJsonList[filtersIndex].AsObject(m_filters[filtersIndex].Jsonize()); } payload.WithArray("filters", std::move(filtersJsonList)); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection ListDevicesRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "DeviceFarm_20150623.ListDevices")); return headers; }