/*
* 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 keyspaces-2022-02-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.Keyspaces.Model
{
///
/// Amazon Keyspaces has two read/write capacity modes for processing reads and writes
/// on your tables:
///
/// -
///
/// On-demand (default)
///
///
-
///
/// Provisioned
///
///
///
/// The read/write capacity mode that you choose controls how you are charged for read
/// and write throughput and how table throughput capacity is managed.
///
///
///
/// For more information, see Read/write
/// capacity modes in the Amazon Keyspaces Developer Guide.
///
///
public partial class CapacitySpecification
{
private long? _readCapacityUnits;
private ThroughputMode _throughputMode;
private long? _writeCapacityUnits;
///
/// Gets and sets the property ReadCapacityUnits.
///
/// The throughput capacity specified for read
operations defined in read
/// capacity units
(RCUs)
.
///
///
[AWSProperty(Min=1)]
public long ReadCapacityUnits
{
get { return this._readCapacityUnits.GetValueOrDefault(); }
set { this._readCapacityUnits = value; }
}
// Check to see if ReadCapacityUnits property is set
internal bool IsSetReadCapacityUnits()
{
return this._readCapacityUnits.HasValue;
}
///
/// Gets and sets the property ThroughputMode.
///
/// The read/write throughput capacity mode for a table. The options are:
///
/// -
///
///
throughputMode:PAY_PER_REQUEST
and
///
/// -
///
///
throughputMode:PROVISIONED
- Provisioned capacity mode requires readCapacityUnits
/// and writeCapacityUnits
as input.
///
///
///
/// The default is throughput_mode:PAY_PER_REQUEST
.
///
///
///
/// For more information, see Read/write
/// capacity modes in the Amazon Keyspaces Developer Guide.
///
///
[AWSProperty(Required=true)]
public ThroughputMode ThroughputMode
{
get { return this._throughputMode; }
set { this._throughputMode = value; }
}
// Check to see if ThroughputMode property is set
internal bool IsSetThroughputMode()
{
return this._throughputMode != null;
}
///
/// Gets and sets the property WriteCapacityUnits.
///
/// The throughput capacity specified for write
operations defined in write
/// capacity units
(WCUs)
.
///
///
[AWSProperty(Min=1)]
public long WriteCapacityUnits
{
get { return this._writeCapacityUnits.GetValueOrDefault(); }
set { this._writeCapacityUnits = value; }
}
// Check to see if WriteCapacityUnits property is set
internal bool IsSetWriteCapacityUnits()
{
return this._writeCapacityUnits.HasValue;
}
}
}