AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricSpecification.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/PredefinedMetricSpecification.h>
9#include <aws/sagemaker/model/CustomizedMetricSpecification.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SAGEMAKER_API MetricSpecification();
37 AWS_SAGEMAKER_API MetricSpecification(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const PredefinedMetricSpecification& GetPredefined() const{ return m_predefined; }
47 inline bool PredefinedHasBeenSet() const { return m_predefinedHasBeenSet; }
48 inline void SetPredefined(const PredefinedMetricSpecification& value) { m_predefinedHasBeenSet = true; m_predefined = value; }
49 inline void SetPredefined(PredefinedMetricSpecification&& value) { m_predefinedHasBeenSet = true; m_predefined = std::move(value); }
51 inline MetricSpecification& WithPredefined(PredefinedMetricSpecification&& value) { SetPredefined(std::move(value)); return *this;}
53
55
58 inline const CustomizedMetricSpecification& GetCustomized() const{ return m_customized; }
59 inline bool CustomizedHasBeenSet() const { return m_customizedHasBeenSet; }
60 inline void SetCustomized(const CustomizedMetricSpecification& value) { m_customizedHasBeenSet = true; m_customized = value; }
61 inline void SetCustomized(CustomizedMetricSpecification&& value) { m_customizedHasBeenSet = true; m_customized = std::move(value); }
63 inline MetricSpecification& WithCustomized(CustomizedMetricSpecification&& value) { SetCustomized(std::move(value)); return *this;}
65 private:
66
68 bool m_predefinedHasBeenSet = false;
69
71 bool m_customizedHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace SageMaker
76} // namespace Aws
MetricSpecification & WithCustomized(CustomizedMetricSpecification &&value)
AWS_SAGEMAKER_API MetricSpecification(Aws::Utils::Json::JsonView jsonValue)
MetricSpecification & WithCustomized(const CustomizedMetricSpecification &value)
void SetCustomized(const CustomizedMetricSpecification &value)
const CustomizedMetricSpecification & GetCustomized() const
void SetPredefined(PredefinedMetricSpecification &&value)
MetricSpecification & WithPredefined(const PredefinedMetricSpecification &value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPredefined(const PredefinedMetricSpecification &value)
AWS_SAGEMAKER_API MetricSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCustomized(CustomizedMetricSpecification &&value)
const PredefinedMetricSpecification & GetPredefined() const
MetricSpecification & WithPredefined(PredefinedMetricSpecification &&value)
Aws::Utils::Json::JsonValue JsonValue