AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
38
39
41
45 inline const CostEstimationResourceCollectionFilter& GetResourceCollection() const{ return m_resourceCollection; }
46 inline void SetResourceCollection(const CostEstimationResourceCollectionFilter& value) { m_resourceCollection = value; }
47 inline void SetResourceCollection(CostEstimationResourceCollectionFilter&& value) { m_resourceCollection = std::move(value); }
51
53
58 inline const CostEstimationStatus& GetStatus() const{ return m_status; }
59 inline void SetStatus(const CostEstimationStatus& value) { m_status = value; }
60 inline void SetStatus(CostEstimationStatus&& value) { m_status = std::move(value); }
61 inline GetCostEstimationResult& WithStatus(const CostEstimationStatus& value) { SetStatus(value); return *this;}
62 inline GetCostEstimationResult& WithStatus(CostEstimationStatus&& value) { SetStatus(std::move(value)); return *this;}
64
66
71 inline const Aws::Vector<ServiceResourceCost>& GetCosts() const{ return m_costs; }
72 inline void SetCosts(const Aws::Vector<ServiceResourceCost>& value) { m_costs = value; }
73 inline void SetCosts(Aws::Vector<ServiceResourceCost>&& value) { m_costs = std::move(value); }
74 inline GetCostEstimationResult& WithCosts(const Aws::Vector<ServiceResourceCost>& value) { SetCosts(value); return *this;}
75 inline GetCostEstimationResult& WithCosts(Aws::Vector<ServiceResourceCost>&& value) { SetCosts(std::move(value)); return *this;}
76 inline GetCostEstimationResult& AddCosts(const ServiceResourceCost& value) { m_costs.push_back(value); return *this; }
77 inline GetCostEstimationResult& AddCosts(ServiceResourceCost&& value) { m_costs.push_back(std::move(value)); return *this; }
79
81
84 inline const CostEstimationTimeRange& GetTimeRange() const{ return m_timeRange; }
85 inline void SetTimeRange(const CostEstimationTimeRange& value) { m_timeRange = value; }
86 inline void SetTimeRange(CostEstimationTimeRange&& value) { m_timeRange = std::move(value); }
87 inline GetCostEstimationResult& WithTimeRange(const CostEstimationTimeRange& value) { SetTimeRange(value); return *this;}
88 inline GetCostEstimationResult& WithTimeRange(CostEstimationTimeRange&& value) { SetTimeRange(std::move(value)); return *this;}
90
92
97 inline double GetTotalCost() const{ return m_totalCost; }
98 inline void SetTotalCost(double value) { m_totalCost = value; }
99 inline GetCostEstimationResult& WithTotalCost(double value) { SetTotalCost(value); return *this;}
101
103
107 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
108 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
109 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
110 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
111 inline GetCostEstimationResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
112 inline GetCostEstimationResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
113 inline GetCostEstimationResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
115
117
118 inline const Aws::String& GetRequestId() const{ return m_requestId; }
119 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
120 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
121 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
122 inline GetCostEstimationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
123 inline GetCostEstimationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
124 inline GetCostEstimationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
126 private:
127
128 CostEstimationResourceCollectionFilter m_resourceCollection;
129
130 CostEstimationStatus m_status;
131
133
134 CostEstimationTimeRange m_timeRange;
135
136 double m_totalCost;
137
138 Aws::String m_nextToken;
139
140 Aws::String m_requestId;
141 };
142
143} // namespace Model
144} // namespace DevOpsGuru
145} // namespace Aws
const CostEstimationResourceCollectionFilter & GetResourceCollection() const
GetCostEstimationResult & WithStatus(CostEstimationStatus &&value)
void SetTimeRange(CostEstimationTimeRange &&value)
GetCostEstimationResult & WithTotalCost(double value)
GetCostEstimationResult & WithResourceCollection(const CostEstimationResourceCollectionFilter &value)
GetCostEstimationResult & WithTimeRange(CostEstimationTimeRange &&value)
GetCostEstimationResult & WithRequestId(const char *value)
void SetResourceCollection(CostEstimationResourceCollectionFilter &&value)
GetCostEstimationResult & AddCosts(ServiceResourceCost &&value)
GetCostEstimationResult & WithNextToken(const Aws::String &value)
const CostEstimationTimeRange & GetTimeRange() const
void SetCosts(Aws::Vector< ServiceResourceCost > &&value)
GetCostEstimationResult & AddCosts(const ServiceResourceCost &value)
GetCostEstimationResult & WithRequestId(const Aws::String &value)
GetCostEstimationResult & WithCosts(Aws::Vector< ServiceResourceCost > &&value)
void SetResourceCollection(const CostEstimationResourceCollectionFilter &value)
AWS_DEVOPSGURU_API GetCostEstimationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DEVOPSGURU_API GetCostEstimationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetCostEstimationResult & WithStatus(const CostEstimationStatus &value)
GetCostEstimationResult & WithRequestId(Aws::String &&value)
void SetStatus(const CostEstimationStatus &value)
void SetCosts(const Aws::Vector< ServiceResourceCost > &value)
const Aws::Vector< ServiceResourceCost > & GetCosts() const
GetCostEstimationResult & WithNextToken(Aws::String &&value)
GetCostEstimationResult & WithCosts(const Aws::Vector< ServiceResourceCost > &value)
GetCostEstimationResult & WithTimeRange(const CostEstimationTimeRange &value)
GetCostEstimationResult & WithResourceCollection(CostEstimationResourceCollectionFilter &&value)
void SetTimeRange(const CostEstimationTimeRange &value)
GetCostEstimationResult & WithNextToken(const char *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