AWS SDK for C++  1.9.157
AWS SDK for C++
CategoricalParameterRange.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace SageMaker
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
49  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline CategoricalParameterRange& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline CategoricalParameterRange& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 
79  inline CategoricalParameterRange& WithName(const char* value) { SetName(value); return *this;}
80 
81 
85  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
86 
90  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
91 
95  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
96 
100  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
101 
105  inline CategoricalParameterRange& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
106 
110  inline CategoricalParameterRange& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
111 
115  inline CategoricalParameterRange& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
116 
120  inline CategoricalParameterRange& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
121 
125  inline CategoricalParameterRange& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
126 
127  private:
128 
129  Aws::String m_name;
130  bool m_nameHasBeenSet;
131 
132  Aws::Vector<Aws::String> m_values;
133  bool m_valuesHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace SageMaker
138 } // namespace Aws
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::CategoricalParameterRange::CategoricalParameterRange
CategoricalParameterRange(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::CategoricalParameterRange::AddValues
CategoricalParameterRange & AddValues(Aws::String &&value)
Definition: CategoricalParameterRange.h:120
SageMaker_EXPORTS.h
Aws::SageMaker::Model::CategoricalParameterRange::CategoricalParameterRange
CategoricalParameterRange()
Aws::SageMaker::Model::CategoricalParameterRange
Definition: CategoricalParameterRange.h:33
Aws::SageMaker::Model::CategoricalParameterRange::AddValues
CategoricalParameterRange & AddValues(const char *value)
Definition: CategoricalParameterRange.h:125
Aws::SageMaker::Model::CategoricalParameterRange::SetName
void SetName(Aws::String &&value)
Definition: CategoricalParameterRange.h:59
Aws::SageMaker::Model::CategoricalParameterRange::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CategoricalParameterRange.h:49
Aws::SageMaker::Model::CategoricalParameterRange::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::SageMaker::Model::CategoricalParameterRange::WithValues
CategoricalParameterRange & WithValues(Aws::Vector< Aws::String > &&value)
Definition: CategoricalParameterRange.h:110
Aws::SageMaker::Model::CategoricalParameterRange::GetName
const Aws::String & GetName() const
Definition: CategoricalParameterRange.h:44
Aws::SageMaker::Model::CategoricalParameterRange::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: CategoricalParameterRange.h:95
Aws::SageMaker::Model::CategoricalParameterRange::WithName
CategoricalParameterRange & WithName(const Aws::String &value)
Definition: CategoricalParameterRange.h:69
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::CategoricalParameterRange::SetName
void SetName(const Aws::String &value)
Definition: CategoricalParameterRange.h:54
Aws::SageMaker::Model::CategoricalParameterRange::WithValues
CategoricalParameterRange & WithValues(const Aws::Vector< Aws::String > &value)
Definition: CategoricalParameterRange.h:105
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SageMaker::Model::CategoricalParameterRange::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: CategoricalParameterRange.h:90
Aws::SageMaker::Model::CategoricalParameterRange::WithName
CategoricalParameterRange & WithName(Aws::String &&value)
Definition: CategoricalParameterRange.h:74
Aws::SageMaker::Model::CategoricalParameterRange::AddValues
CategoricalParameterRange & AddValues(const Aws::String &value)
Definition: CategoricalParameterRange.h:115
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::CategoricalParameterRange::WithName
CategoricalParameterRange & WithName(const char *value)
Definition: CategoricalParameterRange.h:79
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::CategoricalParameterRange::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: CategoricalParameterRange.h:85
Aws::SageMaker::Model::CategoricalParameterRange::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: CategoricalParameterRange.h:100
Aws::SageMaker::Model::CategoricalParameterRange::operator=
CategoricalParameterRange & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::CategoricalParameterRange::SetName
void SetName(const char *value)
Definition: CategoricalParameterRange.h:64