AWS SDK for C++  1.9.154
AWS SDK for C++
MetricDefinition.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace SageMaker
22 {
23 namespace Model
24 {
25 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetName() const{ return m_name; }
48 
52  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 
57  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 
62  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 
67  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 
72  inline MetricDefinition& WithName(const Aws::String& value) { SetName(value); return *this;}
73 
77  inline MetricDefinition& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
78 
82  inline MetricDefinition& WithName(const char* value) { SetName(value); return *this;}
83 
84 
92  inline const Aws::String& GetRegex() const{ return m_regex; }
93 
101  inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
102 
110  inline void SetRegex(const Aws::String& value) { m_regexHasBeenSet = true; m_regex = value; }
111 
119  inline void SetRegex(Aws::String&& value) { m_regexHasBeenSet = true; m_regex = std::move(value); }
120 
128  inline void SetRegex(const char* value) { m_regexHasBeenSet = true; m_regex.assign(value); }
129 
137  inline MetricDefinition& WithRegex(const Aws::String& value) { SetRegex(value); return *this;}
138 
146  inline MetricDefinition& WithRegex(Aws::String&& value) { SetRegex(std::move(value)); return *this;}
147 
155  inline MetricDefinition& WithRegex(const char* value) { SetRegex(value); return *this;}
156 
157  private:
158 
159  Aws::String m_name;
160  bool m_nameHasBeenSet;
161 
162  Aws::String m_regex;
163  bool m_regexHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace SageMaker
168 } // namespace Aws
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
SageMaker_EXPORTS.h
Aws::SageMaker::Model::MetricDefinition::NameHasBeenSet
bool NameHasBeenSet() const
Definition: MetricDefinition.h:52
Aws::SageMaker::Model::MetricDefinition::WithName
MetricDefinition & WithName(Aws::String &&value)
Definition: MetricDefinition.h:77
Aws::SageMaker::Model::MetricDefinition::GetRegex
const Aws::String & GetRegex() const
Definition: MetricDefinition.h:92
Aws::SageMaker::Model::MetricDefinition::MetricDefinition
MetricDefinition()
Aws::SageMaker::Model::MetricDefinition::SetName
void SetName(const char *value)
Definition: MetricDefinition.h:67
Aws::SageMaker::Model::MetricDefinition::WithName
MetricDefinition & WithName(const char *value)
Definition: MetricDefinition.h:82
Aws::SageMaker::Model::MetricDefinition::MetricDefinition
MetricDefinition(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::MetricDefinition::SetRegex
void SetRegex(const Aws::String &value)
Definition: MetricDefinition.h:110
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SageMaker::Model::MetricDefinition::WithName
MetricDefinition & WithName(const Aws::String &value)
Definition: MetricDefinition.h:72
Aws::SageMaker::Model::MetricDefinition::operator=
MetricDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::MetricDefinition::GetName
const Aws::String & GetName() const
Definition: MetricDefinition.h:47
Aws::SageMaker::Model::MetricDefinition::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SageMaker::Model::MetricDefinition::SetRegex
void SetRegex(const char *value)
Definition: MetricDefinition.h:128
Aws::SageMaker::Model::MetricDefinition::SetName
void SetName(const Aws::String &value)
Definition: MetricDefinition.h:57
Aws::SageMaker::Model::MetricDefinition::SetRegex
void SetRegex(Aws::String &&value)
Definition: MetricDefinition.h:119
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::MetricDefinition::WithRegex
MetricDefinition & WithRegex(const Aws::String &value)
Definition: MetricDefinition.h:137
Aws::SageMaker::Model::MetricDefinition::WithRegex
MetricDefinition & WithRegex(const char *value)
Definition: MetricDefinition.h:155
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::MetricDefinition::RegexHasBeenSet
bool RegexHasBeenSet() const
Definition: MetricDefinition.h:101
Aws::SageMaker::Model::MetricDefinition::SetName
void SetName(Aws::String &&value)
Definition: MetricDefinition.h:62
Aws::SageMaker::Model::MetricDefinition
Definition: MetricDefinition.h:36
Aws::SageMaker::Model::MetricDefinition::WithRegex
MetricDefinition & WithRegex(Aws::String &&value)
Definition: MetricDefinition.h:146