AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricQueryResult.h
1
6#pragma once
7#include <aws/sagemaker-metrics/SageMakerMetrics_EXPORTS.h>
8#include <aws/sagemaker-metrics/model/MetricQueryResultStatus.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMakerMetrics
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SAGEMAKERMETRICS_API MetricQueryResult();
38 AWS_SAGEMAKERMETRICS_API MetricQueryResult(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SAGEMAKERMETRICS_API MetricQueryResult& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKERMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const MetricQueryResultStatus& GetStatus() const{ return m_status; }
48 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
49 inline void SetStatus(const MetricQueryResultStatus& value) { m_statusHasBeenSet = true; m_status = value; }
50 inline void SetStatus(MetricQueryResultStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
51 inline MetricQueryResult& WithStatus(const MetricQueryResultStatus& value) { SetStatus(value); return *this;}
52 inline MetricQueryResult& WithStatus(MetricQueryResultStatus&& value) { SetStatus(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetMessage() const{ return m_message; }
60 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
61 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
62 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
63 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
64 inline MetricQueryResult& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
65 inline MetricQueryResult& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
66 inline MetricQueryResult& WithMessage(const char* value) { SetMessage(value); return *this;}
68
70
73 inline const Aws::Vector<long long>& GetXAxisValues() const{ return m_xAxisValues; }
74 inline bool XAxisValuesHasBeenSet() const { return m_xAxisValuesHasBeenSet; }
75 inline void SetXAxisValues(const Aws::Vector<long long>& value) { m_xAxisValuesHasBeenSet = true; m_xAxisValues = value; }
76 inline void SetXAxisValues(Aws::Vector<long long>&& value) { m_xAxisValuesHasBeenSet = true; m_xAxisValues = std::move(value); }
77 inline MetricQueryResult& WithXAxisValues(const Aws::Vector<long long>& value) { SetXAxisValues(value); return *this;}
78 inline MetricQueryResult& WithXAxisValues(Aws::Vector<long long>&& value) { SetXAxisValues(std::move(value)); return *this;}
79 inline MetricQueryResult& AddXAxisValues(long long value) { m_xAxisValuesHasBeenSet = true; m_xAxisValues.push_back(value); return *this; }
81
83
86 inline const Aws::Vector<double>& GetMetricValues() const{ return m_metricValues; }
87 inline bool MetricValuesHasBeenSet() const { return m_metricValuesHasBeenSet; }
88 inline void SetMetricValues(const Aws::Vector<double>& value) { m_metricValuesHasBeenSet = true; m_metricValues = value; }
89 inline void SetMetricValues(Aws::Vector<double>&& value) { m_metricValuesHasBeenSet = true; m_metricValues = std::move(value); }
90 inline MetricQueryResult& WithMetricValues(const Aws::Vector<double>& value) { SetMetricValues(value); return *this;}
91 inline MetricQueryResult& WithMetricValues(Aws::Vector<double>&& value) { SetMetricValues(std::move(value)); return *this;}
92 inline MetricQueryResult& AddMetricValues(double value) { m_metricValuesHasBeenSet = true; m_metricValues.push_back(value); return *this; }
94 private:
95
97 bool m_statusHasBeenSet = false;
98
99 Aws::String m_message;
100 bool m_messageHasBeenSet = false;
101
102 Aws::Vector<long long> m_xAxisValues;
103 bool m_xAxisValuesHasBeenSet = false;
104
105 Aws::Vector<double> m_metricValues;
106 bool m_metricValuesHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace SageMakerMetrics
111} // namespace Aws
const MetricQueryResultStatus & GetStatus() const
const Aws::Vector< long long > & GetXAxisValues() const
AWS_SAGEMAKERMETRICS_API MetricQueryResult & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< double > & GetMetricValues() const
MetricQueryResult & WithMessage(const Aws::String &value)
AWS_SAGEMAKERMETRICS_API MetricQueryResult(Aws::Utils::Json::JsonView jsonValue)
MetricQueryResult & WithStatus(MetricQueryResultStatus &&value)
MetricQueryResult & WithXAxisValues(Aws::Vector< long long > &&value)
void SetXAxisValues(const Aws::Vector< long long > &value)
MetricQueryResult & WithMetricValues(const Aws::Vector< double > &value)
MetricQueryResult & AddMetricValues(double value)
MetricQueryResult & WithMessage(Aws::String &&value)
void SetMetricValues(Aws::Vector< double > &&value)
void SetStatus(const MetricQueryResultStatus &value)
MetricQueryResult & WithStatus(const MetricQueryResultStatus &value)
void SetStatus(MetricQueryResultStatus &&value)
MetricQueryResult & WithMessage(const char *value)
AWS_SAGEMAKERMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
MetricQueryResult & AddXAxisValues(long long value)
void SetMetricValues(const Aws::Vector< double > &value)
MetricQueryResult & WithMetricValues(Aws::Vector< double > &&value)
AWS_SAGEMAKERMETRICS_API MetricQueryResult()
MetricQueryResult & WithXAxisValues(const Aws::Vector< long long > &value)
void SetXAxisValues(Aws::Vector< long long > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue