AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEventType(const Aws::String& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
50 inline void SetEventType(Aws::String&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
51 inline void SetEventType(const char* value) { m_eventTypeHasBeenSet = true; m_eventType.assign(value); }
52 inline MetricAttribute& WithEventType(const Aws::String& value) { SetEventType(value); return *this;}
53 inline MetricAttribute& WithEventType(Aws::String&& value) { SetEventType(std::move(value)); return *this;}
54 inline MetricAttribute& WithEventType(const char* value) { SetEventType(value); return *this;}
56
58
62 inline const Aws::String& GetMetricName() const{ return m_metricName; }
63 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
64 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
65 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
66 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
67 inline MetricAttribute& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
68 inline MetricAttribute& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
69 inline MetricAttribute& WithMetricName(const char* value) { SetMetricName(value); return *this;}
71
73
79 inline const Aws::String& GetExpression() const{ return m_expression; }
80 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
81 inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
82 inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
83 inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
84 inline MetricAttribute& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
85 inline MetricAttribute& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
86 inline MetricAttribute& WithExpression(const char* value) { SetExpression(value); return *this;}
88 private:
89
90 Aws::String m_eventType;
91 bool m_eventTypeHasBeenSet = false;
92
93 Aws::String m_metricName;
94 bool m_metricNameHasBeenSet = false;
95
96 Aws::String m_expression;
97 bool m_expressionHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace Personalize
102} // namespace Aws
const Aws::String & GetExpression() const
void SetEventType(const Aws::String &value)
const Aws::String & GetMetricName() const
void SetExpression(Aws::String &&value)
void SetMetricName(const Aws::String &value)
MetricAttribute & WithMetricName(const char *value)
const Aws::String & GetEventType() const
void SetMetricName(Aws::String &&value)
AWS_PERSONALIZE_API MetricAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricAttribute & WithExpression(Aws::String &&value)
MetricAttribute & WithExpression(const char *value)
MetricAttribute & WithEventType(Aws::String &&value)
AWS_PERSONALIZE_API MetricAttribute(Aws::Utils::Json::JsonView jsonValue)
MetricAttribute & WithEventType(const char *value)
void SetExpression(const Aws::String &value)
MetricAttribute & WithMetricName(Aws::String &&value)
MetricAttribute & WithMetricName(const Aws::String &value)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
MetricAttribute & WithExpression(const Aws::String &value)
MetricAttribute & WithEventType(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue