AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
SqlParameter.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rds-data/RDSDataService_EXPORTS.h>
9#include <aws/rds-data/model/Field.h>
10#include <aws/rds-data/model/TypeHint.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace RDSDataService {
22namespace Model {
23
30 public:
31 AWS_RDSDATASERVICE_API SqlParameter() = default;
32 AWS_RDSDATASERVICE_API SqlParameter(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RDSDATASERVICE_API SqlParameter& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RDSDATASERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 SqlParameter& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Field& GetValue() const { return m_value; }
59 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
60 template <typename ValueT = Field>
61 void SetValue(ValueT&& value) {
62 m_valueHasBeenSet = true;
63 m_value = std::forward<ValueT>(value);
64 }
65 template <typename ValueT = Field>
66 SqlParameter& WithValue(ValueT&& value) {
67 SetValue(std::forward<ValueT>(value));
68 return *this;
69 }
71
73
92 inline TypeHint GetTypeHint() const { return m_typeHint; }
93 inline bool TypeHintHasBeenSet() const { return m_typeHintHasBeenSet; }
94 inline void SetTypeHint(TypeHint value) {
95 m_typeHintHasBeenSet = true;
96 m_typeHint = value;
97 }
99 SetTypeHint(value);
100 return *this;
101 }
103 private:
104 Aws::String m_name;
105
106 Field m_value;
107
108 TypeHint m_typeHint{TypeHint::NOT_SET};
109 bool m_nameHasBeenSet = false;
110 bool m_valueHasBeenSet = false;
111 bool m_typeHintHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace RDSDataService
116} // namespace Aws
SqlParameter & WithTypeHint(TypeHint value)
AWS_RDSDATASERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_RDSDATASERVICE_API SqlParameter()=default
SqlParameter & WithName(NameT &&value)
SqlParameter & WithValue(ValueT &&value)
AWS_RDSDATASERVICE_API SqlParameter & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_RDSDATASERVICE_API SqlParameter(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue