7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ce/model/ResourceDetails.h>
11#include <aws/ce/model/ResourceUtilization.h>
12#include <aws/ce/model/TagValues.h>
50 template<
typename ResourceIdT = Aws::String>
51 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet =
true; m_resourceId = std::forward<ResourceIdT>(value); }
52 template<
typename ResourceIdT = Aws::String>
63 template<
typename InstanceNameT = Aws::String>
64 void SetInstanceName(InstanceNameT&& value) { m_instanceNameHasBeenSet =
true; m_instanceName = std::forward<InstanceNameT>(value); }
65 template<
typename InstanceNameT = Aws::String>
75 template<
typename TagsT = Aws::Vector<TagValues>>
76 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
77 template<
typename TagsT = Aws::Vector<TagValues>>
79 template<
typename TagsT = TagValues>
80 CurrentInstance&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
89 template<
typename ResourceDetailsT = ResourceDetails>
90 void SetResourceDetails(ResourceDetailsT&& value) { m_resourceDetailsHasBeenSet =
true; m_resourceDetails = std::forward<ResourceDetailsT>(value); }
91 template<
typename ResourceDetailsT = ResourceDetails>
102 template<
typename ResourceUtilizationT = ResourceUtilization>
103 void SetResourceUtilization(ResourceUtilizationT&& value) { m_resourceUtilizationHasBeenSet =
true; m_resourceUtilization = std::forward<ResourceUtilizationT>(value); }
104 template<
typename ResourceUtilizationT = ResourceUtilization>
115 template<
typename ReservationCoveredHoursInLookbackPeriodT = Aws::String>
116 void SetReservationCoveredHoursInLookbackPeriod(ReservationCoveredHoursInLookbackPeriodT&& value) { m_reservationCoveredHoursInLookbackPeriodHasBeenSet =
true; m_reservationCoveredHoursInLookbackPeriod = std::forward<ReservationCoveredHoursInLookbackPeriodT>(value); }
117 template<
typename ReservationCoveredHoursInLookbackPeriodT = Aws::String>
128 template<
typename SavingsPlansCoveredHoursInLookbackPeriodT = Aws::String>
129 void SetSavingsPlansCoveredHoursInLookbackPeriod(SavingsPlansCoveredHoursInLookbackPeriodT&& value) { m_savingsPlansCoveredHoursInLookbackPeriodHasBeenSet =
true; m_savingsPlansCoveredHoursInLookbackPeriod = std::forward<SavingsPlansCoveredHoursInLookbackPeriodT>(value); }
130 template<
typename SavingsPlansCoveredHoursInLookbackPeriodT = Aws::String>
141 template<
typename OnDemandHoursInLookbackPeriodT = Aws::String>
142 void SetOnDemandHoursInLookbackPeriod(OnDemandHoursInLookbackPeriodT&& value) { m_onDemandHoursInLookbackPeriodHasBeenSet =
true; m_onDemandHoursInLookbackPeriod = std::forward<OnDemandHoursInLookbackPeriodT>(value); }
143 template<
typename OnDemandHoursInLookbackPeriodT = Aws::String>
154 template<
typename TotalRunningHoursInLookbackPeriodT = Aws::String>
155 void SetTotalRunningHoursInLookbackPeriod(TotalRunningHoursInLookbackPeriodT&& value) { m_totalRunningHoursInLookbackPeriodHasBeenSet =
true; m_totalRunningHoursInLookbackPeriod = std::forward<TotalRunningHoursInLookbackPeriodT>(value); }
156 template<
typename TotalRunningHoursInLookbackPeriodT = Aws::String>
166 template<
typename MonthlyCostT = Aws::String>
167 void SetMonthlyCost(MonthlyCostT&& value) { m_monthlyCostHasBeenSet =
true; m_monthlyCost = std::forward<MonthlyCostT>(value); }
168 template<
typename MonthlyCostT = Aws::String>
179 template<
typename CurrencyCodeT = Aws::String>
180 void SetCurrencyCode(CurrencyCodeT&& value) { m_currencyCodeHasBeenSet =
true; m_currencyCode = std::forward<CurrencyCodeT>(value); }
181 template<
typename CurrencyCodeT = Aws::String>
187 bool m_resourceIdHasBeenSet =
false;
190 bool m_instanceNameHasBeenSet =
false;
193 bool m_tagsHasBeenSet =
false;
196 bool m_resourceDetailsHasBeenSet =
false;
199 bool m_resourceUtilizationHasBeenSet =
false;
201 Aws::String m_reservationCoveredHoursInLookbackPeriod;
202 bool m_reservationCoveredHoursInLookbackPeriodHasBeenSet =
false;
204 Aws::String m_savingsPlansCoveredHoursInLookbackPeriod;
205 bool m_savingsPlansCoveredHoursInLookbackPeriodHasBeenSet =
false;
208 bool m_onDemandHoursInLookbackPeriodHasBeenSet =
false;
211 bool m_totalRunningHoursInLookbackPeriodHasBeenSet =
false;
214 bool m_monthlyCostHasBeenSet =
false;
217 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