AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServiceResourceCost.h
1
6#pragma once
7#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devops-guru/model/CostEstimationServiceResourceState.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DevOpsGuru
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_DEVOPSGURU_API ServiceResourceCost();
41 AWS_DEVOPSGURU_API ServiceResourceCost(Aws::Utils::Json::JsonView jsonValue);
43 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetType() const{ return m_type; }
51 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
52 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
53 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
54 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
55 inline ServiceResourceCost& WithType(const Aws::String& value) { SetType(value); return *this;}
56 inline ServiceResourceCost& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
57 inline ServiceResourceCost& WithType(const char* value) { SetType(value); return *this;}
59
61
67 inline const CostEstimationServiceResourceState& GetState() const{ return m_state; }
68 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
69 inline void SetState(const CostEstimationServiceResourceState& value) { m_stateHasBeenSet = true; m_state = value; }
70 inline void SetState(CostEstimationServiceResourceState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
71 inline ServiceResourceCost& WithState(const CostEstimationServiceResourceState& value) { SetState(value); return *this;}
72 inline ServiceResourceCost& WithState(CostEstimationServiceResourceState&& value) { SetState(std::move(value)); return *this;}
74
76
80 inline int GetCount() const{ return m_count; }
81 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
82 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
83 inline ServiceResourceCost& WithCount(int value) { SetCount(value); return *this;}
85
87
95 inline double GetUnitCost() const{ return m_unitCost; }
96 inline bool UnitCostHasBeenSet() const { return m_unitCostHasBeenSet; }
97 inline void SetUnitCost(double value) { m_unitCostHasBeenSet = true; m_unitCost = value; }
98 inline ServiceResourceCost& WithUnitCost(double value) { SetUnitCost(value); return *this;}
100
102
106 inline double GetCost() const{ return m_cost; }
107 inline bool CostHasBeenSet() const { return m_costHasBeenSet; }
108 inline void SetCost(double value) { m_costHasBeenSet = true; m_cost = value; }
109 inline ServiceResourceCost& WithCost(double value) { SetCost(value); return *this;}
111 private:
112
113 Aws::String m_type;
114 bool m_typeHasBeenSet = false;
115
117 bool m_stateHasBeenSet = false;
118
119 int m_count;
120 bool m_countHasBeenSet = false;
121
122 double m_unitCost;
123 bool m_unitCostHasBeenSet = false;
124
125 double m_cost;
126 bool m_costHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace DevOpsGuru
131} // namespace Aws
ServiceResourceCost & WithType(const char *value)
ServiceResourceCost & WithUnitCost(double value)
ServiceResourceCost & WithState(CostEstimationServiceResourceState &&value)
void SetState(const CostEstimationServiceResourceState &value)
ServiceResourceCost & WithState(const CostEstimationServiceResourceState &value)
ServiceResourceCost & WithType(Aws::String &&value)
ServiceResourceCost & WithCost(double value)
ServiceResourceCost & WithCount(int value)
AWS_DEVOPSGURU_API ServiceResourceCost & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVOPSGURU_API ServiceResourceCost(Aws::Utils::Json::JsonView jsonValue)
ServiceResourceCost & WithType(const Aws::String &value)
const CostEstimationServiceResourceState & GetState() const
void SetState(CostEstimationServiceResourceState &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue