AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
MetricDimensionGroups.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 <aws/pi/model/DimensionGroupDetail.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace PI
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PI_API MetricDimensionGroups() = default;
41
42
44
47 inline const Aws::String& GetMetric() const { return m_metric; }
48 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
49 template<typename MetricT = Aws::String>
50 void SetMetric(MetricT&& value) { m_metricHasBeenSet = true; m_metric = std::forward<MetricT>(value); }
51 template<typename MetricT = Aws::String>
52 MetricDimensionGroups& WithMetric(MetricT&& value) { SetMetric(std::forward<MetricT>(value)); return *this;}
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) { m_groupsHasBeenSet = true; m_groups = std::forward<GroupsT>(value); }
63 template<typename GroupsT = Aws::Vector<DimensionGroupDetail>>
64 MetricDimensionGroups& WithGroups(GroupsT&& value) { SetGroups(std::forward<GroupsT>(value)); return *this;}
65 template<typename GroupsT = DimensionGroupDetail>
66 MetricDimensionGroups& AddGroups(GroupsT&& value) { m_groupsHasBeenSet = true; m_groups.emplace_back(std::forward<GroupsT>(value)); return *this; }
68 private:
69
70 Aws::String m_metric;
71 bool m_metricHasBeenSet = false;
72
74 bool m_groupsHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace PI
79} // 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