/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::ConfigService::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; DescribeConfigurationRecordersRequest::DescribeConfigurationRecordersRequest() : m_configurationRecorderNamesHasBeenSet(false) { } Aws::String DescribeConfigurationRecordersRequest::SerializePayload() const { JsonValue payload; if(m_configurationRecorderNamesHasBeenSet) { Aws::Utils::Array configurationRecorderNamesJsonList(m_configurationRecorderNames.size()); for(unsigned configurationRecorderNamesIndex = 0; configurationRecorderNamesIndex < configurationRecorderNamesJsonList.GetLength(); ++configurationRecorderNamesIndex) { configurationRecorderNamesJsonList[configurationRecorderNamesIndex].AsString(m_configurationRecorderNames[configurationRecorderNamesIndex]); } payload.WithArray("ConfigurationRecorderNames", std::move(configurationRecorderNamesJsonList)); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection DescribeConfigurationRecordersRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "StarlingDoveService.DescribeConfigurationRecorders")); return headers; }