/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::PI::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; GetResourceMetadataRequest::GetResourceMetadataRequest() : m_serviceType(ServiceType::NOT_SET), m_serviceTypeHasBeenSet(false), m_identifierHasBeenSet(false) { } Aws::String GetResourceMetadataRequest::SerializePayload() const { JsonValue payload; if(m_serviceTypeHasBeenSet) { payload.WithString("ServiceType", ServiceTypeMapper::GetNameForServiceType(m_serviceType)); } if(m_identifierHasBeenSet) { payload.WithString("Identifier", m_identifier); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection GetResourceMetadataRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "PerformanceInsightsv20180227.GetResourceMetadata")); return headers; }