AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricDefinitionConfig.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 MetricDefinitionConfig();
36 AWS_CLOUDWATCHEVIDENTLY_API MetricDefinitionConfig(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CLOUDWATCHEVIDENTLY_API MetricDefinitionConfig& 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 MetricDefinitionConfig& WithEntityIdKey(const Aws::String& value) { SetEntityIdKey(value); return *this;}
52 inline MetricDefinitionConfig& WithEntityIdKey(Aws::String&& value) { SetEntityIdKey(std::move(value)); return *this;}
53 inline MetricDefinitionConfig& 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 MetricDefinitionConfig& WithEventPattern(const Aws::String& value) { SetEventPattern(value); return *this;}
69 inline MetricDefinitionConfig& WithEventPattern(Aws::String&& value) { SetEventPattern(std::move(value)); return *this;}
70 inline MetricDefinitionConfig& 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 MetricDefinitionConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
83 inline MetricDefinitionConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
84 inline MetricDefinitionConfig& 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 MetricDefinitionConfig& WithUnitLabel(const Aws::String& value) { SetUnitLabel(value); return *this;}
97 inline MetricDefinitionConfig& WithUnitLabel(Aws::String&& value) { SetUnitLabel(std::move(value)); return *this;}
98 inline MetricDefinitionConfig& 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 MetricDefinitionConfig& WithValueKey(const Aws::String& value) { SetValueKey(value); return *this;}
111 inline MetricDefinitionConfig& WithValueKey(Aws::String&& value) { SetValueKey(std::move(value)); return *this;}
112 inline MetricDefinitionConfig& 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
MetricDefinitionConfig & WithValueKey(const char *value)
MetricDefinitionConfig & WithEventPattern(Aws::String &&value)
MetricDefinitionConfig & WithEntityIdKey(const char *value)
AWS_CLOUDWATCHEVIDENTLY_API MetricDefinitionConfig(Aws::Utils::Json::JsonView jsonValue)
MetricDefinitionConfig & WithName(Aws::String &&value)
MetricDefinitionConfig & WithUnitLabel(const char *value)
MetricDefinitionConfig & WithEntityIdKey(Aws::String &&value)
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const
MetricDefinitionConfig & WithName(const char *value)
MetricDefinitionConfig & WithUnitLabel(Aws::String &&value)
MetricDefinitionConfig & WithEventPattern(const char *value)
AWS_CLOUDWATCHEVIDENTLY_API MetricDefinitionConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricDefinitionConfig & WithName(const Aws::String &value)
MetricDefinitionConfig & WithUnitLabel(const Aws::String &value)
MetricDefinitionConfig & WithEventPattern(const Aws::String &value)
MetricDefinitionConfig & WithValueKey(Aws::String &&value)
MetricDefinitionConfig & WithEntityIdKey(const Aws::String &value)
MetricDefinitionConfig & WithValueKey(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue