AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SavingsPlanRate.h
1
6#pragma once
7#include <aws/savingsplans/SavingsPlans_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/savingsplans/model/CurrencyCode.h>
10#include <aws/savingsplans/model/SavingsPlanRateUnit.h>
11#include <aws/savingsplans/model/SavingsPlanProductType.h>
12#include <aws/savingsplans/model/SavingsPlanRateServiceCode.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/savingsplans/model/SavingsPlanRateProperty.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace SavingsPlans
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_SAVINGSPLANS_API SavingsPlanRate();
41 AWS_SAVINGSPLANS_API SavingsPlanRate(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SAVINGSPLANS_API SavingsPlanRate& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SAVINGSPLANS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetRate() const{ return m_rate; }
51 inline bool RateHasBeenSet() const { return m_rateHasBeenSet; }
52 inline void SetRate(const Aws::String& value) { m_rateHasBeenSet = true; m_rate = value; }
53 inline void SetRate(Aws::String&& value) { m_rateHasBeenSet = true; m_rate = std::move(value); }
54 inline void SetRate(const char* value) { m_rateHasBeenSet = true; m_rate.assign(value); }
55 inline SavingsPlanRate& WithRate(const Aws::String& value) { SetRate(value); return *this;}
56 inline SavingsPlanRate& WithRate(Aws::String&& value) { SetRate(std::move(value)); return *this;}
57 inline SavingsPlanRate& WithRate(const char* value) { SetRate(value); return *this;}
59
61
64 inline const CurrencyCode& GetCurrency() const{ return m_currency; }
65 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
66 inline void SetCurrency(const CurrencyCode& value) { m_currencyHasBeenSet = true; m_currency = value; }
67 inline void SetCurrency(CurrencyCode&& value) { m_currencyHasBeenSet = true; m_currency = std::move(value); }
68 inline SavingsPlanRate& WithCurrency(const CurrencyCode& value) { SetCurrency(value); return *this;}
69 inline SavingsPlanRate& WithCurrency(CurrencyCode&& value) { SetCurrency(std::move(value)); return *this;}
71
73
76 inline const SavingsPlanRateUnit& GetUnit() const{ return m_unit; }
77 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
78 inline void SetUnit(const SavingsPlanRateUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
79 inline void SetUnit(SavingsPlanRateUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
80 inline SavingsPlanRate& WithUnit(const SavingsPlanRateUnit& value) { SetUnit(value); return *this;}
81 inline SavingsPlanRate& WithUnit(SavingsPlanRateUnit&& value) { SetUnit(std::move(value)); return *this;}
83
85
88 inline const SavingsPlanProductType& GetProductType() const{ return m_productType; }
89 inline bool ProductTypeHasBeenSet() const { return m_productTypeHasBeenSet; }
90 inline void SetProductType(const SavingsPlanProductType& value) { m_productTypeHasBeenSet = true; m_productType = value; }
91 inline void SetProductType(SavingsPlanProductType&& value) { m_productTypeHasBeenSet = true; m_productType = std::move(value); }
92 inline SavingsPlanRate& WithProductType(const SavingsPlanProductType& value) { SetProductType(value); return *this;}
93 inline SavingsPlanRate& WithProductType(SavingsPlanProductType&& value) { SetProductType(std::move(value)); return *this;}
95
97
100 inline const SavingsPlanRateServiceCode& GetServiceCode() const{ return m_serviceCode; }
101 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
102 inline void SetServiceCode(const SavingsPlanRateServiceCode& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
103 inline void SetServiceCode(SavingsPlanRateServiceCode&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
104 inline SavingsPlanRate& WithServiceCode(const SavingsPlanRateServiceCode& value) { SetServiceCode(value); return *this;}
105 inline SavingsPlanRate& WithServiceCode(SavingsPlanRateServiceCode&& value) { SetServiceCode(std::move(value)); return *this;}
107
109
112 inline const Aws::String& GetUsageType() const{ return m_usageType; }
113 inline bool UsageTypeHasBeenSet() const { return m_usageTypeHasBeenSet; }
114 inline void SetUsageType(const Aws::String& value) { m_usageTypeHasBeenSet = true; m_usageType = value; }
115 inline void SetUsageType(Aws::String&& value) { m_usageTypeHasBeenSet = true; m_usageType = std::move(value); }
116 inline void SetUsageType(const char* value) { m_usageTypeHasBeenSet = true; m_usageType.assign(value); }
117 inline SavingsPlanRate& WithUsageType(const Aws::String& value) { SetUsageType(value); return *this;}
118 inline SavingsPlanRate& WithUsageType(Aws::String&& value) { SetUsageType(std::move(value)); return *this;}
119 inline SavingsPlanRate& WithUsageType(const char* value) { SetUsageType(value); return *this;}
121
123
127 inline const Aws::String& GetOperation() const{ return m_operation; }
128 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
129 inline void SetOperation(const Aws::String& value) { m_operationHasBeenSet = true; m_operation = value; }
130 inline void SetOperation(Aws::String&& value) { m_operationHasBeenSet = true; m_operation = std::move(value); }
131 inline void SetOperation(const char* value) { m_operationHasBeenSet = true; m_operation.assign(value); }
132 inline SavingsPlanRate& WithOperation(const Aws::String& value) { SetOperation(value); return *this;}
133 inline SavingsPlanRate& WithOperation(Aws::String&& value) { SetOperation(std::move(value)); return *this;}
134 inline SavingsPlanRate& WithOperation(const char* value) { SetOperation(value); return *this;}
136
138
141 inline const Aws::Vector<SavingsPlanRateProperty>& GetProperties() const{ return m_properties; }
142 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
143 inline void SetProperties(const Aws::Vector<SavingsPlanRateProperty>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
144 inline void SetProperties(Aws::Vector<SavingsPlanRateProperty>&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
146 inline SavingsPlanRate& WithProperties(Aws::Vector<SavingsPlanRateProperty>&& value) { SetProperties(std::move(value)); return *this;}
147 inline SavingsPlanRate& AddProperties(const SavingsPlanRateProperty& value) { m_propertiesHasBeenSet = true; m_properties.push_back(value); return *this; }
148 inline SavingsPlanRate& AddProperties(SavingsPlanRateProperty&& value) { m_propertiesHasBeenSet = true; m_properties.push_back(std::move(value)); return *this; }
150 private:
151
152 Aws::String m_rate;
153 bool m_rateHasBeenSet = false;
154
155 CurrencyCode m_currency;
156 bool m_currencyHasBeenSet = false;
157
158 SavingsPlanRateUnit m_unit;
159 bool m_unitHasBeenSet = false;
160
161 SavingsPlanProductType m_productType;
162 bool m_productTypeHasBeenSet = false;
163
164 SavingsPlanRateServiceCode m_serviceCode;
165 bool m_serviceCodeHasBeenSet = false;
166
167 Aws::String m_usageType;
168 bool m_usageTypeHasBeenSet = false;
169
170 Aws::String m_operation;
171 bool m_operationHasBeenSet = false;
172
174 bool m_propertiesHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace SavingsPlans
179} // namespace Aws
const SavingsPlanRateUnit & GetUnit() const
void SetProductType(const SavingsPlanProductType &value)
const SavingsPlanRateServiceCode & GetServiceCode() const
SavingsPlanRate & WithServiceCode(SavingsPlanRateServiceCode &&value)
SavingsPlanRate & WithUsageType(const Aws::String &value)
AWS_SAVINGSPLANS_API SavingsPlanRate(Aws::Utils::Json::JsonView jsonValue)
void SetUnit(const SavingsPlanRateUnit &value)
SavingsPlanRate & WithRate(const Aws::String &value)
const SavingsPlanProductType & GetProductType() const
SavingsPlanRate & WithCurrency(CurrencyCode &&value)
SavingsPlanRate & WithProperties(const Aws::Vector< SavingsPlanRateProperty > &value)
SavingsPlanRate & WithServiceCode(const SavingsPlanRateServiceCode &value)
void SetOperation(const Aws::String &value)
AWS_SAVINGSPLANS_API SavingsPlanRate & operator=(Aws::Utils::Json::JsonView jsonValue)
SavingsPlanRate & WithProperties(Aws::Vector< SavingsPlanRateProperty > &&value)
SavingsPlanRate & WithOperation(Aws::String &&value)
void SetCurrency(const CurrencyCode &value)
SavingsPlanRate & WithUsageType(const char *value)
SavingsPlanRate & WithCurrency(const CurrencyCode &value)
void SetServiceCode(SavingsPlanRateServiceCode &&value)
AWS_SAVINGSPLANS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetProductType(SavingsPlanProductType &&value)
SavingsPlanRate & WithProductType(const SavingsPlanProductType &value)
SavingsPlanRate & WithRate(Aws::String &&value)
void SetServiceCode(const SavingsPlanRateServiceCode &value)
SavingsPlanRate & WithOperation(const Aws::String &value)
void SetProperties(const Aws::Vector< SavingsPlanRateProperty > &value)
const Aws::String & GetOperation() const
void SetUsageType(const Aws::String &value)
SavingsPlanRate & WithRate(const char *value)
SavingsPlanRate & WithUnit(const SavingsPlanRateUnit &value)
void SetRate(const Aws::String &value)
SavingsPlanRate & WithUnit(SavingsPlanRateUnit &&value)
void SetProperties(Aws::Vector< SavingsPlanRateProperty > &&value)
SavingsPlanRate & AddProperties(SavingsPlanRateProperty &&value)
const CurrencyCode & GetCurrency() const
SavingsPlanRate & WithOperation(const char *value)
SavingsPlanRate & AddProperties(const SavingsPlanRateProperty &value)
SavingsPlanRate & WithUsageType(Aws::String &&value)
SavingsPlanRate & WithProductType(SavingsPlanProductType &&value)
const Aws::String & GetUsageType() const
const Aws::Vector< SavingsPlanRateProperty > & GetProperties() const
void SetUnit(SavingsPlanRateUnit &&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