AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MetricAttribute.h
1
6#pragma once
7#include <aws/personalize/Personalize_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 Personalize
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_PERSONALIZE_API MetricAttribute() = default;
38 AWS_PERSONALIZE_API MetricAttribute(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PERSONALIZE_API MetricAttribute& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetEventType() const { return m_eventType; }
48 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
49 template<typename EventTypeT = Aws::String>
50 void SetEventType(EventTypeT&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::forward<EventTypeT>(value); }
51 template<typename EventTypeT = Aws::String>
52 MetricAttribute& WithEventType(EventTypeT&& value) { SetEventType(std::forward<EventTypeT>(value)); return *this;}
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) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
64 template<typename MetricNameT = Aws::String>
65 MetricAttribute& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
67
69
75 inline const Aws::String& GetExpression() const { return m_expression; }
76 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
77 template<typename ExpressionT = Aws::String>
78 void SetExpression(ExpressionT&& value) { m_expressionHasBeenSet = true; m_expression = std::forward<ExpressionT>(value); }
79 template<typename ExpressionT = Aws::String>
80 MetricAttribute& WithExpression(ExpressionT&& value) { SetExpression(std::forward<ExpressionT>(value)); return *this;}
82 private:
83
84 Aws::String m_eventType;
85 bool m_eventTypeHasBeenSet = false;
86
87 Aws::String m_metricName;
88 bool m_metricNameHasBeenSet = false;
89
90 Aws::String m_expression;
91 bool m_expressionHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Personalize
96} // 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