AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
IntegerSetting.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
25 public:
26 AWS_CLOUDEXTENSIONS_API IntegerSetting() = default;
27 AWS_CLOUDEXTENSIONS_API IntegerSetting(Aws::Utils::Json::JsonView jsonValue);
28 AWS_CLOUDEXTENSIONS_API IntegerSetting& operator=(Aws::Utils::Json::JsonView jsonValue);
29 AWS_CLOUDEXTENSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
35 inline long long GetDefault() const { return m_default; }
36 inline bool DefaultHasBeenSet() const { return m_defaultHasBeenSet; }
37 inline void SetDefault(long long value) {
38 m_defaultHasBeenSet = true;
39 m_default = value;
40 }
41 inline IntegerSetting& WithDefault(long long value) {
42 SetDefault(value);
43 return *this;
44 }
46
48
51 inline long long GetMin() const { return m_min; }
52 inline bool MinHasBeenSet() const { return m_minHasBeenSet; }
53 inline void SetMin(long long value) {
54 m_minHasBeenSet = true;
55 m_min = value;
56 }
57 inline IntegerSetting& WithMin(long long value) {
58 SetMin(value);
59 return *this;
60 }
62
64
67 inline long long GetMax() const { return m_max; }
68 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
69 inline void SetMax(long long value) {
70 m_maxHasBeenSet = true;
71 m_max = value;
72 }
73 inline IntegerSetting& WithMax(long long value) {
74 SetMax(value);
75 return *this;
76 }
78 private:
79 long long m_default{0};
80
81 long long m_min{0};
82
83 long long m_max{0};
84 bool m_defaultHasBeenSet = false;
85 bool m_minHasBeenSet = false;
86 bool m_maxHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace CloudExtensions
91} // namespace Aws
IntegerSetting & WithMin(long long value)
AWS_CLOUDEXTENSIONS_API IntegerSetting & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDEXTENSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
IntegerSetting & WithMax(long long value)
IntegerSetting & WithDefault(long long value)
AWS_CLOUDEXTENSIONS_API IntegerSetting()=default
AWS_CLOUDEXTENSIONS_API IntegerSetting(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue