AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetCostForecastResult.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/MetricValue.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ce/model/ForecastResult.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CostExplorer
27{
28namespace Model
29{
31 {
32 public:
33 AWS_COSTEXPLORER_API GetCostForecastResult();
36
37
39
43 inline const MetricValue& GetTotal() const{ return m_total; }
44 inline void SetTotal(const MetricValue& value) { m_total = value; }
45 inline void SetTotal(MetricValue&& value) { m_total = std::move(value); }
46 inline GetCostForecastResult& WithTotal(const MetricValue& value) { SetTotal(value); return *this;}
47 inline GetCostForecastResult& WithTotal(MetricValue&& value) { SetTotal(std::move(value)); return *this;}
49
51
56 inline const Aws::Vector<ForecastResult>& GetForecastResultsByTime() const{ return m_forecastResultsByTime; }
57 inline void SetForecastResultsByTime(const Aws::Vector<ForecastResult>& value) { m_forecastResultsByTime = value; }
58 inline void SetForecastResultsByTime(Aws::Vector<ForecastResult>&& value) { m_forecastResultsByTime = std::move(value); }
61 inline GetCostForecastResult& AddForecastResultsByTime(const ForecastResult& value) { m_forecastResultsByTime.push_back(value); return *this; }
62 inline GetCostForecastResult& AddForecastResultsByTime(ForecastResult&& value) { m_forecastResultsByTime.push_back(std::move(value)); return *this; }
64
66
67 inline const Aws::String& GetRequestId() const{ return m_requestId; }
68 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
69 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
70 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
71 inline GetCostForecastResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
72 inline GetCostForecastResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
73 inline GetCostForecastResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
75 private:
76
77 MetricValue m_total;
78
79 Aws::Vector<ForecastResult> m_forecastResultsByTime;
80
81 Aws::String m_requestId;
82 };
83
84} // namespace Model
85} // namespace CostExplorer
86} // namespace Aws
void SetForecastResultsByTime(const Aws::Vector< ForecastResult > &value)
void SetForecastResultsByTime(Aws::Vector< ForecastResult > &&value)
GetCostForecastResult & WithRequestId(Aws::String &&value)
GetCostForecastResult & WithTotal(const MetricValue &value)
AWS_COSTEXPLORER_API GetCostForecastResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetCostForecastResult & AddForecastResultsByTime(ForecastResult &&value)
AWS_COSTEXPLORER_API GetCostForecastResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetCostForecastResult & WithRequestId(const Aws::String &value)
GetCostForecastResult & WithForecastResultsByTime(const Aws::Vector< ForecastResult > &value)
const Aws::Vector< ForecastResult > & GetForecastResultsByTime() const
GetCostForecastResult & WithForecastResultsByTime(Aws::Vector< ForecastResult > &&value)
GetCostForecastResult & WithTotal(MetricValue &&value)
GetCostForecastResult & WithRequestId(const char *value)
GetCostForecastResult & AddForecastResultsByTime(const ForecastResult &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