7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
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>
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>
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>
85 bool m_eventTypeHasBeenSet =
false;
88 bool m_metricNameHasBeenSet =
false;
91 bool m_expressionHasBeenSet =
false;
void SetEventType(EventTypeT &&value)
const Aws::String & GetExpression() const
const Aws::String & GetMetricName() const
const Aws::String & GetEventType() const
bool EventTypeHasBeenSet() 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)
bool MetricNameHasBeenSet() const
MetricAttribute & WithEventType(EventTypeT &&value)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
bool ExpressionHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue