AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricDefinition.h
1
6#pragma once
7#include <aws/evidently/CloudWatchEvidently_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudWatchEvidently
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CLOUDWATCHEVIDENTLY_API MetricDefinition();
36 AWS_CLOUDWATCHEVIDENTLY_API MetricDefinition(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CLOUDWATCHEVIDENTLY_API MetricDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetEntityIdKey() const{ return m_entityIdKey; }
47 inline bool EntityIdKeyHasBeenSet() const { return m_entityIdKeyHasBeenSet; }
48 inline void SetEntityIdKey(const Aws::String& value) { m_entityIdKeyHasBeenSet = true; m_entityIdKey = value; }
49 inline void SetEntityIdKey(Aws::String&& value) { m_entityIdKeyHasBeenSet = true; m_entityIdKey = std::move(value); }
50 inline void SetEntityIdKey(const char* value) { m_entityIdKeyHasBeenSet = true; m_entityIdKey.assign(value); }
51 inline MetricDefinition& WithEntityIdKey(const Aws::String& value) { SetEntityIdKey(value); return *this;}
52 inline MetricDefinition& WithEntityIdKey(Aws::String&& value) { SetEntityIdKey(std::move(value)); return *this;}
53 inline MetricDefinition& WithEntityIdKey(const char* value) { SetEntityIdKey(value); return *this;}
55
57
63 inline const Aws::String& GetEventPattern() const{ return m_eventPattern; }
64 inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; }
65 inline void SetEventPattern(const Aws::String& value) { m_eventPatternHasBeenSet = true; m_eventPattern = value; }
66 inline void SetEventPattern(Aws::String&& value) { m_eventPatternHasBeenSet = true; m_eventPattern = std::move(value); }
67 inline void SetEventPattern(const char* value) { m_eventPatternHasBeenSet = true; m_eventPattern.assign(value); }
68 inline MetricDefinition& WithEventPattern(const Aws::String& value) { SetEventPattern(value); return *this;}
69 inline MetricDefinition& WithEventPattern(Aws::String&& value) { SetEventPattern(std::move(value)); return *this;}
70 inline MetricDefinition& WithEventPattern(const char* value) { SetEventPattern(value); return *this;}
72
74
77 inline const Aws::String& GetName() const{ return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
80 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
81 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
82 inline MetricDefinition& WithName(const Aws::String& value) { SetName(value); return *this;}
83 inline MetricDefinition& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
84 inline MetricDefinition& WithName(const char* value) { SetName(value); return *this;}
86
88
91 inline const Aws::String& GetUnitLabel() const{ return m_unitLabel; }
92 inline bool UnitLabelHasBeenSet() const { return m_unitLabelHasBeenSet; }
93 inline void SetUnitLabel(const Aws::String& value) { m_unitLabelHasBeenSet = true; m_unitLabel = value; }
94 inline void SetUnitLabel(Aws::String&& value) { m_unitLabelHasBeenSet = true; m_unitLabel = std::move(value); }
95 inline void SetUnitLabel(const char* value) { m_unitLabelHasBeenSet = true; m_unitLabel.assign(value); }
96 inline MetricDefinition& WithUnitLabel(const Aws::String& value) { SetUnitLabel(value); return *this;}
97 inline MetricDefinition& WithUnitLabel(Aws::String&& value) { SetUnitLabel(std::move(value)); return *this;}
98 inline MetricDefinition& WithUnitLabel(const char* value) { SetUnitLabel(value); return *this;}
100
102
105 inline const Aws::String& GetValueKey() const{ return m_valueKey; }
106 inline bool ValueKeyHasBeenSet() const { return m_valueKeyHasBeenSet; }
107 inline void SetValueKey(const Aws::String& value) { m_valueKeyHasBeenSet = true; m_valueKey = value; }
108 inline void SetValueKey(Aws::String&& value) { m_valueKeyHasBeenSet = true; m_valueKey = std::move(value); }
109 inline void SetValueKey(const char* value) { m_valueKeyHasBeenSet = true; m_valueKey.assign(value); }
110 inline MetricDefinition& WithValueKey(const Aws::String& value) { SetValueKey(value); return *this;}
111 inline MetricDefinition& WithValueKey(Aws::String&& value) { SetValueKey(std::move(value)); return *this;}
112 inline MetricDefinition& WithValueKey(const char* value) { SetValueKey(value); return *this;}
114 private:
115
116 Aws::String m_entityIdKey;
117 bool m_entityIdKeyHasBeenSet = false;
118
119 Aws::String m_eventPattern;
120 bool m_eventPatternHasBeenSet = false;
121
122 Aws::String m_name;
123 bool m_nameHasBeenSet = false;
124
125 Aws::String m_unitLabel;
126 bool m_unitLabelHasBeenSet = false;
127
128 Aws::String m_valueKey;
129 bool m_valueKeyHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace CloudWatchEvidently
134} // namespace Aws
MetricDefinition & WithUnitLabel(Aws::String &&value)
MetricDefinition & WithValueKey(const Aws::String &value)
AWS_CLOUDWATCHEVIDENTLY_API MetricDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHEVIDENTLY_API MetricDefinition()
MetricDefinition & WithUnitLabel(const Aws::String &value)
MetricDefinition & WithEventPattern(const Aws::String &value)
MetricDefinition & WithEntityIdKey(Aws::String &&value)
MetricDefinition & WithEventPattern(Aws::String &&value)
MetricDefinition & WithValueKey(Aws::String &&value)
MetricDefinition & WithEntityIdKey(const char *value)
MetricDefinition & WithUnitLabel(const char *value)
MetricDefinition & WithEventPattern(const char *value)
MetricDefinition & WithName(Aws::String &&value)
AWS_CLOUDWATCHEVIDENTLY_API MetricDefinition(Aws::Utils::Json::JsonView jsonValue)
MetricDefinition & WithName(const Aws::String &value)
MetricDefinition & WithEntityIdKey(const Aws::String &value)
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const
MetricDefinition & WithName(const char *value)
MetricDefinition & WithValueKey(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue