AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
41
42
44
47 inline const Aws::String& GetMetric() const{ return m_metric; }
48 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
49 inline void SetMetric(const Aws::String& value) { m_metricHasBeenSet = true; m_metric = value; }
50 inline void SetMetric(Aws::String&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
51 inline void SetMetric(const char* value) { m_metricHasBeenSet = true; m_metric.assign(value); }
52 inline MetricDimensionGroups& WithMetric(const Aws::String& value) { SetMetric(value); return *this;}
53 inline MetricDimensionGroups& WithMetric(Aws::String&& value) { SetMetric(std::move(value)); return *this;}
54 inline MetricDimensionGroups& WithMetric(const char* value) { SetMetric(value); return *this;}
56
58
61 inline const Aws::Vector<DimensionGroupDetail>& GetGroups() const{ return m_groups; }
62 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
63 inline void SetGroups(const Aws::Vector<DimensionGroupDetail>& value) { m_groupsHasBeenSet = true; m_groups = value; }
64 inline void SetGroups(Aws::Vector<DimensionGroupDetail>&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); }
65 inline MetricDimensionGroups& WithGroups(const Aws::Vector<DimensionGroupDetail>& value) { SetGroups(value); return *this;}
66 inline MetricDimensionGroups& WithGroups(Aws::Vector<DimensionGroupDetail>&& value) { SetGroups(std::move(value)); return *this;}
67 inline MetricDimensionGroups& AddGroups(const DimensionGroupDetail& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
68 inline MetricDimensionGroups& AddGroups(DimensionGroupDetail&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; }
70 private:
71
72 Aws::String m_metric;
73 bool m_metricHasBeenSet = false;
74
76 bool m_groupsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace PI
81} // namespace Aws
MetricDimensionGroups & WithGroups(Aws::Vector< DimensionGroupDetail > &&value)
void SetGroups(Aws::Vector< DimensionGroupDetail > &&value)
AWS_PI_API Aws::Utils::Json::JsonValue Jsonize() const
MetricDimensionGroups & WithMetric(Aws::String &&value)
MetricDimensionGroups & WithMetric(const char *value)
MetricDimensionGroups & AddGroups(const DimensionGroupDetail &value)
AWS_PI_API MetricDimensionGroups(Aws::Utils::Json::JsonView jsonValue)
MetricDimensionGroups & WithMetric(const Aws::String &value)
MetricDimensionGroups & AddGroups(DimensionGroupDetail &&value)
const Aws::Vector< DimensionGroupDetail > & GetGroups() const
AWS_PI_API MetricDimensionGroups & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricDimensionGroups & WithGroups(const Aws::Vector< DimensionGroupDetail > &value)
void SetMetric(const Aws::String &value)
void SetGroups(const Aws::Vector< DimensionGroupDetail > &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