AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
MetricSpecification.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/CustomizedMetricSpecification.h>
9#include <aws/sagemaker/model/PredefinedMetricSpecification.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMaker {
21namespace Model {
22
30 public:
31 AWS_SAGEMAKER_API MetricSpecification() = default;
32 AWS_SAGEMAKER_API MetricSpecification(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const PredefinedMetricSpecification& GetPredefined() const { return m_predefined; }
41 inline bool PredefinedHasBeenSet() const { return m_predefinedHasBeenSet; }
42 template <typename PredefinedT = PredefinedMetricSpecification>
43 void SetPredefined(PredefinedT&& value) {
44 m_predefinedHasBeenSet = true;
45 m_predefined = std::forward<PredefinedT>(value);
46 }
47 template <typename PredefinedT = PredefinedMetricSpecification>
48 MetricSpecification& WithPredefined(PredefinedT&& value) {
49 SetPredefined(std::forward<PredefinedT>(value));
50 return *this;
51 }
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) {
62 m_customizedHasBeenSet = true;
63 m_customized = std::forward<CustomizedT>(value);
64 }
65 template <typename CustomizedT = CustomizedMetricSpecification>
66 MetricSpecification& WithCustomized(CustomizedT&& value) {
67 SetCustomized(std::forward<CustomizedT>(value));
68 return *this;
69 }
71 private:
73
75 bool m_predefinedHasBeenSet = false;
76 bool m_customizedHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace SageMaker
81} // 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