AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DimensionGroupDetail.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#include <aws/pi/model/DimensionDetail.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace PI {
22namespace Model {
23
31 public:
32 AWS_PI_API DimensionGroupDetail() = default;
36
38
41 inline const Aws::String& GetGroup() const { return m_group; }
42 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
43 template <typename GroupT = Aws::String>
44 void SetGroup(GroupT&& value) {
45 m_groupHasBeenSet = true;
46 m_group = std::forward<GroupT>(value);
47 }
48 template <typename GroupT = Aws::String>
50 SetGroup(std::forward<GroupT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<DimensionDetail>& GetDimensions() const { return m_dimensions; }
60 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
61 template <typename DimensionsT = Aws::Vector<DimensionDetail>>
62 void SetDimensions(DimensionsT&& value) {
63 m_dimensionsHasBeenSet = true;
64 m_dimensions = std::forward<DimensionsT>(value);
65 }
66 template <typename DimensionsT = Aws::Vector<DimensionDetail>>
67 DimensionGroupDetail& WithDimensions(DimensionsT&& value) {
68 SetDimensions(std::forward<DimensionsT>(value));
69 return *this;
70 }
71 template <typename DimensionsT = DimensionDetail>
72 DimensionGroupDetail& AddDimensions(DimensionsT&& value) {
73 m_dimensionsHasBeenSet = true;
74 m_dimensions.emplace_back(std::forward<DimensionsT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_group;
80
82 bool m_groupHasBeenSet = false;
83 bool m_dimensionsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace PI
88} // namespace Aws
DimensionGroupDetail & WithDimensions(DimensionsT &&value)
DimensionGroupDetail & AddDimensions(DimensionsT &&value)
AWS_PI_API DimensionGroupDetail(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< DimensionDetail > & GetDimensions() const
DimensionGroupDetail & WithGroup(GroupT &&value)
AWS_PI_API DimensionGroupDetail()=default
AWS_PI_API DimensionGroupDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PI_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue