/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace PaymentCryptography { namespace Model { /** */ class ExportKeyRequest : public PaymentCryptographyRequest { public: AWS_PAYMENTCRYPTOGRAPHY_API ExportKeyRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ExportKey"; } AWS_PAYMENTCRYPTOGRAPHY_API Aws::String SerializePayload() const override; AWS_PAYMENTCRYPTOGRAPHY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The KeyARN of the key under export from Amazon Web Services * Payment Cryptography.

*/ inline const Aws::String& GetExportKeyIdentifier() const{ return m_exportKeyIdentifier; } /** *

The KeyARN of the key under export from Amazon Web Services * Payment Cryptography.

*/ inline bool ExportKeyIdentifierHasBeenSet() const { return m_exportKeyIdentifierHasBeenSet; } /** *

The KeyARN of the key under export from Amazon Web Services * Payment Cryptography.

*/ inline void SetExportKeyIdentifier(const Aws::String& value) { m_exportKeyIdentifierHasBeenSet = true; m_exportKeyIdentifier = value; } /** *

The KeyARN of the key under export from Amazon Web Services * Payment Cryptography.

*/ inline void SetExportKeyIdentifier(Aws::String&& value) { m_exportKeyIdentifierHasBeenSet = true; m_exportKeyIdentifier = std::move(value); } /** *

The KeyARN of the key under export from Amazon Web Services * Payment Cryptography.

*/ inline void SetExportKeyIdentifier(const char* value) { m_exportKeyIdentifierHasBeenSet = true; m_exportKeyIdentifier.assign(value); } /** *

The KeyARN of the key under export from Amazon Web Services * Payment Cryptography.

*/ inline ExportKeyRequest& WithExportKeyIdentifier(const Aws::String& value) { SetExportKeyIdentifier(value); return *this;} /** *

The KeyARN of the key under export from Amazon Web Services * Payment Cryptography.

*/ inline ExportKeyRequest& WithExportKeyIdentifier(Aws::String&& value) { SetExportKeyIdentifier(std::move(value)); return *this;} /** *

The KeyARN of the key under export from Amazon Web Services * Payment Cryptography.

*/ inline ExportKeyRequest& WithExportKeyIdentifier(const char* value) { SetExportKeyIdentifier(value); return *this;} /** *

The key block format type, for example, TR-34 or TR-31, to use during key * material export.

*/ inline const ExportKeyMaterial& GetKeyMaterial() const{ return m_keyMaterial; } /** *

The key block format type, for example, TR-34 or TR-31, to use during key * material export.

*/ inline bool KeyMaterialHasBeenSet() const { return m_keyMaterialHasBeenSet; } /** *

The key block format type, for example, TR-34 or TR-31, to use during key * material export.

*/ inline void SetKeyMaterial(const ExportKeyMaterial& value) { m_keyMaterialHasBeenSet = true; m_keyMaterial = value; } /** *

The key block format type, for example, TR-34 or TR-31, to use during key * material export.

*/ inline void SetKeyMaterial(ExportKeyMaterial&& value) { m_keyMaterialHasBeenSet = true; m_keyMaterial = std::move(value); } /** *

The key block format type, for example, TR-34 or TR-31, to use during key * material export.

*/ inline ExportKeyRequest& WithKeyMaterial(const ExportKeyMaterial& value) { SetKeyMaterial(value); return *this;} /** *

The key block format type, for example, TR-34 or TR-31, to use during key * material export.

*/ inline ExportKeyRequest& WithKeyMaterial(ExportKeyMaterial&& value) { SetKeyMaterial(std::move(value)); return *this;} private: Aws::String m_exportKeyIdentifier; bool m_exportKeyIdentifierHasBeenSet = false; ExportKeyMaterial m_keyMaterial; bool m_keyMaterialHasBeenSet = false; }; } // namespace Model } // namespace PaymentCryptography } // namespace Aws