/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include This structure defines a metric that is being used to evaluate the variations
* during a launch or experiment.See Also:
AWS
* API Reference
The entity, such as a user or session, that does an action that causes a * metric value to be recorded.
*/ inline const Aws::String& GetEntityIdKey() const{ return m_entityIdKey; } /** *The entity, such as a user or session, that does an action that causes a * metric value to be recorded.
*/ inline bool EntityIdKeyHasBeenSet() const { return m_entityIdKeyHasBeenSet; } /** *The entity, such as a user or session, that does an action that causes a * metric value to be recorded.
*/ inline void SetEntityIdKey(const Aws::String& value) { m_entityIdKeyHasBeenSet = true; m_entityIdKey = value; } /** *The entity, such as a user or session, that does an action that causes a * metric value to be recorded.
*/ inline void SetEntityIdKey(Aws::String&& value) { m_entityIdKeyHasBeenSet = true; m_entityIdKey = std::move(value); } /** *The entity, such as a user or session, that does an action that causes a * metric value to be recorded.
*/ inline void SetEntityIdKey(const char* value) { m_entityIdKeyHasBeenSet = true; m_entityIdKey.assign(value); } /** *The entity, such as a user or session, that does an action that causes a * metric value to be recorded.
*/ inline MetricDefinition& WithEntityIdKey(const Aws::String& value) { SetEntityIdKey(value); return *this;} /** *The entity, such as a user or session, that does an action that causes a * metric value to be recorded.
*/ inline MetricDefinition& WithEntityIdKey(Aws::String&& value) { SetEntityIdKey(std::move(value)); return *this;} /** *The entity, such as a user or session, that does an action that causes a * metric value to be recorded.
*/ inline MetricDefinition& WithEntityIdKey(const char* value) { SetEntityIdKey(value); return *this;} /** *The EventBridge event pattern that defines how the metric is recorded.
*For more information about EventBridge event patterns, see Amazon * EventBridge event patterns.
*/ inline const Aws::String& GetEventPattern() const{ return m_eventPattern; } /** *The EventBridge event pattern that defines how the metric is recorded.
*For more information about EventBridge event patterns, see Amazon * EventBridge event patterns.
*/ inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; } /** *The EventBridge event pattern that defines how the metric is recorded.
*For more information about EventBridge event patterns, see Amazon * EventBridge event patterns.
*/ inline void SetEventPattern(const Aws::String& value) { m_eventPatternHasBeenSet = true; m_eventPattern = value; } /** *The EventBridge event pattern that defines how the metric is recorded.
*For more information about EventBridge event patterns, see Amazon * EventBridge event patterns.
*/ inline void SetEventPattern(Aws::String&& value) { m_eventPatternHasBeenSet = true; m_eventPattern = std::move(value); } /** *The EventBridge event pattern that defines how the metric is recorded.
*For more information about EventBridge event patterns, see Amazon * EventBridge event patterns.
*/ inline void SetEventPattern(const char* value) { m_eventPatternHasBeenSet = true; m_eventPattern.assign(value); } /** *The EventBridge event pattern that defines how the metric is recorded.
*For more information about EventBridge event patterns, see Amazon * EventBridge event patterns.
*/ inline MetricDefinition& WithEventPattern(const Aws::String& value) { SetEventPattern(value); return *this;} /** *The EventBridge event pattern that defines how the metric is recorded.
*For more information about EventBridge event patterns, see Amazon * EventBridge event patterns.
*/ inline MetricDefinition& WithEventPattern(Aws::String&& value) { SetEventPattern(std::move(value)); return *this;} /** *The EventBridge event pattern that defines how the metric is recorded.
*For more information about EventBridge event patterns, see Amazon * EventBridge event patterns.
*/ inline MetricDefinition& WithEventPattern(const char* value) { SetEventPattern(value); return *this;} /** *The name of the metric.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the metric.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the metric.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the metric.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the metric.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the metric.
*/ inline MetricDefinition& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the metric.
*/ inline MetricDefinition& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the metric.
*/ inline MetricDefinition& WithName(const char* value) { SetName(value); return *this;} /** *The label for the units that the metric is measuring.
*/ inline const Aws::String& GetUnitLabel() const{ return m_unitLabel; } /** *The label for the units that the metric is measuring.
*/ inline bool UnitLabelHasBeenSet() const { return m_unitLabelHasBeenSet; } /** *The label for the units that the metric is measuring.
*/ inline void SetUnitLabel(const Aws::String& value) { m_unitLabelHasBeenSet = true; m_unitLabel = value; } /** *The label for the units that the metric is measuring.
*/ inline void SetUnitLabel(Aws::String&& value) { m_unitLabelHasBeenSet = true; m_unitLabel = std::move(value); } /** *The label for the units that the metric is measuring.
*/ inline void SetUnitLabel(const char* value) { m_unitLabelHasBeenSet = true; m_unitLabel.assign(value); } /** *The label for the units that the metric is measuring.
*/ inline MetricDefinition& WithUnitLabel(const Aws::String& value) { SetUnitLabel(value); return *this;} /** *The label for the units that the metric is measuring.
*/ inline MetricDefinition& WithUnitLabel(Aws::String&& value) { SetUnitLabel(std::move(value)); return *this;} /** *The label for the units that the metric is measuring.
*/ inline MetricDefinition& WithUnitLabel(const char* value) { SetUnitLabel(value); return *this;} /** *The value that is tracked to produce the metric.
*/ inline const Aws::String& GetValueKey() const{ return m_valueKey; } /** *The value that is tracked to produce the metric.
*/ inline bool ValueKeyHasBeenSet() const { return m_valueKeyHasBeenSet; } /** *The value that is tracked to produce the metric.
*/ inline void SetValueKey(const Aws::String& value) { m_valueKeyHasBeenSet = true; m_valueKey = value; } /** *The value that is tracked to produce the metric.
*/ inline void SetValueKey(Aws::String&& value) { m_valueKeyHasBeenSet = true; m_valueKey = std::move(value); } /** *The value that is tracked to produce the metric.
*/ inline void SetValueKey(const char* value) { m_valueKeyHasBeenSet = true; m_valueKey.assign(value); } /** *The value that is tracked to produce the metric.
*/ inline MetricDefinition& WithValueKey(const Aws::String& value) { SetValueKey(value); return *this;} /** *The value that is tracked to produce the metric.
*/ inline MetricDefinition& WithValueKey(Aws::String&& value) { SetValueKey(std::move(value)); return *this;} /** *The value that is tracked to produce the metric.
*/ inline MetricDefinition& WithValueKey(const char* value) { SetValueKey(value); return *this;} private: Aws::String m_entityIdKey; bool m_entityIdKeyHasBeenSet = false; Aws::String m_eventPattern; bool m_eventPatternHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_unitLabel; bool m_unitLabelHasBeenSet = false; Aws::String m_valueKey; bool m_valueKeyHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvidently } // namespace Aws