AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 const Aws::String& GetService() const { return m_service; }
47 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
48 template<typename ServiceT = Aws::String>
49 void SetService(ServiceT&& value) { m_serviceHasBeenSet = true; m_service = std::forward<ServiceT>(value); }
50 template<typename ServiceT = Aws::String>
51 FreeTierUsage& WithService(ServiceT&& value) { SetService(std::forward<ServiceT>(value)); return *this;}
53
55
60 inline const Aws::String& GetOperation() const { return m_operation; }
61 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
62 template<typename OperationT = Aws::String>
63 void SetOperation(OperationT&& value) { m_operationHasBeenSet = true; m_operation = std::forward<OperationT>(value); }
64 template<typename OperationT = Aws::String>
65 FreeTierUsage& WithOperation(OperationT&& value) { SetOperation(std::forward<OperationT>(value)); return *this;}
67
69
73 inline const Aws::String& GetUsageType() const { return m_usageType; }
74 inline bool UsageTypeHasBeenSet() const { return m_usageTypeHasBeenSet; }
75 template<typename UsageTypeT = Aws::String>
76 void SetUsageType(UsageTypeT&& value) { m_usageTypeHasBeenSet = true; m_usageType = std::forward<UsageTypeT>(value); }
77 template<typename UsageTypeT = Aws::String>
78 FreeTierUsage& WithUsageType(UsageTypeT&& value) { SetUsageType(std::forward<UsageTypeT>(value)); return *this;}
80
82
86 inline const Aws::String& GetRegion() const { return m_region; }
87 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
88 template<typename RegionT = Aws::String>
89 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
90 template<typename RegionT = Aws::String>
91 FreeTierUsage& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
93
95
99 inline double GetActualUsageAmount() const { return m_actualUsageAmount; }
100 inline bool ActualUsageAmountHasBeenSet() const { return m_actualUsageAmountHasBeenSet; }
101 inline void SetActualUsageAmount(double value) { m_actualUsageAmountHasBeenSet = true; m_actualUsageAmount = value; }
102 inline FreeTierUsage& WithActualUsageAmount(double value) { SetActualUsageAmount(value); return *this;}
104
106
109 inline double GetForecastedUsageAmount() const { return m_forecastedUsageAmount; }
110 inline bool ForecastedUsageAmountHasBeenSet() const { return m_forecastedUsageAmountHasBeenSet; }
111 inline void SetForecastedUsageAmount(double value) { m_forecastedUsageAmountHasBeenSet = true; m_forecastedUsageAmount = value; }
112 inline FreeTierUsage& WithForecastedUsageAmount(double value) { SetForecastedUsageAmount(value); return *this;}
114
116
119 inline double GetLimit() const { return m_limit; }
120 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
121 inline void SetLimit(double value) { m_limitHasBeenSet = true; m_limit = value; }
122 inline FreeTierUsage& WithLimit(double value) { SetLimit(value); return *this;}
124
126
130 inline const Aws::String& GetUnit() const { return m_unit; }
131 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
132 template<typename UnitT = Aws::String>
133 void SetUnit(UnitT&& value) { m_unitHasBeenSet = true; m_unit = std::forward<UnitT>(value); }
134 template<typename UnitT = Aws::String>
135 FreeTierUsage& WithUnit(UnitT&& value) { SetUnit(std::forward<UnitT>(value)); return *this;}
137
139
142 inline const Aws::String& GetDescription() const { return m_description; }
143 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
144 template<typename DescriptionT = Aws::String>
145 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
146 template<typename DescriptionT = Aws::String>
147 FreeTierUsage& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
149
151
156 inline const Aws::String& GetFreeTierType() const { return m_freeTierType; }
157 inline bool FreeTierTypeHasBeenSet() const { return m_freeTierTypeHasBeenSet; }
158 template<typename FreeTierTypeT = Aws::String>
159 void SetFreeTierType(FreeTierTypeT&& value) { m_freeTierTypeHasBeenSet = true; m_freeTierType = std::forward<FreeTierTypeT>(value); }
160 template<typename FreeTierTypeT = Aws::String>
161 FreeTierUsage& WithFreeTierType(FreeTierTypeT&& value) { SetFreeTierType(std::forward<FreeTierTypeT>(value)); return *this;}
163 private:
164
165 Aws::String m_service;
166 bool m_serviceHasBeenSet = false;
167
168 Aws::String m_operation;
169 bool m_operationHasBeenSet = false;
170
171 Aws::String m_usageType;
172 bool m_usageTypeHasBeenSet = false;
173
174 Aws::String m_region;
175 bool m_regionHasBeenSet = false;
176
177 double m_actualUsageAmount{0.0};
178 bool m_actualUsageAmountHasBeenSet = false;
179
180 double m_forecastedUsageAmount{0.0};
181 bool m_forecastedUsageAmountHasBeenSet = false;
182
183 double m_limit{0.0};
184 bool m_limitHasBeenSet = false;
185
186 Aws::String m_unit;
187 bool m_unitHasBeenSet = false;
188
189 Aws::String m_description;
190 bool m_descriptionHasBeenSet = false;
191
192 Aws::String m_freeTierType;
193 bool m_freeTierTypeHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace FreeTier
198} // namespace Aws
AWS_FREETIER_API FreeTierUsage(Aws::Utils::Json::JsonView jsonValue)
FreeTierUsage & WithDescription(DescriptionT &&value)
void SetForecastedUsageAmount(double value)
FreeTierUsage & WithFreeTierType(FreeTierTypeT &&value)
const Aws::String & GetService() const
FreeTierUsage & WithRegion(RegionT &&value)
AWS_FREETIER_API FreeTierUsage & operator=(Aws::Utils::Json::JsonView jsonValue)
FreeTierUsage & WithService(ServiceT &&value)
const Aws::String & GetRegion() const
FreeTierUsage & WithUnit(UnitT &&value)
FreeTierUsage & WithForecastedUsageAmount(double value)
FreeTierUsage & WithUsageType(UsageTypeT &&value)
const Aws::String & GetUnit() const
void SetService(ServiceT &&value)
void SetUsageType(UsageTypeT &&value)
FreeTierUsage & WithActualUsageAmount(double value)
void SetOperation(OperationT &&value)
const Aws::String & GetFreeTierType() const
FreeTierUsage & WithLimit(double value)
const Aws::String & GetUsageType() const
const Aws::String & GetOperation() const
void SetFreeTierType(FreeTierTypeT &&value)
AWS_FREETIER_API Aws::Utils::Json::JsonValue Jsonize() const
FreeTierUsage & WithOperation(OperationT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
AWS_FREETIER_API FreeTierUsage()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue