AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename TypeT = Aws::String>
53 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
54 template<typename TypeT = Aws::String>
55 ServiceResourceCost& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
57
59
65 inline CostEstimationServiceResourceState GetState() const { return m_state; }
66 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
67 inline void SetState(CostEstimationServiceResourceState value) { m_stateHasBeenSet = true; m_state = value; }
70
72
76 inline int GetCount() const { return m_count; }
77 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
78 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
79 inline ServiceResourceCost& WithCount(int value) { SetCount(value); return *this;}
81
83
91 inline double GetUnitCost() const { return m_unitCost; }
92 inline bool UnitCostHasBeenSet() const { return m_unitCostHasBeenSet; }
93 inline void SetUnitCost(double value) { m_unitCostHasBeenSet = true; m_unitCost = value; }
94 inline ServiceResourceCost& WithUnitCost(double value) { SetUnitCost(value); return *this;}
96
98
102 inline double GetCost() const { return m_cost; }
103 inline bool CostHasBeenSet() const { return m_costHasBeenSet; }
104 inline void SetCost(double value) { m_costHasBeenSet = true; m_cost = value; }
105 inline ServiceResourceCost& WithCost(double value) { SetCost(value); return *this;}
107 private:
108
109 Aws::String m_type;
110 bool m_typeHasBeenSet = false;
111
113 bool m_stateHasBeenSet = false;
114
115 int m_count{0};
116 bool m_countHasBeenSet = false;
117
118 double m_unitCost{0.0};
119 bool m_unitCostHasBeenSet = false;
120
121 double m_cost{0.0};
122 bool m_costHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace DevOpsGuru
127} // namespace Aws
ServiceResourceCost & WithUnitCost(double value)
AWS_DEVOPSGURU_API ServiceResourceCost()=default
void SetState(CostEstimationServiceResourceState value)
CostEstimationServiceResourceState GetState() const
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
ServiceResourceCost & WithState(CostEstimationServiceResourceState value)
ServiceResourceCost & WithType(TypeT &&value)
AWS_DEVOPSGURU_API ServiceResourceCost(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue