/** * 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; GetDevicePoolCompatibilityRequest::GetDevicePoolCompatibilityRequest() : m_devicePoolArnHasBeenSet(false), m_appArnHasBeenSet(false), m_testType(TestType::NOT_SET), m_testTypeHasBeenSet(false), m_testHasBeenSet(false), m_configurationHasBeenSet(false) { } Aws::String GetDevicePoolCompatibilityRequest::SerializePayload() const { JsonValue payload; if(m_devicePoolArnHasBeenSet) { payload.WithString("devicePoolArn", m_devicePoolArn); } if(m_appArnHasBeenSet) { payload.WithString("appArn", m_appArn); } if(m_testTypeHasBeenSet) { payload.WithString("testType", TestTypeMapper::GetNameForTestType(m_testType)); } if(m_testHasBeenSet) { payload.WithObject("test", m_test.Jsonize()); } if(m_configurationHasBeenSet) { payload.WithObject("configuration", m_configuration.Jsonize()); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection GetDevicePoolCompatibilityRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "DeviceFarm_20150623.GetDevicePoolCompatibility")); return headers; }