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() =
default;
46 template<
typename UsageTypeT = Aws::String>
47 void SetUsageType(UsageTypeT&& value) { m_usageTypeHasBeenSet =
true; m_usageType = std::forward<UsageTypeT>(value); }
48 template<
typename UsageTypeT = Aws::String>
58 inline void SetUsageAmount(
double value) { m_usageAmountHasBeenSet =
true; m_usageAmount = value; }
68 template<
typename OperationT = Aws::String>
69 void SetOperation(OperationT&& value) { m_operationHasBeenSet =
true; m_operation = std::forward<OperationT>(value); }
70 template<
typename OperationT = Aws::String>
80 template<
typename ProductCodeT = Aws::String>
81 void SetProductCode(ProductCodeT&& value) { m_productCodeHasBeenSet =
true; m_productCode = std::forward<ProductCodeT>(value); }
82 template<
typename ProductCodeT = Aws::String>
92 template<
typename UnitT = Aws::String>
93 void SetUnit(UnitT&& value) { m_unitHasBeenSet =
true; m_unit = std::forward<UnitT>(value); }
94 template<
typename UnitT = Aws::String>
100 bool m_usageTypeHasBeenSet =
false;
102 double m_usageAmount{0.0};
103 bool m_usageAmountHasBeenSet =
false;
106 bool m_operationHasBeenSet =
false;
109 bool m_productCodeHasBeenSet =
false;
112 bool m_unitHasBeenSet =
false;
const Aws::String & GetUsageType() const
Usage & WithUsageType(UsageTypeT &&value)
bool UnitHasBeenSet() const
void SetUsageType(UsageTypeT &&value)
double GetUsageAmount() const
AWS_COSTOPTIMIZATIONHUB_API Usage & operator=(Aws::Utils::Json::JsonView jsonValue)
bool UsageTypeHasBeenSet() const
void SetProductCode(ProductCodeT &&value)
const Aws::String & GetUnit() const
AWS_COSTOPTIMIZATIONHUB_API Usage()=default
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUsageAmount(double value)
bool OperationHasBeenSet() const
Usage & WithUnit(UnitT &&value)
const Aws::String & GetProductCode() const
const Aws::String & GetOperation() const
bool ProductCodeHasBeenSet() const
Usage & WithProductCode(ProductCodeT &&value)
bool UsageAmountHasBeenSet() const
Usage & WithUsageAmount(double value)
void SetUnit(UnitT &&value)
void SetOperation(OperationT &&value)
AWS_COSTOPTIMIZATIONHUB_API Usage(Aws::Utils::Json::JsonView jsonValue)
Usage & WithOperation(OperationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue