/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace PaymentCryptography { namespace Model { class GetParametersForImportResult { public: AWS_PAYMENTCRYPTOGRAPHY_API GetParametersForImportResult(); AWS_PAYMENTCRYPTOGRAPHY_API GetParametersForImportResult(const Aws::AmazonWebServiceResult& result); AWS_PAYMENTCRYPTOGRAPHY_API GetParametersForImportResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The import token to initiate key import into Amazon Web Services Payment * Cryptography. The import token expires after 7 days. You can use the same import * token to import multiple keys to the same service account.

*/ inline const Aws::String& GetImportToken() const{ return m_importToken; } /** *

The import token to initiate key import into Amazon Web Services Payment * Cryptography. The import token expires after 7 days. You can use the same import * token to import multiple keys to the same service account.

*/ inline void SetImportToken(const Aws::String& value) { m_importToken = value; } /** *

The import token to initiate key import into Amazon Web Services Payment * Cryptography. The import token expires after 7 days. You can use the same import * token to import multiple keys to the same service account.

*/ inline void SetImportToken(Aws::String&& value) { m_importToken = std::move(value); } /** *

The import token to initiate key import into Amazon Web Services Payment * Cryptography. The import token expires after 7 days. You can use the same import * token to import multiple keys to the same service account.

*/ inline void SetImportToken(const char* value) { m_importToken.assign(value); } /** *

The import token to initiate key import into Amazon Web Services Payment * Cryptography. The import token expires after 7 days. You can use the same import * token to import multiple keys to the same service account.

*/ inline GetParametersForImportResult& WithImportToken(const Aws::String& value) { SetImportToken(value); return *this;} /** *

The import token to initiate key import into Amazon Web Services Payment * Cryptography. The import token expires after 7 days. You can use the same import * token to import multiple keys to the same service account.

*/ inline GetParametersForImportResult& WithImportToken(Aws::String&& value) { SetImportToken(std::move(value)); return *this;} /** *

The import token to initiate key import into Amazon Web Services Payment * Cryptography. The import token expires after 7 days. You can use the same import * token to import multiple keys to the same service account.

*/ inline GetParametersForImportResult& WithImportToken(const char* value) { SetImportToken(value); return *this;} /** *

The validity period of the import token.

*/ inline const Aws::Utils::DateTime& GetParametersValidUntilTimestamp() const{ return m_parametersValidUntilTimestamp; } /** *

The validity period of the import token.

*/ inline void SetParametersValidUntilTimestamp(const Aws::Utils::DateTime& value) { m_parametersValidUntilTimestamp = value; } /** *

The validity period of the import token.

*/ inline void SetParametersValidUntilTimestamp(Aws::Utils::DateTime&& value) { m_parametersValidUntilTimestamp = std::move(value); } /** *

The validity period of the import token.

*/ inline GetParametersForImportResult& WithParametersValidUntilTimestamp(const Aws::Utils::DateTime& value) { SetParametersValidUntilTimestamp(value); return *this;} /** *

The validity period of the import token.

*/ inline GetParametersForImportResult& WithParametersValidUntilTimestamp(Aws::Utils::DateTime&& value) { SetParametersValidUntilTimestamp(std::move(value)); return *this;} /** *

The algorithm of the wrapping key for use within TR-34 key block. * RSA_2048 is the only wrapping key algorithm allowed.

*/ inline const KeyAlgorithm& GetWrappingKeyAlgorithm() const{ return m_wrappingKeyAlgorithm; } /** *

The algorithm of the wrapping key for use within TR-34 key block. * RSA_2048 is the only wrapping key algorithm allowed.

*/ inline void SetWrappingKeyAlgorithm(const KeyAlgorithm& value) { m_wrappingKeyAlgorithm = value; } /** *

The algorithm of the wrapping key for use within TR-34 key block. * RSA_2048 is the only wrapping key algorithm allowed.

*/ inline void SetWrappingKeyAlgorithm(KeyAlgorithm&& value) { m_wrappingKeyAlgorithm = std::move(value); } /** *

The algorithm of the wrapping key for use within TR-34 key block. * RSA_2048 is the only wrapping key algorithm allowed.

*/ inline GetParametersForImportResult& WithWrappingKeyAlgorithm(const KeyAlgorithm& value) { SetWrappingKeyAlgorithm(value); return *this;} /** *

The algorithm of the wrapping key for use within TR-34 key block. * RSA_2048 is the only wrapping key algorithm allowed.

*/ inline GetParametersForImportResult& WithWrappingKeyAlgorithm(KeyAlgorithm&& value) { SetWrappingKeyAlgorithm(std::move(value)); return *this;} /** *

The wrapping key certificate of the wrapping key for use within the TR-34 key * block. The certificate expires in 7 days.

*/ inline const Aws::String& GetWrappingKeyCertificate() const{ return m_wrappingKeyCertificate; } /** *

The wrapping key certificate of the wrapping key for use within the TR-34 key * block. The certificate expires in 7 days.

*/ inline void SetWrappingKeyCertificate(const Aws::String& value) { m_wrappingKeyCertificate = value; } /** *

The wrapping key certificate of the wrapping key for use within the TR-34 key * block. The certificate expires in 7 days.

*/ inline void SetWrappingKeyCertificate(Aws::String&& value) { m_wrappingKeyCertificate = std::move(value); } /** *

The wrapping key certificate of the wrapping key for use within the TR-34 key * block. The certificate expires in 7 days.

*/ inline void SetWrappingKeyCertificate(const char* value) { m_wrappingKeyCertificate.assign(value); } /** *

The wrapping key certificate of the wrapping key for use within the TR-34 key * block. The certificate expires in 7 days.

*/ inline GetParametersForImportResult& WithWrappingKeyCertificate(const Aws::String& value) { SetWrappingKeyCertificate(value); return *this;} /** *

The wrapping key certificate of the wrapping key for use within the TR-34 key * block. The certificate expires in 7 days.

*/ inline GetParametersForImportResult& WithWrappingKeyCertificate(Aws::String&& value) { SetWrappingKeyCertificate(std::move(value)); return *this;} /** *

The wrapping key certificate of the wrapping key for use within the TR-34 key * block. The certificate expires in 7 days.

*/ inline GetParametersForImportResult& WithWrappingKeyCertificate(const char* value) { SetWrappingKeyCertificate(value); return *this;} /** *

The Amazon Web Services Payment Cryptography certificate chain that signed * the wrapping key certificate. This is the root certificate authority (CA) within * your service account.

*/ inline const Aws::String& GetWrappingKeyCertificateChain() const{ return m_wrappingKeyCertificateChain; } /** *

The Amazon Web Services Payment Cryptography certificate chain that signed * the wrapping key certificate. This is the root certificate authority (CA) within * your service account.

*/ inline void SetWrappingKeyCertificateChain(const Aws::String& value) { m_wrappingKeyCertificateChain = value; } /** *

The Amazon Web Services Payment Cryptography certificate chain that signed * the wrapping key certificate. This is the root certificate authority (CA) within * your service account.

*/ inline void SetWrappingKeyCertificateChain(Aws::String&& value) { m_wrappingKeyCertificateChain = std::move(value); } /** *

The Amazon Web Services Payment Cryptography certificate chain that signed * the wrapping key certificate. This is the root certificate authority (CA) within * your service account.

*/ inline void SetWrappingKeyCertificateChain(const char* value) { m_wrappingKeyCertificateChain.assign(value); } /** *

The Amazon Web Services Payment Cryptography certificate chain that signed * the wrapping key certificate. This is the root certificate authority (CA) within * your service account.

*/ inline GetParametersForImportResult& WithWrappingKeyCertificateChain(const Aws::String& value) { SetWrappingKeyCertificateChain(value); return *this;} /** *

The Amazon Web Services Payment Cryptography certificate chain that signed * the wrapping key certificate. This is the root certificate authority (CA) within * your service account.

*/ inline GetParametersForImportResult& WithWrappingKeyCertificateChain(Aws::String&& value) { SetWrappingKeyCertificateChain(std::move(value)); return *this;} /** *

The Amazon Web Services Payment Cryptography certificate chain that signed * the wrapping key certificate. This is the root certificate authority (CA) within * your service account.

*/ inline GetParametersForImportResult& WithWrappingKeyCertificateChain(const char* value) { SetWrappingKeyCertificateChain(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetParametersForImportResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetParametersForImportResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetParametersForImportResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_importToken; Aws::Utils::DateTime m_parametersValidUntilTimestamp; KeyAlgorithm m_wrappingKeyAlgorithm; Aws::String m_wrappingKeyCertificate; Aws::String m_wrappingKeyCertificateChain; Aws::String m_requestId; }; } // namespace Model } // namespace PaymentCryptography } // namespace Aws