AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CostExplorer {
25namespace Model {
27 public:
28 AWS_COSTEXPLORER_API GetDimensionValuesResult() = default;
31
33
92 inline const Aws::Vector<DimensionValuesWithAttributes>& GetDimensionValues() const { return m_dimensionValues; }
93 template <typename DimensionValuesT = Aws::Vector<DimensionValuesWithAttributes>>
94 void SetDimensionValues(DimensionValuesT&& value) {
95 m_dimensionValuesHasBeenSet = true;
96 m_dimensionValues = std::forward<DimensionValuesT>(value);
97 }
98 template <typename DimensionValuesT = Aws::Vector<DimensionValuesWithAttributes>>
99 GetDimensionValuesResult& WithDimensionValues(DimensionValuesT&& value) {
100 SetDimensionValues(std::forward<DimensionValuesT>(value));
101 return *this;
102 }
103 template <typename DimensionValuesT = DimensionValuesWithAttributes>
104 GetDimensionValuesResult& AddDimensionValues(DimensionValuesT&& value) {
105 m_dimensionValuesHasBeenSet = true;
106 m_dimensionValues.emplace_back(std::forward<DimensionValuesT>(value));
107 return *this;
108 }
110
112
115 inline int GetReturnSize() const { return m_returnSize; }
116 inline void SetReturnSize(int value) {
117 m_returnSizeHasBeenSet = true;
118 m_returnSize = value;
119 }
121 SetReturnSize(value);
122 return *this;
123 }
125
127
130 inline int GetTotalSize() const { return m_totalSize; }
131 inline void SetTotalSize(int value) {
132 m_totalSizeHasBeenSet = true;
133 m_totalSize = value;
134 }
136 SetTotalSize(value);
137 return *this;
138 }
140
142
147 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
148 template <typename NextPageTokenT = Aws::String>
149 void SetNextPageToken(NextPageTokenT&& value) {
150 m_nextPageTokenHasBeenSet = true;
151 m_nextPageToken = std::forward<NextPageTokenT>(value);
152 }
153 template <typename NextPageTokenT = Aws::String>
155 SetNextPageToken(std::forward<NextPageTokenT>(value));
156 return *this;
157 }
159
161
162 inline const Aws::String& GetRequestId() const { return m_requestId; }
163 template <typename RequestIdT = Aws::String>
164 void SetRequestId(RequestIdT&& value) {
165 m_requestIdHasBeenSet = true;
166 m_requestId = std::forward<RequestIdT>(value);
167 }
168 template <typename RequestIdT = Aws::String>
170 SetRequestId(std::forward<RequestIdT>(value));
171 return *this;
172 }
174 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
175
176 private:
178
179 int m_returnSize{0};
180
181 int m_totalSize{0};
182
183 Aws::String m_nextPageToken;
184
185 Aws::String m_requestId;
186 Aws::Http::HttpResponseCode m_HttpResponseCode;
187 bool m_dimensionValuesHasBeenSet = false;
188 bool m_returnSizeHasBeenSet = false;
189 bool m_totalSizeHasBeenSet = false;
190 bool m_nextPageTokenHasBeenSet = false;
191 bool m_requestIdHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace CostExplorer
196} // 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