AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetDimensionValuesResult.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/DimensionValuesWithAttributes.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CostExplorer {
24namespace Model {
26 public:
27 AWS_COSTEXPLORER_API GetDimensionValuesResult() = default;
30
32
91 inline const Aws::Vector<DimensionValuesWithAttributes>& GetDimensionValues() const { return m_dimensionValues; }
92 template <typename DimensionValuesT = Aws::Vector<DimensionValuesWithAttributes>>
93 void SetDimensionValues(DimensionValuesT&& value) {
94 m_dimensionValuesHasBeenSet = true;
95 m_dimensionValues = std::forward<DimensionValuesT>(value);
96 }
97 template <typename DimensionValuesT = Aws::Vector<DimensionValuesWithAttributes>>
98 GetDimensionValuesResult& WithDimensionValues(DimensionValuesT&& value) {
99 SetDimensionValues(std::forward<DimensionValuesT>(value));
100 return *this;
101 }
102 template <typename DimensionValuesT = DimensionValuesWithAttributes>
103 GetDimensionValuesResult& AddDimensionValues(DimensionValuesT&& value) {
104 m_dimensionValuesHasBeenSet = true;
105 m_dimensionValues.emplace_back(std::forward<DimensionValuesT>(value));
106 return *this;
107 }
109
111
114 inline int GetReturnSize() const { return m_returnSize; }
115 inline void SetReturnSize(int value) {
116 m_returnSizeHasBeenSet = true;
117 m_returnSize = value;
118 }
120 SetReturnSize(value);
121 return *this;
122 }
124
126
129 inline int GetTotalSize() const { return m_totalSize; }
130 inline void SetTotalSize(int value) {
131 m_totalSizeHasBeenSet = true;
132 m_totalSize = value;
133 }
135 SetTotalSize(value);
136 return *this;
137 }
139
141
146 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
147 template <typename NextPageTokenT = Aws::String>
148 void SetNextPageToken(NextPageTokenT&& value) {
149 m_nextPageTokenHasBeenSet = true;
150 m_nextPageToken = std::forward<NextPageTokenT>(value);
151 }
152 template <typename NextPageTokenT = Aws::String>
154 SetNextPageToken(std::forward<NextPageTokenT>(value));
155 return *this;
156 }
158
160
161 inline const Aws::String& GetRequestId() const { return m_requestId; }
162 template <typename RequestIdT = Aws::String>
163 void SetRequestId(RequestIdT&& value) {
164 m_requestIdHasBeenSet = true;
165 m_requestId = std::forward<RequestIdT>(value);
166 }
167 template <typename RequestIdT = Aws::String>
169 SetRequestId(std::forward<RequestIdT>(value));
170 return *this;
171 }
173 private:
175
176 int m_returnSize{0};
177
178 int m_totalSize{0};
179
180 Aws::String m_nextPageToken;
181
182 Aws::String m_requestId;
183 bool m_dimensionValuesHasBeenSet = false;
184 bool m_returnSizeHasBeenSet = false;
185 bool m_totalSizeHasBeenSet = false;
186 bool m_nextPageTokenHasBeenSet = false;
187 bool m_requestIdHasBeenSet = false;
188};
189
190} // namespace Model
191} // namespace CostExplorer
192} // namespace Aws
GetDimensionValuesResult & AddDimensionValues(DimensionValuesT &&value)
AWS_COSTEXPLORER_API GetDimensionValuesResult()=default
AWS_COSTEXPLORER_API GetDimensionValuesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_COSTEXPLORER_API GetDimensionValuesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDimensionValuesResult & WithDimensionValues(DimensionValuesT &&value)
const Aws::Vector< DimensionValuesWithAttributes > & GetDimensionValues() const
GetDimensionValuesResult & WithNextPageToken(NextPageTokenT &&value)
GetDimensionValuesResult & WithRequestId(RequestIdT &&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