7#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
21namespace CostOptimizationHub
34 AWS_COSTOPTIMIZATIONHUB_API
Usage();
48 inline void SetUsageType(
const char* value) { m_usageTypeHasBeenSet =
true; m_usageType.assign(value); }
60 inline void SetUsageAmount(
double value) { m_usageAmountHasBeenSet =
true; m_usageAmount = value; }
72 inline void SetOperation(
const char* value) { m_operationHasBeenSet =
true; m_operation.assign(value); }
86 inline void SetProductCode(
const char* value) { m_productCodeHasBeenSet =
true; m_productCode.assign(value); }
100 inline void SetUnit(
const char* value) { m_unitHasBeenSet =
true; m_unit.assign(value); }
108 bool m_usageTypeHasBeenSet =
false;
110 double m_usageAmount;
111 bool m_usageAmountHasBeenSet =
false;
114 bool m_operationHasBeenSet =
false;
117 bool m_productCodeHasBeenSet =
false;
120 bool m_unitHasBeenSet =
false;
void SetUnit(Aws::String &&value)
const Aws::String & GetUsageType() const
void SetOperation(const char *value)
bool UnitHasBeenSet() const
AWS_COSTOPTIMIZATIONHUB_API Usage()
void SetProductCode(Aws::String &&value)
void SetOperation(Aws::String &&value)
double GetUsageAmount() const
AWS_COSTOPTIMIZATIONHUB_API Usage & operator=(Aws::Utils::Json::JsonView jsonValue)
Usage & WithUsageType(Aws::String &&value)
bool UsageTypeHasBeenSet() const
Usage & WithUnit(const Aws::String &value)
Usage & WithUsageType(const Aws::String &value)
Usage & WithOperation(Aws::String &&value)
void SetUnit(const char *value)
const Aws::String & GetUnit() const
void SetUsageType(const Aws::String &value)
Usage & WithOperation(const Aws::String &value)
void SetOperation(const Aws::String &value)
Usage & WithUnit(const char *value)
Usage & WithProductCode(const Aws::String &value)
void SetProductCode(const Aws::String &value)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUsageAmount(double value)
void SetUnit(const Aws::String &value)
Usage & WithOperation(const char *value)
Usage & WithProductCode(Aws::String &&value)
bool OperationHasBeenSet() const
const Aws::String & GetProductCode() const
const Aws::String & GetOperation() const
bool ProductCodeHasBeenSet() const
bool UsageAmountHasBeenSet() const
Usage & WithUsageAmount(double value)
void SetUsageType(const char *value)
Usage & WithUsageType(const char *value)
void SetProductCode(const char *value)
AWS_COSTOPTIMIZATIONHUB_API Usage(Aws::Utils::Json::JsonView jsonValue)
Usage & WithProductCode(const char *value)
void SetUsageType(Aws::String &&value)
Usage & WithUnit(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue