/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the voice-id-2021-09-27.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.VoiceID.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.
///
public partial class ServerSideEncryptionUpdateDetails
{
private string _message;
private string _oldKmsKeyId;
private ServerSideEncryptionUpdateStatus _updateStatus;
///
/// Gets and sets the property Message.
///
/// Message explaining the current UpdateStatus. When the UpdateStatus is FAILED, this
/// message explains the cause of the failure.
///
///
[AWSProperty(Min=1)]
public string Message
{
get { return this._message; }
set { this._message = value; }
}
// Check to see if Message property is set
internal bool IsSetMessage()
{
return this._message != null;
}
///
/// Gets and sets the property OldKmsKeyId.
///
/// The previous KMS key ID the domain was encrypted with, before ServerSideEncryptionConfiguration
/// was updated to a new KMS key ID.
///
///
[AWSProperty(Min=1, Max=2048)]
public string OldKmsKeyId
{
get { return this._oldKmsKeyId; }
set { this._oldKmsKeyId = value; }
}
// Check to see if OldKmsKeyId property is set
internal bool IsSetOldKmsKeyId()
{
return this._oldKmsKeyId != null;
}
///
/// Gets and sets the property 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.
///
///
public ServerSideEncryptionUpdateStatus UpdateStatus
{
get { return this._updateStatus; }
set { this._updateStatus = value; }
}
// Check to see if UpdateStatus property is set
internal bool IsSetUpdateStatus()
{
return this._updateStatus != null;
}
}
}