/*
* Copyright 2010-2014 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 Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.DynamoDBv2.Model
{
///
/// Represents the auto scaling settings of the replica.
///
public partial class ReplicaAutoScalingDescription
{
private List _globalSecondaryIndexes = new List();
private string _regionName;
private AutoScalingSettingsDescription _replicaProvisionedReadCapacityAutoScalingSettings;
private AutoScalingSettingsDescription _replicaProvisionedWriteCapacityAutoScalingSettings;
private ReplicaStatus _replicaStatus;
///
/// Gets and sets the property GlobalSecondaryIndexes.
///
/// Replica-specific global secondary index auto scaling 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 RegionName.
///
/// The Region where the replica exists.
///
///
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 ReplicaProvisionedReadCapacityAutoScalingSettings.
///
public AutoScalingSettingsDescription ReplicaProvisionedReadCapacityAutoScalingSettings
{
get { return this._replicaProvisionedReadCapacityAutoScalingSettings; }
set { this._replicaProvisionedReadCapacityAutoScalingSettings = value; }
}
// Check to see if ReplicaProvisionedReadCapacityAutoScalingSettings property is set
internal bool IsSetReplicaProvisionedReadCapacityAutoScalingSettings()
{
return this._replicaProvisionedReadCapacityAutoScalingSettings != null;
}
///
/// Gets and sets the property ReplicaProvisionedWriteCapacityAutoScalingSettings.
///
public AutoScalingSettingsDescription ReplicaProvisionedWriteCapacityAutoScalingSettings
{
get { return this._replicaProvisionedWriteCapacityAutoScalingSettings; }
set { this._replicaProvisionedWriteCapacityAutoScalingSettings = value; }
}
// Check to see if ReplicaProvisionedWriteCapacityAutoScalingSettings property is set
internal bool IsSetReplicaProvisionedWriteCapacityAutoScalingSettings()
{
return this._replicaProvisionedWriteCapacityAutoScalingSettings != null;
}
///
/// 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.
///
///
///
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;
}
}
}