AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
DynamoDbReservedCapacityConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CostOptimizationHub {
20namespace Model {
21
29 public:
30 AWS_COSTOPTIMIZATIONHUB_API DynamoDbReservedCapacityConfiguration() = default;
33 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAccountScope() const { return m_accountScope; }
40 inline bool AccountScopeHasBeenSet() const { return m_accountScopeHasBeenSet; }
41 template <typename AccountScopeT = Aws::String>
42 void SetAccountScope(AccountScopeT&& value) {
43 m_accountScopeHasBeenSet = true;
44 m_accountScope = std::forward<AccountScopeT>(value);
45 }
46 template <typename AccountScopeT = Aws::String>
48 SetAccountScope(std::forward<AccountScopeT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetService() const { return m_service; }
58 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
59 template <typename ServiceT = Aws::String>
60 void SetService(ServiceT&& value) {
61 m_serviceHasBeenSet = true;
62 m_service = std::forward<ServiceT>(value);
63 }
64 template <typename ServiceT = Aws::String>
66 SetService(std::forward<ServiceT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetTerm() const { return m_term; }
76 inline bool TermHasBeenSet() const { return m_termHasBeenSet; }
77 template <typename TermT = Aws::String>
78 void SetTerm(TermT&& value) {
79 m_termHasBeenSet = true;
80 m_term = std::forward<TermT>(value);
81 }
82 template <typename TermT = Aws::String>
84 SetTerm(std::forward<TermT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetPaymentOption() const { return m_paymentOption; }
94 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
95 template <typename PaymentOptionT = Aws::String>
96 void SetPaymentOption(PaymentOptionT&& value) {
97 m_paymentOptionHasBeenSet = true;
98 m_paymentOption = std::forward<PaymentOptionT>(value);
99 }
100 template <typename PaymentOptionT = Aws::String>
102 SetPaymentOption(std::forward<PaymentOptionT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetReservedInstancesRegion() const { return m_reservedInstancesRegion; }
112 inline bool ReservedInstancesRegionHasBeenSet() const { return m_reservedInstancesRegionHasBeenSet; }
113 template <typename ReservedInstancesRegionT = Aws::String>
114 void SetReservedInstancesRegion(ReservedInstancesRegionT&& value) {
115 m_reservedInstancesRegionHasBeenSet = true;
116 m_reservedInstancesRegion = std::forward<ReservedInstancesRegionT>(value);
117 }
118 template <typename ReservedInstancesRegionT = Aws::String>
120 SetReservedInstancesRegion(std::forward<ReservedInstancesRegionT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetUpfrontCost() const { return m_upfrontCost; }
130 inline bool UpfrontCostHasBeenSet() const { return m_upfrontCostHasBeenSet; }
131 template <typename UpfrontCostT = Aws::String>
132 void SetUpfrontCost(UpfrontCostT&& value) {
133 m_upfrontCostHasBeenSet = true;
134 m_upfrontCost = std::forward<UpfrontCostT>(value);
135 }
136 template <typename UpfrontCostT = Aws::String>
138 SetUpfrontCost(std::forward<UpfrontCostT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetMonthlyRecurringCost() const { return m_monthlyRecurringCost; }
148 inline bool MonthlyRecurringCostHasBeenSet() const { return m_monthlyRecurringCostHasBeenSet; }
149 template <typename MonthlyRecurringCostT = Aws::String>
150 void SetMonthlyRecurringCost(MonthlyRecurringCostT&& value) {
151 m_monthlyRecurringCostHasBeenSet = true;
152 m_monthlyRecurringCost = std::forward<MonthlyRecurringCostT>(value);
153 }
154 template <typename MonthlyRecurringCostT = Aws::String>
156 SetMonthlyRecurringCost(std::forward<MonthlyRecurringCostT>(value));
157 return *this;
158 }
160
162
166 inline const Aws::String& GetNumberOfCapacityUnitsToPurchase() const { return m_numberOfCapacityUnitsToPurchase; }
167 inline bool NumberOfCapacityUnitsToPurchaseHasBeenSet() const { return m_numberOfCapacityUnitsToPurchaseHasBeenSet; }
168 template <typename NumberOfCapacityUnitsToPurchaseT = Aws::String>
169 void SetNumberOfCapacityUnitsToPurchase(NumberOfCapacityUnitsToPurchaseT&& value) {
170 m_numberOfCapacityUnitsToPurchaseHasBeenSet = true;
171 m_numberOfCapacityUnitsToPurchase = std::forward<NumberOfCapacityUnitsToPurchaseT>(value);
172 }
173 template <typename NumberOfCapacityUnitsToPurchaseT = Aws::String>
175 SetNumberOfCapacityUnitsToPurchase(std::forward<NumberOfCapacityUnitsToPurchaseT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::String& GetCapacityUnits() const { return m_capacityUnits; }
185 inline bool CapacityUnitsHasBeenSet() const { return m_capacityUnitsHasBeenSet; }
186 template <typename CapacityUnitsT = Aws::String>
187 void SetCapacityUnits(CapacityUnitsT&& value) {
188 m_capacityUnitsHasBeenSet = true;
189 m_capacityUnits = std::forward<CapacityUnitsT>(value);
190 }
191 template <typename CapacityUnitsT = Aws::String>
193 SetCapacityUnits(std::forward<CapacityUnitsT>(value));
194 return *this;
195 }
197 private:
198 Aws::String m_accountScope;
199
200 Aws::String m_service;
201
202 Aws::String m_term;
203
204 Aws::String m_paymentOption;
205
206 Aws::String m_reservedInstancesRegion;
207
208 Aws::String m_upfrontCost;
209
210 Aws::String m_monthlyRecurringCost;
211
212 Aws::String m_numberOfCapacityUnitsToPurchase;
213
214 Aws::String m_capacityUnits;
215 bool m_accountScopeHasBeenSet = false;
216 bool m_serviceHasBeenSet = false;
217 bool m_termHasBeenSet = false;
218 bool m_paymentOptionHasBeenSet = false;
219 bool m_reservedInstancesRegionHasBeenSet = false;
220 bool m_upfrontCostHasBeenSet = false;
221 bool m_monthlyRecurringCostHasBeenSet = false;
222 bool m_numberOfCapacityUnitsToPurchaseHasBeenSet = false;
223 bool m_capacityUnitsHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace CostOptimizationHub
228} // namespace Aws
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
DynamoDbReservedCapacityConfiguration & WithReservedInstancesRegion(ReservedInstancesRegionT &&value)
DynamoDbReservedCapacityConfiguration & WithUpfrontCost(UpfrontCostT &&value)
DynamoDbReservedCapacityConfiguration & WithMonthlyRecurringCost(MonthlyRecurringCostT &&value)
AWS_COSTOPTIMIZATIONHUB_API DynamoDbReservedCapacityConfiguration(Aws::Utils::Json::JsonView jsonValue)
DynamoDbReservedCapacityConfiguration & WithNumberOfCapacityUnitsToPurchase(NumberOfCapacityUnitsToPurchaseT &&value)
DynamoDbReservedCapacityConfiguration & WithAccountScope(AccountScopeT &&value)
DynamoDbReservedCapacityConfiguration & WithCapacityUnits(CapacityUnitsT &&value)
AWS_COSTOPTIMIZATIONHUB_API DynamoDbReservedCapacityConfiguration()=default
AWS_COSTOPTIMIZATIONHUB_API DynamoDbReservedCapacityConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
DynamoDbReservedCapacityConfiguration & WithPaymentOption(PaymentOptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue