AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetUsageForecastResult.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 GetUsageForecastResult();
36
37
39
42 inline const MetricValue& GetTotal() const{ return m_total; }
43 inline void SetTotal(const MetricValue& value) { m_total = value; }
44 inline void SetTotal(MetricValue&& value) { m_total = std::move(value); }
45 inline GetUsageForecastResult& WithTotal(const MetricValue& value) { SetTotal(value); return *this;}
46 inline GetUsageForecastResult& WithTotal(MetricValue&& value) { SetTotal(std::move(value)); return *this;}
48
50
55 inline const Aws::Vector<ForecastResult>& GetForecastResultsByTime() const{ return m_forecastResultsByTime; }
56 inline void SetForecastResultsByTime(const Aws::Vector<ForecastResult>& value) { m_forecastResultsByTime = value; }
57 inline void SetForecastResultsByTime(Aws::Vector<ForecastResult>&& value) { m_forecastResultsByTime = std::move(value); }
60 inline GetUsageForecastResult& AddForecastResultsByTime(const ForecastResult& value) { m_forecastResultsByTime.push_back(value); return *this; }
61 inline GetUsageForecastResult& AddForecastResultsByTime(ForecastResult&& value) { m_forecastResultsByTime.push_back(std::move(value)); return *this; }
63
65
66 inline const Aws::String& GetRequestId() const{ return m_requestId; }
67 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
68 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
69 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
70 inline GetUsageForecastResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
71 inline GetUsageForecastResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
72 inline GetUsageForecastResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
74 private:
75
76 MetricValue m_total;
77
78 Aws::Vector<ForecastResult> m_forecastResultsByTime;
79
80 Aws::String m_requestId;
81 };
82
83} // namespace Model
84} // namespace CostExplorer
85} // namespace Aws
void SetForecastResultsByTime(Aws::Vector< ForecastResult > &&value)
GetUsageForecastResult & WithTotal(MetricValue &&value)
GetUsageForecastResult & WithRequestId(const char *value)
const Aws::Vector< ForecastResult > & GetForecastResultsByTime() const
GetUsageForecastResult & AddForecastResultsByTime(const ForecastResult &value)
AWS_COSTEXPLORER_API GetUsageForecastResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetUsageForecastResult & WithRequestId(Aws::String &&value)
void SetForecastResultsByTime(const Aws::Vector< ForecastResult > &value)
AWS_COSTEXPLORER_API GetUsageForecastResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetUsageForecastResult & WithForecastResultsByTime(const Aws::Vector< ForecastResult > &value)
GetUsageForecastResult & AddForecastResultsByTime(ForecastResult &&value)
GetUsageForecastResult & WithTotal(const MetricValue &value)
GetUsageForecastResult & WithRequestId(const Aws::String &value)
GetUsageForecastResult & WithForecastResultsByTime(Aws::Vector< 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