/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::PaymentCryptography::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; ExportKeyRequest::ExportKeyRequest() : m_exportKeyIdentifierHasBeenSet(false), m_keyMaterialHasBeenSet(false) { } Aws::String ExportKeyRequest::SerializePayload() const { JsonValue payload; if(m_exportKeyIdentifierHasBeenSet) { payload.WithString("ExportKeyIdentifier", m_exportKeyIdentifier); } if(m_keyMaterialHasBeenSet) { payload.WithObject("KeyMaterial", m_keyMaterial.Jsonize()); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection ExportKeyRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "PaymentCryptographyControlPlane.ExportKey")); return headers; }