AWS SDK for C++  0.14.3
AWS SDK for C++
ProvisionedThroughputDescription.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace DynamoDB
29 {
30 namespace Model
31 {
32 
39  {
40  public:
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
50  inline const Aws::Utils::DateTime& GetLastIncreaseDateTime() const{ return m_lastIncreaseDateTime; }
51 
56  inline void SetLastIncreaseDateTime(const Aws::Utils::DateTime& value) { m_lastIncreaseDateTimeHasBeenSet = true; m_lastIncreaseDateTime = value; }
57 
62  inline void SetLastIncreaseDateTime(Aws::Utils::DateTime&& value) { m_lastIncreaseDateTimeHasBeenSet = true; m_lastIncreaseDateTime = value; }
63 
68  inline ProvisionedThroughputDescription& WithLastIncreaseDateTime(const Aws::Utils::DateTime& value) { SetLastIncreaseDateTime(value); return *this;}
69 
74  inline ProvisionedThroughputDescription& WithLastIncreaseDateTime(Aws::Utils::DateTime&& value) { SetLastIncreaseDateTime(value); return *this;}
75 
80  inline const Aws::Utils::DateTime& GetLastDecreaseDateTime() const{ return m_lastDecreaseDateTime; }
81 
86  inline void SetLastDecreaseDateTime(const Aws::Utils::DateTime& value) { m_lastDecreaseDateTimeHasBeenSet = true; m_lastDecreaseDateTime = value; }
87 
92  inline void SetLastDecreaseDateTime(Aws::Utils::DateTime&& value) { m_lastDecreaseDateTimeHasBeenSet = true; m_lastDecreaseDateTime = value; }
93 
98  inline ProvisionedThroughputDescription& WithLastDecreaseDateTime(const Aws::Utils::DateTime& value) { SetLastDecreaseDateTime(value); return *this;}
99 
104  inline ProvisionedThroughputDescription& WithLastDecreaseDateTime(Aws::Utils::DateTime&& value) { SetLastDecreaseDateTime(value); return *this;}
105 
112  inline long long GetNumberOfDecreasesToday() const{ return m_numberOfDecreasesToday; }
113 
120  inline void SetNumberOfDecreasesToday(long long value) { m_numberOfDecreasesTodayHasBeenSet = true; m_numberOfDecreasesToday = value; }
121 
128  inline ProvisionedThroughputDescription& WithNumberOfDecreasesToday(long long value) { SetNumberOfDecreasesToday(value); return *this;}
129 
137  inline long long GetReadCapacityUnits() const{ return m_readCapacityUnits; }
138 
146  inline void SetReadCapacityUnits(long long value) { m_readCapacityUnitsHasBeenSet = true; m_readCapacityUnits = value; }
147 
155  inline ProvisionedThroughputDescription& WithReadCapacityUnits(long long value) { SetReadCapacityUnits(value); return *this;}
156 
161  inline long long GetWriteCapacityUnits() const{ return m_writeCapacityUnits; }
162 
167  inline void SetWriteCapacityUnits(long long value) { m_writeCapacityUnitsHasBeenSet = true; m_writeCapacityUnits = value; }
168 
173  inline ProvisionedThroughputDescription& WithWriteCapacityUnits(long long value) { SetWriteCapacityUnits(value); return *this;}
174 
175  private:
176  Aws::Utils::DateTime m_lastIncreaseDateTime;
177  bool m_lastIncreaseDateTimeHasBeenSet;
178  Aws::Utils::DateTime m_lastDecreaseDateTime;
179  bool m_lastDecreaseDateTimeHasBeenSet;
180  long long m_numberOfDecreasesToday;
181  bool m_numberOfDecreasesTodayHasBeenSet;
182  long long m_readCapacityUnits;
183  bool m_readCapacityUnitsHasBeenSet;
184  long long m_writeCapacityUnits;
185  bool m_writeCapacityUnitsHasBeenSet;
186  };
187 
188 } // namespace Model
189 } // namespace DynamoDB
190 } // namespace Aws
ProvisionedThroughputDescription & WithReadCapacityUnits(long long value)
ProvisionedThroughputDescription & WithWriteCapacityUnits(long long value)
#define AWS_DYNAMODB_API
ProvisionedThroughputDescription & WithLastIncreaseDateTime(Aws::Utils::DateTime &&value)
ProvisionedThroughputDescription & WithLastDecreaseDateTime(const Aws::Utils::DateTime &value)
ProvisionedThroughputDescription & WithLastDecreaseDateTime(Aws::Utils::DateTime &&value)
ProvisionedThroughputDescription & WithNumberOfDecreasesToday(long long value)
ProvisionedThroughputDescription & WithLastIncreaseDateTime(const Aws::Utils::DateTime &value)
JSON (JavaScript Object Notation).