AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetCostEstimationResult.h
1
6#pragma once
7#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
8#include <aws/devops-guru/model/CostEstimationResourceCollectionFilter.h>
9#include <aws/devops-guru/model/CostEstimationStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/devops-guru/model/CostEstimationTimeRange.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/devops-guru/model/ServiceResourceCost.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace DevOpsGuru
29{
30namespace Model
31{
33 {
34 public:
35 AWS_DEVOPSGURU_API GetCostEstimationResult() = default;
38
39
41
45 inline const CostEstimationResourceCollectionFilter& GetResourceCollection() const { return m_resourceCollection; }
46 template<typename ResourceCollectionT = CostEstimationResourceCollectionFilter>
47 void SetResourceCollection(ResourceCollectionT&& value) { m_resourceCollectionHasBeenSet = true; m_resourceCollection = std::forward<ResourceCollectionT>(value); }
48 template<typename ResourceCollectionT = CostEstimationResourceCollectionFilter>
49 GetCostEstimationResult& WithResourceCollection(ResourceCollectionT&& value) { SetResourceCollection(std::forward<ResourceCollectionT>(value)); return *this;}
51
53
58 inline CostEstimationStatus GetStatus() const { return m_status; }
59 inline void SetStatus(CostEstimationStatus value) { m_statusHasBeenSet = true; m_status = value; }
60 inline GetCostEstimationResult& WithStatus(CostEstimationStatus value) { SetStatus(value); return *this;}
62
64
69 inline const Aws::Vector<ServiceResourceCost>& GetCosts() const { return m_costs; }
70 template<typename CostsT = Aws::Vector<ServiceResourceCost>>
71 void SetCosts(CostsT&& value) { m_costsHasBeenSet = true; m_costs = std::forward<CostsT>(value); }
72 template<typename CostsT = Aws::Vector<ServiceResourceCost>>
73 GetCostEstimationResult& WithCosts(CostsT&& value) { SetCosts(std::forward<CostsT>(value)); return *this;}
74 template<typename CostsT = ServiceResourceCost>
75 GetCostEstimationResult& AddCosts(CostsT&& value) { m_costsHasBeenSet = true; m_costs.emplace_back(std::forward<CostsT>(value)); return *this; }
77
79
82 inline const CostEstimationTimeRange& GetTimeRange() const { return m_timeRange; }
83 template<typename TimeRangeT = CostEstimationTimeRange>
84 void SetTimeRange(TimeRangeT&& value) { m_timeRangeHasBeenSet = true; m_timeRange = std::forward<TimeRangeT>(value); }
85 template<typename TimeRangeT = CostEstimationTimeRange>
86 GetCostEstimationResult& WithTimeRange(TimeRangeT&& value) { SetTimeRange(std::forward<TimeRangeT>(value)); return *this;}
88
90
95 inline double GetTotalCost() const { return m_totalCost; }
96 inline void SetTotalCost(double value) { m_totalCostHasBeenSet = true; m_totalCost = value; }
97 inline GetCostEstimationResult& WithTotalCost(double value) { SetTotalCost(value); return *this;}
99
101
105 inline const Aws::String& GetNextToken() const { return m_nextToken; }
106 template<typename NextTokenT = Aws::String>
107 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
108 template<typename NextTokenT = Aws::String>
109 GetCostEstimationResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
111
113
114 inline const Aws::String& GetRequestId() const { return m_requestId; }
115 template<typename RequestIdT = Aws::String>
116 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
117 template<typename RequestIdT = Aws::String>
118 GetCostEstimationResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
120 private:
121
122 CostEstimationResourceCollectionFilter m_resourceCollection;
123 bool m_resourceCollectionHasBeenSet = false;
124
126 bool m_statusHasBeenSet = false;
127
129 bool m_costsHasBeenSet = false;
130
131 CostEstimationTimeRange m_timeRange;
132 bool m_timeRangeHasBeenSet = false;
133
134 double m_totalCost{0.0};
135 bool m_totalCostHasBeenSet = false;
136
137 Aws::String m_nextToken;
138 bool m_nextTokenHasBeenSet = false;
139
140 Aws::String m_requestId;
141 bool m_requestIdHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace DevOpsGuru
146} // 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