AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DimensionGroup.h
1
6#pragma once
7#include <aws/pi/PI_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace PI
23{
24namespace Model
25{
26
45 {
46 public:
47 AWS_PI_API DimensionGroup() = default;
51
52
54
87 inline const Aws::String& GetGroup() const { return m_group; }
88 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
89 template<typename GroupT = Aws::String>
90 void SetGroup(GroupT&& value) { m_groupHasBeenSet = true; m_group = std::forward<GroupT>(value); }
91 template<typename GroupT = Aws::String>
92 DimensionGroup& WithGroup(GroupT&& value) { SetGroup(std::forward<GroupT>(value)); return *this;}
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) { m_dimensionsHasBeenSet = true; m_dimensions = std::forward<DimensionsT>(value); }
176 template<typename DimensionsT = Aws::Vector<Aws::String>>
177 DimensionGroup& WithDimensions(DimensionsT&& value) { SetDimensions(std::forward<DimensionsT>(value)); return *this;}
178 template<typename DimensionsT = Aws::String>
179 DimensionGroup& AddDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace_back(std::forward<DimensionsT>(value)); return *this; }
181
183
186 inline int GetLimit() const { return m_limit; }
187 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
188 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
189 inline DimensionGroup& WithLimit(int value) { SetLimit(value); return *this;}
191 private:
192
193 Aws::String m_group;
194 bool m_groupHasBeenSet = false;
195
196 Aws::Vector<Aws::String> m_dimensions;
197 bool m_dimensionsHasBeenSet = false;
198
199 int m_limit{0};
200 bool m_limitHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace PI
205} // 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