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>
66 inline void SetRate(
const char* value) { m_rateHasBeenSet =
true; m_rate.assign(value); }
116 inline void SetUsageType(
const char* value) { m_usageTypeHasBeenSet =
true; m_usageType.assign(value); }
131 inline void SetOperation(
const char* value) { m_operationHasBeenSet =
true; m_operation.assign(value); }
153 bool m_savingsPlanOfferingHasBeenSet =
false;
156 bool m_rateHasBeenSet =
false;
159 bool m_unitHasBeenSet =
false;
162 bool m_productTypeHasBeenSet =
false;
165 bool m_serviceCodeHasBeenSet =
false;
168 bool m_usageTypeHasBeenSet =
false;
171 bool m_operationHasBeenSet =
false;
174 bool m_propertiesHasBeenSet =
false;
void SetUsageType(const Aws::String &value)
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)
const Aws::String & GetRate() const
AWS_SAVINGSPLANS_API SavingsPlanOfferingRate()
SavingsPlanOfferingRate & WithSavingsPlanOffering(const ParentSavingsPlanOffering &value)
bool UsageTypeHasBeenSet() const
void SetSavingsPlanOffering(ParentSavingsPlanOffering &&value)
SavingsPlanOfferingRate & WithProductType(const SavingsPlanProductType &value)
SavingsPlanOfferingRate & WithUsageType(const Aws::String &value)
SavingsPlanOfferingRate & WithUsageType(const char *value)
bool SavingsPlanOfferingHasBeenSet() const
SavingsPlanOfferingRate & WithSavingsPlanOffering(ParentSavingsPlanOffering &&value)
void SetRate(Aws::String &&value)
void SetUnit(const SavingsPlanRateUnit &value)
void SetProductType(SavingsPlanProductType &&value)
bool ProductTypeHasBeenSet() const
void SetRate(const char *value)
SavingsPlanOfferingRate & WithOperation(const Aws::String &value)
const Aws::Vector< SavingsPlanOfferingRateProperty > & GetProperties() const
SavingsPlanOfferingRate & WithUnit(SavingsPlanRateUnit &&value)
bool ServiceCodeHasBeenSet() const
bool UnitHasBeenSet() const
void SetOperation(const Aws::String &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)
bool PropertiesHasBeenSet() const
void SetUnit(SavingsPlanRateUnit &&value)
void SetOperation(Aws::String &&value)
SavingsPlanOfferingRate & WithRate(Aws::String &&value)
void SetOperation(const char *value)
SavingsPlanOfferingRate & AddProperties(const SavingsPlanOfferingRateProperty &value)
const SavingsPlanProductType & GetProductType() const
SavingsPlanOfferingRate & WithRate(const Aws::String &value)
void SetRate(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)
const Aws::String & GetOperation() const
bool OperationHasBeenSet() const
SavingsPlanOfferingRate & AddProperties(SavingsPlanOfferingRateProperty &&value)
const SavingsPlanRateUnit & GetUnit() const
void SetUsageType(const char *value)
void SetUsageType(Aws::String &&value)
SavingsPlanOfferingRate & WithRate(const char *value)
SavingsPlanOfferingRate & WithProductType(SavingsPlanProductType &&value)
void SetSavingsPlanOffering(const ParentSavingsPlanOffering &value)
void SetProperties(Aws::Vector< SavingsPlanOfferingRateProperty > &&value)
const Aws::String & GetUsageType() const
SavingsPlanOfferingRate & WithProperties(Aws::Vector< SavingsPlanOfferingRateProperty > &&value)
SavingsPlanOfferingRate & WithOperation(Aws::String &&value)
bool RateHasBeenSet() const
SavingsPlanRateServiceCode
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue