AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricV2.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/connect/model/ThresholdV2.h>
11#include <aws/connect/model/MetricFilterV2.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Connect
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_CONNECT_API MetricV2();
38 AWS_CONNECT_API MetricV2(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECT_API MetricV2& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline MetricV2& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline MetricV2& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline MetricV2& WithName(const char* value) { SetName(value); return *this;}
57
59
62 inline const Aws::Vector<ThresholdV2>& GetThreshold() const{ return m_threshold; }
63 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
64 inline void SetThreshold(const Aws::Vector<ThresholdV2>& value) { m_thresholdHasBeenSet = true; m_threshold = value; }
65 inline void SetThreshold(Aws::Vector<ThresholdV2>&& value) { m_thresholdHasBeenSet = true; m_threshold = std::move(value); }
66 inline MetricV2& WithThreshold(const Aws::Vector<ThresholdV2>& value) { SetThreshold(value); return *this;}
67 inline MetricV2& WithThreshold(Aws::Vector<ThresholdV2>&& value) { SetThreshold(std::move(value)); return *this;}
68 inline MetricV2& AddThreshold(const ThresholdV2& value) { m_thresholdHasBeenSet = true; m_threshold.push_back(value); return *this; }
69 inline MetricV2& AddThreshold(ThresholdV2&& value) { m_thresholdHasBeenSet = true; m_threshold.push_back(std::move(value)); return *this; }
71
73
76 inline const Aws::Vector<MetricFilterV2>& GetMetricFilters() const{ return m_metricFilters; }
77 inline bool MetricFiltersHasBeenSet() const { return m_metricFiltersHasBeenSet; }
78 inline void SetMetricFilters(const Aws::Vector<MetricFilterV2>& value) { m_metricFiltersHasBeenSet = true; m_metricFilters = value; }
79 inline void SetMetricFilters(Aws::Vector<MetricFilterV2>&& value) { m_metricFiltersHasBeenSet = true; m_metricFilters = std::move(value); }
80 inline MetricV2& WithMetricFilters(const Aws::Vector<MetricFilterV2>& value) { SetMetricFilters(value); return *this;}
81 inline MetricV2& WithMetricFilters(Aws::Vector<MetricFilterV2>&& value) { SetMetricFilters(std::move(value)); return *this;}
82 inline MetricV2& AddMetricFilters(const MetricFilterV2& value) { m_metricFiltersHasBeenSet = true; m_metricFilters.push_back(value); return *this; }
83 inline MetricV2& AddMetricFilters(MetricFilterV2&& value) { m_metricFiltersHasBeenSet = true; m_metricFilters.push_back(std::move(value)); return *this; }
85 private:
86
87 Aws::String m_name;
88 bool m_nameHasBeenSet = false;
89
90 Aws::Vector<ThresholdV2> m_threshold;
91 bool m_thresholdHasBeenSet = false;
92
93 Aws::Vector<MetricFilterV2> m_metricFilters;
94 bool m_metricFiltersHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace Connect
99} // namespace Aws
MetricV2 & WithMetricFilters(const Aws::Vector< MetricFilterV2 > &value)
Definition MetricV2.h:80
const Aws::Vector< MetricFilterV2 > & GetMetricFilters() const
Definition MetricV2.h:76
void SetThreshold(Aws::Vector< ThresholdV2 > &&value)
Definition MetricV2.h:65
MetricV2 & AddMetricFilters(const MetricFilterV2 &value)
Definition MetricV2.h:82
MetricV2 & WithName(const Aws::String &value)
Definition MetricV2.h:53
AWS_CONNECT_API MetricV2()
void SetMetricFilters(Aws::Vector< MetricFilterV2 > &&value)
Definition MetricV2.h:79
bool MetricFiltersHasBeenSet() const
Definition MetricV2.h:77
bool ThresholdHasBeenSet() const
Definition MetricV2.h:63
MetricV2 & WithName(Aws::String &&value)
Definition MetricV2.h:54
void SetName(const char *value)
Definition MetricV2.h:52
AWS_CONNECT_API MetricV2 & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(Aws::String &&value)
Definition MetricV2.h:51
MetricV2 & WithName(const char *value)
Definition MetricV2.h:55
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
MetricV2 & WithMetricFilters(Aws::Vector< MetricFilterV2 > &&value)
Definition MetricV2.h:81
MetricV2 & AddThreshold(const ThresholdV2 &value)
Definition MetricV2.h:68
MetricV2 & WithThreshold(Aws::Vector< ThresholdV2 > &&value)
Definition MetricV2.h:67
void SetThreshold(const Aws::Vector< ThresholdV2 > &value)
Definition MetricV2.h:64
MetricV2 & AddThreshold(ThresholdV2 &&value)
Definition MetricV2.h:69
MetricV2 & AddMetricFilters(MetricFilterV2 &&value)
Definition MetricV2.h:83
AWS_CONNECT_API MetricV2(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition MetricV2.h:48
const Aws::Vector< ThresholdV2 > & GetThreshold() const
Definition MetricV2.h:62
void SetMetricFilters(const Aws::Vector< MetricFilterV2 > &value)
Definition MetricV2.h:78
MetricV2 & WithThreshold(const Aws::Vector< ThresholdV2 > &value)
Definition MetricV2.h:66
void SetName(const Aws::String &value)
Definition MetricV2.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue