AWS SDK for C++  1.8.95
AWS SDK for C++
SqlParameter.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace RDSDataService
24 {
25 namespace Model
26 {
27 
34  {
35  public:
36  SqlParameter();
38  SqlParameter& operator=(Aws::Utils::Json::JsonView jsonValue);
39  Aws::Utils::Json::JsonValue Jsonize() const;
40 
41 
45  inline const Aws::String& GetName() const{ return m_name; }
46 
50  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 
55  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 
60  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 
65  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 
70  inline SqlParameter& WithName(const Aws::String& value) { SetName(value); return *this;}
71 
75  inline SqlParameter& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 
80  inline SqlParameter& WithName(const char* value) { SetName(value); return *this;}
81 
82 
98  inline const TypeHint& GetTypeHint() const{ return m_typeHint; }
99 
115  inline bool TypeHintHasBeenSet() const { return m_typeHintHasBeenSet; }
116 
132  inline void SetTypeHint(const TypeHint& value) { m_typeHintHasBeenSet = true; m_typeHint = value; }
133 
149  inline void SetTypeHint(TypeHint&& value) { m_typeHintHasBeenSet = true; m_typeHint = std::move(value); }
150 
166  inline SqlParameter& WithTypeHint(const TypeHint& value) { SetTypeHint(value); return *this;}
167 
183  inline SqlParameter& WithTypeHint(TypeHint&& value) { SetTypeHint(std::move(value)); return *this;}
184 
185 
189  inline const Field& GetValue() const{ return m_value; }
190 
194  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
195 
199  inline void SetValue(const Field& value) { m_valueHasBeenSet = true; m_value = value; }
200 
204  inline void SetValue(Field&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
205 
209  inline SqlParameter& WithValue(const Field& value) { SetValue(value); return *this;}
210 
214  inline SqlParameter& WithValue(Field&& value) { SetValue(std::move(value)); return *this;}
215 
216  private:
217 
218  Aws::String m_name;
219  bool m_nameHasBeenSet;
220 
221  TypeHint m_typeHint;
222  bool m_typeHintHasBeenSet;
223 
224  Field m_value;
225  bool m_valueHasBeenSet;
226  };
227 
228 } // namespace Model
229 } // namespace RDSDataService
230 } // namespace Aws
const TypeHint & GetTypeHint() const
Definition: SqlParameter.h:98
SqlParameter & WithName(const Aws::String &value)
Definition: SqlParameter.h:70
SqlParameter & WithName(Aws::String &&value)
Definition: SqlParameter.h:75
void SetName(Aws::String &&value)
Definition: SqlParameter.h:60
SqlParameter & WithValue(const Field &value)
Definition: SqlParameter.h:209
SqlParameter & WithValue(Field &&value)
Definition: SqlParameter.h:214
const Aws::String & GetName() const
Definition: SqlParameter.h:45
SqlParameter & WithTypeHint(const TypeHint &value)
Definition: SqlParameter.h:166
#define AWS_RDSDATASERVICE_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SqlParameter & WithTypeHint(TypeHint &&value)
Definition: SqlParameter.h:183
SqlParameter & WithName(const char *value)
Definition: SqlParameter.h:80
void SetName(const Aws::String &value)
Definition: SqlParameter.h:55
void SetTypeHint(const TypeHint &value)
Definition: SqlParameter.h:132