AWS SDK for C++  1.9.124
AWS SDK for C++
IntegerParameterRange.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 IntegerParameterRange& WithName(const Aws::String& value) { SetName(value); return *this;}
72 
76  inline IntegerParameterRange& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
77 
81  inline IntegerParameterRange& WithName(const char* value) { SetName(value); return *this;}
82 
83 
87  inline int GetMaxValue() const{ return m_maxValue; }
88 
92  inline bool MaxValueHasBeenSet() const { return m_maxValueHasBeenSet; }
93 
97  inline void SetMaxValue(int value) { m_maxValueHasBeenSet = true; m_maxValue = value; }
98 
102  inline IntegerParameterRange& WithMaxValue(int value) { SetMaxValue(value); return *this;}
103 
104 
108  inline int GetMinValue() const{ return m_minValue; }
109 
113  inline bool MinValueHasBeenSet() const { return m_minValueHasBeenSet; }
114 
118  inline void SetMinValue(int value) { m_minValueHasBeenSet = true; m_minValue = value; }
119 
123  inline IntegerParameterRange& WithMinValue(int value) { SetMinValue(value); return *this;}
124 
125 
141  inline const ScalingType& GetScalingType() const{ return m_scalingType; }
142 
158  inline bool ScalingTypeHasBeenSet() const { return m_scalingTypeHasBeenSet; }
159 
175  inline void SetScalingType(const ScalingType& value) { m_scalingTypeHasBeenSet = true; m_scalingType = value; }
176 
192  inline void SetScalingType(ScalingType&& value) { m_scalingTypeHasBeenSet = true; m_scalingType = std::move(value); }
193 
209  inline IntegerParameterRange& WithScalingType(const ScalingType& value) { SetScalingType(value); return *this;}
210 
226  inline IntegerParameterRange& WithScalingType(ScalingType&& value) { SetScalingType(std::move(value)); return *this;}
227 
228  private:
229 
230  Aws::String m_name;
231  bool m_nameHasBeenSet;
232 
233  int m_maxValue;
234  bool m_maxValueHasBeenSet;
235 
236  int m_minValue;
237  bool m_minValueHasBeenSet;
238 
239  ScalingType m_scalingType;
240  bool m_scalingTypeHasBeenSet;
241  };
242 
243 } // namespace Model
244 } // namespace ForecastService
245 } // namespace Aws
Aws::ForecastService::Model::IntegerParameterRange::WithName
IntegerParameterRange & WithName(const char *value)
Definition: IntegerParameterRange.h:81
Aws::ForecastService::Model::IntegerParameterRange::IntegerParameterRange
IntegerParameterRange(Aws::Utils::Json::JsonView jsonValue)
Aws::ForecastService::Model::IntegerParameterRange::MinValueHasBeenSet
bool MinValueHasBeenSet() const
Definition: IntegerParameterRange.h:113
Aws::ForecastService::Model::IntegerParameterRange::NameHasBeenSet
bool NameHasBeenSet() const
Definition: IntegerParameterRange.h:51
ForecastService_EXPORTS.h
Aws::ForecastService::Model::IntegerParameterRange
Definition: IntegerParameterRange.h:35
Aws::ForecastService::Model::IntegerParameterRange::WithMaxValue
IntegerParameterRange & WithMaxValue(int value)
Definition: IntegerParameterRange.h:102
Aws::ForecastService::Model::IntegerParameterRange::SetName
void SetName(Aws::String &&value)
Definition: IntegerParameterRange.h:61
Aws::ForecastService::Model::IntegerParameterRange::SetMaxValue
void SetMaxValue(int value)
Definition: IntegerParameterRange.h:97
Aws::ForecastService::Model::IntegerParameterRange::SetMinValue
void SetMinValue(int value)
Definition: IntegerParameterRange.h:118
Aws::ForecastService::Model::IntegerParameterRange::MaxValueHasBeenSet
bool MaxValueHasBeenSet() const
Definition: IntegerParameterRange.h:92
Aws::ForecastService::Model::IntegerParameterRange::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ForecastService::Model::IntegerParameterRange::WithScalingType
IntegerParameterRange & WithScalingType(const ScalingType &value)
Definition: IntegerParameterRange.h:209
Aws::ForecastService::Model::IntegerParameterRange::GetScalingType
const ScalingType & GetScalingType() const
Definition: IntegerParameterRange.h:141
Aws::ForecastService::Model::IntegerParameterRange::SetScalingType
void SetScalingType(const ScalingType &value)
Definition: IntegerParameterRange.h:175
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::ForecastService::Model::IntegerParameterRange::WithScalingType
IntegerParameterRange & WithScalingType(ScalingType &&value)
Definition: IntegerParameterRange.h:226
AWSString.h
Aws::ForecastService::Model::ScalingType
ScalingType
Definition: ScalingType.h:17
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ForecastService::Model::IntegerParameterRange::SetName
void SetName(const Aws::String &value)
Definition: IntegerParameterRange.h:56
Aws::ForecastService::Model::IntegerParameterRange::GetMinValue
int GetMinValue() const
Definition: IntegerParameterRange.h:108
Aws::ForecastService::Model::IntegerParameterRange::GetName
const Aws::String & GetName() const
Definition: IntegerParameterRange.h:46
Aws::ForecastService::Model::IntegerParameterRange::GetMaxValue
int GetMaxValue() const
Definition: IntegerParameterRange.h:87
Aws::ForecastService::Model::IntegerParameterRange::WithMinValue
IntegerParameterRange & WithMinValue(int value)
Definition: IntegerParameterRange.h:123
Aws::ForecastService::Model::IntegerParameterRange::WithName
IntegerParameterRange & WithName(Aws::String &&value)
Definition: IntegerParameterRange.h:76
Aws
Definition: AccessManagementClient.h:15
Aws::ForecastService::Model::IntegerParameterRange::IntegerParameterRange
IntegerParameterRange()
Aws::ForecastService::Model::IntegerParameterRange::ScalingTypeHasBeenSet
bool ScalingTypeHasBeenSet() const
Definition: IntegerParameterRange.h:158
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ForecastService::Model::IntegerParameterRange::SetScalingType
void SetScalingType(ScalingType &&value)
Definition: IntegerParameterRange.h:192
Aws::ForecastService::Model::IntegerParameterRange::WithName
IntegerParameterRange & WithName(const Aws::String &value)
Definition: IntegerParameterRange.h:71
Aws::ForecastService::Model::IntegerParameterRange::SetName
void SetName(const char *value)
Definition: IntegerParameterRange.h:66
AWS_FORECASTSERVICE_API
#define AWS_FORECASTSERVICE_API
Definition: ForecastService_EXPORTS.h:28
ScalingType.h
Aws::ForecastService::Model::IntegerParameterRange::operator=
IntegerParameterRange & operator=(Aws::Utils::Json::JsonView jsonValue)