AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const PutMetricsErrorCode& GetCode() const{ return m_code; }
52 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
53 inline void SetCode(const PutMetricsErrorCode& value) { m_codeHasBeenSet = true; m_code = value; }
54 inline void SetCode(PutMetricsErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
55 inline BatchPutMetricsError& WithCode(const PutMetricsErrorCode& value) { SetCode(value); return *this;}
56 inline BatchPutMetricsError& WithCode(PutMetricsErrorCode&& value) { SetCode(std::move(value)); return *this;}
58
60
63 inline int GetMetricIndex() const{ return m_metricIndex; }
64 inline bool MetricIndexHasBeenSet() const { return m_metricIndexHasBeenSet; }
65 inline void SetMetricIndex(int value) { m_metricIndexHasBeenSet = true; m_metricIndex = value; }
66 inline BatchPutMetricsError& WithMetricIndex(int value) { SetMetricIndex(value); return *this;}
68 private:
69
71 bool m_codeHasBeenSet = false;
72
73 int m_metricIndex;
74 bool m_metricIndexHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace SageMakerMetrics
79} // namespace Aws
BatchPutMetricsError & WithCode(const PutMetricsErrorCode &value)
AWS_SAGEMAKERMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCode(const PutMetricsErrorCode &value)
AWS_SAGEMAKERMETRICS_API BatchPutMetricsError(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKERMETRICS_API BatchPutMetricsError & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchPutMetricsError & WithCode(PutMetricsErrorCode &&value)
Aws::Utils::Json::JsonValue JsonValue