AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
51 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
52 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
53 inline CurrentInstance& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
54 inline CurrentInstance& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
55 inline CurrentInstance& WithResourceId(const char* value) { SetResourceId(value); return *this;}
57
59
63 inline const Aws::String& GetInstanceName() const{ return m_instanceName; }
64 inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
65 inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; }
66 inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); }
67 inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); }
68 inline CurrentInstance& WithInstanceName(const Aws::String& value) { SetInstanceName(value); return *this;}
69 inline CurrentInstance& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;}
70 inline CurrentInstance& WithInstanceName(const char* value) { SetInstanceName(value); return *this;}
72
74
77 inline const Aws::Vector<TagValues>& GetTags() const{ return m_tags; }
78 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
79 inline void SetTags(const Aws::Vector<TagValues>& value) { m_tagsHasBeenSet = true; m_tags = value; }
80 inline void SetTags(Aws::Vector<TagValues>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
81 inline CurrentInstance& WithTags(const Aws::Vector<TagValues>& value) { SetTags(value); return *this;}
82 inline CurrentInstance& WithTags(Aws::Vector<TagValues>&& value) { SetTags(std::move(value)); return *this;}
83 inline CurrentInstance& AddTags(const TagValues& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
84 inline CurrentInstance& AddTags(TagValues&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
86
88
91 inline const ResourceDetails& GetResourceDetails() const{ return m_resourceDetails; }
92 inline bool ResourceDetailsHasBeenSet() const { return m_resourceDetailsHasBeenSet; }
93 inline void SetResourceDetails(const ResourceDetails& value) { m_resourceDetailsHasBeenSet = true; m_resourceDetails = value; }
94 inline void SetResourceDetails(ResourceDetails&& value) { m_resourceDetailsHasBeenSet = true; m_resourceDetails = std::move(value); }
95 inline CurrentInstance& WithResourceDetails(const ResourceDetails& value) { SetResourceDetails(value); return *this;}
96 inline CurrentInstance& WithResourceDetails(ResourceDetails&& value) { SetResourceDetails(std::move(value)); return *this;}
98
100
104 inline const ResourceUtilization& GetResourceUtilization() const{ return m_resourceUtilization; }
105 inline bool ResourceUtilizationHasBeenSet() const { return m_resourceUtilizationHasBeenSet; }
106 inline void SetResourceUtilization(const ResourceUtilization& value) { m_resourceUtilizationHasBeenSet = true; m_resourceUtilization = value; }
107 inline void SetResourceUtilization(ResourceUtilization&& value) { m_resourceUtilizationHasBeenSet = true; m_resourceUtilization = std::move(value); }
109 inline CurrentInstance& WithResourceUtilization(ResourceUtilization&& value) { SetResourceUtilization(std::move(value)); return *this;}
111
113
117 inline const Aws::String& GetReservationCoveredHoursInLookbackPeriod() const{ return m_reservationCoveredHoursInLookbackPeriod; }
118 inline bool ReservationCoveredHoursInLookbackPeriodHasBeenSet() const { return m_reservationCoveredHoursInLookbackPeriodHasBeenSet; }
119 inline void SetReservationCoveredHoursInLookbackPeriod(const Aws::String& value) { m_reservationCoveredHoursInLookbackPeriodHasBeenSet = true; m_reservationCoveredHoursInLookbackPeriod = value; }
120 inline void SetReservationCoveredHoursInLookbackPeriod(Aws::String&& value) { m_reservationCoveredHoursInLookbackPeriodHasBeenSet = true; m_reservationCoveredHoursInLookbackPeriod = std::move(value); }
121 inline void SetReservationCoveredHoursInLookbackPeriod(const char* value) { m_reservationCoveredHoursInLookbackPeriodHasBeenSet = true; m_reservationCoveredHoursInLookbackPeriod.assign(value); }
126
128
132 inline const Aws::String& GetSavingsPlansCoveredHoursInLookbackPeriod() const{ return m_savingsPlansCoveredHoursInLookbackPeriod; }
133 inline bool SavingsPlansCoveredHoursInLookbackPeriodHasBeenSet() const { return m_savingsPlansCoveredHoursInLookbackPeriodHasBeenSet; }
134 inline void SetSavingsPlansCoveredHoursInLookbackPeriod(const Aws::String& value) { m_savingsPlansCoveredHoursInLookbackPeriodHasBeenSet = true; m_savingsPlansCoveredHoursInLookbackPeriod = value; }
135 inline void SetSavingsPlansCoveredHoursInLookbackPeriod(Aws::String&& value) { m_savingsPlansCoveredHoursInLookbackPeriodHasBeenSet = true; m_savingsPlansCoveredHoursInLookbackPeriod = std::move(value); }
136 inline void SetSavingsPlansCoveredHoursInLookbackPeriod(const char* value) { m_savingsPlansCoveredHoursInLookbackPeriodHasBeenSet = true; m_savingsPlansCoveredHoursInLookbackPeriod.assign(value); }
141
143
147 inline const Aws::String& GetOnDemandHoursInLookbackPeriod() const{ return m_onDemandHoursInLookbackPeriod; }
148 inline bool OnDemandHoursInLookbackPeriodHasBeenSet() const { return m_onDemandHoursInLookbackPeriodHasBeenSet; }
149 inline void SetOnDemandHoursInLookbackPeriod(const Aws::String& value) { m_onDemandHoursInLookbackPeriodHasBeenSet = true; m_onDemandHoursInLookbackPeriod = value; }
150 inline void SetOnDemandHoursInLookbackPeriod(Aws::String&& value) { m_onDemandHoursInLookbackPeriodHasBeenSet = true; m_onDemandHoursInLookbackPeriod = std::move(value); }
151 inline void SetOnDemandHoursInLookbackPeriod(const char* value) { m_onDemandHoursInLookbackPeriodHasBeenSet = true; m_onDemandHoursInLookbackPeriod.assign(value); }
156
158
162 inline const Aws::String& GetTotalRunningHoursInLookbackPeriod() const{ return m_totalRunningHoursInLookbackPeriod; }
163 inline bool TotalRunningHoursInLookbackPeriodHasBeenSet() const { return m_totalRunningHoursInLookbackPeriodHasBeenSet; }
164 inline void SetTotalRunningHoursInLookbackPeriod(const Aws::String& value) { m_totalRunningHoursInLookbackPeriodHasBeenSet = true; m_totalRunningHoursInLookbackPeriod = value; }
165 inline void SetTotalRunningHoursInLookbackPeriod(Aws::String&& value) { m_totalRunningHoursInLookbackPeriodHasBeenSet = true; m_totalRunningHoursInLookbackPeriod = std::move(value); }
166 inline void SetTotalRunningHoursInLookbackPeriod(const char* value) { m_totalRunningHoursInLookbackPeriodHasBeenSet = true; m_totalRunningHoursInLookbackPeriod.assign(value); }
171
173
176 inline const Aws::String& GetMonthlyCost() const{ return m_monthlyCost; }
177 inline bool MonthlyCostHasBeenSet() const { return m_monthlyCostHasBeenSet; }
178 inline void SetMonthlyCost(const Aws::String& value) { m_monthlyCostHasBeenSet = true; m_monthlyCost = value; }
179 inline void SetMonthlyCost(Aws::String&& value) { m_monthlyCostHasBeenSet = true; m_monthlyCost = std::move(value); }
180 inline void SetMonthlyCost(const char* value) { m_monthlyCostHasBeenSet = true; m_monthlyCost.assign(value); }
181 inline CurrentInstance& WithMonthlyCost(const Aws::String& value) { SetMonthlyCost(value); return *this;}
182 inline CurrentInstance& WithMonthlyCost(Aws::String&& value) { SetMonthlyCost(std::move(value)); return *this;}
183 inline CurrentInstance& WithMonthlyCost(const char* value) { SetMonthlyCost(value); return *this;}
185
187
191 inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; }
192 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
193 inline void SetCurrencyCode(const Aws::String& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
194 inline void SetCurrencyCode(Aws::String&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
195 inline void SetCurrencyCode(const char* value) { m_currencyCodeHasBeenSet = true; m_currencyCode.assign(value); }
196 inline CurrentInstance& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;}
197 inline CurrentInstance& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
198 inline CurrentInstance& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;}
200 private:
201
202 Aws::String m_resourceId;
203 bool m_resourceIdHasBeenSet = false;
204
205 Aws::String m_instanceName;
206 bool m_instanceNameHasBeenSet = false;
207
209 bool m_tagsHasBeenSet = false;
210
211 ResourceDetails m_resourceDetails;
212 bool m_resourceDetailsHasBeenSet = false;
213
214 ResourceUtilization m_resourceUtilization;
215 bool m_resourceUtilizationHasBeenSet = false;
216
217 Aws::String m_reservationCoveredHoursInLookbackPeriod;
218 bool m_reservationCoveredHoursInLookbackPeriodHasBeenSet = false;
219
220 Aws::String m_savingsPlansCoveredHoursInLookbackPeriod;
221 bool m_savingsPlansCoveredHoursInLookbackPeriodHasBeenSet = false;
222
223 Aws::String m_onDemandHoursInLookbackPeriod;
224 bool m_onDemandHoursInLookbackPeriodHasBeenSet = false;
225
226 Aws::String m_totalRunningHoursInLookbackPeriod;
227 bool m_totalRunningHoursInLookbackPeriodHasBeenSet = false;
228
229 Aws::String m_monthlyCost;
230 bool m_monthlyCostHasBeenSet = false;
231
232 Aws::String m_currencyCode;
233 bool m_currencyCodeHasBeenSet = false;
234 };
235
236} // namespace Model
237} // namespace CostExplorer
238} // namespace Aws
CurrentInstance & WithResourceUtilization(const ResourceUtilization &value)
void SetTags(Aws::Vector< TagValues > &&value)
void SetResourceUtilization(const ResourceUtilization &value)
const Aws::Vector< TagValues > & GetTags() const
CurrentInstance & WithInstanceName(Aws::String &&value)
CurrentInstance & WithMonthlyCost(const char *value)
CurrentInstance & WithCurrencyCode(const Aws::String &value)
CurrentInstance & WithTotalRunningHoursInLookbackPeriod(Aws::String &&value)
const ResourceDetails & GetResourceDetails() const
CurrentInstance & WithReservationCoveredHoursInLookbackPeriod(Aws::String &&value)
CurrentInstance & WithTotalRunningHoursInLookbackPeriod(const Aws::String &value)
AWS_COSTEXPLORER_API CurrentInstance(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetInstanceName() const
void SetOnDemandHoursInLookbackPeriod(Aws::String &&value)
void SetInstanceName(Aws::String &&value)
CurrentInstance & WithSavingsPlansCoveredHoursInLookbackPeriod(const char *value)
void SetReservationCoveredHoursInLookbackPeriod(const char *value)
CurrentInstance & WithOnDemandHoursInLookbackPeriod(const char *value)
CurrentInstance & WithTotalRunningHoursInLookbackPeriod(const char *value)
CurrentInstance & WithResourceId(const char *value)
CurrentInstance & WithSavingsPlansCoveredHoursInLookbackPeriod(Aws::String &&value)
void SetSavingsPlansCoveredHoursInLookbackPeriod(const char *value)
const ResourceUtilization & GetResourceUtilization() const
CurrentInstance & WithCurrencyCode(const char *value)
CurrentInstance & WithResourceUtilization(ResourceUtilization &&value)
CurrentInstance & AddTags(TagValues &&value)
void SetReservationCoveredHoursInLookbackPeriod(const Aws::String &value)
void SetMonthlyCost(const Aws::String &value)
CurrentInstance & WithMonthlyCost(Aws::String &&value)
void SetCurrencyCode(const Aws::String &value)
CurrentInstance & WithSavingsPlansCoveredHoursInLookbackPeriod(const Aws::String &value)
CurrentInstance & WithResourceId(const Aws::String &value)
CurrentInstance & WithResourceId(Aws::String &&value)
void SetInstanceName(const Aws::String &value)
CurrentInstance & WithInstanceName(const Aws::String &value)
CurrentInstance & WithResourceDetails(const ResourceDetails &value)
void SetResourceDetails(ResourceDetails &&value)
const Aws::String & GetSavingsPlansCoveredHoursInLookbackPeriod() const
const Aws::String & GetCurrencyCode() const
const Aws::String & GetMonthlyCost() const
CurrentInstance & AddTags(const TagValues &value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
CurrentInstance & WithResourceDetails(ResourceDetails &&value)
void SetResourceUtilization(ResourceUtilization &&value)
CurrentInstance & WithTags(const Aws::Vector< TagValues > &value)
void SetSavingsPlansCoveredHoursInLookbackPeriod(Aws::String &&value)
const Aws::String & GetResourceId() const
void SetTotalRunningHoursInLookbackPeriod(const Aws::String &value)
CurrentInstance & WithInstanceName(const char *value)
void SetResourceDetails(const ResourceDetails &value)
CurrentInstance & WithOnDemandHoursInLookbackPeriod(Aws::String &&value)
void SetOnDemandHoursInLookbackPeriod(const Aws::String &value)
const Aws::String & GetReservationCoveredHoursInLookbackPeriod() const
void SetTotalRunningHoursInLookbackPeriod(const char *value)
void SetSavingsPlansCoveredHoursInLookbackPeriod(const Aws::String &value)
void SetOnDemandHoursInLookbackPeriod(const char *value)
AWS_COSTEXPLORER_API CurrentInstance & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTags(const Aws::Vector< TagValues > &value)
CurrentInstance & WithOnDemandHoursInLookbackPeriod(const Aws::String &value)
const Aws::String & GetTotalRunningHoursInLookbackPeriod() const
const Aws::String & GetOnDemandHoursInLookbackPeriod() const
CurrentInstance & WithReservationCoveredHoursInLookbackPeriod(const char *value)
void SetReservationCoveredHoursInLookbackPeriod(Aws::String &&value)
void SetResourceId(const Aws::String &value)
void SetTotalRunningHoursInLookbackPeriod(Aws::String &&value)
CurrentInstance & WithCurrencyCode(Aws::String &&value)
CurrentInstance & WithTags(Aws::Vector< TagValues > &&value)
CurrentInstance & WithMonthlyCost(const Aws::String &value)
CurrentInstance & WithReservationCoveredHoursInLookbackPeriod(const Aws::String &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