AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricDefinition.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker
22{
23namespace Model
24{
25
40 {
41 public:
42 AWS_SAGEMAKER_API MetricDefinition();
43 AWS_SAGEMAKER_API MetricDefinition(Aws::Utils::Json::JsonView jsonValue);
45 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetName() const{ return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
56 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
57 inline MetricDefinition& WithName(const Aws::String& value) { SetName(value); return *this;}
58 inline MetricDefinition& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
59 inline MetricDefinition& WithName(const char* value) { SetName(value); return *this;}
61
63
70 inline const Aws::String& GetRegex() const{ return m_regex; }
71 inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
72 inline void SetRegex(const Aws::String& value) { m_regexHasBeenSet = true; m_regex = value; }
73 inline void SetRegex(Aws::String&& value) { m_regexHasBeenSet = true; m_regex = std::move(value); }
74 inline void SetRegex(const char* value) { m_regexHasBeenSet = true; m_regex.assign(value); }
75 inline MetricDefinition& WithRegex(const Aws::String& value) { SetRegex(value); return *this;}
76 inline MetricDefinition& WithRegex(Aws::String&& value) { SetRegex(std::move(value)); return *this;}
77 inline MetricDefinition& WithRegex(const char* value) { SetRegex(value); return *this;}
79 private:
80
81 Aws::String m_name;
82 bool m_nameHasBeenSet = false;
83
84 Aws::String m_regex;
85 bool m_regexHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace SageMaker
90} // namespace Aws
void SetRegex(const Aws::String &value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
MetricDefinition & WithName(const char *value)
MetricDefinition & WithName(const Aws::String &value)
AWS_SAGEMAKER_API MetricDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API MetricDefinition(Aws::Utils::Json::JsonView jsonValue)
MetricDefinition & WithRegex(Aws::String &&value)
MetricDefinition & WithName(Aws::String &&value)
MetricDefinition & WithRegex(const char *value)
const Aws::String & GetName() const
MetricDefinition & WithRegex(const Aws::String &value)
const Aws::String & GetRegex() const
void SetName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue