AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
CurrentInstance.h
1
6#pragma once
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>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CostExplorer
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_COSTEXPLORER_API CurrentInstance() = default;
39 AWS_COSTEXPLORER_API CurrentInstance(Aws::Utils::Json::JsonView jsonValue);
40 AWS_COSTEXPLORER_API CurrentInstance& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetResourceId() const { return m_resourceId; }
49 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
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>
53 CurrentInstance& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
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) { m_instanceNameHasBeenSet = true; m_instanceName = std::forward<InstanceNameT>(value); }
65 template<typename InstanceNameT = Aws::String>
66 CurrentInstance& WithInstanceName(InstanceNameT&& value) { SetInstanceName(std::forward<InstanceNameT>(value)); return *this;}
68
70
73 inline const Aws::Vector<TagValues>& GetTags() const { return m_tags; }
74 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
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>>
78 CurrentInstance& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
79 template<typename TagsT = TagValues>
80 CurrentInstance& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
82
84
87 inline const ResourceDetails& GetResourceDetails() const { return m_resourceDetails; }
88 inline bool ResourceDetailsHasBeenSet() const { return m_resourceDetailsHasBeenSet; }
89 template<typename ResourceDetailsT = ResourceDetails>
90 void SetResourceDetails(ResourceDetailsT&& value) { m_resourceDetailsHasBeenSet = true; m_resourceDetails = std::forward<ResourceDetailsT>(value); }
91 template<typename ResourceDetailsT = ResourceDetails>
92 CurrentInstance& WithResourceDetails(ResourceDetailsT&& value) { SetResourceDetails(std::forward<ResourceDetailsT>(value)); return *this;}
94
96
100 inline const ResourceUtilization& GetResourceUtilization() const { return m_resourceUtilization; }
101 inline bool ResourceUtilizationHasBeenSet() const { return m_resourceUtilizationHasBeenSet; }
102 template<typename ResourceUtilizationT = ResourceUtilization>
103 void SetResourceUtilization(ResourceUtilizationT&& value) { m_resourceUtilizationHasBeenSet = true; m_resourceUtilization = std::forward<ResourceUtilizationT>(value); }
104 template<typename ResourceUtilizationT = ResourceUtilization>
105 CurrentInstance& WithResourceUtilization(ResourceUtilizationT&& value) { SetResourceUtilization(std::forward<ResourceUtilizationT>(value)); return *this;}
107
109
113 inline const Aws::String& GetReservationCoveredHoursInLookbackPeriod() const { return m_reservationCoveredHoursInLookbackPeriod; }
114 inline bool ReservationCoveredHoursInLookbackPeriodHasBeenSet() const { return m_reservationCoveredHoursInLookbackPeriodHasBeenSet; }
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>
118 CurrentInstance& WithReservationCoveredHoursInLookbackPeriod(ReservationCoveredHoursInLookbackPeriodT&& value) { SetReservationCoveredHoursInLookbackPeriod(std::forward<ReservationCoveredHoursInLookbackPeriodT>(value)); return *this;}
120
122
126 inline const Aws::String& GetSavingsPlansCoveredHoursInLookbackPeriod() const { return m_savingsPlansCoveredHoursInLookbackPeriod; }
127 inline bool SavingsPlansCoveredHoursInLookbackPeriodHasBeenSet() const { return m_savingsPlansCoveredHoursInLookbackPeriodHasBeenSet; }
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>
131 CurrentInstance& WithSavingsPlansCoveredHoursInLookbackPeriod(SavingsPlansCoveredHoursInLookbackPeriodT&& value) { SetSavingsPlansCoveredHoursInLookbackPeriod(std::forward<SavingsPlansCoveredHoursInLookbackPeriodT>(value)); return *this;}
133
135
139 inline const Aws::String& GetOnDemandHoursInLookbackPeriod() const { return m_onDemandHoursInLookbackPeriod; }
140 inline bool OnDemandHoursInLookbackPeriodHasBeenSet() const { return m_onDemandHoursInLookbackPeriodHasBeenSet; }
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>
144 CurrentInstance& WithOnDemandHoursInLookbackPeriod(OnDemandHoursInLookbackPeriodT&& value) { SetOnDemandHoursInLookbackPeriod(std::forward<OnDemandHoursInLookbackPeriodT>(value)); return *this;}
146
148
152 inline const Aws::String& GetTotalRunningHoursInLookbackPeriod() const { return m_totalRunningHoursInLookbackPeriod; }
153 inline bool TotalRunningHoursInLookbackPeriodHasBeenSet() const { return m_totalRunningHoursInLookbackPeriodHasBeenSet; }
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>
157 CurrentInstance& WithTotalRunningHoursInLookbackPeriod(TotalRunningHoursInLookbackPeriodT&& value) { SetTotalRunningHoursInLookbackPeriod(std::forward<TotalRunningHoursInLookbackPeriodT>(value)); return *this;}
159
161
164 inline const Aws::String& GetMonthlyCost() const { return m_monthlyCost; }
165 inline bool MonthlyCostHasBeenSet() const { return m_monthlyCostHasBeenSet; }
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>
169 CurrentInstance& WithMonthlyCost(MonthlyCostT&& value) { SetMonthlyCost(std::forward<MonthlyCostT>(value)); return *this;}
171
173
177 inline const Aws::String& GetCurrencyCode() const { return m_currencyCode; }
178 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
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>
182 CurrentInstance& WithCurrencyCode(CurrencyCodeT&& value) { SetCurrencyCode(std::forward<CurrencyCodeT>(value)); return *this;}
184 private:
185
186 Aws::String m_resourceId;
187 bool m_resourceIdHasBeenSet = false;
188
189 Aws::String m_instanceName;
190 bool m_instanceNameHasBeenSet = false;
191
193 bool m_tagsHasBeenSet = false;
194
195 ResourceDetails m_resourceDetails;
196 bool m_resourceDetailsHasBeenSet = false;
197
198 ResourceUtilization m_resourceUtilization;
199 bool m_resourceUtilizationHasBeenSet = false;
200
201 Aws::String m_reservationCoveredHoursInLookbackPeriod;
202 bool m_reservationCoveredHoursInLookbackPeriodHasBeenSet = false;
203
204 Aws::String m_savingsPlansCoveredHoursInLookbackPeriod;
205 bool m_savingsPlansCoveredHoursInLookbackPeriodHasBeenSet = false;
206
207 Aws::String m_onDemandHoursInLookbackPeriod;
208 bool m_onDemandHoursInLookbackPeriodHasBeenSet = false;
209
210 Aws::String m_totalRunningHoursInLookbackPeriod;
211 bool m_totalRunningHoursInLookbackPeriodHasBeenSet = false;
212
213 Aws::String m_monthlyCost;
214 bool m_monthlyCostHasBeenSet = false;
215
216 Aws::String m_currencyCode;
217 bool m_currencyCodeHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace CostExplorer
222} // 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