AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetCostEstimationResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
10#include <aws/devops-guru/model/CostEstimationResourceCollectionFilter.h>
11#include <aws/devops-guru/model/CostEstimationStatus.h>
12#include <aws/devops-guru/model/CostEstimationTimeRange.h>
13#include <aws/devops-guru/model/ServiceResourceCost.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace DevOpsGuru {
27namespace Model {
29 public:
30 AWS_DEVOPSGURU_API GetCostEstimationResult() = default;
33
35
39 inline const CostEstimationResourceCollectionFilter& GetResourceCollection() const { return m_resourceCollection; }
40 template <typename ResourceCollectionT = CostEstimationResourceCollectionFilter>
41 void SetResourceCollection(ResourceCollectionT&& value) {
42 m_resourceCollectionHasBeenSet = true;
43 m_resourceCollection = std::forward<ResourceCollectionT>(value);
44 }
45 template <typename ResourceCollectionT = CostEstimationResourceCollectionFilter>
46 GetCostEstimationResult& WithResourceCollection(ResourceCollectionT&& value) {
47 SetResourceCollection(std::forward<ResourceCollectionT>(value));
48 return *this;
49 }
51
53
58 inline CostEstimationStatus GetStatus() const { return m_status; }
59 inline void SetStatus(CostEstimationStatus value) {
60 m_statusHasBeenSet = true;
61 m_status = value;
62 }
64 SetStatus(value);
65 return *this;
66 }
68
70
75 inline const Aws::Vector<ServiceResourceCost>& GetCosts() const { return m_costs; }
76 template <typename CostsT = Aws::Vector<ServiceResourceCost>>
77 void SetCosts(CostsT&& value) {
78 m_costsHasBeenSet = true;
79 m_costs = std::forward<CostsT>(value);
80 }
81 template <typename CostsT = Aws::Vector<ServiceResourceCost>>
83 SetCosts(std::forward<CostsT>(value));
84 return *this;
85 }
86 template <typename CostsT = ServiceResourceCost>
88 m_costsHasBeenSet = true;
89 m_costs.emplace_back(std::forward<CostsT>(value));
90 return *this;
91 }
93
95
98 inline const CostEstimationTimeRange& GetTimeRange() const { return m_timeRange; }
99 template <typename TimeRangeT = CostEstimationTimeRange>
100 void SetTimeRange(TimeRangeT&& value) {
101 m_timeRangeHasBeenSet = true;
102 m_timeRange = std::forward<TimeRangeT>(value);
103 }
104 template <typename TimeRangeT = CostEstimationTimeRange>
106 SetTimeRange(std::forward<TimeRangeT>(value));
107 return *this;
108 }
110
112
117 inline double GetTotalCost() const { return m_totalCost; }
118 inline void SetTotalCost(double value) {
119 m_totalCostHasBeenSet = true;
120 m_totalCost = value;
121 }
123 SetTotalCost(value);
124 return *this;
125 }
127
129
133 inline const Aws::String& GetNextToken() const { return m_nextToken; }
134 template <typename NextTokenT = Aws::String>
135 void SetNextToken(NextTokenT&& value) {
136 m_nextTokenHasBeenSet = true;
137 m_nextToken = std::forward<NextTokenT>(value);
138 }
139 template <typename NextTokenT = Aws::String>
141 SetNextToken(std::forward<NextTokenT>(value));
142 return *this;
143 }
145
147
148 inline const Aws::String& GetRequestId() const { return m_requestId; }
149 template <typename RequestIdT = Aws::String>
150 void SetRequestId(RequestIdT&& value) {
151 m_requestIdHasBeenSet = true;
152 m_requestId = std::forward<RequestIdT>(value);
153 }
154 template <typename RequestIdT = Aws::String>
156 SetRequestId(std::forward<RequestIdT>(value));
157 return *this;
158 }
160 private:
161 CostEstimationResourceCollectionFilter m_resourceCollection;
162
164
166
167 CostEstimationTimeRange m_timeRange;
168
169 double m_totalCost{0.0};
170
171 Aws::String m_nextToken;
172
173 Aws::String m_requestId;
174 bool m_resourceCollectionHasBeenSet = false;
175 bool m_statusHasBeenSet = false;
176 bool m_costsHasBeenSet = false;
177 bool m_timeRangeHasBeenSet = false;
178 bool m_totalCostHasBeenSet = false;
179 bool m_nextTokenHasBeenSet = false;
180 bool m_requestIdHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace DevOpsGuru
185} // namespace Aws
const CostEstimationResourceCollectionFilter & GetResourceCollection() const
GetCostEstimationResult & WithCosts(CostsT &&value)
GetCostEstimationResult & WithTotalCost(double value)
void SetResourceCollection(ResourceCollectionT &&value)
const CostEstimationTimeRange & GetTimeRange() const
AWS_DEVOPSGURU_API GetCostEstimationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetCostEstimationResult & WithTimeRange(TimeRangeT &&value)
AWS_DEVOPSGURU_API GetCostEstimationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< ServiceResourceCost > & GetCosts() const
AWS_DEVOPSGURU_API GetCostEstimationResult()=default
GetCostEstimationResult & WithResourceCollection(ResourceCollectionT &&value)
GetCostEstimationResult & WithStatus(CostEstimationStatus value)
GetCostEstimationResult & WithNextToken(NextTokenT &&value)
GetCostEstimationResult & AddCosts(CostsT &&value)
GetCostEstimationResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue