AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
IntegerParameterRange.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/forecast/ForecastService_EXPORTS.h>
9#include <aws/forecast/model/ScalingType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ForecastService {
21namespace Model {
22
31 public:
32 AWS_FORECASTSERVICE_API IntegerParameterRange() = default;
33 AWS_FORECASTSERVICE_API IntegerParameterRange(Aws::Utils::Json::JsonView jsonValue);
34 AWS_FORECASTSERVICE_API IntegerParameterRange& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline int GetMaxValue() const { return m_maxValue; }
60 inline bool MaxValueHasBeenSet() const { return m_maxValueHasBeenSet; }
61 inline void SetMaxValue(int value) {
62 m_maxValueHasBeenSet = true;
63 m_maxValue = value;
64 }
66 SetMaxValue(value);
67 return *this;
68 }
70
72
75 inline int GetMinValue() const { return m_minValue; }
76 inline bool MinValueHasBeenSet() const { return m_minValueHasBeenSet; }
77 inline void SetMinValue(int value) {
78 m_minValueHasBeenSet = true;
79 m_minValue = value;
80 }
82 SetMinValue(value);
83 return *this;
84 }
86
88
103 inline ScalingType GetScalingType() const { return m_scalingType; }
104 inline bool ScalingTypeHasBeenSet() const { return m_scalingTypeHasBeenSet; }
105 inline void SetScalingType(ScalingType value) {
106 m_scalingTypeHasBeenSet = true;
107 m_scalingType = value;
108 }
110 SetScalingType(value);
111 return *this;
112 }
114 private:
115 Aws::String m_name;
116
117 int m_maxValue{0};
118
119 int m_minValue{0};
120
121 ScalingType m_scalingType{ScalingType::NOT_SET};
122 bool m_nameHasBeenSet = false;
123 bool m_maxValueHasBeenSet = false;
124 bool m_minValueHasBeenSet = false;
125 bool m_scalingTypeHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace ForecastService
130} // namespace Aws
AWS_FORECASTSERVICE_API IntegerParameterRange & operator=(Aws::Utils::Json::JsonView jsonValue)
IntegerParameterRange & WithName(NameT &&value)
AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
IntegerParameterRange & WithScalingType(ScalingType value)
AWS_FORECASTSERVICE_API IntegerParameterRange()=default
AWS_FORECASTSERVICE_API IntegerParameterRange(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue