AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
MetricAttribute.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/personalize/Personalize_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Personalize {
20namespace Model {
21
31 public:
32 AWS_PERSONALIZE_API MetricAttribute() = default;
33 AWS_PERSONALIZE_API MetricAttribute(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PERSONALIZE_API MetricAttribute& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetEventType() const { return m_eventType; }
42 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
43 template <typename EventTypeT = Aws::String>
44 void SetEventType(EventTypeT&& value) {
45 m_eventTypeHasBeenSet = true;
46 m_eventType = std::forward<EventTypeT>(value);
47 }
48 template <typename EventTypeT = Aws::String>
49 MetricAttribute& WithEventType(EventTypeT&& value) {
50 SetEventType(std::forward<EventTypeT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetMetricName() const { return m_metricName; }
61 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
62 template <typename MetricNameT = Aws::String>
63 void SetMetricName(MetricNameT&& value) {
64 m_metricNameHasBeenSet = true;
65 m_metricName = std::forward<MetricNameT>(value);
66 }
67 template <typename MetricNameT = Aws::String>
68 MetricAttribute& WithMetricName(MetricNameT&& value) {
69 SetMetricName(std::forward<MetricNameT>(value));
70 return *this;
71 }
73
75
81 inline const Aws::String& GetExpression() const { return m_expression; }
82 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
83 template <typename ExpressionT = Aws::String>
84 void SetExpression(ExpressionT&& value) {
85 m_expressionHasBeenSet = true;
86 m_expression = std::forward<ExpressionT>(value);
87 }
88 template <typename ExpressionT = Aws::String>
89 MetricAttribute& WithExpression(ExpressionT&& value) {
90 SetExpression(std::forward<ExpressionT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_eventType;
96
97 Aws::String m_metricName;
98
99 Aws::String m_expression;
100 bool m_eventTypeHasBeenSet = false;
101 bool m_metricNameHasBeenSet = false;
102 bool m_expressionHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace Personalize
107} // namespace Aws
const Aws::String & GetExpression() const
const Aws::String & GetMetricName() const
const Aws::String & GetEventType() const
AWS_PERSONALIZE_API MetricAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricAttribute & WithExpression(ExpressionT &&value)
AWS_PERSONALIZE_API MetricAttribute(Aws::Utils::Json::JsonView jsonValue)
MetricAttribute & WithMetricName(MetricNameT &&value)
AWS_PERSONALIZE_API MetricAttribute()=default
void SetMetricName(MetricNameT &&value)
void SetExpression(ExpressionT &&value)
MetricAttribute & WithEventType(EventTypeT &&value)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue