AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
StepAmountCapability.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/deadline/Deadline_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace deadline {
20namespace Model {
21
29 public:
30 AWS_DEADLINE_API StepAmountCapability() = default;
33 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline double GetMin() const { return m_min; }
58 inline bool MinHasBeenSet() const { return m_minHasBeenSet; }
59 inline void SetMin(double value) {
60 m_minHasBeenSet = true;
61 m_min = value;
62 }
63 inline StepAmountCapability& WithMin(double value) {
64 SetMin(value);
65 return *this;
66 }
68
70
73 inline double GetMax() const { return m_max; }
74 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
75 inline void SetMax(double value) {
76 m_maxHasBeenSet = true;
77 m_max = value;
78 }
79 inline StepAmountCapability& WithMax(double value) {
80 SetMax(value);
81 return *this;
82 }
84
86
89 inline double GetValue() const { return m_value; }
90 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
91 inline void SetValue(double value) {
92 m_valueHasBeenSet = true;
93 m_value = value;
94 }
95 inline StepAmountCapability& WithValue(double value) {
96 SetValue(value);
97 return *this;
98 }
100 private:
101 Aws::String m_name;
102
103 double m_min{0.0};
104
105 double m_max{0.0};
106
107 double m_value{0.0};
108 bool m_nameHasBeenSet = false;
109 bool m_minHasBeenSet = false;
110 bool m_maxHasBeenSet = false;
111 bool m_valueHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace deadline
116} // namespace Aws
StepAmountCapability & WithValue(double value)
AWS_DEADLINE_API StepAmountCapability & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEADLINE_API StepAmountCapability()=default
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
StepAmountCapability & WithName(NameT &&value)
AWS_DEADLINE_API StepAmountCapability(Aws::Utils::Json::JsonView jsonValue)
StepAmountCapability & WithMin(double value)
StepAmountCapability & WithMax(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue