AWS SDK for C++  1.9.124
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 ForecastService
23 {
24 namespace Model
25 {
26 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetName() const{ return m_name; }
47 
51  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 
56  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
57 
61  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 
66  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 
71  inline CategoricalParameterRange& WithName(const Aws::String& value) { SetName(value); return *this;}
72 
76  inline CategoricalParameterRange& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
77 
81  inline CategoricalParameterRange& WithName(const char* value) { SetName(value); return *this;}
82 
83 
87  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
88 
92  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
93 
97  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
98 
102  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
103 
107  inline CategoricalParameterRange& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
108 
112  inline CategoricalParameterRange& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
113 
117  inline CategoricalParameterRange& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
118 
122  inline CategoricalParameterRange& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
123 
127  inline CategoricalParameterRange& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
128 
129  private:
130 
131  Aws::String m_name;
132  bool m_nameHasBeenSet;
133 
134  Aws::Vector<Aws::String> m_values;
135  bool m_valuesHasBeenSet;
136  };
137 
138 } // namespace Model
139 } // namespace ForecastService
140 } // namespace Aws
Aws::ForecastService::Model::CategoricalParameterRange::GetName
const Aws::String & GetName() const
Definition: CategoricalParameterRange.h:46
Aws::ForecastService::Model::CategoricalParameterRange::SetName
void SetName(Aws::String &&value)
Definition: CategoricalParameterRange.h:61
ForecastService_EXPORTS.h
Aws::ForecastService::Model::CategoricalParameterRange
Definition: CategoricalParameterRange.h:35
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ForecastService::Model::CategoricalParameterRange::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: CategoricalParameterRange.h:102
AWSVector.h
Aws::ForecastService::Model::CategoricalParameterRange::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: CategoricalParameterRange.h:87
Aws::ForecastService::Model::CategoricalParameterRange::SetName
void SetName(const Aws::String &value)
Definition: CategoricalParameterRange.h:56
Aws::ForecastService::Model::CategoricalParameterRange::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CategoricalParameterRange.h:51
Aws::ForecastService::Model::CategoricalParameterRange::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ForecastService::Model::CategoricalParameterRange::WithName
CategoricalParameterRange & WithName(const char *value)
Definition: CategoricalParameterRange.h:81
Aws::ForecastService::Model::CategoricalParameterRange::WithName
CategoricalParameterRange & WithName(Aws::String &&value)
Definition: CategoricalParameterRange.h:76
Aws::ForecastService::Model::CategoricalParameterRange::CategoricalParameterRange
CategoricalParameterRange()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::ForecastService::Model::CategoricalParameterRange::WithValues
CategoricalParameterRange & WithValues(const Aws::Vector< Aws::String > &value)
Definition: CategoricalParameterRange.h:107
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ForecastService::Model::CategoricalParameterRange::AddValues
CategoricalParameterRange & AddValues(const Aws::String &value)
Definition: CategoricalParameterRange.h:117
Aws::ForecastService::Model::CategoricalParameterRange::SetName
void SetName(const char *value)
Definition: CategoricalParameterRange.h:66
Aws
Definition: AccessManagementClient.h:15
Aws::ForecastService::Model::CategoricalParameterRange::operator=
CategoricalParameterRange & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ForecastService::Model::CategoricalParameterRange::AddValues
CategoricalParameterRange & AddValues(Aws::String &&value)
Definition: CategoricalParameterRange.h:122
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ForecastService::Model::CategoricalParameterRange::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: CategoricalParameterRange.h:97
Aws::ForecastService::Model::CategoricalParameterRange::CategoricalParameterRange
CategoricalParameterRange(Aws::Utils::Json::JsonView jsonValue)
Aws::ForecastService::Model::CategoricalParameterRange::WithName
CategoricalParameterRange & WithName(const Aws::String &value)
Definition: CategoricalParameterRange.h:71
AWS_FORECASTSERVICE_API
#define AWS_FORECASTSERVICE_API
Definition: ForecastService_EXPORTS.h:28
Aws::ForecastService::Model::CategoricalParameterRange::AddValues
CategoricalParameterRange & AddValues(const char *value)
Definition: CategoricalParameterRange.h:127
Aws::ForecastService::Model::CategoricalParameterRange::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: CategoricalParameterRange.h:92
Aws::ForecastService::Model::CategoricalParameterRange::WithValues
CategoricalParameterRange & WithValues(Aws::Vector< Aws::String > &&value)
Definition: CategoricalParameterRange.h:112