AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
FloatSetting.h
1
6#pragma once
7#include <aws/cloudextensions/CloudExtensions_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace CloudExtensions {
17namespace Model {
18
26 public:
27 AWS_CLOUDEXTENSIONS_API FloatSetting() = default;
28 AWS_CLOUDEXTENSIONS_API FloatSetting(Aws::Utils::Json::JsonView jsonValue);
29 AWS_CLOUDEXTENSIONS_API FloatSetting& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_CLOUDEXTENSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline double GetDefault() const { return m_default; }
37 inline bool DefaultHasBeenSet() const { return m_defaultHasBeenSet; }
38 inline void SetDefault(double value) {
39 m_defaultHasBeenSet = true;
40 m_default = value;
41 }
42 inline FloatSetting& WithDefault(double value) {
43 SetDefault(value);
44 return *this;
45 }
47
49
52 inline double GetMin() const { return m_min; }
53 inline bool MinHasBeenSet() const { return m_minHasBeenSet; }
54 inline void SetMin(double value) {
55 m_minHasBeenSet = true;
56 m_min = value;
57 }
58 inline FloatSetting& WithMin(double value) {
59 SetMin(value);
60 return *this;
61 }
63
65
68 inline double GetMax() const { return m_max; }
69 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
70 inline void SetMax(double value) {
71 m_maxHasBeenSet = true;
72 m_max = value;
73 }
74 inline FloatSetting& WithMax(double value) {
75 SetMax(value);
76 return *this;
77 }
79 private:
80 double m_default{0.0};
81
82 double m_min{0.0};
83
84 double m_max{0.0};
85 bool m_defaultHasBeenSet = false;
86 bool m_minHasBeenSet = false;
87 bool m_maxHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace CloudExtensions
92} // namespace Aws
AWS_CLOUDEXTENSIONS_API FloatSetting(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDEXTENSIONS_API FloatSetting()=default
AWS_CLOUDEXTENSIONS_API FloatSetting & operator=(Aws::Utils::Json::JsonView jsonValue)
FloatSetting & WithDefault(double value)
AWS_CLOUDEXTENSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
FloatSetting & WithMax(double value)
FloatSetting & WithMin(double value)
Aws::Utils::Json::JsonValue JsonValue