AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
MetricQuery.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker-metrics/SageMakerMetrics_EXPORTS.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
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMakerMetrics {
23namespace Model {
24
32 public:
33 AWS_SAGEMAKERMETRICS_API MetricQuery() = default;
34 AWS_SAGEMAKERMETRICS_API MetricQuery(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SAGEMAKERMETRICS_API MetricQuery& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SAGEMAKERMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetMetricName() const { return m_metricName; }
43 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
44 template <typename MetricNameT = Aws::String>
45 void SetMetricName(MetricNameT&& value) {
46 m_metricNameHasBeenSet = true;
47 m_metricName = std::forward<MetricNameT>(value);
48 }
49 template <typename MetricNameT = Aws::String>
50 MetricQuery& WithMetricName(MetricNameT&& value) {
51 SetMetricName(std::forward<MetricNameT>(value));
52 return *this;
53 }
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) {
64 m_resourceArnHasBeenSet = true;
65 m_resourceArn = std::forward<ResourceArnT>(value);
66 }
67 template <typename ResourceArnT = Aws::String>
68 MetricQuery& WithResourceArn(ResourceArnT&& value) {
69 SetResourceArn(std::forward<ResourceArnT>(value));
70 return *this;
71 }
73
75
78 inline MetricStatistic GetMetricStat() const { return m_metricStat; }
79 inline bool MetricStatHasBeenSet() const { return m_metricStatHasBeenSet; }
80 inline void SetMetricStat(MetricStatistic value) {
81 m_metricStatHasBeenSet = true;
82 m_metricStat = value;
83 }
85 SetMetricStat(value);
86 return *this;
87 }
89
91
94 inline Period GetPeriod() const { return m_period; }
95 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
96 inline void SetPeriod(Period value) {
97 m_periodHasBeenSet = true;
98 m_period = value;
99 }
101 SetPeriod(value);
102 return *this;
103 }
105
107
110 inline XAxisType GetXAxisType() const { return m_xAxisType; }
111 inline bool XAxisTypeHasBeenSet() const { return m_xAxisTypeHasBeenSet; }
112 inline void SetXAxisType(XAxisType value) {
113 m_xAxisTypeHasBeenSet = true;
114 m_xAxisType = value;
115 }
117 SetXAxisType(value);
118 return *this;
119 }
121
123
126 inline long long GetStart() const { return m_start; }
127 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
128 inline void SetStart(long long value) {
129 m_startHasBeenSet = true;
130 m_start = value;
131 }
132 inline MetricQuery& WithStart(long long value) {
133 SetStart(value);
134 return *this;
135 }
137
139
142 inline long long GetEnd() const { return m_end; }
143 inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
144 inline void SetEnd(long long value) {
145 m_endHasBeenSet = true;
146 m_end = value;
147 }
148 inline MetricQuery& WithEnd(long long value) {
149 SetEnd(value);
150 return *this;
151 }
153 private:
154 Aws::String m_metricName;
155
156 Aws::String m_resourceArn;
157
159
160 Period m_period{Period::NOT_SET};
161
162 XAxisType m_xAxisType{XAxisType::NOT_SET};
163
164 long long m_start{0};
165
166 long long m_end{0};
167 bool m_metricNameHasBeenSet = false;
168 bool m_resourceArnHasBeenSet = false;
169 bool m_metricStatHasBeenSet = false;
170 bool m_periodHasBeenSet = false;
171 bool m_xAxisTypeHasBeenSet = false;
172 bool m_startHasBeenSet = false;
173 bool m_endHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace SageMakerMetrics
178} // namespace Aws
void SetMetricName(MetricNameT &&value)
Definition MetricQuery.h:45
MetricQuery & WithMetricName(MetricNameT &&value)
Definition MetricQuery.h:50
MetricQuery & WithResourceArn(ResourceArnT &&value)
Definition MetricQuery.h:68
MetricQuery & WithStart(long long value)
MetricQuery & WithXAxisType(XAxisType value)
void SetMetricStat(MetricStatistic value)
Definition MetricQuery.h:80
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:78
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:42
MetricQuery & WithPeriod(Period value)
MetricQuery & WithMetricStat(MetricStatistic value)
Definition MetricQuery.h:84
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue