AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
CommandParameterValue.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
31 public:
32 AWS_IOT_API CommandParameterValue() = default;
36
38
42 inline const Aws::String& GetS() const { return m_s; }
43 inline bool SHasBeenSet() const { return m_sHasBeenSet; }
44 template <typename ST = Aws::String>
45 void SetS(ST&& value) {
46 m_sHasBeenSet = true;
47 m_s = std::forward<ST>(value);
48 }
49 template <typename ST = Aws::String>
51 SetS(std::forward<ST>(value));
52 return *this;
53 }
55
57
61 inline bool GetB() const { return m_b; }
62 inline bool BHasBeenSet() const { return m_bHasBeenSet; }
63 inline void SetB(bool value) {
64 m_bHasBeenSet = true;
65 m_b = value;
66 }
67 inline CommandParameterValue& WithB(bool value) {
68 SetB(value);
69 return *this;
70 }
72
74
77 inline int GetI() const { return m_i; }
78 inline bool IHasBeenSet() const { return m_iHasBeenSet; }
79 inline void SetI(int value) {
80 m_iHasBeenSet = true;
81 m_i = value;
82 }
83 inline CommandParameterValue& WithI(int value) {
84 SetI(value);
85 return *this;
86 }
88
90
93 inline long long GetL() const { return m_l; }
94 inline bool LHasBeenSet() const { return m_lHasBeenSet; }
95 inline void SetL(long long value) {
96 m_lHasBeenSet = true;
97 m_l = value;
98 }
99 inline CommandParameterValue& WithL(long long value) {
100 SetL(value);
101 return *this;
102 }
104
106
109 inline double GetD() const { return m_d; }
110 inline bool DHasBeenSet() const { return m_dHasBeenSet; }
111 inline void SetD(double value) {
112 m_dHasBeenSet = true;
113 m_d = value;
114 }
115 inline CommandParameterValue& WithD(double value) {
116 SetD(value);
117 return *this;
118 }
120
122
126 inline const Aws::Utils::ByteBuffer& GetBIN() const { return m_bIN; }
127 inline bool BINHasBeenSet() const { return m_bINHasBeenSet; }
128 template <typename BINT = Aws::Utils::ByteBuffer>
129 void SetBIN(BINT&& value) {
130 m_bINHasBeenSet = true;
131 m_bIN = std::forward<BINT>(value);
132 }
133 template <typename BINT = Aws::Utils::ByteBuffer>
135 SetBIN(std::forward<BINT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::String& GetUL() const { return m_uL; }
145 inline bool ULHasBeenSet() const { return m_uLHasBeenSet; }
146 template <typename ULT = Aws::String>
147 void SetUL(ULT&& value) {
148 m_uLHasBeenSet = true;
149 m_uL = std::forward<ULT>(value);
150 }
151 template <typename ULT = Aws::String>
153 SetUL(std::forward<ULT>(value));
154 return *this;
155 }
157 private:
158 Aws::String m_s;
159
160 bool m_b{false};
161
162 int m_i{0};
163
164 long long m_l{0};
165
166 double m_d{0.0};
167
169
170 Aws::String m_uL;
171 bool m_sHasBeenSet = false;
172 bool m_bHasBeenSet = false;
173 bool m_iHasBeenSet = false;
174 bool m_lHasBeenSet = false;
175 bool m_dHasBeenSet = false;
176 bool m_bINHasBeenSet = false;
177 bool m_uLHasBeenSet = false;
178};
179
180} // namespace Model
181} // namespace IoT
182} // namespace Aws
CommandParameterValue & WithBIN(BINT &&value)
CommandParameterValue & WithUL(ULT &&value)
AWS_IOT_API CommandParameterValue()=default
CommandParameterValue & WithD(double value)
CommandParameterValue & WithI(int value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
CommandParameterValue & WithB(bool value)
CommandParameterValue & WithL(long long value)
AWS_IOT_API CommandParameterValue(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::ByteBuffer & GetBIN() const
AWS_IOT_API CommandParameterValue & operator=(Aws::Utils::Json::JsonView jsonValue)
CommandParameterValue & WithS(ST &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue