AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
MetricDimensionGroups.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/DimensionGroupDetail.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 MetricDimensionGroups() = default;
36
38
41 inline const Aws::String& GetMetric() const { return m_metric; }
42 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
43 template <typename MetricT = Aws::String>
44 void SetMetric(MetricT&& value) {
45 m_metricHasBeenSet = true;
46 m_metric = std::forward<MetricT>(value);
47 }
48 template <typename MetricT = Aws::String>
50 SetMetric(std::forward<MetricT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<DimensionGroupDetail>& GetGroups() const { return m_groups; }
60 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
61 template <typename GroupsT = Aws::Vector<DimensionGroupDetail>>
62 void SetGroups(GroupsT&& value) {
63 m_groupsHasBeenSet = true;
64 m_groups = std::forward<GroupsT>(value);
65 }
66 template <typename GroupsT = Aws::Vector<DimensionGroupDetail>>
68 SetGroups(std::forward<GroupsT>(value));
69 return *this;
70 }
71 template <typename GroupsT = DimensionGroupDetail>
72 MetricDimensionGroups& AddGroups(GroupsT&& value) {
73 m_groupsHasBeenSet = true;
74 m_groups.emplace_back(std::forward<GroupsT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_metric;
80
82 bool m_metricHasBeenSet = false;
83 bool m_groupsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace PI
88} // namespace Aws
AWS_PI_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PI_API MetricDimensionGroups()=default
AWS_PI_API MetricDimensionGroups(Aws::Utils::Json::JsonView jsonValue)
MetricDimensionGroups & AddGroups(GroupsT &&value)
const Aws::Vector< DimensionGroupDetail > & GetGroups() const
AWS_PI_API MetricDimensionGroups & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricDimensionGroups & WithMetric(MetricT &&value)
MetricDimensionGroups & WithGroups(GroupsT &&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