/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::KMS::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; GetParametersForImportRequest::GetParametersForImportRequest() : m_keyIdHasBeenSet(false), m_wrappingAlgorithm(AlgorithmSpec::NOT_SET), m_wrappingAlgorithmHasBeenSet(false), m_wrappingKeySpec(WrappingKeySpec::NOT_SET), m_wrappingKeySpecHasBeenSet(false) { } Aws::String GetParametersForImportRequest::SerializePayload() const { JsonValue payload; if(m_keyIdHasBeenSet) { payload.WithString("KeyId", m_keyId); } if(m_wrappingAlgorithmHasBeenSet) { payload.WithString("WrappingAlgorithm", AlgorithmSpecMapper::GetNameForAlgorithmSpec(m_wrappingAlgorithm)); } if(m_wrappingKeySpecHasBeenSet) { payload.WithString("WrappingKeySpec", WrappingKeySpecMapper::GetNameForWrappingKeySpec(m_wrappingKeySpec)); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection GetParametersForImportRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "TrentService.GetParametersForImport")); return headers; }