/** * 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 ACM { namespace Model { /** */ class ExportCertificateRequest : public ACMRequest { public: AWS_ACM_API ExportCertificateRequest(); // 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 "ExportCertificate"; } AWS_ACM_API Aws::String SerializePayload() const override; AWS_ACM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

An Amazon Resource Name (ARN) of the issued certificate. This must be of the * form:

* arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012 *

*/ inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; } /** *

An Amazon Resource Name (ARN) of the issued certificate. This must be of the * form:

* arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012 *

*/ inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; } /** *

An Amazon Resource Name (ARN) of the issued certificate. This must be of the * form:

* arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012 *

*/ inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; } /** *

An Amazon Resource Name (ARN) of the issued certificate. This must be of the * form:

* arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012 *

*/ inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); } /** *

An Amazon Resource Name (ARN) of the issued certificate. This must be of the * form:

* arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012 *

*/ inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); } /** *

An Amazon Resource Name (ARN) of the issued certificate. This must be of the * form:

* arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012 *

*/ inline ExportCertificateRequest& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;} /** *

An Amazon Resource Name (ARN) of the issued certificate. This must be of the * form:

* arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012 *

*/ inline ExportCertificateRequest& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;} /** *

An Amazon Resource Name (ARN) of the issued certificate. This must be of the * form:

* arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012 *

*/ inline ExportCertificateRequest& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;} /** *

Passphrase to associate with the encrypted exported private key.

*

When creating your passphrase, you can use any ASCII character except #, $, * or %.

If you want to later decrypt the private key, you must have * the passphrase. You can use the following OpenSSL command to decrypt a private * key. After entering the command, you are prompted for the passphrase.

* openssl rsa -in encrypted_key.pem -out decrypted_key.pem

*/ inline const Aws::Utils::CryptoBuffer& GetPassphrase() const{ return m_passphrase; } /** *

Passphrase to associate with the encrypted exported private key.

*

When creating your passphrase, you can use any ASCII character except #, $, * or %.

If you want to later decrypt the private key, you must have * the passphrase. You can use the following OpenSSL command to decrypt a private * key. After entering the command, you are prompted for the passphrase.

* openssl rsa -in encrypted_key.pem -out decrypted_key.pem

*/ inline bool PassphraseHasBeenSet() const { return m_passphraseHasBeenSet; } /** *

Passphrase to associate with the encrypted exported private key.

*

When creating your passphrase, you can use any ASCII character except #, $, * or %.

If you want to later decrypt the private key, you must have * the passphrase. You can use the following OpenSSL command to decrypt a private * key. After entering the command, you are prompted for the passphrase.

* openssl rsa -in encrypted_key.pem -out decrypted_key.pem

*/ inline void SetPassphrase(const Aws::Utils::CryptoBuffer& value) { m_passphraseHasBeenSet = true; m_passphrase = value; } /** *

Passphrase to associate with the encrypted exported private key.

*

When creating your passphrase, you can use any ASCII character except #, $, * or %.

If you want to later decrypt the private key, you must have * the passphrase. You can use the following OpenSSL command to decrypt a private * key. After entering the command, you are prompted for the passphrase.

* openssl rsa -in encrypted_key.pem -out decrypted_key.pem

*/ inline void SetPassphrase(Aws::Utils::CryptoBuffer&& value) { m_passphraseHasBeenSet = true; m_passphrase = std::move(value); } /** *

Passphrase to associate with the encrypted exported private key.

*

When creating your passphrase, you can use any ASCII character except #, $, * or %.

If you want to later decrypt the private key, you must have * the passphrase. You can use the following OpenSSL command to decrypt a private * key. After entering the command, you are prompted for the passphrase.

* openssl rsa -in encrypted_key.pem -out decrypted_key.pem

*/ inline ExportCertificateRequest& WithPassphrase(const Aws::Utils::CryptoBuffer& value) { SetPassphrase(value); return *this;} /** *

Passphrase to associate with the encrypted exported private key.

*

When creating your passphrase, you can use any ASCII character except #, $, * or %.

If you want to later decrypt the private key, you must have * the passphrase. You can use the following OpenSSL command to decrypt a private * key. After entering the command, you are prompted for the passphrase.

* openssl rsa -in encrypted_key.pem -out decrypted_key.pem

*/ inline ExportCertificateRequest& WithPassphrase(Aws::Utils::CryptoBuffer&& value) { SetPassphrase(std::move(value)); return *this;} private: Aws::String m_certificateArn; bool m_certificateArnHasBeenSet = false; Aws::Utils::CryptoBuffer m_passphrase; bool m_passphraseHasBeenSet = false; }; } // namespace Model } // namespace ACM } // namespace Aws