AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUsageType(const Aws::String& value) { m_usageTypeHasBeenSet = true; m_usageType = value; }
47 inline void SetUsageType(Aws::String&& value) { m_usageTypeHasBeenSet = true; m_usageType = std::move(value); }
48 inline void SetUsageType(const char* value) { m_usageTypeHasBeenSet = true; m_usageType.assign(value); }
49 inline Usage& WithUsageType(const Aws::String& value) { SetUsageType(value); return *this;}
50 inline Usage& WithUsageType(Aws::String&& value) { SetUsageType(std::move(value)); return *this;}
51 inline Usage& WithUsageType(const char* value) { SetUsageType(value); return *this;}
53
55
58 inline double GetUsageAmount() const{ return m_usageAmount; }
59 inline bool UsageAmountHasBeenSet() const { return m_usageAmountHasBeenSet; }
60 inline void SetUsageAmount(double value) { m_usageAmountHasBeenSet = true; m_usageAmount = value; }
61 inline Usage& WithUsageAmount(double value) { SetUsageAmount(value); return *this;}
63
65
68 inline const Aws::String& GetOperation() const{ return m_operation; }
69 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
70 inline void SetOperation(const Aws::String& value) { m_operationHasBeenSet = true; m_operation = value; }
71 inline void SetOperation(Aws::String&& value) { m_operationHasBeenSet = true; m_operation = std::move(value); }
72 inline void SetOperation(const char* value) { m_operationHasBeenSet = true; m_operation.assign(value); }
73 inline Usage& WithOperation(const Aws::String& value) { SetOperation(value); return *this;}
74 inline Usage& WithOperation(Aws::String&& value) { SetOperation(std::move(value)); return *this;}
75 inline Usage& WithOperation(const char* value) { SetOperation(value); return *this;}
77
79
82 inline const Aws::String& GetProductCode() const{ return m_productCode; }
83 inline bool ProductCodeHasBeenSet() const { return m_productCodeHasBeenSet; }
84 inline void SetProductCode(const Aws::String& value) { m_productCodeHasBeenSet = true; m_productCode = value; }
85 inline void SetProductCode(Aws::String&& value) { m_productCodeHasBeenSet = true; m_productCode = std::move(value); }
86 inline void SetProductCode(const char* value) { m_productCodeHasBeenSet = true; m_productCode.assign(value); }
87 inline Usage& WithProductCode(const Aws::String& value) { SetProductCode(value); return *this;}
88 inline Usage& WithProductCode(Aws::String&& value) { SetProductCode(std::move(value)); return *this;}
89 inline Usage& WithProductCode(const char* value) { SetProductCode(value); return *this;}
91
93
96 inline const Aws::String& GetUnit() const{ return m_unit; }
97 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
98 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
99 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
100 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
101 inline Usage& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
102 inline Usage& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
103 inline Usage& WithUnit(const char* value) { SetUnit(value); return *this;}
105 private:
106
107 Aws::String m_usageType;
108 bool m_usageTypeHasBeenSet = false;
109
110 double m_usageAmount;
111 bool m_usageAmountHasBeenSet = false;
112
113 Aws::String m_operation;
114 bool m_operationHasBeenSet = false;
115
116 Aws::String m_productCode;
117 bool m_productCodeHasBeenSet = false;
118
119 Aws::String m_unit;
120 bool m_unitHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace CostOptimizationHub
125} // namespace Aws
void SetUnit(Aws::String &&value)
Definition Usage.h:99
const Aws::String & GetUsageType() const
Definition Usage.h:44
void SetOperation(const char *value)
Definition Usage.h:72
AWS_COSTOPTIMIZATIONHUB_API Usage()
void SetProductCode(Aws::String &&value)
Definition Usage.h:85
void SetOperation(Aws::String &&value)
Definition Usage.h:71
AWS_COSTOPTIMIZATIONHUB_API Usage & operator=(Aws::Utils::Json::JsonView jsonValue)
Usage & WithUsageType(Aws::String &&value)
Definition Usage.h:50
Usage & WithUnit(const Aws::String &value)
Definition Usage.h:101
Usage & WithUsageType(const Aws::String &value)
Definition Usage.h:49
Usage & WithOperation(Aws::String &&value)
Definition Usage.h:74
void SetUnit(const char *value)
Definition Usage.h:100
const Aws::String & GetUnit() const
Definition Usage.h:96
void SetUsageType(const Aws::String &value)
Definition Usage.h:46
Usage & WithOperation(const Aws::String &value)
Definition Usage.h:73
void SetOperation(const Aws::String &value)
Definition Usage.h:70
Usage & WithUnit(const char *value)
Definition Usage.h:103
Usage & WithProductCode(const Aws::String &value)
Definition Usage.h:87
void SetProductCode(const Aws::String &value)
Definition Usage.h:84
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUsageAmount(double value)
Definition Usage.h:60
void SetUnit(const Aws::String &value)
Definition Usage.h:98
Usage & WithOperation(const char *value)
Definition Usage.h:75
Usage & WithProductCode(Aws::String &&value)
Definition Usage.h:88
const Aws::String & GetProductCode() const
Definition Usage.h:82
const Aws::String & GetOperation() const
Definition Usage.h:68
Usage & WithUsageAmount(double value)
Definition Usage.h:61
void SetUsageType(const char *value)
Definition Usage.h:48
Usage & WithUsageType(const char *value)
Definition Usage.h:51
void SetProductCode(const char *value)
Definition Usage.h:86
AWS_COSTOPTIMIZATIONHUB_API Usage(Aws::Utils::Json::JsonView jsonValue)
Usage & WithProductCode(const char *value)
Definition Usage.h:89
void SetUsageType(Aws::String &&value)
Definition Usage.h:47
Usage & WithUnit(Aws::String &&value)
Definition Usage.h:102
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue