AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MetricQuery.h
1
6#pragma once
7#include <aws/sagemaker-metrics/SageMakerMetrics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker-metrics/model/MetricStatistic.h>
10#include <aws/sagemaker-metrics/model/Period.h>
11#include <aws/sagemaker-metrics/model/XAxisType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SageMakerMetrics
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_SAGEMAKERMETRICS_API MetricQuery() = default;
39 AWS_SAGEMAKERMETRICS_API MetricQuery(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKERMETRICS_API MetricQuery& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SAGEMAKERMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetMetricName() const { return m_metricName; }
49 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
50 template<typename MetricNameT = Aws::String>
51 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
52 template<typename MetricNameT = Aws::String>
53 MetricQuery& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
55
57
60 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
61 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
62 template<typename ResourceArnT = Aws::String>
63 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
64 template<typename ResourceArnT = Aws::String>
65 MetricQuery& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
67
69
72 inline MetricStatistic GetMetricStat() const { return m_metricStat; }
73 inline bool MetricStatHasBeenSet() const { return m_metricStatHasBeenSet; }
74 inline void SetMetricStat(MetricStatistic value) { m_metricStatHasBeenSet = true; m_metricStat = value; }
75 inline MetricQuery& WithMetricStat(MetricStatistic value) { SetMetricStat(value); return *this;}
77
79
82 inline Period GetPeriod() const { return m_period; }
83 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
84 inline void SetPeriod(Period value) { m_periodHasBeenSet = true; m_period = value; }
85 inline MetricQuery& WithPeriod(Period value) { SetPeriod(value); return *this;}
87
89
92 inline XAxisType GetXAxisType() const { return m_xAxisType; }
93 inline bool XAxisTypeHasBeenSet() const { return m_xAxisTypeHasBeenSet; }
94 inline void SetXAxisType(XAxisType value) { m_xAxisTypeHasBeenSet = true; m_xAxisType = value; }
95 inline MetricQuery& WithXAxisType(XAxisType value) { SetXAxisType(value); return *this;}
97
99
102 inline long long GetStart() const { return m_start; }
103 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
104 inline void SetStart(long long value) { m_startHasBeenSet = true; m_start = value; }
105 inline MetricQuery& WithStart(long long value) { SetStart(value); return *this;}
107
109
112 inline long long GetEnd() const { return m_end; }
113 inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
114 inline void SetEnd(long long value) { m_endHasBeenSet = true; m_end = value; }
115 inline MetricQuery& WithEnd(long long value) { SetEnd(value); return *this;}
117 private:
118
119 Aws::String m_metricName;
120 bool m_metricNameHasBeenSet = false;
121
122 Aws::String m_resourceArn;
123 bool m_resourceArnHasBeenSet = false;
124
126 bool m_metricStatHasBeenSet = false;
127
128 Period m_period{Period::NOT_SET};
129 bool m_periodHasBeenSet = false;
130
131 XAxisType m_xAxisType{XAxisType::NOT_SET};
132 bool m_xAxisTypeHasBeenSet = false;
133
134 long long m_start{0};
135 bool m_startHasBeenSet = false;
136
137 long long m_end{0};
138 bool m_endHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace SageMakerMetrics
143} // namespace Aws
void SetMetricName(MetricNameT &&value)
Definition MetricQuery.h:51
MetricQuery & WithMetricName(MetricNameT &&value)
Definition MetricQuery.h:53
MetricQuery & WithResourceArn(ResourceArnT &&value)
Definition MetricQuery.h:65
MetricQuery & WithStart(long long value)
MetricQuery & WithXAxisType(XAxisType value)
Definition MetricQuery.h:95
void SetMetricStat(MetricStatistic value)
Definition MetricQuery.h:74
void SetResourceArn(ResourceArnT &&value)
Definition MetricQuery.h:63
const Aws::String & GetResourceArn() const
Definition MetricQuery.h:60
AWS_SAGEMAKERMETRICS_API MetricQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricStatistic GetMetricStat() const
Definition MetricQuery.h:72
AWS_SAGEMAKERMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKERMETRICS_API MetricQuery(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKERMETRICS_API MetricQuery()=default
MetricQuery & WithEnd(long long value)
const Aws::String & GetMetricName() const
Definition MetricQuery.h:48
MetricQuery & WithPeriod(Period value)
Definition MetricQuery.h:85
MetricQuery & WithMetricStat(MetricStatistic value)
Definition MetricQuery.h:75
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue