AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
GetCostEstimationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
11#include <aws/devops-guru/model/CostEstimationResourceCollectionFilter.h>
12#include <aws/devops-guru/model/CostEstimationStatus.h>
13#include <aws/devops-guru/model/CostEstimationTimeRange.h>
14#include <aws/devops-guru/model/ServiceResourceCost.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace DevOpsGuru {
28namespace Model {
30 public:
31 AWS_DEVOPSGURU_API GetCostEstimationResult() = default;
34
36
40 inline const CostEstimationResourceCollectionFilter& GetResourceCollection() const { return m_resourceCollection; }
41 template <typename ResourceCollectionT = CostEstimationResourceCollectionFilter>
42 void SetResourceCollection(ResourceCollectionT&& value) {
43 m_resourceCollectionHasBeenSet = true;
44 m_resourceCollection = std::forward<ResourceCollectionT>(value);
45 }
46 template <typename ResourceCollectionT = CostEstimationResourceCollectionFilter>
47 GetCostEstimationResult& WithResourceCollection(ResourceCollectionT&& value) {
48 SetResourceCollection(std::forward<ResourceCollectionT>(value));
49 return *this;
50 }
52
54
59 inline CostEstimationStatus GetStatus() const { return m_status; }
60 inline void SetStatus(CostEstimationStatus value) {
61 m_statusHasBeenSet = true;
62 m_status = value;
63 }
65 SetStatus(value);
66 return *this;
67 }
69
71
76 inline const Aws::Vector<ServiceResourceCost>& GetCosts() const { return m_costs; }
77 template <typename CostsT = Aws::Vector<ServiceResourceCost>>
78 void SetCosts(CostsT&& value) {
79 m_costsHasBeenSet = true;
80 m_costs = std::forward<CostsT>(value);
81 }
82 template <typename CostsT = Aws::Vector<ServiceResourceCost>>
84 SetCosts(std::forward<CostsT>(value));
85 return *this;
86 }
87 template <typename CostsT = ServiceResourceCost>
89 m_costsHasBeenSet = true;
90 m_costs.emplace_back(std::forward<CostsT>(value));
91 return *this;
92 }
94
96
99 inline const CostEstimationTimeRange& GetTimeRange() const { return m_timeRange; }
100 template <typename TimeRangeT = CostEstimationTimeRange>
101 void SetTimeRange(TimeRangeT&& value) {
102 m_timeRangeHasBeenSet = true;
103 m_timeRange = std::forward<TimeRangeT>(value);
104 }
105 template <typename TimeRangeT = CostEstimationTimeRange>
107 SetTimeRange(std::forward<TimeRangeT>(value));
108 return *this;
109 }
111
113
118 inline double GetTotalCost() const { return m_totalCost; }
119 inline void SetTotalCost(double value) {
120 m_totalCostHasBeenSet = true;
121 m_totalCost = value;
122 }
124 SetTotalCost(value);
125 return *this;
126 }
128
130
134 inline const Aws::String& GetNextToken() const { return m_nextToken; }
135 template <typename NextTokenT = Aws::String>
136 void SetNextToken(NextTokenT&& value) {
137 m_nextTokenHasBeenSet = true;
138 m_nextToken = std::forward<NextTokenT>(value);
139 }
140 template <typename NextTokenT = Aws::String>
142 SetNextToken(std::forward<NextTokenT>(value));
143 return *this;
144 }
146
148
149 inline const Aws::String& GetRequestId() const { return m_requestId; }
150 template <typename RequestIdT = Aws::String>
151 void SetRequestId(RequestIdT&& value) {
152 m_requestIdHasBeenSet = true;
153 m_requestId = std::forward<RequestIdT>(value);
154 }
155 template <typename RequestIdT = Aws::String>
157 SetRequestId(std::forward<RequestIdT>(value));
158 return *this;
159 }
161 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
162
163 private:
164 CostEstimationResourceCollectionFilter m_resourceCollection;
165
167
169
170 CostEstimationTimeRange m_timeRange;
171
172 double m_totalCost{0.0};
173
174 Aws::String m_nextToken;
175
176 Aws::String m_requestId;
177 Aws::Http::HttpResponseCode m_HttpResponseCode;
178 bool m_resourceCollectionHasBeenSet = false;
179 bool m_statusHasBeenSet = false;
180 bool m_costsHasBeenSet = false;
181 bool m_timeRangeHasBeenSet = false;
182 bool m_totalCostHasBeenSet = false;
183 bool m_nextTokenHasBeenSet = false;
184 bool m_requestIdHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace DevOpsGuru
189} // namespace Aws
const CostEstimationResourceCollectionFilter & GetResourceCollection() const
GetCostEstimationResult & WithCosts(CostsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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