AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename EntityIdKeyT = Aws::String>
49 void SetEntityIdKey(EntityIdKeyT&& value) { m_entityIdKeyHasBeenSet = true; m_entityIdKey = std::forward<EntityIdKeyT>(value); }
50 template<typename EntityIdKeyT = Aws::String>
51 MetricDefinitionConfig& WithEntityIdKey(EntityIdKeyT&& value) { SetEntityIdKey(std::forward<EntityIdKeyT>(value)); return *this;}
53
55
61 inline const Aws::String& GetEventPattern() const { return m_eventPattern; }
62 inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; }
63 template<typename EventPatternT = Aws::String>
64 void SetEventPattern(EventPatternT&& value) { m_eventPatternHasBeenSet = true; m_eventPattern = std::forward<EventPatternT>(value); }
65 template<typename EventPatternT = Aws::String>
66 MetricDefinitionConfig& WithEventPattern(EventPatternT&& value) { SetEventPattern(std::forward<EventPatternT>(value)); return *this;}
68
70
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template<typename NameT = Aws::String>
76 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
77 template<typename NameT = Aws::String>
78 MetricDefinitionConfig& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
80
82
85 inline const Aws::String& GetUnitLabel() const { return m_unitLabel; }
86 inline bool UnitLabelHasBeenSet() const { return m_unitLabelHasBeenSet; }
87 template<typename UnitLabelT = Aws::String>
88 void SetUnitLabel(UnitLabelT&& value) { m_unitLabelHasBeenSet = true; m_unitLabel = std::forward<UnitLabelT>(value); }
89 template<typename UnitLabelT = Aws::String>
90 MetricDefinitionConfig& WithUnitLabel(UnitLabelT&& value) { SetUnitLabel(std::forward<UnitLabelT>(value)); return *this;}
92
94
97 inline const Aws::String& GetValueKey() const { return m_valueKey; }
98 inline bool ValueKeyHasBeenSet() const { return m_valueKeyHasBeenSet; }
99 template<typename ValueKeyT = Aws::String>
100 void SetValueKey(ValueKeyT&& value) { m_valueKeyHasBeenSet = true; m_valueKey = std::forward<ValueKeyT>(value); }
101 template<typename ValueKeyT = Aws::String>
102 MetricDefinitionConfig& WithValueKey(ValueKeyT&& value) { SetValueKey(std::forward<ValueKeyT>(value)); return *this;}
104 private:
105
106 Aws::String m_entityIdKey;
107 bool m_entityIdKeyHasBeenSet = false;
108
109 Aws::String m_eventPattern;
110 bool m_eventPatternHasBeenSet = false;
111
112 Aws::String m_name;
113 bool m_nameHasBeenSet = false;
114
115 Aws::String m_unitLabel;
116 bool m_unitLabelHasBeenSet = false;
117
118 Aws::String m_valueKey;
119 bool m_valueKeyHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace CloudWatchEvidently
124} // namespace Aws
AWS_CLOUDWATCHEVIDENTLY_API MetricDefinitionConfig(Aws::Utils::Json::JsonView jsonValue)
MetricDefinitionConfig & WithValueKey(ValueKeyT &&value)
MetricDefinitionConfig & WithEventPattern(EventPatternT &&value)
AWS_CLOUDWATCHEVIDENTLY_API MetricDefinitionConfig()=default
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const
MetricDefinitionConfig & WithUnitLabel(UnitLabelT &&value)
AWS_CLOUDWATCHEVIDENTLY_API MetricDefinitionConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricDefinitionConfig & WithEntityIdKey(EntityIdKeyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue