AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DimensionGroup.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/pi/PI_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PI {
21namespace Model {
22
41 public:
42 AWS_PI_API DimensionGroup() = default;
46
48
81 inline const Aws::String& GetGroup() const { return m_group; }
82 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
83 template <typename GroupT = Aws::String>
84 void SetGroup(GroupT&& value) {
85 m_groupHasBeenSet = true;
86 m_group = std::forward<GroupT>(value);
87 }
88 template <typename GroupT = Aws::String>
89 DimensionGroup& WithGroup(GroupT&& value) {
90 SetGroup(std::forward<GroupT>(value));
91 return *this;
92 }
94
96
172 inline const Aws::Vector<Aws::String>& GetDimensions() const { return m_dimensions; }
173 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
174 template <typename DimensionsT = Aws::Vector<Aws::String>>
175 void SetDimensions(DimensionsT&& value) {
176 m_dimensionsHasBeenSet = true;
177 m_dimensions = std::forward<DimensionsT>(value);
178 }
179 template <typename DimensionsT = Aws::Vector<Aws::String>>
180 DimensionGroup& WithDimensions(DimensionsT&& value) {
181 SetDimensions(std::forward<DimensionsT>(value));
182 return *this;
183 }
184 template <typename DimensionsT = Aws::String>
185 DimensionGroup& AddDimensions(DimensionsT&& value) {
186 m_dimensionsHasBeenSet = true;
187 m_dimensions.emplace_back(std::forward<DimensionsT>(value));
188 return *this;
189 }
191
193
196 inline int GetLimit() const { return m_limit; }
197 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
198 inline void SetLimit(int value) {
199 m_limitHasBeenSet = true;
200 m_limit = value;
201 }
202 inline DimensionGroup& WithLimit(int value) {
203 SetLimit(value);
204 return *this;
205 }
207 private:
208 Aws::String m_group;
209
210 Aws::Vector<Aws::String> m_dimensions;
211
212 int m_limit{0};
213 bool m_groupHasBeenSet = false;
214 bool m_dimensionsHasBeenSet = false;
215 bool m_limitHasBeenSet = false;
216};
217
218} // namespace Model
219} // namespace PI
220} // namespace Aws
DimensionGroup & WithGroup(GroupT &&value)
void SetDimensions(DimensionsT &&value)
void SetGroup(GroupT &&value)
DimensionGroup & WithLimit(int value)
const Aws::Vector< Aws::String > & GetDimensions() const
AWS_PI_API DimensionGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetGroup() const
DimensionGroup & WithDimensions(DimensionsT &&value)
AWS_PI_API DimensionGroup(Aws::Utils::Json::JsonView jsonValue)
AWS_PI_API Aws::Utils::Json::JsonValue Jsonize() const
DimensionGroup & AddDimensions(DimensionsT &&value)
AWS_PI_API DimensionGroup()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue