/*
 * 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 dynamodb-2012-08-10.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.DynamoDBv2.Model
{
    /// 
    /// The description of the server-side encryption status on the specified table.
    /// 
    public partial class SSEDescription
    {
        private DateTime? _inaccessibleEncryptionDateTime;
        private string _kmsMasterKeyArn;
        private SSEType _sseType;
        private SSEStatus _status;
        /// 
        /// Gets and sets the property InaccessibleEncryptionDateTime. 
        /// 
        /// Indicates the time, in UNIX epoch date format, when DynamoDB detected that the table's
        /// KMS key was inaccessible. This attribute will automatically be cleared when DynamoDB
        /// detects that the table's KMS key is accessible again. DynamoDB will initiate the table
        /// archival process when table's KMS key remains inaccessible for more than seven days
        /// from this date.
        /// 
        /// 
        public DateTime InaccessibleEncryptionDateTime
        {
            get { return this._inaccessibleEncryptionDateTime.GetValueOrDefault(); }
            set { this._inaccessibleEncryptionDateTime = value; }
        }
        // Check to see if InaccessibleEncryptionDateTime property is set
        internal bool IsSetInaccessibleEncryptionDateTime()
        {
            return this._inaccessibleEncryptionDateTime.HasValue; 
        }
        /// 
        /// Gets and sets the property KMSMasterKeyArn. 
        /// 
        /// The KMS key ARN used for the KMS encryption.
        /// 
        /// 
        public string KMSMasterKeyArn
        {
            get { return this._kmsMasterKeyArn; }
            set { this._kmsMasterKeyArn = value; }
        }
        // Check to see if KMSMasterKeyArn property is set
        internal bool IsSetKMSMasterKeyArn()
        {
            return this._kmsMasterKeyArn != null;
        }
        /// 
        /// Gets and sets the property SSEType. 
        /// 
        /// Server-side encryption type. The only supported value is:
        /// 
        ///   -  
        /// 
        ///  
KMS - Server-side encryption that uses Key Management Service. The key
        /// is stored in your account and is managed by KMS (KMS charges apply).
        /// 
        ///    
        /// 
        public SSEType SSEType
        {
            get { return this._sseType; }
            set { this._sseType = value; }
        }
        // Check to see if SSEType property is set
        internal bool IsSetSSEType()
        {
            return this._sseType != null;
        }
        /// 
        /// Gets and sets the property Status. 
        /// 
        /// Represents the current state of server-side encryption. The only supported values
        /// are:
        /// 
        ///   -  
        /// 
        ///  
ENABLED - Server-side encryption is enabled.
        /// 
        ///    -  
        /// 
        ///  
UPDATING - Server-side encryption is being updated.
        /// 
        ///    
        /// 
        public SSEStatus Status
        {
            get { return this._status; }
            set { this._status = value; }
        }
        // Check to see if Status property is set
        internal bool IsSetStatus()
        {
            return this._status != null;
        }
    }
}