AWS SDK for C++

AWS SDK for C++ Version 1.11.689

Loading...
Searching...
No Matches
CreateSchemaRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/GlueRequest.h>
10#include <aws/glue/Glue_EXPORTS.h>
11#include <aws/glue/model/Compatibility.h>
12#include <aws/glue/model/DataFormat.h>
13#include <aws/glue/model/RegistryId.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Glue {
19namespace Model {
20
24 public:
25 AWS_GLUE_API CreateSchemaRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateSchema"; }
32
33 AWS_GLUE_API Aws::String SerializePayload() const override;
34
36
38
44 inline const RegistryId& GetRegistryId() const { return m_registryId; }
45 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
46 template <typename RegistryIdT = RegistryId>
47 void SetRegistryId(RegistryIdT&& value) {
48 m_registryIdHasBeenSet = true;
49 m_registryId = std::forward<RegistryIdT>(value);
50 }
51 template <typename RegistryIdT = RegistryId>
52 CreateSchemaRequest& WithRegistryId(RegistryIdT&& value) {
53 SetRegistryId(std::forward<RegistryIdT>(value));
54 return *this;
55 }
57
59
64 inline const Aws::String& GetSchemaName() const { return m_schemaName; }
65 inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
66 template <typename SchemaNameT = Aws::String>
67 void SetSchemaName(SchemaNameT&& value) {
68 m_schemaNameHasBeenSet = true;
69 m_schemaName = std::forward<SchemaNameT>(value);
70 }
71 template <typename SchemaNameT = Aws::String>
72 CreateSchemaRequest& WithSchemaName(SchemaNameT&& value) {
73 SetSchemaName(std::forward<SchemaNameT>(value));
74 return *this;
75 }
77
79
83 inline DataFormat GetDataFormat() const { return m_dataFormat; }
84 inline bool DataFormatHasBeenSet() const { return m_dataFormatHasBeenSet; }
85 inline void SetDataFormat(DataFormat value) {
86 m_dataFormatHasBeenSet = true;
87 m_dataFormat = value;
88 }
90 SetDataFormat(value);
91 return *this;
92 }
94
96
129 inline Compatibility GetCompatibility() const { return m_compatibility; }
130 inline bool CompatibilityHasBeenSet() const { return m_compatibilityHasBeenSet; }
131 inline void SetCompatibility(Compatibility value) {
132 m_compatibilityHasBeenSet = true;
133 m_compatibility = value;
134 }
136 SetCompatibility(value);
137 return *this;
138 }
140
142
146 inline const Aws::String& GetDescription() const { return m_description; }
147 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
148 template <typename DescriptionT = Aws::String>
149 void SetDescription(DescriptionT&& value) {
150 m_descriptionHasBeenSet = true;
151 m_description = std::forward<DescriptionT>(value);
152 }
153 template <typename DescriptionT = Aws::String>
154 CreateSchemaRequest& WithDescription(DescriptionT&& value) {
155 SetDescription(std::forward<DescriptionT>(value));
156 return *this;
157 }
159
161
166 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
167 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
168 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
169 void SetTags(TagsT&& value) {
170 m_tagsHasBeenSet = true;
171 m_tags = std::forward<TagsT>(value);
172 }
173 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
175 SetTags(std::forward<TagsT>(value));
176 return *this;
177 }
178 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
179 CreateSchemaRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
180 m_tagsHasBeenSet = true;
181 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
182 return *this;
183 }
185
187
191 inline const Aws::String& GetSchemaDefinition() const { return m_schemaDefinition; }
192 inline bool SchemaDefinitionHasBeenSet() const { return m_schemaDefinitionHasBeenSet; }
193 template <typename SchemaDefinitionT = Aws::String>
194 void SetSchemaDefinition(SchemaDefinitionT&& value) {
195 m_schemaDefinitionHasBeenSet = true;
196 m_schemaDefinition = std::forward<SchemaDefinitionT>(value);
197 }
198 template <typename SchemaDefinitionT = Aws::String>
199 CreateSchemaRequest& WithSchemaDefinition(SchemaDefinitionT&& value) {
200 SetSchemaDefinition(std::forward<SchemaDefinitionT>(value));
201 return *this;
202 }
204 private:
205 RegistryId m_registryId;
206 bool m_registryIdHasBeenSet = false;
207
208 Aws::String m_schemaName;
209 bool m_schemaNameHasBeenSet = false;
210
211 DataFormat m_dataFormat{DataFormat::NOT_SET};
212 bool m_dataFormatHasBeenSet = false;
213
214 Compatibility m_compatibility{Compatibility::NOT_SET};
215 bool m_compatibilityHasBeenSet = false;
216
217 Aws::String m_description;
218 bool m_descriptionHasBeenSet = false;
219
221 bool m_tagsHasBeenSet = false;
222
223 Aws::String m_schemaDefinition;
224 bool m_schemaDefinitionHasBeenSet = false;
225};
226
227} // namespace Model
228} // namespace Glue
229} // namespace Aws
CreateSchemaRequest & WithSchemaName(SchemaNameT &&value)
CreateSchemaRequest & WithRegistryId(RegistryIdT &&value)
CreateSchemaRequest & WithCompatibility(Compatibility value)
CreateSchemaRequest & WithTags(TagsT &&value)
void SetSchemaDefinition(SchemaDefinitionT &&value)
virtual const char * GetServiceRequestName() const override
CreateSchemaRequest & WithDescription(DescriptionT &&value)
CreateSchemaRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetSchemaDefinition() const
const Aws::String & GetSchemaName() const
const Aws::String & GetDescription() const
const RegistryId & GetRegistryId() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_GLUE_API Aws::String SerializePayload() const override
CreateSchemaRequest & WithDataFormat(DataFormat value)
CreateSchemaRequest & WithSchemaDefinition(SchemaDefinitionT &&value)
AWS_GLUE_API CreateSchemaRequest()=default
void SetDescription(DescriptionT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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