AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CustomizedMetricSpecification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/Statistic.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
29 public:
30 AWS_SAGEMAKER_API CustomizedMetricSpecification() = default;
33 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetMetricName() const { return m_metricName; }
40 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
41 template <typename MetricNameT = Aws::String>
42 void SetMetricName(MetricNameT&& value) {
43 m_metricNameHasBeenSet = true;
44 m_metricName = std::forward<MetricNameT>(value);
45 }
46 template <typename MetricNameT = Aws::String>
48 SetMetricName(std::forward<MetricNameT>(value));
49 return *this;
50 }
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) {
61 m_namespaceHasBeenSet = true;
62 m_namespace = std::forward<NamespaceT>(value);
63 }
64 template <typename NamespaceT = Aws::String>
66 SetNamespace(std::forward<NamespaceT>(value));
67 return *this;
68 }
70
72
75 inline Statistic GetStatistic() const { return m_statistic; }
76 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
77 inline void SetStatistic(Statistic value) {
78 m_statisticHasBeenSet = true;
79 m_statistic = value;
80 }
82 SetStatistic(value);
83 return *this;
84 }
86 private:
87 Aws::String m_metricName;
88
89 Aws::String m_namespace;
90
91 Statistic m_statistic{Statistic::NOT_SET};
92 bool m_metricNameHasBeenSet = false;
93 bool m_namespaceHasBeenSet = false;
94 bool m_statisticHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace SageMaker
99} // 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