AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
48 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
49 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
50 inline CustomizedMetricSpecification& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
51 inline CustomizedMetricSpecification& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
52 inline CustomizedMetricSpecification& WithMetricName(const char* value) { SetMetricName(value); return *this;}
54
56
59 inline const Aws::String& GetNamespace() const{ return m_namespace; }
60 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
61 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
62 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
63 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
64 inline CustomizedMetricSpecification& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
65 inline CustomizedMetricSpecification& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
66 inline CustomizedMetricSpecification& WithNamespace(const char* value) { SetNamespace(value); return *this;}
68
70
73 inline const Statistic& GetStatistic() const{ return m_statistic; }
74 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
75 inline void SetStatistic(const Statistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
76 inline void SetStatistic(Statistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
77 inline CustomizedMetricSpecification& WithStatistic(const Statistic& value) { SetStatistic(value); return *this;}
78 inline CustomizedMetricSpecification& WithStatistic(Statistic&& value) { SetStatistic(std::move(value)); return *this;}
80 private:
81
82 Aws::String m_metricName;
83 bool m_metricNameHasBeenSet = false;
84
85 Aws::String m_namespace;
86 bool m_namespaceHasBeenSet = false;
87
88 Statistic m_statistic;
89 bool m_statisticHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace SageMaker
94} // namespace Aws
CustomizedMetricSpecification & WithMetricName(const char *value)
AWS_SAGEMAKER_API CustomizedMetricSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomizedMetricSpecification & WithNamespace(Aws::String &&value)
CustomizedMetricSpecification & WithStatistic(Statistic &&value)
CustomizedMetricSpecification & WithNamespace(const char *value)
AWS_SAGEMAKER_API CustomizedMetricSpecification(Aws::Utils::Json::JsonView jsonValue)
CustomizedMetricSpecification & WithMetricName(const Aws::String &value)
CustomizedMetricSpecification & WithNamespace(const Aws::String &value)
CustomizedMetricSpecification & WithMetricName(Aws::String &&value)
CustomizedMetricSpecification & WithStatistic(const Statistic &value)
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