AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetSavingsPlansUtilizationDetailsResult.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/ce/model/DateInterval.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/ce/model/SavingsPlansUtilizationDetail.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace CostExplorer
28{
29namespace Model
30{
32 {
33 public:
37
38
40
44 inline const Aws::Vector<SavingsPlansUtilizationDetail>& GetSavingsPlansUtilizationDetails() const{ return m_savingsPlansUtilizationDetails; }
45 inline void SetSavingsPlansUtilizationDetails(const Aws::Vector<SavingsPlansUtilizationDetail>& value) { m_savingsPlansUtilizationDetails = value; }
46 inline void SetSavingsPlansUtilizationDetails(Aws::Vector<SavingsPlansUtilizationDetail>&& value) { m_savingsPlansUtilizationDetails = std::move(value); }
49 inline GetSavingsPlansUtilizationDetailsResult& AddSavingsPlansUtilizationDetails(const SavingsPlansUtilizationDetail& value) { m_savingsPlansUtilizationDetails.push_back(value); return *this; }
50 inline GetSavingsPlansUtilizationDetailsResult& AddSavingsPlansUtilizationDetails(SavingsPlansUtilizationDetail&& value) { m_savingsPlansUtilizationDetails.push_back(std::move(value)); return *this; }
52
54
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); }
63
65
66 inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; }
67 inline void SetTimePeriod(const DateInterval& value) { m_timePeriod = value; }
68 inline void SetTimePeriod(DateInterval&& value) { m_timePeriod = std::move(value); }
70 inline GetSavingsPlansUtilizationDetailsResult& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
72
74
79 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
80 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
81 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
82 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
84 inline GetSavingsPlansUtilizationDetailsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
85 inline GetSavingsPlansUtilizationDetailsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
87
89
90 inline const Aws::String& GetRequestId() const{ return m_requestId; }
91 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
92 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
93 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
95 inline GetSavingsPlansUtilizationDetailsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
96 inline GetSavingsPlansUtilizationDetailsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
98 private:
99
100 Aws::Vector<SavingsPlansUtilizationDetail> m_savingsPlansUtilizationDetails;
101
103
104 DateInterval m_timePeriod;
105
106 Aws::String m_nextToken;
107
108 Aws::String m_requestId;
109 };
110
111} // namespace Model
112} // namespace CostExplorer
113} // namespace Aws
GetSavingsPlansUtilizationDetailsResult & WithNextToken(const Aws::String &value)
GetSavingsPlansUtilizationDetailsResult & WithTotal(const SavingsPlansUtilizationAggregates &value)
GetSavingsPlansUtilizationDetailsResult & WithRequestId(const Aws::String &value)
GetSavingsPlansUtilizationDetailsResult & WithSavingsPlansUtilizationDetails(Aws::Vector< SavingsPlansUtilizationDetail > &&value)
void SetSavingsPlansUtilizationDetails(const Aws::Vector< SavingsPlansUtilizationDetail > &value)
GetSavingsPlansUtilizationDetailsResult & WithNextToken(const char *value)
GetSavingsPlansUtilizationDetailsResult & AddSavingsPlansUtilizationDetails(const SavingsPlansUtilizationDetail &value)
void SetSavingsPlansUtilizationDetails(Aws::Vector< SavingsPlansUtilizationDetail > &&value)
GetSavingsPlansUtilizationDetailsResult & WithTimePeriod(const DateInterval &value)
GetSavingsPlansUtilizationDetailsResult & WithNextToken(Aws::String &&value)
GetSavingsPlansUtilizationDetailsResult & AddSavingsPlansUtilizationDetails(SavingsPlansUtilizationDetail &&value)
const Aws::Vector< SavingsPlansUtilizationDetail > & GetSavingsPlansUtilizationDetails() const
GetSavingsPlansUtilizationDetailsResult & WithTotal(SavingsPlansUtilizationAggregates &&value)
GetSavingsPlansUtilizationDetailsResult & WithRequestId(Aws::String &&value)
GetSavingsPlansUtilizationDetailsResult & WithRequestId(const char *value)
GetSavingsPlansUtilizationDetailsResult & WithTimePeriod(DateInterval &&value)
GetSavingsPlansUtilizationDetailsResult & WithSavingsPlansUtilizationDetails(const Aws::Vector< SavingsPlansUtilizationDetail > &value)
AWS_COSTEXPLORER_API GetSavingsPlansUtilizationDetailsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_COSTEXPLORER_API GetSavingsPlansUtilizationDetailsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue