AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FreeTierUsage.h
1
6#pragma once
7#include <aws/freetier/FreeTier_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace FreeTier
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_FREETIER_API FreeTierUsage();
36 AWS_FREETIER_API FreeTierUsage(Aws::Utils::Json::JsonView jsonValue);
38 AWS_FREETIER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline double GetActualUsageAmount() const{ return m_actualUsageAmount; }
47 inline bool ActualUsageAmountHasBeenSet() const { return m_actualUsageAmountHasBeenSet; }
48 inline void SetActualUsageAmount(double value) { m_actualUsageAmountHasBeenSet = true; m_actualUsageAmount = value; }
49 inline FreeTierUsage& WithActualUsageAmount(double value) { SetActualUsageAmount(value); return *this;}
51
53
56 inline const Aws::String& GetDescription() const{ return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
59 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
60 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
61 inline FreeTierUsage& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
62 inline FreeTierUsage& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
63 inline FreeTierUsage& WithDescription(const char* value) { SetDescription(value); return *this;}
65
67
70 inline double GetForecastedUsageAmount() const{ return m_forecastedUsageAmount; }
71 inline bool ForecastedUsageAmountHasBeenSet() const { return m_forecastedUsageAmountHasBeenSet; }
72 inline void SetForecastedUsageAmount(double value) { m_forecastedUsageAmountHasBeenSet = true; m_forecastedUsageAmount = value; }
73 inline FreeTierUsage& WithForecastedUsageAmount(double value) { SetForecastedUsageAmount(value); return *this;}
75
77
82 inline const Aws::String& GetFreeTierType() const{ return m_freeTierType; }
83 inline bool FreeTierTypeHasBeenSet() const { return m_freeTierTypeHasBeenSet; }
84 inline void SetFreeTierType(const Aws::String& value) { m_freeTierTypeHasBeenSet = true; m_freeTierType = value; }
85 inline void SetFreeTierType(Aws::String&& value) { m_freeTierTypeHasBeenSet = true; m_freeTierType = std::move(value); }
86 inline void SetFreeTierType(const char* value) { m_freeTierTypeHasBeenSet = true; m_freeTierType.assign(value); }
87 inline FreeTierUsage& WithFreeTierType(const Aws::String& value) { SetFreeTierType(value); return *this;}
88 inline FreeTierUsage& WithFreeTierType(Aws::String&& value) { SetFreeTierType(std::move(value)); return *this;}
89 inline FreeTierUsage& WithFreeTierType(const char* value) { SetFreeTierType(value); return *this;}
91
93
96 inline double GetLimit() const{ return m_limit; }
97 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
98 inline void SetLimit(double value) { m_limitHasBeenSet = true; m_limit = value; }
99 inline FreeTierUsage& WithLimit(double value) { SetLimit(value); return *this;}
101
103
108 inline const Aws::String& GetOperation() const{ return m_operation; }
109 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
110 inline void SetOperation(const Aws::String& value) { m_operationHasBeenSet = true; m_operation = value; }
111 inline void SetOperation(Aws::String&& value) { m_operationHasBeenSet = true; m_operation = std::move(value); }
112 inline void SetOperation(const char* value) { m_operationHasBeenSet = true; m_operation.assign(value); }
113 inline FreeTierUsage& WithOperation(const Aws::String& value) { SetOperation(value); return *this;}
114 inline FreeTierUsage& WithOperation(Aws::String&& value) { SetOperation(std::move(value)); return *this;}
115 inline FreeTierUsage& WithOperation(const char* value) { SetOperation(value); return *this;}
117
119
123 inline const Aws::String& GetRegion() const{ return m_region; }
124 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
125 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
126 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
127 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
128 inline FreeTierUsage& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
129 inline FreeTierUsage& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
130 inline FreeTierUsage& WithRegion(const char* value) { SetRegion(value); return *this;}
132
134
138 inline const Aws::String& GetService() const{ return m_service; }
139 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
140 inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
141 inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
142 inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
143 inline FreeTierUsage& WithService(const Aws::String& value) { SetService(value); return *this;}
144 inline FreeTierUsage& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
145 inline FreeTierUsage& WithService(const char* value) { SetService(value); return *this;}
147
149
153 inline const Aws::String& GetUnit() const{ return m_unit; }
154 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
155 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
156 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
157 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
158 inline FreeTierUsage& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
159 inline FreeTierUsage& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
160 inline FreeTierUsage& WithUnit(const char* value) { SetUnit(value); return *this;}
162
164
168 inline const Aws::String& GetUsageType() const{ return m_usageType; }
169 inline bool UsageTypeHasBeenSet() const { return m_usageTypeHasBeenSet; }
170 inline void SetUsageType(const Aws::String& value) { m_usageTypeHasBeenSet = true; m_usageType = value; }
171 inline void SetUsageType(Aws::String&& value) { m_usageTypeHasBeenSet = true; m_usageType = std::move(value); }
172 inline void SetUsageType(const char* value) { m_usageTypeHasBeenSet = true; m_usageType.assign(value); }
173 inline FreeTierUsage& WithUsageType(const Aws::String& value) { SetUsageType(value); return *this;}
174 inline FreeTierUsage& WithUsageType(Aws::String&& value) { SetUsageType(std::move(value)); return *this;}
175 inline FreeTierUsage& WithUsageType(const char* value) { SetUsageType(value); return *this;}
177 private:
178
179 double m_actualUsageAmount;
180 bool m_actualUsageAmountHasBeenSet = false;
181
182 Aws::String m_description;
183 bool m_descriptionHasBeenSet = false;
184
185 double m_forecastedUsageAmount;
186 bool m_forecastedUsageAmountHasBeenSet = false;
187
188 Aws::String m_freeTierType;
189 bool m_freeTierTypeHasBeenSet = false;
190
191 double m_limit;
192 bool m_limitHasBeenSet = false;
193
194 Aws::String m_operation;
195 bool m_operationHasBeenSet = false;
196
197 Aws::String m_region;
198 bool m_regionHasBeenSet = false;
199
200 Aws::String m_service;
201 bool m_serviceHasBeenSet = false;
202
203 Aws::String m_unit;
204 bool m_unitHasBeenSet = false;
205
206 Aws::String m_usageType;
207 bool m_usageTypeHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace FreeTier
212} // namespace Aws
FreeTierUsage & WithRegion(Aws::String &&value)
AWS_FREETIER_API FreeTierUsage(Aws::Utils::Json::JsonView jsonValue)
void SetOperation(const char *value)
void SetForecastedUsageAmount(double value)
FreeTierUsage & WithUsageType(Aws::String &&value)
FreeTierUsage & WithService(Aws::String &&value)
void SetFreeTierType(const char *value)
FreeTierUsage & WithFreeTierType(const char *value)
FreeTierUsage & WithFreeTierType(const Aws::String &value)
FreeTierUsage & WithUnit(Aws::String &&value)
void SetDescription(const Aws::String &value)
FreeTierUsage & WithUsageType(const Aws::String &value)
const Aws::String & GetService() const
void SetRegion(Aws::String &&value)
AWS_FREETIER_API FreeTierUsage & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRegion(const Aws::String &value)
void SetUsageType(const char *value)
void SetUnit(Aws::String &&value)
void SetUnit(const Aws::String &value)
const Aws::String & GetRegion() const
FreeTierUsage & WithDescription(const Aws::String &value)
FreeTierUsage & WithFreeTierType(Aws::String &&value)
FreeTierUsage & WithForecastedUsageAmount(double value)
const Aws::String & GetUnit() const
FreeTierUsage & WithOperation(Aws::String &&value)
FreeTierUsage & WithRegion(const char *value)
void SetFreeTierType(const Aws::String &value)
void SetDescription(Aws::String &&value)
void SetService(Aws::String &&value)
FreeTierUsage & WithUnit(const Aws::String &value)
FreeTierUsage & WithUsageType(const char *value)
FreeTierUsage & WithActualUsageAmount(double value)
void SetService(const Aws::String &value)
const Aws::String & GetFreeTierType() const
FreeTierUsage & WithService(const Aws::String &value)
void SetService(const char *value)
FreeTierUsage & WithLimit(double value)
const Aws::String & GetUsageType() const
void SetDescription(const char *value)
void SetOperation(const Aws::String &value)
FreeTierUsage & WithDescription(Aws::String &&value)
FreeTierUsage & WithOperation(const Aws::String &value)
void SetUsageType(const Aws::String &value)
FreeTierUsage & WithDescription(const char *value)
const Aws::String & GetOperation() const
void SetUsageType(Aws::String &&value)
AWS_FREETIER_API Aws::Utils::Json::JsonValue Jsonize() const
FreeTierUsage & WithRegion(const Aws::String &value)
void SetUnit(const char *value)
void SetFreeTierType(Aws::String &&value)
void SetRegion(const char *value)
FreeTierUsage & WithUnit(const char *value)
const Aws::String & GetDescription() const
FreeTierUsage & WithService(const char *value)
FreeTierUsage & WithOperation(const char *value)
void SetActualUsageAmount(double value)
void SetOperation(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue