AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename RegistryIdT = RegistryId>
51 void SetRegistryId(RegistryIdT&& value) { m_registryIdHasBeenSet = true; m_registryId = std::forward<RegistryIdT>(value); }
52 template<typename RegistryIdT = RegistryId>
53 CreateSchemaRequest& WithRegistryId(RegistryIdT&& value) { SetRegistryId(std::forward<RegistryIdT>(value)); return *this;}
55
57
62 inline const Aws::String& GetSchemaName() const { return m_schemaName; }
63 inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
64 template<typename SchemaNameT = Aws::String>
65 void SetSchemaName(SchemaNameT&& value) { m_schemaNameHasBeenSet = true; m_schemaName = std::forward<SchemaNameT>(value); }
66 template<typename SchemaNameT = Aws::String>
67 CreateSchemaRequest& WithSchemaName(SchemaNameT&& value) { SetSchemaName(std::forward<SchemaNameT>(value)); return *this;}
69
71
75 inline DataFormat GetDataFormat() const { return m_dataFormat; }
76 inline bool DataFormatHasBeenSet() const { return m_dataFormatHasBeenSet; }
77 inline void SetDataFormat(DataFormat value) { m_dataFormatHasBeenSet = true; m_dataFormat = value; }
78 inline CreateSchemaRequest& WithDataFormat(DataFormat value) { SetDataFormat(value); return *this;}
80
82
115 inline Compatibility GetCompatibility() const { return m_compatibility; }
116 inline bool CompatibilityHasBeenSet() const { return m_compatibilityHasBeenSet; }
117 inline void SetCompatibility(Compatibility value) { m_compatibilityHasBeenSet = true; m_compatibility = value; }
120
122
126 inline const Aws::String& GetDescription() const { return m_description; }
127 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
128 template<typename DescriptionT = Aws::String>
129 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
130 template<typename DescriptionT = Aws::String>
131 CreateSchemaRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
133
135
140 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
141 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
142 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
143 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
144 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
145 CreateSchemaRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
146 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
147 CreateSchemaRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
148 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
149 }
151
153
157 inline const Aws::String& GetSchemaDefinition() const { return m_schemaDefinition; }
158 inline bool SchemaDefinitionHasBeenSet() const { return m_schemaDefinitionHasBeenSet; }
159 template<typename SchemaDefinitionT = Aws::String>
160 void SetSchemaDefinition(SchemaDefinitionT&& value) { m_schemaDefinitionHasBeenSet = true; m_schemaDefinition = std::forward<SchemaDefinitionT>(value); }
161 template<typename SchemaDefinitionT = Aws::String>
162 CreateSchemaRequest& WithSchemaDefinition(SchemaDefinitionT&& value) { SetSchemaDefinition(std::forward<SchemaDefinitionT>(value)); return *this;}
164 private:
165
166 RegistryId m_registryId;
167 bool m_registryIdHasBeenSet = false;
168
169 Aws::String m_schemaName;
170 bool m_schemaNameHasBeenSet = false;
171
172 DataFormat m_dataFormat{DataFormat::NOT_SET};
173 bool m_dataFormatHasBeenSet = false;
174
175 Compatibility m_compatibility{Compatibility::NOT_SET};
176 bool m_compatibilityHasBeenSet = false;
177
178 Aws::String m_description;
179 bool m_descriptionHasBeenSet = false;
180
182 bool m_tagsHasBeenSet = false;
183
184 Aws::String m_schemaDefinition;
185 bool m_schemaDefinitionHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace Glue
190} // 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