AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SavingsPlanOfferingRate.h
1
6#pragma once
7#include <aws/savingsplans/SavingsPlans_EXPORTS.h>
8#include <aws/savingsplans/model/ParentSavingsPlanOffering.h>
9#include <aws/core/utils/memory/stl/AWSString.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/SavingsPlanOfferingRateProperty.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 SavingsPlanOfferingRate();
41 AWS_SAVINGSPLANS_API SavingsPlanOfferingRate(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SAVINGSPLANS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const ParentSavingsPlanOffering& GetSavingsPlanOffering() const{ return m_savingsPlanOffering; }
51 inline bool SavingsPlanOfferingHasBeenSet() const { return m_savingsPlanOfferingHasBeenSet; }
52 inline void SetSavingsPlanOffering(const ParentSavingsPlanOffering& value) { m_savingsPlanOfferingHasBeenSet = true; m_savingsPlanOffering = value; }
53 inline void SetSavingsPlanOffering(ParentSavingsPlanOffering&& value) { m_savingsPlanOfferingHasBeenSet = true; m_savingsPlanOffering = std::move(value); }
57
59
62 inline const Aws::String& GetRate() const{ return m_rate; }
63 inline bool RateHasBeenSet() const { return m_rateHasBeenSet; }
64 inline void SetRate(const Aws::String& value) { m_rateHasBeenSet = true; m_rate = value; }
65 inline void SetRate(Aws::String&& value) { m_rateHasBeenSet = true; m_rate = std::move(value); }
66 inline void SetRate(const char* value) { m_rateHasBeenSet = true; m_rate.assign(value); }
67 inline SavingsPlanOfferingRate& WithRate(const Aws::String& value) { SetRate(value); return *this;}
68 inline SavingsPlanOfferingRate& WithRate(Aws::String&& value) { SetRate(std::move(value)); return *this;}
69 inline SavingsPlanOfferingRate& WithRate(const char* value) { SetRate(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 SavingsPlanOfferingRate& WithUnit(const SavingsPlanRateUnit& value) { SetUnit(value); return *this;}
81 inline SavingsPlanOfferingRate& 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); }
93 inline SavingsPlanOfferingRate& 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); }
105 inline SavingsPlanOfferingRate& 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 SavingsPlanOfferingRate& WithUsageType(const Aws::String& value) { SetUsageType(value); return *this;}
118 inline SavingsPlanOfferingRate& WithUsageType(Aws::String&& value) { SetUsageType(std::move(value)); return *this;}
119 inline SavingsPlanOfferingRate& 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 SavingsPlanOfferingRate& WithOperation(const Aws::String& value) { SetOperation(value); return *this;}
133 inline SavingsPlanOfferingRate& WithOperation(Aws::String&& value) { SetOperation(std::move(value)); return *this;}
134 inline SavingsPlanOfferingRate& WithOperation(const char* value) { SetOperation(value); return *this;}
136
138
141 inline const Aws::Vector<SavingsPlanOfferingRateProperty>& GetProperties() const{ return m_properties; }
142 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
143 inline void SetProperties(const Aws::Vector<SavingsPlanOfferingRateProperty>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
144 inline void SetProperties(Aws::Vector<SavingsPlanOfferingRateProperty>&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
147 inline SavingsPlanOfferingRate& AddProperties(const SavingsPlanOfferingRateProperty& value) { m_propertiesHasBeenSet = true; m_properties.push_back(value); return *this; }
148 inline SavingsPlanOfferingRate& AddProperties(SavingsPlanOfferingRateProperty&& value) { m_propertiesHasBeenSet = true; m_properties.push_back(std::move(value)); return *this; }
150 private:
151
152 ParentSavingsPlanOffering m_savingsPlanOffering;
153 bool m_savingsPlanOfferingHasBeenSet = false;
154
155 Aws::String m_rate;
156 bool m_rateHasBeenSet = 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
SavingsPlanOfferingRate & WithUsageType(Aws::String &&value)
AWS_SAVINGSPLANS_API SavingsPlanOfferingRate & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAVINGSPLANS_API SavingsPlanOfferingRate(Aws::Utils::Json::JsonView jsonValue)
const SavingsPlanRateServiceCode & GetServiceCode() const
SavingsPlanOfferingRate & WithServiceCode(SavingsPlanRateServiceCode &&value)
SavingsPlanOfferingRate & WithSavingsPlanOffering(const ParentSavingsPlanOffering &value)
void SetSavingsPlanOffering(ParentSavingsPlanOffering &&value)
SavingsPlanOfferingRate & WithProductType(const SavingsPlanProductType &value)
SavingsPlanOfferingRate & WithUsageType(const Aws::String &value)
SavingsPlanOfferingRate & WithUsageType(const char *value)
SavingsPlanOfferingRate & WithSavingsPlanOffering(ParentSavingsPlanOffering &&value)
void SetProductType(SavingsPlanProductType &&value)
SavingsPlanOfferingRate & WithOperation(const Aws::String &value)
const Aws::Vector< SavingsPlanOfferingRateProperty > & GetProperties() const
SavingsPlanOfferingRate & WithUnit(SavingsPlanRateUnit &&value)
const ParentSavingsPlanOffering & GetSavingsPlanOffering() const
AWS_SAVINGSPLANS_API Aws::Utils::Json::JsonValue Jsonize() const
SavingsPlanOfferingRate & WithUnit(const SavingsPlanRateUnit &value)
void SetServiceCode(const SavingsPlanRateServiceCode &value)
SavingsPlanOfferingRate & WithOperation(const char *value)
void SetProductType(const SavingsPlanProductType &value)
SavingsPlanOfferingRate & WithRate(Aws::String &&value)
SavingsPlanOfferingRate & AddProperties(const SavingsPlanOfferingRateProperty &value)
const SavingsPlanProductType & GetProductType() const
SavingsPlanOfferingRate & WithRate(const Aws::String &value)
void SetServiceCode(SavingsPlanRateServiceCode &&value)
SavingsPlanOfferingRate & WithServiceCode(const SavingsPlanRateServiceCode &value)
void SetProperties(const Aws::Vector< SavingsPlanOfferingRateProperty > &value)
SavingsPlanOfferingRate & WithProperties(const Aws::Vector< SavingsPlanOfferingRateProperty > &value)
SavingsPlanOfferingRate & AddProperties(SavingsPlanOfferingRateProperty &&value)
SavingsPlanOfferingRate & WithRate(const char *value)
SavingsPlanOfferingRate & WithProductType(SavingsPlanProductType &&value)
void SetSavingsPlanOffering(const ParentSavingsPlanOffering &value)
void SetProperties(Aws::Vector< SavingsPlanOfferingRateProperty > &&value)
SavingsPlanOfferingRate & WithProperties(Aws::Vector< SavingsPlanOfferingRateProperty > &&value)
SavingsPlanOfferingRate & WithOperation(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