AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename PredefinedT = PredefinedMetricSpecification>
49 void SetPredefined(PredefinedT&& value) { m_predefinedHasBeenSet = true; m_predefined = std::forward<PredefinedT>(value); }
50 template<typename PredefinedT = PredefinedMetricSpecification>
51 MetricSpecification& WithPredefined(PredefinedT&& value) { SetPredefined(std::forward<PredefinedT>(value)); return *this;}
53
55
58 inline const CustomizedMetricSpecification& GetCustomized() const { return m_customized; }
59 inline bool CustomizedHasBeenSet() const { return m_customizedHasBeenSet; }
60 template<typename CustomizedT = CustomizedMetricSpecification>
61 void SetCustomized(CustomizedT&& value) { m_customizedHasBeenSet = true; m_customized = std::forward<CustomizedT>(value); }
62 template<typename CustomizedT = CustomizedMetricSpecification>
63 MetricSpecification& WithCustomized(CustomizedT&& value) { SetCustomized(std::forward<CustomizedT>(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
AWS_SAGEMAKER_API MetricSpecification(Aws::Utils::Json::JsonView jsonValue)
MetricSpecification & WithCustomized(CustomizedT &&value)
const CustomizedMetricSpecification & GetCustomized() const
AWS_SAGEMAKER_API MetricSpecification()=default
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API MetricSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricSpecification & WithPredefined(PredefinedT &&value)
const PredefinedMetricSpecification & GetPredefined() const
Aws::Utils::Json::JsonValue JsonValue