AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CurrentInstance.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/ResourceDetails.h>
9#include <aws/ce/model/ResourceUtilization.h>
10#include <aws/ce/model/TagValues.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CostExplorer {
24namespace Model {
25
32 public:
33 AWS_COSTEXPLORER_API CurrentInstance() = default;
34 AWS_COSTEXPLORER_API CurrentInstance(Aws::Utils::Json::JsonView jsonValue);
35 AWS_COSTEXPLORER_API CurrentInstance& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetResourceId() const { return m_resourceId; }
43 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
44 template <typename ResourceIdT = Aws::String>
45 void SetResourceId(ResourceIdT&& value) {
46 m_resourceIdHasBeenSet = true;
47 m_resourceId = std::forward<ResourceIdT>(value);
48 }
49 template <typename ResourceIdT = Aws::String>
50 CurrentInstance& WithResourceId(ResourceIdT&& value) {
51 SetResourceId(std::forward<ResourceIdT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetInstanceName() const { return m_instanceName; }
62 inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
63 template <typename InstanceNameT = Aws::String>
64 void SetInstanceName(InstanceNameT&& value) {
65 m_instanceNameHasBeenSet = true;
66 m_instanceName = std::forward<InstanceNameT>(value);
67 }
68 template <typename InstanceNameT = Aws::String>
69 CurrentInstance& WithInstanceName(InstanceNameT&& value) {
70 SetInstanceName(std::forward<InstanceNameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<TagValues>& GetTags() const { return m_tags; }
80 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
81 template <typename TagsT = Aws::Vector<TagValues>>
82 void SetTags(TagsT&& value) {
83 m_tagsHasBeenSet = true;
84 m_tags = std::forward<TagsT>(value);
85 }
86 template <typename TagsT = Aws::Vector<TagValues>>
87 CurrentInstance& WithTags(TagsT&& value) {
88 SetTags(std::forward<TagsT>(value));
89 return *this;
90 }
91 template <typename TagsT = TagValues>
92 CurrentInstance& AddTags(TagsT&& value) {
93 m_tagsHasBeenSet = true;
94 m_tags.emplace_back(std::forward<TagsT>(value));
95 return *this;
96 }
98
100
103 inline const ResourceDetails& GetResourceDetails() const { return m_resourceDetails; }
104 inline bool ResourceDetailsHasBeenSet() const { return m_resourceDetailsHasBeenSet; }
105 template <typename ResourceDetailsT = ResourceDetails>
106 void SetResourceDetails(ResourceDetailsT&& value) {
107 m_resourceDetailsHasBeenSet = true;
108 m_resourceDetails = std::forward<ResourceDetailsT>(value);
109 }
110 template <typename ResourceDetailsT = ResourceDetails>
111 CurrentInstance& WithResourceDetails(ResourceDetailsT&& value) {
112 SetResourceDetails(std::forward<ResourceDetailsT>(value));
113 return *this;
114 }
116
118
122 inline const ResourceUtilization& GetResourceUtilization() const { return m_resourceUtilization; }
123 inline bool ResourceUtilizationHasBeenSet() const { return m_resourceUtilizationHasBeenSet; }
124 template <typename ResourceUtilizationT = ResourceUtilization>
125 void SetResourceUtilization(ResourceUtilizationT&& value) {
126 m_resourceUtilizationHasBeenSet = true;
127 m_resourceUtilization = std::forward<ResourceUtilizationT>(value);
128 }
129 template <typename ResourceUtilizationT = ResourceUtilization>
130 CurrentInstance& WithResourceUtilization(ResourceUtilizationT&& value) {
131 SetResourceUtilization(std::forward<ResourceUtilizationT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::String& GetReservationCoveredHoursInLookbackPeriod() const { return m_reservationCoveredHoursInLookbackPeriod; }
142 inline bool ReservationCoveredHoursInLookbackPeriodHasBeenSet() const { return m_reservationCoveredHoursInLookbackPeriodHasBeenSet; }
143 template <typename ReservationCoveredHoursInLookbackPeriodT = Aws::String>
144 void SetReservationCoveredHoursInLookbackPeriod(ReservationCoveredHoursInLookbackPeriodT&& value) {
145 m_reservationCoveredHoursInLookbackPeriodHasBeenSet = true;
146 m_reservationCoveredHoursInLookbackPeriod = std::forward<ReservationCoveredHoursInLookbackPeriodT>(value);
147 }
148 template <typename ReservationCoveredHoursInLookbackPeriodT = Aws::String>
149 CurrentInstance& WithReservationCoveredHoursInLookbackPeriod(ReservationCoveredHoursInLookbackPeriodT&& value) {
150 SetReservationCoveredHoursInLookbackPeriod(std::forward<ReservationCoveredHoursInLookbackPeriodT>(value));
151 return *this;
152 }
154
156
160 inline const Aws::String& GetSavingsPlansCoveredHoursInLookbackPeriod() const { return m_savingsPlansCoveredHoursInLookbackPeriod; }
161 inline bool SavingsPlansCoveredHoursInLookbackPeriodHasBeenSet() const { return m_savingsPlansCoveredHoursInLookbackPeriodHasBeenSet; }
162 template <typename SavingsPlansCoveredHoursInLookbackPeriodT = Aws::String>
163 void SetSavingsPlansCoveredHoursInLookbackPeriod(SavingsPlansCoveredHoursInLookbackPeriodT&& value) {
164 m_savingsPlansCoveredHoursInLookbackPeriodHasBeenSet = true;
165 m_savingsPlansCoveredHoursInLookbackPeriod = std::forward<SavingsPlansCoveredHoursInLookbackPeriodT>(value);
166 }
167 template <typename SavingsPlansCoveredHoursInLookbackPeriodT = Aws::String>
168 CurrentInstance& WithSavingsPlansCoveredHoursInLookbackPeriod(SavingsPlansCoveredHoursInLookbackPeriodT&& value) {
169 SetSavingsPlansCoveredHoursInLookbackPeriod(std::forward<SavingsPlansCoveredHoursInLookbackPeriodT>(value));
170 return *this;
171 }
173
175
179 inline const Aws::String& GetOnDemandHoursInLookbackPeriod() const { return m_onDemandHoursInLookbackPeriod; }
180 inline bool OnDemandHoursInLookbackPeriodHasBeenSet() const { return m_onDemandHoursInLookbackPeriodHasBeenSet; }
181 template <typename OnDemandHoursInLookbackPeriodT = Aws::String>
182 void SetOnDemandHoursInLookbackPeriod(OnDemandHoursInLookbackPeriodT&& value) {
183 m_onDemandHoursInLookbackPeriodHasBeenSet = true;
184 m_onDemandHoursInLookbackPeriod = std::forward<OnDemandHoursInLookbackPeriodT>(value);
185 }
186 template <typename OnDemandHoursInLookbackPeriodT = Aws::String>
187 CurrentInstance& WithOnDemandHoursInLookbackPeriod(OnDemandHoursInLookbackPeriodT&& value) {
188 SetOnDemandHoursInLookbackPeriod(std::forward<OnDemandHoursInLookbackPeriodT>(value));
189 return *this;
190 }
192
194
198 inline const Aws::String& GetTotalRunningHoursInLookbackPeriod() const { return m_totalRunningHoursInLookbackPeriod; }
199 inline bool TotalRunningHoursInLookbackPeriodHasBeenSet() const { return m_totalRunningHoursInLookbackPeriodHasBeenSet; }
200 template <typename TotalRunningHoursInLookbackPeriodT = Aws::String>
201 void SetTotalRunningHoursInLookbackPeriod(TotalRunningHoursInLookbackPeriodT&& value) {
202 m_totalRunningHoursInLookbackPeriodHasBeenSet = true;
203 m_totalRunningHoursInLookbackPeriod = std::forward<TotalRunningHoursInLookbackPeriodT>(value);
204 }
205 template <typename TotalRunningHoursInLookbackPeriodT = Aws::String>
206 CurrentInstance& WithTotalRunningHoursInLookbackPeriod(TotalRunningHoursInLookbackPeriodT&& value) {
207 SetTotalRunningHoursInLookbackPeriod(std::forward<TotalRunningHoursInLookbackPeriodT>(value));
208 return *this;
209 }
211
213
216 inline const Aws::String& GetMonthlyCost() const { return m_monthlyCost; }
217 inline bool MonthlyCostHasBeenSet() const { return m_monthlyCostHasBeenSet; }
218 template <typename MonthlyCostT = Aws::String>
219 void SetMonthlyCost(MonthlyCostT&& value) {
220 m_monthlyCostHasBeenSet = true;
221 m_monthlyCost = std::forward<MonthlyCostT>(value);
222 }
223 template <typename MonthlyCostT = Aws::String>
224 CurrentInstance& WithMonthlyCost(MonthlyCostT&& value) {
225 SetMonthlyCost(std::forward<MonthlyCostT>(value));
226 return *this;
227 }
229
231
235 inline const Aws::String& GetCurrencyCode() const { return m_currencyCode; }
236 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
237 template <typename CurrencyCodeT = Aws::String>
238 void SetCurrencyCode(CurrencyCodeT&& value) {
239 m_currencyCodeHasBeenSet = true;
240 m_currencyCode = std::forward<CurrencyCodeT>(value);
241 }
242 template <typename CurrencyCodeT = Aws::String>
243 CurrentInstance& WithCurrencyCode(CurrencyCodeT&& value) {
244 SetCurrencyCode(std::forward<CurrencyCodeT>(value));
245 return *this;
246 }
248 private:
249 Aws::String m_resourceId;
250
251 Aws::String m_instanceName;
252
254
255 ResourceDetails m_resourceDetails;
256
257 ResourceUtilization m_resourceUtilization;
258
259 Aws::String m_reservationCoveredHoursInLookbackPeriod;
260
261 Aws::String m_savingsPlansCoveredHoursInLookbackPeriod;
262
263 Aws::String m_onDemandHoursInLookbackPeriod;
264
265 Aws::String m_totalRunningHoursInLookbackPeriod;
266
267 Aws::String m_monthlyCost;
268
269 Aws::String m_currencyCode;
270 bool m_resourceIdHasBeenSet = false;
271 bool m_instanceNameHasBeenSet = false;
272 bool m_tagsHasBeenSet = false;
273 bool m_resourceDetailsHasBeenSet = false;
274 bool m_resourceUtilizationHasBeenSet = false;
275 bool m_reservationCoveredHoursInLookbackPeriodHasBeenSet = false;
276 bool m_savingsPlansCoveredHoursInLookbackPeriodHasBeenSet = false;
277 bool m_onDemandHoursInLookbackPeriodHasBeenSet = false;
278 bool m_totalRunningHoursInLookbackPeriodHasBeenSet = false;
279 bool m_monthlyCostHasBeenSet = false;
280 bool m_currencyCodeHasBeenSet = false;
281};
282
283} // namespace Model
284} // namespace CostExplorer
285} // namespace Aws
CurrentInstance & WithMonthlyCost(MonthlyCostT &&value)
CurrentInstance & WithTotalRunningHoursInLookbackPeriod(TotalRunningHoursInLookbackPeriodT &&value)
void SetOnDemandHoursInLookbackPeriod(OnDemandHoursInLookbackPeriodT &&value)
void SetResourceUtilization(ResourceUtilizationT &&value)
const Aws::Vector< TagValues > & GetTags() const
CurrentInstance & WithResourceUtilization(ResourceUtilizationT &&value)
const ResourceDetails & GetResourceDetails() const
void SetReservationCoveredHoursInLookbackPeriod(ReservationCoveredHoursInLookbackPeriodT &&value)
CurrentInstance & WithReservationCoveredHoursInLookbackPeriod(ReservationCoveredHoursInLookbackPeriodT &&value)
AWS_COSTEXPLORER_API CurrentInstance(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetInstanceName() const
void SetMonthlyCost(MonthlyCostT &&value)
void SetCurrencyCode(CurrencyCodeT &&value)
const ResourceUtilization & GetResourceUtilization() const
CurrentInstance & WithCurrencyCode(CurrencyCodeT &&value)
CurrentInstance & WithOnDemandHoursInLookbackPeriod(OnDemandHoursInLookbackPeriodT &&value)
CurrentInstance & WithResourceDetails(ResourceDetailsT &&value)
CurrentInstance & WithResourceId(ResourceIdT &&value)
const Aws::String & GetSavingsPlansCoveredHoursInLookbackPeriod() const
const Aws::String & GetCurrencyCode() const
const Aws::String & GetMonthlyCost() const
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSavingsPlansCoveredHoursInLookbackPeriod(SavingsPlansCoveredHoursInLookbackPeriodT &&value)
const Aws::String & GetResourceId() const
void SetResourceDetails(ResourceDetailsT &&value)
void SetTotalRunningHoursInLookbackPeriod(TotalRunningHoursInLookbackPeriodT &&value)
const Aws::String & GetReservationCoveredHoursInLookbackPeriod() const
CurrentInstance & AddTags(TagsT &&value)
CurrentInstance & WithTags(TagsT &&value)
AWS_COSTEXPLORER_API CurrentInstance()=default
CurrentInstance & WithSavingsPlansCoveredHoursInLookbackPeriod(SavingsPlansCoveredHoursInLookbackPeriodT &&value)
AWS_COSTEXPLORER_API CurrentInstance & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTotalRunningHoursInLookbackPeriod() const
const Aws::String & GetOnDemandHoursInLookbackPeriod() const
void SetInstanceName(InstanceNameT &&value)
CurrentInstance & WithInstanceName(InstanceNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue