AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateDataTableAttributeRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/DataTableAttributeValueType.h>
10#include <aws/connect/model/Validation.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Connect {
17namespace Model {
18
22 public:
23 AWS_CONNECT_API CreateDataTableAttributeRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateDataTableAttribute"; }
30
31 AWS_CONNECT_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
38 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
39 template <typename InstanceIdT = Aws::String>
40 void SetInstanceId(InstanceIdT&& value) {
41 m_instanceIdHasBeenSet = true;
42 m_instanceId = std::forward<InstanceIdT>(value);
43 }
44 template <typename InstanceIdT = Aws::String>
46 SetInstanceId(std::forward<InstanceIdT>(value));
47 return *this;
48 }
50
52
58 inline const Aws::String& GetDataTableId() const { return m_dataTableId; }
59 inline bool DataTableIdHasBeenSet() const { return m_dataTableIdHasBeenSet; }
60 template <typename DataTableIdT = Aws::String>
61 void SetDataTableId(DataTableIdT&& value) {
62 m_dataTableIdHasBeenSet = true;
63 m_dataTableId = std::forward<DataTableIdT>(value);
64 }
65 template <typename DataTableIdT = Aws::String>
67 SetDataTableId(std::forward<DataTableIdT>(value));
68 return *this;
69 }
71
73
79 inline const Aws::String& GetName() const { return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 template <typename NameT = Aws::String>
82 void SetName(NameT&& value) {
83 m_nameHasBeenSet = true;
84 m_name = std::forward<NameT>(value);
85 }
86 template <typename NameT = Aws::String>
88 SetName(std::forward<NameT>(value));
89 return *this;
90 }
92
94
99 inline DataTableAttributeValueType GetValueType() const { return m_valueType; }
100 inline bool ValueTypeHasBeenSet() const { return m_valueTypeHasBeenSet; }
102 m_valueTypeHasBeenSet = true;
103 m_valueType = value;
104 }
106 SetValueType(value);
107 return *this;
108 }
110
112
117 inline const Aws::String& GetDescription() const { return m_description; }
118 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
119 template <typename DescriptionT = Aws::String>
120 void SetDescription(DescriptionT&& value) {
121 m_descriptionHasBeenSet = true;
122 m_description = std::forward<DescriptionT>(value);
123 }
124 template <typename DescriptionT = Aws::String>
126 SetDescription(std::forward<DescriptionT>(value));
127 return *this;
128 }
130
132
137 inline bool GetPrimary() const { return m_primary; }
138 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
139 inline void SetPrimary(bool value) {
140 m_primaryHasBeenSet = true;
141 m_primary = value;
142 }
144 SetPrimary(value);
145 return *this;
146 }
148
150
156 inline const Validation& GetValidation() const { return m_validation; }
157 inline bool ValidationHasBeenSet() const { return m_validationHasBeenSet; }
158 template <typename ValidationT = Validation>
159 void SetValidation(ValidationT&& value) {
160 m_validationHasBeenSet = true;
161 m_validation = std::forward<ValidationT>(value);
162 }
163 template <typename ValidationT = Validation>
165 SetValidation(std::forward<ValidationT>(value));
166 return *this;
167 }
169 private:
170 Aws::String m_instanceId;
171
172 Aws::String m_dataTableId;
173
174 Aws::String m_name;
175
177
178 Aws::String m_description;
179
180 bool m_primary{false};
181
182 Validation m_validation;
183 bool m_instanceIdHasBeenSet = false;
184 bool m_dataTableIdHasBeenSet = false;
185 bool m_nameHasBeenSet = false;
186 bool m_valueTypeHasBeenSet = false;
187 bool m_descriptionHasBeenSet = false;
188 bool m_primaryHasBeenSet = false;
189 bool m_validationHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace Connect
194} // namespace Aws
CreateDataTableAttributeRequest & WithDataTableId(DataTableIdT &&value)
AWS_CONNECT_API CreateDataTableAttributeRequest()=default
CreateDataTableAttributeRequest & WithName(NameT &&value)
CreateDataTableAttributeRequest & WithValueType(DataTableAttributeValueType value)
CreateDataTableAttributeRequest & WithDescription(DescriptionT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
CreateDataTableAttributeRequest & WithPrimary(bool value)
CreateDataTableAttributeRequest & WithInstanceId(InstanceIdT &&value)
CreateDataTableAttributeRequest & WithValidation(ValidationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String