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>
23namespace CostExplorer {
44 template <
typename ResourceIdT = Aws::String>
46 m_resourceIdHasBeenSet =
true;
47 m_resourceId = std::forward<ResourceIdT>(value);
49 template <
typename ResourceIdT = Aws::String>
63 template <
typename InstanceNameT = Aws::String>
65 m_instanceNameHasBeenSet =
true;
66 m_instanceName = std::forward<InstanceNameT>(value);
68 template <
typename InstanceNameT = Aws::String>
81 template <
typename TagsT = Aws::Vector<TagValues>>
83 m_tagsHasBeenSet =
true;
84 m_tags = std::forward<TagsT>(value);
86 template <
typename TagsT = Aws::Vector<TagValues>>
88 SetTags(std::forward<TagsT>(value));
91 template <
typename TagsT = TagValues>
93 m_tagsHasBeenSet =
true;
94 m_tags.emplace_back(std::forward<TagsT>(value));
105 template <
typename ResourceDetailsT = ResourceDetails>
107 m_resourceDetailsHasBeenSet =
true;
108 m_resourceDetails = std::forward<ResourceDetailsT>(value);
110 template <
typename ResourceDetailsT = ResourceDetails>
124 template <
typename ResourceUtilizationT = ResourceUtilization>
126 m_resourceUtilizationHasBeenSet =
true;
127 m_resourceUtilization = std::forward<ResourceUtilizationT>(value);
129 template <
typename ResourceUtilizationT = ResourceUtilization>
143 template <
typename ReservationCoveredHoursInLookbackPeriodT = Aws::String>
145 m_reservationCoveredHoursInLookbackPeriodHasBeenSet =
true;
146 m_reservationCoveredHoursInLookbackPeriod = std::forward<ReservationCoveredHoursInLookbackPeriodT>(value);
148 template <
typename ReservationCoveredHoursInLookbackPeriodT = Aws::String>
162 template <
typename SavingsPlansCoveredHoursInLookbackPeriodT = Aws::String>
164 m_savingsPlansCoveredHoursInLookbackPeriodHasBeenSet =
true;
165 m_savingsPlansCoveredHoursInLookbackPeriod = std::forward<SavingsPlansCoveredHoursInLookbackPeriodT>(value);
167 template <
typename SavingsPlansCoveredHoursInLookbackPeriodT = Aws::String>
181 template <
typename OnDemandHoursInLookbackPeriodT = Aws::String>
183 m_onDemandHoursInLookbackPeriodHasBeenSet =
true;
184 m_onDemandHoursInLookbackPeriod = std::forward<OnDemandHoursInLookbackPeriodT>(value);
186 template <
typename OnDemandHoursInLookbackPeriodT = Aws::String>
200 template <
typename TotalRunningHoursInLookbackPeriodT = Aws::String>
202 m_totalRunningHoursInLookbackPeriodHasBeenSet =
true;
203 m_totalRunningHoursInLookbackPeriod = std::forward<TotalRunningHoursInLookbackPeriodT>(value);
205 template <
typename TotalRunningHoursInLookbackPeriodT = Aws::String>
218 template <
typename MonthlyCostT = Aws::String>
220 m_monthlyCostHasBeenSet =
true;
221 m_monthlyCost = std::forward<MonthlyCostT>(value);
223 template <
typename MonthlyCostT = Aws::String>
237 template <
typename CurrencyCodeT = Aws::String>
239 m_currencyCodeHasBeenSet =
true;
240 m_currencyCode = std::forward<CurrencyCodeT>(value);
242 template <
typename CurrencyCodeT = Aws::String>
259 Aws::String m_reservationCoveredHoursInLookbackPeriod;
261 Aws::String m_savingsPlansCoveredHoursInLookbackPeriod;
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;
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)
bool ResourceIdHasBeenSet() const
const ResourceDetails & GetResourceDetails() const
void SetReservationCoveredHoursInLookbackPeriod(ReservationCoveredHoursInLookbackPeriodT &&value)
bool ReservationCoveredHoursInLookbackPeriodHasBeenSet() const
CurrentInstance & WithReservationCoveredHoursInLookbackPeriod(ReservationCoveredHoursInLookbackPeriodT &&value)
bool InstanceNameHasBeenSet() const
bool ResourceUtilizationHasBeenSet() const
AWS_COSTEXPLORER_API CurrentInstance(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetInstanceName() const
bool TagsHasBeenSet() const
void SetMonthlyCost(MonthlyCostT &&value)
bool MonthlyCostHasBeenSet() const
void SetResourceId(ResourceIdT &&value)
void SetCurrencyCode(CurrencyCodeT &&value)
bool TotalRunningHoursInLookbackPeriodHasBeenSet() const
const ResourceUtilization & GetResourceUtilization() const
CurrentInstance & WithCurrencyCode(CurrencyCodeT &&value)
bool SavingsPlansCoveredHoursInLookbackPeriodHasBeenSet() const
CurrentInstance & WithOnDemandHoursInLookbackPeriod(OnDemandHoursInLookbackPeriodT &&value)
CurrentInstance & WithResourceDetails(ResourceDetailsT &&value)
CurrentInstance & WithResourceId(ResourceIdT &&value)
bool OnDemandHoursInLookbackPeriodHasBeenSet() const
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
bool ResourceDetailsHasBeenSet() const
void SetInstanceName(InstanceNameT &&value)
bool CurrencyCodeHasBeenSet() const
void SetTags(TagsT &&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