AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DynamoDbReservedCapacityConfiguration.h
1
6#pragma once
7#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CostOptimizationHub
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_COSTOPTIMIZATIONHUB_API DynamoDbReservedCapacityConfiguration() = default;
38 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetAccountScope() const { return m_accountScope; }
46 inline bool AccountScopeHasBeenSet() const { return m_accountScopeHasBeenSet; }
47 template<typename AccountScopeT = Aws::String>
48 void SetAccountScope(AccountScopeT&& value) { m_accountScopeHasBeenSet = true; m_accountScope = std::forward<AccountScopeT>(value); }
49 template<typename AccountScopeT = Aws::String>
50 DynamoDbReservedCapacityConfiguration& WithAccountScope(AccountScopeT&& value) { SetAccountScope(std::forward<AccountScopeT>(value)); return *this;}
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) { m_serviceHasBeenSet = true; m_service = std::forward<ServiceT>(value); }
61 template<typename ServiceT = Aws::String>
62 DynamoDbReservedCapacityConfiguration& WithService(ServiceT&& value) { SetService(std::forward<ServiceT>(value)); return *this;}
64
66
69 inline const Aws::String& GetTerm() const { return m_term; }
70 inline bool TermHasBeenSet() const { return m_termHasBeenSet; }
71 template<typename TermT = Aws::String>
72 void SetTerm(TermT&& value) { m_termHasBeenSet = true; m_term = std::forward<TermT>(value); }
73 template<typename TermT = Aws::String>
74 DynamoDbReservedCapacityConfiguration& WithTerm(TermT&& value) { SetTerm(std::forward<TermT>(value)); return *this;}
76
78
81 inline const Aws::String& GetPaymentOption() const { return m_paymentOption; }
82 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
83 template<typename PaymentOptionT = Aws::String>
84 void SetPaymentOption(PaymentOptionT&& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = std::forward<PaymentOptionT>(value); }
85 template<typename PaymentOptionT = Aws::String>
86 DynamoDbReservedCapacityConfiguration& WithPaymentOption(PaymentOptionT&& value) { SetPaymentOption(std::forward<PaymentOptionT>(value)); return *this;}
88
90
93 inline const Aws::String& GetReservedInstancesRegion() const { return m_reservedInstancesRegion; }
94 inline bool ReservedInstancesRegionHasBeenSet() const { return m_reservedInstancesRegionHasBeenSet; }
95 template<typename ReservedInstancesRegionT = Aws::String>
96 void SetReservedInstancesRegion(ReservedInstancesRegionT&& value) { m_reservedInstancesRegionHasBeenSet = true; m_reservedInstancesRegion = std::forward<ReservedInstancesRegionT>(value); }
97 template<typename ReservedInstancesRegionT = Aws::String>
98 DynamoDbReservedCapacityConfiguration& WithReservedInstancesRegion(ReservedInstancesRegionT&& value) { SetReservedInstancesRegion(std::forward<ReservedInstancesRegionT>(value)); return *this;}
100
102
105 inline const Aws::String& GetUpfrontCost() const { return m_upfrontCost; }
106 inline bool UpfrontCostHasBeenSet() const { return m_upfrontCostHasBeenSet; }
107 template<typename UpfrontCostT = Aws::String>
108 void SetUpfrontCost(UpfrontCostT&& value) { m_upfrontCostHasBeenSet = true; m_upfrontCost = std::forward<UpfrontCostT>(value); }
109 template<typename UpfrontCostT = Aws::String>
110 DynamoDbReservedCapacityConfiguration& WithUpfrontCost(UpfrontCostT&& value) { SetUpfrontCost(std::forward<UpfrontCostT>(value)); return *this;}
112
114
117 inline const Aws::String& GetMonthlyRecurringCost() const { return m_monthlyRecurringCost; }
118 inline bool MonthlyRecurringCostHasBeenSet() const { return m_monthlyRecurringCostHasBeenSet; }
119 template<typename MonthlyRecurringCostT = Aws::String>
120 void SetMonthlyRecurringCost(MonthlyRecurringCostT&& value) { m_monthlyRecurringCostHasBeenSet = true; m_monthlyRecurringCost = std::forward<MonthlyRecurringCostT>(value); }
121 template<typename MonthlyRecurringCostT = Aws::String>
122 DynamoDbReservedCapacityConfiguration& WithMonthlyRecurringCost(MonthlyRecurringCostT&& value) { SetMonthlyRecurringCost(std::forward<MonthlyRecurringCostT>(value)); return *this;}
124
126
130 inline const Aws::String& GetNumberOfCapacityUnitsToPurchase() const { return m_numberOfCapacityUnitsToPurchase; }
131 inline bool NumberOfCapacityUnitsToPurchaseHasBeenSet() const { return m_numberOfCapacityUnitsToPurchaseHasBeenSet; }
132 template<typename NumberOfCapacityUnitsToPurchaseT = Aws::String>
133 void SetNumberOfCapacityUnitsToPurchase(NumberOfCapacityUnitsToPurchaseT&& value) { m_numberOfCapacityUnitsToPurchaseHasBeenSet = true; m_numberOfCapacityUnitsToPurchase = std::forward<NumberOfCapacityUnitsToPurchaseT>(value); }
134 template<typename NumberOfCapacityUnitsToPurchaseT = Aws::String>
135 DynamoDbReservedCapacityConfiguration& WithNumberOfCapacityUnitsToPurchase(NumberOfCapacityUnitsToPurchaseT&& value) { SetNumberOfCapacityUnitsToPurchase(std::forward<NumberOfCapacityUnitsToPurchaseT>(value)); return *this;}
137
139
142 inline const Aws::String& GetCapacityUnits() const { return m_capacityUnits; }
143 inline bool CapacityUnitsHasBeenSet() const { return m_capacityUnitsHasBeenSet; }
144 template<typename CapacityUnitsT = Aws::String>
145 void SetCapacityUnits(CapacityUnitsT&& value) { m_capacityUnitsHasBeenSet = true; m_capacityUnits = std::forward<CapacityUnitsT>(value); }
146 template<typename CapacityUnitsT = Aws::String>
147 DynamoDbReservedCapacityConfiguration& WithCapacityUnits(CapacityUnitsT&& value) { SetCapacityUnits(std::forward<CapacityUnitsT>(value)); return *this;}
149 private:
150
151 Aws::String m_accountScope;
152 bool m_accountScopeHasBeenSet = false;
153
154 Aws::String m_service;
155 bool m_serviceHasBeenSet = false;
156
157 Aws::String m_term;
158 bool m_termHasBeenSet = false;
159
160 Aws::String m_paymentOption;
161 bool m_paymentOptionHasBeenSet = false;
162
163 Aws::String m_reservedInstancesRegion;
164 bool m_reservedInstancesRegionHasBeenSet = false;
165
166 Aws::String m_upfrontCost;
167 bool m_upfrontCostHasBeenSet = false;
168
169 Aws::String m_monthlyRecurringCost;
170 bool m_monthlyRecurringCostHasBeenSet = false;
171
172 Aws::String m_numberOfCapacityUnitsToPurchase;
173 bool m_numberOfCapacityUnitsToPurchaseHasBeenSet = false;
174
175 Aws::String m_capacityUnits;
176 bool m_capacityUnitsHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace CostOptimizationHub
181} // 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