AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
51 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
52 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
53 inline MetricQuery& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
54 inline MetricQuery& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
55 inline MetricQuery& WithMetricName(const char* value) { SetMetricName(value); return *this;}
57
59
62 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
63 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
64 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
65 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
66 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
67 inline MetricQuery& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
68 inline MetricQuery& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
69 inline MetricQuery& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
71
73
76 inline const MetricStatistic& GetMetricStat() const{ return m_metricStat; }
77 inline bool MetricStatHasBeenSet() const { return m_metricStatHasBeenSet; }
78 inline void SetMetricStat(const MetricStatistic& value) { m_metricStatHasBeenSet = true; m_metricStat = value; }
79 inline void SetMetricStat(MetricStatistic&& value) { m_metricStatHasBeenSet = true; m_metricStat = std::move(value); }
80 inline MetricQuery& WithMetricStat(const MetricStatistic& value) { SetMetricStat(value); return *this;}
81 inline MetricQuery& WithMetricStat(MetricStatistic&& value) { SetMetricStat(std::move(value)); return *this;}
83
85
88 inline const Period& GetPeriod() const{ return m_period; }
89 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
90 inline void SetPeriod(const Period& value) { m_periodHasBeenSet = true; m_period = value; }
91 inline void SetPeriod(Period&& value) { m_periodHasBeenSet = true; m_period = std::move(value); }
92 inline MetricQuery& WithPeriod(const Period& value) { SetPeriod(value); return *this;}
93 inline MetricQuery& WithPeriod(Period&& value) { SetPeriod(std::move(value)); return *this;}
95
97
100 inline const XAxisType& GetXAxisType() const{ return m_xAxisType; }
101 inline bool XAxisTypeHasBeenSet() const { return m_xAxisTypeHasBeenSet; }
102 inline void SetXAxisType(const XAxisType& value) { m_xAxisTypeHasBeenSet = true; m_xAxisType = value; }
103 inline void SetXAxisType(XAxisType&& value) { m_xAxisTypeHasBeenSet = true; m_xAxisType = std::move(value); }
104 inline MetricQuery& WithXAxisType(const XAxisType& value) { SetXAxisType(value); return *this;}
105 inline MetricQuery& WithXAxisType(XAxisType&& value) { SetXAxisType(std::move(value)); return *this;}
107
109
112 inline long long GetStart() const{ return m_start; }
113 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
114 inline void SetStart(long long value) { m_startHasBeenSet = true; m_start = value; }
115 inline MetricQuery& WithStart(long long value) { SetStart(value); return *this;}
117
119
122 inline long long GetEnd() const{ return m_end; }
123 inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
124 inline void SetEnd(long long value) { m_endHasBeenSet = true; m_end = value; }
125 inline MetricQuery& WithEnd(long long value) { SetEnd(value); return *this;}
127 private:
128
129 Aws::String m_metricName;
130 bool m_metricNameHasBeenSet = false;
131
132 Aws::String m_resourceArn;
133 bool m_resourceArnHasBeenSet = false;
134
135 MetricStatistic m_metricStat;
136 bool m_metricStatHasBeenSet = false;
137
138 Period m_period;
139 bool m_periodHasBeenSet = false;
140
141 XAxisType m_xAxisType;
142 bool m_xAxisTypeHasBeenSet = false;
143
144 long long m_start;
145 bool m_startHasBeenSet = false;
146
147 long long m_end;
148 bool m_endHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace SageMakerMetrics
153} // namespace Aws
void SetMetricName(const char *value)
Definition MetricQuery.h:52
MetricQuery & WithMetricName(Aws::String &&value)
Definition MetricQuery.h:54
MetricQuery & WithMetricStat(MetricStatistic &&value)
Definition MetricQuery.h:81
MetricQuery & WithMetricName(const char *value)
Definition MetricQuery.h:55
const MetricStatistic & GetMetricStat() const
Definition MetricQuery.h:76
void SetXAxisType(const XAxisType &value)
void SetResourceArn(const Aws::String &value)
Definition MetricQuery.h:64
MetricQuery & WithResourceArn(Aws::String &&value)
Definition MetricQuery.h:68
void SetPeriod(const Period &value)
Definition MetricQuery.h:90
MetricQuery & WithXAxisType(XAxisType &&value)
MetricQuery & WithResourceArn(const char *value)
Definition MetricQuery.h:69
MetricQuery & WithStart(long long value)
const Aws::String & GetResourceArn() const
Definition MetricQuery.h:62
MetricQuery & WithPeriod(const Period &value)
Definition MetricQuery.h:92
AWS_SAGEMAKERMETRICS_API MetricQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResourceArn(Aws::String &&value)
Definition MetricQuery.h:65
void SetResourceArn(const char *value)
Definition MetricQuery.h:66
const XAxisType & GetXAxisType() const
AWS_SAGEMAKERMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKERMETRICS_API MetricQuery()
MetricQuery & WithPeriod(Period &&value)
Definition MetricQuery.h:93
void SetMetricName(Aws::String &&value)
Definition MetricQuery.h:51
AWS_SAGEMAKERMETRICS_API MetricQuery(Aws::Utils::Json::JsonView jsonValue)
MetricQuery & WithResourceArn(const Aws::String &value)
Definition MetricQuery.h:67
void SetMetricStat(MetricStatistic &&value)
Definition MetricQuery.h:79
MetricQuery & WithMetricName(const Aws::String &value)
Definition MetricQuery.h:53
void SetMetricStat(const MetricStatistic &value)
Definition MetricQuery.h:78
MetricQuery & WithEnd(long long value)
void SetMetricName(const Aws::String &value)
Definition MetricQuery.h:50
const Aws::String & GetMetricName() const
Definition MetricQuery.h:48
MetricQuery & WithXAxisType(const XAxisType &value)
MetricQuery & WithMetricStat(const MetricStatistic &value)
Definition MetricQuery.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue