/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/config/model/PutResourceConfigRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::ConfigService::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; PutResourceConfigRequest::PutResourceConfigRequest() : m_resourceTypeHasBeenSet(false), m_schemaVersionIdHasBeenSet(false), m_resourceIdHasBeenSet(false), m_resourceNameHasBeenSet(false), m_configurationHasBeenSet(false), m_tagsHasBeenSet(false) { } Aws::String PutResourceConfigRequest::SerializePayload() const { JsonValue payload; if(m_resourceTypeHasBeenSet) { payload.WithString("ResourceType", m_resourceType); } if(m_schemaVersionIdHasBeenSet) { payload.WithString("SchemaVersionId", m_schemaVersionId); } if(m_resourceIdHasBeenSet) { payload.WithString("ResourceId", m_resourceId); } if(m_resourceNameHasBeenSet) { payload.WithString("ResourceName", m_resourceName); } if(m_configurationHasBeenSet) { payload.WithString("Configuration", m_configuration); } if(m_tagsHasBeenSet) { JsonValue tagsJsonMap; for(auto& tagsItem : m_tags) { tagsJsonMap.WithString(tagsItem.first, tagsItem.second); } payload.WithObject("Tags", std::move(tagsJsonMap)); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection PutResourceConfigRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "StarlingDoveService.PutResourceConfig")); return headers; }