AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
BatchPutMetricsError.h
1
6#pragma once
7#include <aws/sagemaker-metrics/SageMakerMetrics_EXPORTS.h>
8#include <aws/sagemaker-metrics/model/PutMetricsErrorCode.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SageMakerMetrics {
20namespace Model {
21
29 public:
30 AWS_SAGEMAKERMETRICS_API BatchPutMetricsError() = default;
31 AWS_SAGEMAKERMETRICS_API BatchPutMetricsError(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SAGEMAKERMETRICS_API BatchPutMetricsError& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SAGEMAKERMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
45 inline PutMetricsErrorCode GetCode() const { return m_code; }
46 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
47 inline void SetCode(PutMetricsErrorCode value) {
48 m_codeHasBeenSet = true;
49 m_code = value;
50 }
52 SetCode(value);
53 return *this;
54 }
56
58
61 inline int GetMetricIndex() const { return m_metricIndex; }
62 inline bool MetricIndexHasBeenSet() const { return m_metricIndexHasBeenSet; }
63 inline void SetMetricIndex(int value) {
64 m_metricIndexHasBeenSet = true;
65 m_metricIndex = value;
66 }
68 SetMetricIndex(value);
69 return *this;
70 }
72 private:
74
75 int m_metricIndex{0};
76 bool m_codeHasBeenSet = false;
77 bool m_metricIndexHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace SageMakerMetrics
82} // namespace Aws
AWS_SAGEMAKERMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKERMETRICS_API BatchPutMetricsError(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKERMETRICS_API BatchPutMetricsError & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchPutMetricsError & WithCode(PutMetricsErrorCode value)
AWS_SAGEMAKERMETRICS_API BatchPutMetricsError()=default
Aws::Utils::Json::JsonValue JsonValue