/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace PaymentCryptography { namespace Model { class RestoreKeyResult { public: AWS_PAYMENTCRYPTOGRAPHY_API RestoreKeyResult(); AWS_PAYMENTCRYPTOGRAPHY_API RestoreKeyResult(const Aws::AmazonWebServiceResult& result); AWS_PAYMENTCRYPTOGRAPHY_API RestoreKeyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The key material of the restored key. The KeyState will change * to CREATE_COMPLETE and value for * DeletePendingTimestamp gets removed.

*/ inline const Key& GetKey() const{ return m_key; } /** *

The key material of the restored key. The KeyState will change * to CREATE_COMPLETE and value for * DeletePendingTimestamp gets removed.

*/ inline void SetKey(const Key& value) { m_key = value; } /** *

The key material of the restored key. The KeyState will change * to CREATE_COMPLETE and value for * DeletePendingTimestamp gets removed.

*/ inline void SetKey(Key&& value) { m_key = std::move(value); } /** *

The key material of the restored key. The KeyState will change * to CREATE_COMPLETE and value for * DeletePendingTimestamp gets removed.

*/ inline RestoreKeyResult& WithKey(const Key& value) { SetKey(value); return *this;} /** *

The key material of the restored key. The KeyState will change * to CREATE_COMPLETE and value for * DeletePendingTimestamp gets removed.

*/ inline RestoreKeyResult& WithKey(Key&& value) { SetKey(std::move(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 RestoreKeyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline RestoreKeyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline RestoreKeyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Key m_key; Aws::String m_requestId; }; } // namespace Model } // namespace PaymentCryptography } // namespace Aws