/* * 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 { /// /// Contains the details of the replica. /// public partial class ReplicaDescription { private List _globalSecondaryIndexes = new List(); private string _kmsMasterKeyId; private ProvisionedThroughputOverride _provisionedThroughputOverride; private string _regionName; private DateTime? _replicaInaccessibleDateTime; private ReplicaStatus _replicaStatus; private string _replicaStatusDescription; private string _replicaStatusPercentProgress; private TableClassSummary _replicaTableClassSummary; /// /// Gets and sets the property GlobalSecondaryIndexes. /// /// Replica-specific global secondary index settings. /// /// public List GlobalSecondaryIndexes { get { return this._globalSecondaryIndexes; } set { this._globalSecondaryIndexes = value; } } // Check to see if GlobalSecondaryIndexes property is set internal bool IsSetGlobalSecondaryIndexes() { return this._globalSecondaryIndexes != null && this._globalSecondaryIndexes.Count > 0; } /// /// Gets and sets the property KMSMasterKeyId. /// /// The KMS key of the replica that will be used for KMS encryption. /// /// public string KMSMasterKeyId { get { return this._kmsMasterKeyId; } set { this._kmsMasterKeyId = value; } } // Check to see if KMSMasterKeyId property is set internal bool IsSetKMSMasterKeyId() { return this._kmsMasterKeyId != null; } /// /// Gets and sets the property ProvisionedThroughputOverride. /// /// Replica-specific provisioned throughput. If not described, uses the source table's /// provisioned throughput settings. /// /// public ProvisionedThroughputOverride ProvisionedThroughputOverride { get { return this._provisionedThroughputOverride; } set { this._provisionedThroughputOverride = value; } } // Check to see if ProvisionedThroughputOverride property is set internal bool IsSetProvisionedThroughputOverride() { return this._provisionedThroughputOverride != null; } /// /// Gets and sets the property RegionName. /// /// The name of the Region. /// /// public string RegionName { get { return this._regionName; } set { this._regionName = value; } } // Check to see if RegionName property is set internal bool IsSetRegionName() { return this._regionName != null; } /// /// Gets and sets the property ReplicaInaccessibleDateTime. /// /// The time at which the replica was first detected as inaccessible. To determine cause /// of inaccessibility check the ReplicaStatus property. /// /// public DateTime ReplicaInaccessibleDateTime { get { return this._replicaInaccessibleDateTime.GetValueOrDefault(); } set { this._replicaInaccessibleDateTime = value; } } // Check to see if ReplicaInaccessibleDateTime property is set internal bool IsSetReplicaInaccessibleDateTime() { return this._replicaInaccessibleDateTime.HasValue; } /// /// Gets and sets the property ReplicaStatus. /// /// The current state of the replica: /// ///
  • /// /// CREATING - The replica is being created. /// ///
  • /// /// UPDATING - The replica is being updated. /// ///
  • /// /// DELETING - The replica is being deleted. /// ///
  • /// /// ACTIVE - The replica is ready for use. /// ///
  • /// /// REGION_DISABLED - The replica is inaccessible because the Amazon Web /// Services Region has been disabled. /// /// /// /// If the Amazon Web Services Region remains inaccessible for more than 20 hours, DynamoDB /// will remove this replica from the replication group. The replica will not be deleted /// and replication will stop from and to this region. /// ///
  • /// /// INACCESSIBLE_ENCRYPTION_CREDENTIALS - The KMS key used to encrypt the /// table is inaccessible. /// /// /// /// If the KMS key remains inaccessible for more than 20 hours, DynamoDB will remove this /// replica from the replication group. The replica will not be deleted and replication /// will stop from and to this region. /// ///
///
public ReplicaStatus ReplicaStatus { get { return this._replicaStatus; } set { this._replicaStatus = value; } } // Check to see if ReplicaStatus property is set internal bool IsSetReplicaStatus() { return this._replicaStatus != null; } /// /// Gets and sets the property ReplicaStatusDescription. /// /// Detailed information about the replica status. /// /// public string ReplicaStatusDescription { get { return this._replicaStatusDescription; } set { this._replicaStatusDescription = value; } } // Check to see if ReplicaStatusDescription property is set internal bool IsSetReplicaStatusDescription() { return this._replicaStatusDescription != null; } /// /// Gets and sets the property ReplicaStatusPercentProgress. /// /// Specifies the progress of a Create, Update, or Delete action on the replica as a percentage. /// /// public string ReplicaStatusPercentProgress { get { return this._replicaStatusPercentProgress; } set { this._replicaStatusPercentProgress = value; } } // Check to see if ReplicaStatusPercentProgress property is set internal bool IsSetReplicaStatusPercentProgress() { return this._replicaStatusPercentProgress != null; } /// /// Gets and sets the property ReplicaTableClassSummary. /// public TableClassSummary ReplicaTableClassSummary { get { return this._replicaTableClassSummary; } set { this._replicaTableClassSummary = value; } } // Check to see if ReplicaTableClassSummary property is set internal bool IsSetReplicaTableClassSummary() { return this._replicaTableClassSummary != null; } } }