AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSchemaRequest.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/GlueRequest.h>
9#include <aws/glue/model/RegistryId.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/glue/model/DataFormat.h>
12#include <aws/glue/model/Compatibility.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Glue
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_GLUE_API CreateSchemaRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateSchema"; }
35
36 AWS_GLUE_API Aws::String SerializePayload() const override;
37
39
40
42
48 inline const RegistryId& GetRegistryId() const{ return m_registryId; }
49 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
50 inline void SetRegistryId(const RegistryId& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
51 inline void SetRegistryId(RegistryId&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
52 inline CreateSchemaRequest& WithRegistryId(const RegistryId& value) { SetRegistryId(value); return *this;}
53 inline CreateSchemaRequest& WithRegistryId(RegistryId&& value) { SetRegistryId(std::move(value)); return *this;}
55
57
62 inline const Aws::String& GetSchemaName() const{ return m_schemaName; }
63 inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
64 inline void SetSchemaName(const Aws::String& value) { m_schemaNameHasBeenSet = true; m_schemaName = value; }
65 inline void SetSchemaName(Aws::String&& value) { m_schemaNameHasBeenSet = true; m_schemaName = std::move(value); }
66 inline void SetSchemaName(const char* value) { m_schemaNameHasBeenSet = true; m_schemaName.assign(value); }
67 inline CreateSchemaRequest& WithSchemaName(const Aws::String& value) { SetSchemaName(value); return *this;}
68 inline CreateSchemaRequest& WithSchemaName(Aws::String&& value) { SetSchemaName(std::move(value)); return *this;}
69 inline CreateSchemaRequest& WithSchemaName(const char* value) { SetSchemaName(value); return *this;}
71
73
77 inline const DataFormat& GetDataFormat() const{ return m_dataFormat; }
78 inline bool DataFormatHasBeenSet() const { return m_dataFormatHasBeenSet; }
79 inline void SetDataFormat(const DataFormat& value) { m_dataFormatHasBeenSet = true; m_dataFormat = value; }
80 inline void SetDataFormat(DataFormat&& value) { m_dataFormatHasBeenSet = true; m_dataFormat = std::move(value); }
81 inline CreateSchemaRequest& WithDataFormat(const DataFormat& value) { SetDataFormat(value); return *this;}
82 inline CreateSchemaRequest& WithDataFormat(DataFormat&& value) { SetDataFormat(std::move(value)); return *this;}
84
86
119 inline const Compatibility& GetCompatibility() const{ return m_compatibility; }
120 inline bool CompatibilityHasBeenSet() const { return m_compatibilityHasBeenSet; }
121 inline void SetCompatibility(const Compatibility& value) { m_compatibilityHasBeenSet = true; m_compatibility = value; }
122 inline void SetCompatibility(Compatibility&& value) { m_compatibilityHasBeenSet = true; m_compatibility = std::move(value); }
123 inline CreateSchemaRequest& WithCompatibility(const Compatibility& value) { SetCompatibility(value); return *this;}
124 inline CreateSchemaRequest& WithCompatibility(Compatibility&& value) { SetCompatibility(std::move(value)); return *this;}
126
128
132 inline const Aws::String& GetDescription() const{ return m_description; }
133 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
134 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
135 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
136 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
137 inline CreateSchemaRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
138 inline CreateSchemaRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
139 inline CreateSchemaRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
141
143
148 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
149 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
150 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
151 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
152 inline CreateSchemaRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
153 inline CreateSchemaRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
154 inline CreateSchemaRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
155 inline CreateSchemaRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
156 inline CreateSchemaRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
157 inline CreateSchemaRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
158 inline CreateSchemaRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
159 inline CreateSchemaRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
160 inline CreateSchemaRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
162
164
168 inline const Aws::String& GetSchemaDefinition() const{ return m_schemaDefinition; }
169 inline bool SchemaDefinitionHasBeenSet() const { return m_schemaDefinitionHasBeenSet; }
170 inline void SetSchemaDefinition(const Aws::String& value) { m_schemaDefinitionHasBeenSet = true; m_schemaDefinition = value; }
171 inline void SetSchemaDefinition(Aws::String&& value) { m_schemaDefinitionHasBeenSet = true; m_schemaDefinition = std::move(value); }
172 inline void SetSchemaDefinition(const char* value) { m_schemaDefinitionHasBeenSet = true; m_schemaDefinition.assign(value); }
173 inline CreateSchemaRequest& WithSchemaDefinition(const Aws::String& value) { SetSchemaDefinition(value); return *this;}
174 inline CreateSchemaRequest& WithSchemaDefinition(Aws::String&& value) { SetSchemaDefinition(std::move(value)); return *this;}
175 inline CreateSchemaRequest& WithSchemaDefinition(const char* value) { SetSchemaDefinition(value); return *this;}
177 private:
178
179 RegistryId m_registryId;
180 bool m_registryIdHasBeenSet = false;
181
182 Aws::String m_schemaName;
183 bool m_schemaNameHasBeenSet = false;
184
185 DataFormat m_dataFormat;
186 bool m_dataFormatHasBeenSet = false;
187
188 Compatibility m_compatibility;
189 bool m_compatibilityHasBeenSet = false;
190
191 Aws::String m_description;
192 bool m_descriptionHasBeenSet = false;
193
195 bool m_tagsHasBeenSet = false;
196
197 Aws::String m_schemaDefinition;
198 bool m_schemaDefinitionHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace Glue
203} // namespace Aws
CreateSchemaRequest & WithDescription(Aws::String &&value)
CreateSchemaRequest & WithDataFormat(const DataFormat &value)
void SetDataFormat(const DataFormat &value)
CreateSchemaRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetCompatibility(Compatibility &&value)
void SetRegistryId(const RegistryId &value)
virtual const char * GetServiceRequestName() const override
void SetSchemaDefinition(const Aws::String &value)
CreateSchemaRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSchemaRequest & WithSchemaDefinition(const char *value)
CreateSchemaRequest & AddTags(const char *key, const char *value)
const DataFormat & GetDataFormat() const
CreateSchemaRequest & WithRegistryId(RegistryId &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSchemaRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateSchemaRequest & WithSchemaName(const Aws::String &value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateSchemaRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateSchemaRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateSchemaRequest & WithDataFormat(DataFormat &&value)
const Aws::String & GetSchemaDefinition() const
const Aws::String & GetSchemaName() const
CreateSchemaRequest & WithSchemaDefinition(Aws::String &&value)
CreateSchemaRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateSchemaRequest & WithSchemaDefinition(const Aws::String &value)
CreateSchemaRequest & WithRegistryId(const RegistryId &value)
const Aws::String & GetDescription() const
void SetSchemaName(const Aws::String &value)
const RegistryId & GetRegistryId() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateSchemaRequest & WithSchemaName(const char *value)
AWS_GLUE_API Aws::String SerializePayload() const override
CreateSchemaRequest & WithSchemaName(Aws::String &&value)
CreateSchemaRequest & WithDescription(const char *value)
const Compatibility & GetCompatibility() const
CreateSchemaRequest & WithCompatibility(Compatibility &&value)
CreateSchemaRequest & AddTags(Aws::String &&key, const char *value)
CreateSchemaRequest & WithDescription(const Aws::String &value)
void SetDescription(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetCompatibility(const Compatibility &value)
CreateSchemaRequest & AddTags(const char *key, Aws::String &&value)
void SetSchemaDefinition(Aws::String &&value)
CreateSchemaRequest & WithCompatibility(const Compatibility &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