7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
19namespace CostOptimizationHub {
29 AWS_COSTOPTIMIZATIONHUB_API
Usage() =
default;
40 template <
typename UsageTypeT = Aws::String>
42 m_usageTypeHasBeenSet =
true;
43 m_usageType = std::forward<UsageTypeT>(value);
45 template <
typename UsageTypeT = Aws::String>
59 m_usageAmountHasBeenSet =
true;
60 m_usageAmount = value;
74 template <
typename OperationT = Aws::String>
76 m_operationHasBeenSet =
true;
77 m_operation = std::forward<OperationT>(value);
79 template <
typename OperationT = Aws::String>
92 template <
typename ProductCodeT = Aws::String>
94 m_productCodeHasBeenSet =
true;
95 m_productCode = std::forward<ProductCodeT>(value);
97 template <
typename ProductCodeT = Aws::String>
110 template <
typename UnitT = Aws::String>
112 m_unitHasBeenSet =
true;
113 m_unit = std::forward<UnitT>(value);
115 template <
typename UnitT = Aws::String>
117 SetUnit(std::forward<UnitT>(value));
124 double m_usageAmount{0.0};
131 bool m_usageTypeHasBeenSet =
false;
132 bool m_usageAmountHasBeenSet =
false;
133 bool m_operationHasBeenSet =
false;
134 bool m_productCodeHasBeenSet =
false;
135 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