/* * 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 { /// /// The read/write throughput capacity mode for a table. The options are: /// /// /// /// For more information, see Read/write /// capacity modes in the Amazon Keyspaces Developer Guide. /// /// public partial class CapacitySpecificationSummary { private DateTime? _lastUpdateToPayPerRequestTimestamp; private long? _readCapacityUnits; private ThroughputMode _throughputMode; private long? _writeCapacityUnits; /// /// Gets and sets the property LastUpdateToPayPerRequestTimestamp. /// /// The timestamp of the last operation that changed the provisioned throughput capacity /// of a table. /// /// public DateTime LastUpdateToPayPerRequestTimestamp { get { return this._lastUpdateToPayPerRequestTimestamp.GetValueOrDefault(); } set { this._lastUpdateToPayPerRequestTimestamp = value; } } // Check to see if LastUpdateToPayPerRequestTimestamp property is set internal bool IsSetLastUpdateToPayPerRequestTimestamp() { return this._lastUpdateToPayPerRequestTimestamp.HasValue; } /// /// 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: /// /// /// /// 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; } } }