AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Usage.h
1
6#pragma once
7#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CostOptimizationHub
22{
23namespace Model
24{
25
31 class Usage
32 {
33 public:
34 AWS_COSTOPTIMIZATIONHUB_API Usage() = default;
35 AWS_COSTOPTIMIZATIONHUB_API Usage(Aws::Utils::Json::JsonView jsonValue);
36 AWS_COSTOPTIMIZATIONHUB_API Usage& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetUsageType() const { return m_usageType; }
45 inline bool UsageTypeHasBeenSet() const { return m_usageTypeHasBeenSet; }
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>
49 Usage& WithUsageType(UsageTypeT&& value) { SetUsageType(std::forward<UsageTypeT>(value)); return *this;}
51
53
56 inline double GetUsageAmount() const { return m_usageAmount; }
57 inline bool UsageAmountHasBeenSet() const { return m_usageAmountHasBeenSet; }
58 inline void SetUsageAmount(double value) { m_usageAmountHasBeenSet = true; m_usageAmount = value; }
59 inline Usage& WithUsageAmount(double value) { SetUsageAmount(value); return *this;}
61
63
66 inline const Aws::String& GetOperation() const { return m_operation; }
67 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
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>
71 Usage& WithOperation(OperationT&& value) { SetOperation(std::forward<OperationT>(value)); return *this;}
73
75
78 inline const Aws::String& GetProductCode() const { return m_productCode; }
79 inline bool ProductCodeHasBeenSet() const { return m_productCodeHasBeenSet; }
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>
83 Usage& WithProductCode(ProductCodeT&& value) { SetProductCode(std::forward<ProductCodeT>(value)); return *this;}
85
87
90 inline const Aws::String& GetUnit() const { return m_unit; }
91 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
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>
95 Usage& WithUnit(UnitT&& value) { SetUnit(std::forward<UnitT>(value)); return *this;}
97 private:
98
99 Aws::String m_usageType;
100 bool m_usageTypeHasBeenSet = false;
101
102 double m_usageAmount{0.0};
103 bool m_usageAmountHasBeenSet = false;
104
105 Aws::String m_operation;
106 bool m_operationHasBeenSet = false;
107
108 Aws::String m_productCode;
109 bool m_productCodeHasBeenSet = false;
110
111 Aws::String m_unit;
112 bool m_unitHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace CostOptimizationHub
117} // namespace Aws
const Aws::String & GetUsageType() const
Definition Usage.h:44
Usage & WithUsageType(UsageTypeT &&value)
Definition Usage.h:49
void SetUsageType(UsageTypeT &&value)
Definition Usage.h:47
AWS_COSTOPTIMIZATIONHUB_API Usage & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetProductCode(ProductCodeT &&value)
Definition Usage.h:81
const Aws::String & GetUnit() const
Definition Usage.h:90
AWS_COSTOPTIMIZATIONHUB_API Usage()=default
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUsageAmount(double value)
Definition Usage.h:58
Usage & WithUnit(UnitT &&value)
Definition Usage.h:95
const Aws::String & GetProductCode() const
Definition Usage.h:78
const Aws::String & GetOperation() const
Definition Usage.h:66
Usage & WithProductCode(ProductCodeT &&value)
Definition Usage.h:83
Usage & WithUsageAmount(double value)
Definition Usage.h:59
void SetUnit(UnitT &&value)
Definition Usage.h:93
void SetOperation(OperationT &&value)
Definition Usage.h:69
AWS_COSTOPTIMIZATIONHUB_API Usage(Aws::Utils::Json::JsonView jsonValue)
Usage & WithOperation(OperationT &&value)
Definition Usage.h:71
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue