/** * 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; GetParametersForImportRequest::GetParametersForImportRequest() : m_keyMaterialType(KeyMaterialType::NOT_SET), m_keyMaterialTypeHasBeenSet(false), m_wrappingKeyAlgorithm(KeyAlgorithm::NOT_SET), m_wrappingKeyAlgorithmHasBeenSet(false) { } Aws::String GetParametersForImportRequest::SerializePayload() const { JsonValue payload; if(m_keyMaterialTypeHasBeenSet) { payload.WithString("KeyMaterialType", KeyMaterialTypeMapper::GetNameForKeyMaterialType(m_keyMaterialType)); } if(m_wrappingKeyAlgorithmHasBeenSet) { payload.WithString("WrappingKeyAlgorithm", KeyAlgorithmMapper::GetNameForKeyAlgorithm(m_wrappingKeyAlgorithm)); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection GetParametersForImportRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "PaymentCryptographyControlPlane.GetParametersForImport")); return headers; }