AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricGoal.h
1
6#pragma once
7#include <aws/evidently/CloudWatchEvidently_EXPORTS.h>
8#include <aws/evidently/model/ChangeDirectionEnum.h>
9#include <aws/evidently/model/MetricDefinition.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudWatchEvidently
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CLOUDWATCHEVIDENTLY_API MetricGoal();
37 AWS_CLOUDWATCHEVIDENTLY_API MetricGoal(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDWATCHEVIDENTLY_API MetricGoal& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const ChangeDirectionEnum& GetDesiredChange() const{ return m_desiredChange; }
49 inline bool DesiredChangeHasBeenSet() const { return m_desiredChangeHasBeenSet; }
50 inline void SetDesiredChange(const ChangeDirectionEnum& value) { m_desiredChangeHasBeenSet = true; m_desiredChange = value; }
51 inline void SetDesiredChange(ChangeDirectionEnum&& value) { m_desiredChangeHasBeenSet = true; m_desiredChange = std::move(value); }
52 inline MetricGoal& WithDesiredChange(const ChangeDirectionEnum& value) { SetDesiredChange(value); return *this;}
53 inline MetricGoal& WithDesiredChange(ChangeDirectionEnum&& value) { SetDesiredChange(std::move(value)); return *this;}
55
57
60 inline const MetricDefinition& GetMetricDefinition() const{ return m_metricDefinition; }
61 inline bool MetricDefinitionHasBeenSet() const { return m_metricDefinitionHasBeenSet; }
62 inline void SetMetricDefinition(const MetricDefinition& value) { m_metricDefinitionHasBeenSet = true; m_metricDefinition = value; }
63 inline void SetMetricDefinition(MetricDefinition&& value) { m_metricDefinitionHasBeenSet = true; m_metricDefinition = std::move(value); }
64 inline MetricGoal& WithMetricDefinition(const MetricDefinition& value) { SetMetricDefinition(value); return *this;}
65 inline MetricGoal& WithMetricDefinition(MetricDefinition&& value) { SetMetricDefinition(std::move(value)); return *this;}
67 private:
68
69 ChangeDirectionEnum m_desiredChange;
70 bool m_desiredChangeHasBeenSet = false;
71
72 MetricDefinition m_metricDefinition;
73 bool m_metricDefinitionHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace CloudWatchEvidently
78} // namespace Aws
AWS_CLOUDWATCHEVIDENTLY_API MetricGoal()
AWS_CLOUDWATCHEVIDENTLY_API MetricGoal & operator=(Aws::Utils::Json::JsonView jsonValue)
const MetricDefinition & GetMetricDefinition() const
Definition MetricGoal.h:60
void SetDesiredChange(const ChangeDirectionEnum &value)
Definition MetricGoal.h:50
const ChangeDirectionEnum & GetDesiredChange() const
Definition MetricGoal.h:48
void SetDesiredChange(ChangeDirectionEnum &&value)
Definition MetricGoal.h:51
AWS_CLOUDWATCHEVIDENTLY_API MetricGoal(Aws::Utils::Json::JsonView jsonValue)
MetricGoal & WithDesiredChange(const ChangeDirectionEnum &value)
Definition MetricGoal.h:52
MetricGoal & WithMetricDefinition(const MetricDefinition &value)
Definition MetricGoal.h:64
MetricGoal & WithDesiredChange(ChangeDirectionEnum &&value)
Definition MetricGoal.h:53
void SetMetricDefinition(const MetricDefinition &value)
Definition MetricGoal.h:62
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const
MetricGoal & WithMetricDefinition(MetricDefinition &&value)
Definition MetricGoal.h:65
void SetMetricDefinition(MetricDefinition &&value)
Definition MetricGoal.h:63
Aws::Utils::Json::JsonValue JsonValue