/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace VoiceID { namespace Model { /** *

Details about the most recent server-side encryption configuration update. * When the server-side encryption configuration is changed, dependency on the old * KMS key is removed through an asynchronous process. When this update is * complete, the domain’s data can only be accessed using the new KMS * key.

See Also:

AWS * API Reference

*/ class ServerSideEncryptionUpdateDetails { public: AWS_VOICEID_API ServerSideEncryptionUpdateDetails(); AWS_VOICEID_API ServerSideEncryptionUpdateDetails(Aws::Utils::Json::JsonView jsonValue); AWS_VOICEID_API ServerSideEncryptionUpdateDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_VOICEID_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Message explaining the current UpdateStatus. When the UpdateStatus is FAILED, * this message explains the cause of the failure.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

Message explaining the current UpdateStatus. When the UpdateStatus is FAILED, * this message explains the cause of the failure.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

Message explaining the current UpdateStatus. When the UpdateStatus is FAILED, * this message explains the cause of the failure.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

Message explaining the current UpdateStatus. When the UpdateStatus is FAILED, * this message explains the cause of the failure.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

Message explaining the current UpdateStatus. When the UpdateStatus is FAILED, * this message explains the cause of the failure.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

Message explaining the current UpdateStatus. When the UpdateStatus is FAILED, * this message explains the cause of the failure.

*/ inline ServerSideEncryptionUpdateDetails& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

Message explaining the current UpdateStatus. When the UpdateStatus is FAILED, * this message explains the cause of the failure.

*/ inline ServerSideEncryptionUpdateDetails& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

Message explaining the current UpdateStatus. When the UpdateStatus is FAILED, * this message explains the cause of the failure.

*/ inline ServerSideEncryptionUpdateDetails& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

The previous KMS key ID the domain was encrypted with, before * ServerSideEncryptionConfiguration was updated to a new KMS key ID.

*/ inline const Aws::String& GetOldKmsKeyId() const{ return m_oldKmsKeyId; } /** *

The previous KMS key ID the domain was encrypted with, before * ServerSideEncryptionConfiguration was updated to a new KMS key ID.

*/ inline bool OldKmsKeyIdHasBeenSet() const { return m_oldKmsKeyIdHasBeenSet; } /** *

The previous KMS key ID the domain was encrypted with, before * ServerSideEncryptionConfiguration was updated to a new KMS key ID.

*/ inline void SetOldKmsKeyId(const Aws::String& value) { m_oldKmsKeyIdHasBeenSet = true; m_oldKmsKeyId = value; } /** *

The previous KMS key ID the domain was encrypted with, before * ServerSideEncryptionConfiguration was updated to a new KMS key ID.

*/ inline void SetOldKmsKeyId(Aws::String&& value) { m_oldKmsKeyIdHasBeenSet = true; m_oldKmsKeyId = std::move(value); } /** *

The previous KMS key ID the domain was encrypted with, before * ServerSideEncryptionConfiguration was updated to a new KMS key ID.

*/ inline void SetOldKmsKeyId(const char* value) { m_oldKmsKeyIdHasBeenSet = true; m_oldKmsKeyId.assign(value); } /** *

The previous KMS key ID the domain was encrypted with, before * ServerSideEncryptionConfiguration was updated to a new KMS key ID.

*/ inline ServerSideEncryptionUpdateDetails& WithOldKmsKeyId(const Aws::String& value) { SetOldKmsKeyId(value); return *this;} /** *

The previous KMS key ID the domain was encrypted with, before * ServerSideEncryptionConfiguration was updated to a new KMS key ID.

*/ inline ServerSideEncryptionUpdateDetails& WithOldKmsKeyId(Aws::String&& value) { SetOldKmsKeyId(std::move(value)); return *this;} /** *

The previous KMS key ID the domain was encrypted with, before * ServerSideEncryptionConfiguration was updated to a new KMS key ID.

*/ inline ServerSideEncryptionUpdateDetails& WithOldKmsKeyId(const char* value) { SetOldKmsKeyId(value); return *this;} /** *

Status of the server-side encryption update. During an update, if there is an * issue with the domain's current or old KMS key ID, such as an inaccessible or * disabled key, then the status is FAILED. In order to resolve this, the key needs * to be made accessible, and then an UpdateDomain call with the existing * server-side encryption configuration will re-attempt this update process.

*/ inline const ServerSideEncryptionUpdateStatus& GetUpdateStatus() const{ return m_updateStatus; } /** *

Status of the server-side encryption update. During an update, if there is an * issue with the domain's current or old KMS key ID, such as an inaccessible or * disabled key, then the status is FAILED. In order to resolve this, the key needs * to be made accessible, and then an UpdateDomain call with the existing * server-side encryption configuration will re-attempt this update process.

*/ inline bool UpdateStatusHasBeenSet() const { return m_updateStatusHasBeenSet; } /** *

Status of the server-side encryption update. During an update, if there is an * issue with the domain's current or old KMS key ID, such as an inaccessible or * disabled key, then the status is FAILED. In order to resolve this, the key needs * to be made accessible, and then an UpdateDomain call with the existing * server-side encryption configuration will re-attempt this update process.

*/ inline void SetUpdateStatus(const ServerSideEncryptionUpdateStatus& value) { m_updateStatusHasBeenSet = true; m_updateStatus = value; } /** *

Status of the server-side encryption update. During an update, if there is an * issue with the domain's current or old KMS key ID, such as an inaccessible or * disabled key, then the status is FAILED. In order to resolve this, the key needs * to be made accessible, and then an UpdateDomain call with the existing * server-side encryption configuration will re-attempt this update process.

*/ inline void SetUpdateStatus(ServerSideEncryptionUpdateStatus&& value) { m_updateStatusHasBeenSet = true; m_updateStatus = std::move(value); } /** *

Status of the server-side encryption update. During an update, if there is an * issue with the domain's current or old KMS key ID, such as an inaccessible or * disabled key, then the status is FAILED. In order to resolve this, the key needs * to be made accessible, and then an UpdateDomain call with the existing * server-side encryption configuration will re-attempt this update process.

*/ inline ServerSideEncryptionUpdateDetails& WithUpdateStatus(const ServerSideEncryptionUpdateStatus& value) { SetUpdateStatus(value); return *this;} /** *

Status of the server-side encryption update. During an update, if there is an * issue with the domain's current or old KMS key ID, such as an inaccessible or * disabled key, then the status is FAILED. In order to resolve this, the key needs * to be made accessible, and then an UpdateDomain call with the existing * server-side encryption configuration will re-attempt this update process.

*/ inline ServerSideEncryptionUpdateDetails& WithUpdateStatus(ServerSideEncryptionUpdateStatus&& value) { SetUpdateStatus(std::move(value)); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_oldKmsKeyId; bool m_oldKmsKeyIdHasBeenSet = false; ServerSideEncryptionUpdateStatus m_updateStatus; bool m_updateStatusHasBeenSet = false; }; } // namespace Model } // namespace VoiceID } // namespace Aws