AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetSavingsPlansUtilizationResult.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ce/model/SavingsPlansUtilizationAggregates.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ce/model/SavingsPlansUtilizationByTime.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 GetSavingsPlansUtilizationResult();
36
37
39
43 inline const Aws::Vector<SavingsPlansUtilizationByTime>& GetSavingsPlansUtilizationsByTime() const{ return m_savingsPlansUtilizationsByTime; }
44 inline void SetSavingsPlansUtilizationsByTime(const Aws::Vector<SavingsPlansUtilizationByTime>& value) { m_savingsPlansUtilizationsByTime = value; }
45 inline void SetSavingsPlansUtilizationsByTime(Aws::Vector<SavingsPlansUtilizationByTime>&& value) { m_savingsPlansUtilizationsByTime = std::move(value); }
48 inline GetSavingsPlansUtilizationResult& AddSavingsPlansUtilizationsByTime(const SavingsPlansUtilizationByTime& value) { m_savingsPlansUtilizationsByTime.push_back(value); return *this; }
49 inline GetSavingsPlansUtilizationResult& AddSavingsPlansUtilizationsByTime(SavingsPlansUtilizationByTime&& value) { m_savingsPlansUtilizationsByTime.push_back(std::move(value)); return *this; }
51
53
57 inline const SavingsPlansUtilizationAggregates& GetTotal() const{ return m_total; }
58 inline void SetTotal(const SavingsPlansUtilizationAggregates& value) { m_total = value; }
59 inline void SetTotal(SavingsPlansUtilizationAggregates&& value) { m_total = std::move(value); }
61 inline GetSavingsPlansUtilizationResult& WithTotal(SavingsPlansUtilizationAggregates&& value) { SetTotal(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 GetSavingsPlansUtilizationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
71 inline GetSavingsPlansUtilizationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
72 inline GetSavingsPlansUtilizationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
74 private:
75
76 Aws::Vector<SavingsPlansUtilizationByTime> m_savingsPlansUtilizationsByTime;
77
79
80 Aws::String m_requestId;
81 };
82
83} // namespace Model
84} // namespace CostExplorer
85} // namespace Aws
GetSavingsPlansUtilizationResult & WithTotal(SavingsPlansUtilizationAggregates &&value)
GetSavingsPlansUtilizationResult & WithSavingsPlansUtilizationsByTime(const Aws::Vector< SavingsPlansUtilizationByTime > &value)
AWS_COSTEXPLORER_API GetSavingsPlansUtilizationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetSavingsPlansUtilizationsByTime(const Aws::Vector< SavingsPlansUtilizationByTime > &value)
GetSavingsPlansUtilizationResult & AddSavingsPlansUtilizationsByTime(SavingsPlansUtilizationByTime &&value)
void SetSavingsPlansUtilizationsByTime(Aws::Vector< SavingsPlansUtilizationByTime > &&value)
GetSavingsPlansUtilizationResult & WithRequestId(Aws::String &&value)
AWS_COSTEXPLORER_API GetSavingsPlansUtilizationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSavingsPlansUtilizationResult & WithSavingsPlansUtilizationsByTime(Aws::Vector< SavingsPlansUtilizationByTime > &&value)
GetSavingsPlansUtilizationResult & WithTotal(const SavingsPlansUtilizationAggregates &value)
GetSavingsPlansUtilizationResult & AddSavingsPlansUtilizationsByTime(const SavingsPlansUtilizationByTime &value)
GetSavingsPlansUtilizationResult & WithRequestId(const Aws::String &value)
const Aws::Vector< SavingsPlansUtilizationByTime > & GetSavingsPlansUtilizationsByTime() const
GetSavingsPlansUtilizationResult & WithRequestId(const char *value)
void SetTotal(const SavingsPlansUtilizationAggregates &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