AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ServiceResourceCost.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
9#include <aws/devops-guru/model/CostEstimationServiceResourceState.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DevOpsGuru {
21namespace Model {
22
34 public:
35 AWS_DEVOPSGURU_API ServiceResourceCost() = default;
36 AWS_DEVOPSGURU_API ServiceResourceCost(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetType() const { return m_type; }
45 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
46 template <typename TypeT = Aws::String>
47 void SetType(TypeT&& value) {
48 m_typeHasBeenSet = true;
49 m_type = std::forward<TypeT>(value);
50 }
51 template <typename TypeT = Aws::String>
52 ServiceResourceCost& WithType(TypeT&& value) {
53 SetType(std::forward<TypeT>(value));
54 return *this;
55 }
57
59
65 inline CostEstimationServiceResourceState GetState() const { return m_state; }
66 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
68 m_stateHasBeenSet = true;
69 m_state = value;
70 }
72 SetState(value);
73 return *this;
74 }
76
78
82 inline int GetCount() const { return m_count; }
83 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
84 inline void SetCount(int value) {
85 m_countHasBeenSet = true;
86 m_count = value;
87 }
88 inline ServiceResourceCost& WithCount(int value) {
89 SetCount(value);
90 return *this;
91 }
93
95
103 inline double GetUnitCost() const { return m_unitCost; }
104 inline bool UnitCostHasBeenSet() const { return m_unitCostHasBeenSet; }
105 inline void SetUnitCost(double value) {
106 m_unitCostHasBeenSet = true;
107 m_unitCost = value;
108 }
109 inline ServiceResourceCost& WithUnitCost(double value) {
110 SetUnitCost(value);
111 return *this;
112 }
114
116
120 inline double GetCost() const { return m_cost; }
121 inline bool CostHasBeenSet() const { return m_costHasBeenSet; }
122 inline void SetCost(double value) {
123 m_costHasBeenSet = true;
124 m_cost = value;
125 }
126 inline ServiceResourceCost& WithCost(double value) {
127 SetCost(value);
128 return *this;
129 }
131 private:
132 Aws::String m_type;
133
135
136 int m_count{0};
137
138 double m_unitCost{0.0};
139
140 double m_cost{0.0};
141 bool m_typeHasBeenSet = false;
142 bool m_stateHasBeenSet = false;
143 bool m_countHasBeenSet = false;
144 bool m_unitCostHasBeenSet = false;
145 bool m_costHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace DevOpsGuru
150} // 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