AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMakerMetrics
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SAGEMAKERMETRICS_API BatchPutMetricsError() = default;
36 AWS_SAGEMAKERMETRICS_API BatchPutMetricsError(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SAGEMAKERMETRICS_API BatchPutMetricsError& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAGEMAKERMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
51 inline PutMetricsErrorCode GetCode() const { return m_code; }
52 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
53 inline void SetCode(PutMetricsErrorCode value) { m_codeHasBeenSet = true; m_code = value; }
54 inline BatchPutMetricsError& WithCode(PutMetricsErrorCode value) { SetCode(value); return *this;}
56
58
61 inline int GetMetricIndex() const { return m_metricIndex; }
62 inline bool MetricIndexHasBeenSet() const { return m_metricIndexHasBeenSet; }
63 inline void SetMetricIndex(int value) { m_metricIndexHasBeenSet = true; m_metricIndex = value; }
64 inline BatchPutMetricsError& WithMetricIndex(int value) { SetMetricIndex(value); return *this;}
66 private:
67
69 bool m_codeHasBeenSet = false;
70
71 int m_metricIndex{0};
72 bool m_metricIndexHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace SageMakerMetrics
77} // 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