AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetCostAndUsageResult.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ce/model/GroupDefinition.h>
11#include <aws/ce/model/ResultByTime.h>
12#include <aws/ce/model/DimensionValuesWithAttributes.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:
34 AWS_COSTEXPLORER_API GetCostAndUsageResult();
37
38
40
45 inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
46 inline void SetNextPageToken(const Aws::String& value) { m_nextPageToken = value; }
47 inline void SetNextPageToken(Aws::String&& value) { m_nextPageToken = std::move(value); }
48 inline void SetNextPageToken(const char* value) { m_nextPageToken.assign(value); }
49 inline GetCostAndUsageResult& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
50 inline GetCostAndUsageResult& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
51 inline GetCostAndUsageResult& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
53
55
59 inline const Aws::Vector<GroupDefinition>& GetGroupDefinitions() const{ return m_groupDefinitions; }
60 inline void SetGroupDefinitions(const Aws::Vector<GroupDefinition>& value) { m_groupDefinitions = value; }
61 inline void SetGroupDefinitions(Aws::Vector<GroupDefinition>&& value) { m_groupDefinitions = std::move(value); }
64 inline GetCostAndUsageResult& AddGroupDefinitions(const GroupDefinition& value) { m_groupDefinitions.push_back(value); return *this; }
65 inline GetCostAndUsageResult& AddGroupDefinitions(GroupDefinition&& value) { m_groupDefinitions.push_back(std::move(value)); return *this; }
67
69
72 inline const Aws::Vector<ResultByTime>& GetResultsByTime() const{ return m_resultsByTime; }
73 inline void SetResultsByTime(const Aws::Vector<ResultByTime>& value) { m_resultsByTime = value; }
74 inline void SetResultsByTime(Aws::Vector<ResultByTime>&& value) { m_resultsByTime = std::move(value); }
76 inline GetCostAndUsageResult& WithResultsByTime(Aws::Vector<ResultByTime>&& value) { SetResultsByTime(std::move(value)); return *this;}
77 inline GetCostAndUsageResult& AddResultsByTime(const ResultByTime& value) { m_resultsByTime.push_back(value); return *this; }
78 inline GetCostAndUsageResult& AddResultsByTime(ResultByTime&& value) { m_resultsByTime.push_back(std::move(value)); return *this; }
80
82
86 inline const Aws::Vector<DimensionValuesWithAttributes>& GetDimensionValueAttributes() const{ return m_dimensionValueAttributes; }
87 inline void SetDimensionValueAttributes(const Aws::Vector<DimensionValuesWithAttributes>& value) { m_dimensionValueAttributes = value; }
88 inline void SetDimensionValueAttributes(Aws::Vector<DimensionValuesWithAttributes>&& value) { m_dimensionValueAttributes = std::move(value); }
91 inline GetCostAndUsageResult& AddDimensionValueAttributes(const DimensionValuesWithAttributes& value) { m_dimensionValueAttributes.push_back(value); return *this; }
92 inline GetCostAndUsageResult& AddDimensionValueAttributes(DimensionValuesWithAttributes&& value) { m_dimensionValueAttributes.push_back(std::move(value)); return *this; }
94
96
97 inline const Aws::String& GetRequestId() const{ return m_requestId; }
98 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
99 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
100 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
101 inline GetCostAndUsageResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
102 inline GetCostAndUsageResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
103 inline GetCostAndUsageResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
105 private:
106
107 Aws::String m_nextPageToken;
108
109 Aws::Vector<GroupDefinition> m_groupDefinitions;
110
111 Aws::Vector<ResultByTime> m_resultsByTime;
112
113 Aws::Vector<DimensionValuesWithAttributes> m_dimensionValueAttributes;
114
115 Aws::String m_requestId;
116 };
117
118} // namespace Model
119} // namespace CostExplorer
120} // namespace Aws
GetCostAndUsageResult & WithResultsByTime(const Aws::Vector< ResultByTime > &value)
void SetDimensionValueAttributes(Aws::Vector< DimensionValuesWithAttributes > &&value)
GetCostAndUsageResult & WithGroupDefinitions(Aws::Vector< GroupDefinition > &&value)
GetCostAndUsageResult & AddGroupDefinitions(GroupDefinition &&value)
void SetGroupDefinitions(Aws::Vector< GroupDefinition > &&value)
GetCostAndUsageResult & AddDimensionValueAttributes(DimensionValuesWithAttributes &&value)
void SetResultsByTime(Aws::Vector< ResultByTime > &&value)
AWS_COSTEXPLORER_API GetCostAndUsageResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetCostAndUsageResult & WithDimensionValueAttributes(const Aws::Vector< DimensionValuesWithAttributes > &value)
const Aws::Vector< GroupDefinition > & GetGroupDefinitions() const
GetCostAndUsageResult & AddDimensionValueAttributes(const DimensionValuesWithAttributes &value)
GetCostAndUsageResult & WithNextPageToken(const Aws::String &value)
AWS_COSTEXPLORER_API GetCostAndUsageResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< ResultByTime > & GetResultsByTime() const
void SetGroupDefinitions(const Aws::Vector< GroupDefinition > &value)
GetCostAndUsageResult & WithDimensionValueAttributes(Aws::Vector< DimensionValuesWithAttributes > &&value)
GetCostAndUsageResult & AddResultsByTime(ResultByTime &&value)
GetCostAndUsageResult & WithRequestId(const Aws::String &value)
void SetResultsByTime(const Aws::Vector< ResultByTime > &value)
GetCostAndUsageResult & WithResultsByTime(Aws::Vector< ResultByTime > &&value)
GetCostAndUsageResult & WithNextPageToken(Aws::String &&value)
GetCostAndUsageResult & WithRequestId(const char *value)
GetCostAndUsageResult & WithNextPageToken(const char *value)
GetCostAndUsageResult & WithRequestId(Aws::String &&value)
GetCostAndUsageResult & AddResultsByTime(const ResultByTime &value)
GetCostAndUsageResult & WithGroupDefinitions(const Aws::Vector< GroupDefinition > &value)
const Aws::Vector< DimensionValuesWithAttributes > & GetDimensionValueAttributes() const
void SetDimensionValueAttributes(const Aws::Vector< DimensionValuesWithAttributes > &value)
GetCostAndUsageResult & AddGroupDefinitions(const GroupDefinition &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