AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateDataTableRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/DataTableLockLevel.h>
10#include <aws/connect/model/DataTableStatus.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Connect {
18namespace Model {
19
23 public:
24 AWS_CONNECT_API CreateDataTableRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateDataTable"; }
31
32 AWS_CONNECT_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
40 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
41 template <typename InstanceIdT = Aws::String>
42 void SetInstanceId(InstanceIdT&& value) {
43 m_instanceIdHasBeenSet = true;
44 m_instanceId = std::forward<InstanceIdT>(value);
45 }
46 template <typename InstanceIdT = Aws::String>
47 CreateDataTableRequest& WithInstanceId(InstanceIdT&& value) {
48 SetInstanceId(std::forward<InstanceIdT>(value));
49 return *this;
50 }
52
54
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template <typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) {
84 m_descriptionHasBeenSet = true;
85 m_description = std::forward<DescriptionT>(value);
86 }
87 template <typename DescriptionT = Aws::String>
88 CreateDataTableRequest& WithDescription(DescriptionT&& value) {
89 SetDescription(std::forward<DescriptionT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetTimeZone() const { return m_timeZone; }
100 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
101 template <typename TimeZoneT = Aws::String>
102 void SetTimeZone(TimeZoneT&& value) {
103 m_timeZoneHasBeenSet = true;
104 m_timeZone = std::forward<TimeZoneT>(value);
105 }
106 template <typename TimeZoneT = Aws::String>
108 SetTimeZone(std::forward<TimeZoneT>(value));
109 return *this;
110 }
112
114
120 inline DataTableLockLevel GetValueLockLevel() const { return m_valueLockLevel; }
121 inline bool ValueLockLevelHasBeenSet() const { return m_valueLockLevelHasBeenSet; }
123 m_valueLockLevelHasBeenSet = true;
124 m_valueLockLevel = value;
125 }
127 SetValueLockLevel(value);
128 return *this;
129 }
131
133
137 inline DataTableStatus GetStatus() const { return m_status; }
138 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
139 inline void SetStatus(DataTableStatus value) {
140 m_statusHasBeenSet = true;
141 m_status = value;
142 }
144 SetStatus(value);
145 return *this;
146 }
148
150
155 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
156 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
157 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
158 void SetTags(TagsT&& value) {
159 m_tagsHasBeenSet = true;
160 m_tags = std::forward<TagsT>(value);
161 }
162 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
164 SetTags(std::forward<TagsT>(value));
165 return *this;
166 }
167 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
168 CreateDataTableRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
169 m_tagsHasBeenSet = true;
170 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
171 return *this;
172 }
174 private:
175 Aws::String m_instanceId;
176
177 Aws::String m_name;
178
179 Aws::String m_description;
180
181 Aws::String m_timeZone;
182
184
186
188 bool m_instanceIdHasBeenSet = false;
189 bool m_nameHasBeenSet = false;
190 bool m_descriptionHasBeenSet = false;
191 bool m_timeZoneHasBeenSet = false;
192 bool m_valueLockLevelHasBeenSet = false;
193 bool m_statusHasBeenSet = false;
194 bool m_tagsHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace Connect
199} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateDataTableRequest & WithInstanceId(InstanceIdT &&value)
CreateDataTableRequest & WithTags(TagsT &&value)
CreateDataTableRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateDataTableRequest & WithStatus(DataTableStatus value)
CreateDataTableRequest & WithValueLockLevel(DataTableLockLevel value)
CreateDataTableRequest & WithDescription(DescriptionT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
AWS_CONNECT_API CreateDataTableRequest()=default
virtual const char * GetServiceRequestName() const override
CreateDataTableRequest & WithTimeZone(TimeZoneT &&value)
CreateDataTableRequest & WithName(NameT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String