AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CustomizedMetricSpecification.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/Statistic.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
33 {
34 public:
35 AWS_SAGEMAKER_API CustomizedMetricSpecification() = default;
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetMetricName() const { return m_metricName; }
46 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
47 template<typename MetricNameT = Aws::String>
48 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
49 template<typename MetricNameT = Aws::String>
50 CustomizedMetricSpecification& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetNamespace() const { return m_namespace; }
58 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
59 template<typename NamespaceT = Aws::String>
60 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
61 template<typename NamespaceT = Aws::String>
62 CustomizedMetricSpecification& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
64
66
69 inline Statistic GetStatistic() const { return m_statistic; }
70 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
71 inline void SetStatistic(Statistic value) { m_statisticHasBeenSet = true; m_statistic = value; }
72 inline CustomizedMetricSpecification& WithStatistic(Statistic value) { SetStatistic(value); return *this;}
74 private:
75
76 Aws::String m_metricName;
77 bool m_metricNameHasBeenSet = false;
78
79 Aws::String m_namespace;
80 bool m_namespaceHasBeenSet = false;
81
82 Statistic m_statistic{Statistic::NOT_SET};
83 bool m_statisticHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace SageMaker
88} // namespace Aws
AWS_SAGEMAKER_API CustomizedMetricSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomizedMetricSpecification & WithNamespace(NamespaceT &&value)
CustomizedMetricSpecification & WithStatistic(Statistic value)
AWS_SAGEMAKER_API CustomizedMetricSpecification(Aws::Utils::Json::JsonView jsonValue)
CustomizedMetricSpecification & WithMetricName(MetricNameT &&value)
AWS_SAGEMAKER_API CustomizedMetricSpecification()=default
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue