AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateDataTableAttributeRequest.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 UpdateDataTableAttributeRequest() = 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 "UpdateDataTableAttribute"; }
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
56 inline const Aws::String& GetDataTableId() const { return m_dataTableId; }
57 inline bool DataTableIdHasBeenSet() const { return m_dataTableIdHasBeenSet; }
58 template <typename DataTableIdT = Aws::String>
59 void SetDataTableId(DataTableIdT&& value) {
60 m_dataTableIdHasBeenSet = true;
61 m_dataTableId = std::forward<DataTableIdT>(value);
62 }
63 template <typename DataTableIdT = Aws::String>
65 SetDataTableId(std::forward<DataTableIdT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
76 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
77 template <typename AttributeNameT = Aws::String>
78 void SetAttributeName(AttributeNameT&& value) {
79 m_attributeNameHasBeenSet = true;
80 m_attributeName = std::forward<AttributeNameT>(value);
81 }
82 template <typename AttributeNameT = Aws::String>
84 SetAttributeName(std::forward<AttributeNameT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetName() const { return m_name; }
95 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
96 template <typename NameT = Aws::String>
97 void SetName(NameT&& value) {
98 m_nameHasBeenSet = true;
99 m_name = std::forward<NameT>(value);
100 }
101 template <typename NameT = Aws::String>
103 SetName(std::forward<NameT>(value));
104 return *this;
105 }
107
109
113 inline DataTableAttributeValueType GetValueType() const { return m_valueType; }
114 inline bool ValueTypeHasBeenSet() const { return m_valueTypeHasBeenSet; }
116 m_valueTypeHasBeenSet = true;
117 m_valueType = value;
118 }
120 SetValueType(value);
121 return *this;
122 }
124
126
129 inline const Aws::String& GetDescription() const { return m_description; }
130 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
131 template <typename DescriptionT = Aws::String>
132 void SetDescription(DescriptionT&& value) {
133 m_descriptionHasBeenSet = true;
134 m_description = std::forward<DescriptionT>(value);
135 }
136 template <typename DescriptionT = Aws::String>
138 SetDescription(std::forward<DescriptionT>(value));
139 return *this;
140 }
142
144
148 inline bool GetPrimary() const { return m_primary; }
149 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
150 inline void SetPrimary(bool value) {
151 m_primaryHasBeenSet = true;
152 m_primary = value;
153 }
155 SetPrimary(value);
156 return *this;
157 }
159
161
165 inline const Validation& GetValidation() const { return m_validation; }
166 inline bool ValidationHasBeenSet() const { return m_validationHasBeenSet; }
167 template <typename ValidationT = Validation>
168 void SetValidation(ValidationT&& value) {
169 m_validationHasBeenSet = true;
170 m_validation = std::forward<ValidationT>(value);
171 }
172 template <typename ValidationT = Validation>
174 SetValidation(std::forward<ValidationT>(value));
175 return *this;
176 }
178 private:
179 Aws::String m_instanceId;
180
181 Aws::String m_dataTableId;
182
183 Aws::String m_attributeName;
184
185 Aws::String m_name;
186
188
189 Aws::String m_description;
190
191 bool m_primary{false};
192
193 Validation m_validation;
194 bool m_instanceIdHasBeenSet = false;
195 bool m_dataTableIdHasBeenSet = false;
196 bool m_attributeNameHasBeenSet = false;
197 bool m_nameHasBeenSet = false;
198 bool m_valueTypeHasBeenSet = false;
199 bool m_descriptionHasBeenSet = false;
200 bool m_primaryHasBeenSet = false;
201 bool m_validationHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace Connect
206} // namespace Aws
AWS_CONNECT_API Aws::String SerializePayload() const override
UpdateDataTableAttributeRequest & WithValidation(ValidationT &&value)
UpdateDataTableAttributeRequest & WithAttributeName(AttributeNameT &&value)
UpdateDataTableAttributeRequest & WithInstanceId(InstanceIdT &&value)
AWS_CONNECT_API UpdateDataTableAttributeRequest()=default
UpdateDataTableAttributeRequest & WithDataTableId(DataTableIdT &&value)
UpdateDataTableAttributeRequest & WithPrimary(bool value)
UpdateDataTableAttributeRequest & WithName(NameT &&value)
UpdateDataTableAttributeRequest & WithDescription(DescriptionT &&value)
UpdateDataTableAttributeRequest & WithValueType(DataTableAttributeValueType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String