AWS SDK for C++  1.8.127
AWS SDK for C++
CreateSchemaRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/schemas/model/Type.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Schemas
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateSchema"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::String& GetContent() const{ return m_content; }
41 
45  inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
46 
50  inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
51 
55  inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
56 
60  inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
61 
65  inline CreateSchemaRequest& WithContent(const Aws::String& value) { SetContent(value); return *this;}
66 
70  inline CreateSchemaRequest& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
71 
75  inline CreateSchemaRequest& WithContent(const char* value) { SetContent(value); return *this;}
76 
77 
81  inline const Aws::String& GetDescription() const{ return m_description; }
82 
86  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 
91  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
92 
96  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
97 
101  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
102 
106  inline CreateSchemaRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
107 
111  inline CreateSchemaRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
112 
116  inline CreateSchemaRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
117 
118 
122  inline const Aws::String& GetRegistryName() const{ return m_registryName; }
123 
127  inline bool RegistryNameHasBeenSet() const { return m_registryNameHasBeenSet; }
128 
132  inline void SetRegistryName(const Aws::String& value) { m_registryNameHasBeenSet = true; m_registryName = value; }
133 
137  inline void SetRegistryName(Aws::String&& value) { m_registryNameHasBeenSet = true; m_registryName = std::move(value); }
138 
142  inline void SetRegistryName(const char* value) { m_registryNameHasBeenSet = true; m_registryName.assign(value); }
143 
147  inline CreateSchemaRequest& WithRegistryName(const Aws::String& value) { SetRegistryName(value); return *this;}
148 
152  inline CreateSchemaRequest& WithRegistryName(Aws::String&& value) { SetRegistryName(std::move(value)); return *this;}
153 
157  inline CreateSchemaRequest& WithRegistryName(const char* value) { SetRegistryName(value); return *this;}
158 
159 
163  inline const Aws::String& GetSchemaName() const{ return m_schemaName; }
164 
168  inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
169 
173  inline void SetSchemaName(const Aws::String& value) { m_schemaNameHasBeenSet = true; m_schemaName = value; }
174 
178  inline void SetSchemaName(Aws::String&& value) { m_schemaNameHasBeenSet = true; m_schemaName = std::move(value); }
179 
183  inline void SetSchemaName(const char* value) { m_schemaNameHasBeenSet = true; m_schemaName.assign(value); }
184 
188  inline CreateSchemaRequest& WithSchemaName(const Aws::String& value) { SetSchemaName(value); return *this;}
189 
193  inline CreateSchemaRequest& WithSchemaName(Aws::String&& value) { SetSchemaName(std::move(value)); return *this;}
194 
198  inline CreateSchemaRequest& WithSchemaName(const char* value) { SetSchemaName(value); return *this;}
199 
200 
204  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
205 
209  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
210 
214  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
215 
219  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
220 
224  inline CreateSchemaRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
225 
229  inline CreateSchemaRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
230 
234  inline CreateSchemaRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
235 
239  inline CreateSchemaRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
240 
244  inline CreateSchemaRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
245 
249  inline CreateSchemaRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
250 
254  inline CreateSchemaRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
255 
259  inline CreateSchemaRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
260 
264  inline CreateSchemaRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
265 
266 
270  inline const Type& GetType() const{ return m_type; }
271 
275  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
276 
280  inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
281 
285  inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
286 
290  inline CreateSchemaRequest& WithType(const Type& value) { SetType(value); return *this;}
291 
295  inline CreateSchemaRequest& WithType(Type&& value) { SetType(std::move(value)); return *this;}
296 
297  private:
298 
299  Aws::String m_content;
300  bool m_contentHasBeenSet;
301 
302  Aws::String m_description;
303  bool m_descriptionHasBeenSet;
304 
305  Aws::String m_registryName;
306  bool m_registryNameHasBeenSet;
307 
308  Aws::String m_schemaName;
309  bool m_schemaNameHasBeenSet;
310 
312  bool m_tagsHasBeenSet;
313 
314  Type m_type;
315  bool m_typeHasBeenSet;
316  };
317 
318 } // namespace Model
319 } // namespace Schemas
320 } // namespace Aws
Aws::Schemas::Model::CreateSchemaRequest::SetContent
void SetContent(const Aws::String &value)
Definition: CreateSchemaRequest.h:50
Aws::Schemas::Model::CreateSchemaRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateSchemaRequest.h:219
Aws::Schemas::Model::CreateSchemaRequest::CreateSchemaRequest
CreateSchemaRequest()
Aws::Schemas::Model::CreateSchemaRequest::AddTags
CreateSchemaRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateSchemaRequest.h:244
Aws::Schemas::Model::CreateSchemaRequest::WithContent
CreateSchemaRequest & WithContent(const char *value)
Definition: CreateSchemaRequest.h:75
Aws::Schemas::Model::CreateSchemaRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateSchemaRequest.h:209
Aws::Schemas::Model::CreateSchemaRequest::SetSchemaName
void SetSchemaName(Aws::String &&value)
Definition: CreateSchemaRequest.h:178
Aws::Schemas::Model::CreateSchemaRequest::GetSchemaName
const Aws::String & GetSchemaName() const
Definition: CreateSchemaRequest.h:163
Aws::Schemas::SchemasRequest
Definition: SchemasRequest.h:17
Aws::Schemas::Model::CreateSchemaRequest::WithRegistryName
CreateSchemaRequest & WithRegistryName(Aws::String &&value)
Definition: CreateSchemaRequest.h:152
Aws::Schemas::Model::CreateSchemaRequest::WithTags
CreateSchemaRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateSchemaRequest.h:229
SchemasRequest.h
Aws::Schemas::Model::CreateSchemaRequest::WithSchemaName
CreateSchemaRequest & WithSchemaName(Aws::String &&value)
Definition: CreateSchemaRequest.h:193
Aws::Schemas::Model::CreateSchemaRequest::WithSchemaName
CreateSchemaRequest & WithSchemaName(const Aws::String &value)
Definition: CreateSchemaRequest.h:188
Aws::Schemas::Model::CreateSchemaRequest::ContentHasBeenSet
bool ContentHasBeenSet() const
Definition: CreateSchemaRequest.h:45
Aws::Schemas::Model::CreateSchemaRequest::SetSchemaName
void SetSchemaName(const Aws::String &value)
Definition: CreateSchemaRequest.h:173
Aws::Schemas::Model::CreateSchemaRequest::SetRegistryName
void SetRegistryName(const Aws::String &value)
Definition: CreateSchemaRequest.h:132
Aws::Schemas::Model::CreateSchemaRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateSchemaRequest.h:214
Aws::Schemas::Model::CreateSchemaRequest::WithRegistryName
CreateSchemaRequest & WithRegistryName(const Aws::String &value)
Definition: CreateSchemaRequest.h:147
Aws::Schemas::Model::CreateSchemaRequest
Definition: CreateSchemaRequest.h:24
Aws::Schemas::Model::CreateSchemaRequest::WithContent
CreateSchemaRequest & WithContent(const Aws::String &value)
Definition: CreateSchemaRequest.h:65
Aws::Schemas::Model::CreateSchemaRequest::WithTags
CreateSchemaRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateSchemaRequest.h:224
Aws::Schemas::Model::CreateSchemaRequest::WithRegistryName
CreateSchemaRequest & WithRegistryName(const char *value)
Definition: CreateSchemaRequest.h:157
Aws::Schemas::Model::CreateSchemaRequest::AddTags
CreateSchemaRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateSchemaRequest.h:259
Schemas_EXPORTS.h
Aws::Schemas::Model::CreateSchemaRequest::SchemaNameHasBeenSet
bool SchemaNameHasBeenSet() const
Definition: CreateSchemaRequest.h:168
Aws::Schemas::Model::CreateSchemaRequest::RegistryNameHasBeenSet
bool RegistryNameHasBeenSet() const
Definition: CreateSchemaRequest.h:127
Aws::Schemas::Model::CreateSchemaRequest::SetContent
void SetContent(const char *value)
Definition: CreateSchemaRequest.h:60
Aws::Schemas::Model::CreateSchemaRequest::AddTags
CreateSchemaRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateSchemaRequest.h:254
Aws::Schemas::Model::CreateSchemaRequest::WithDescription
CreateSchemaRequest & WithDescription(const Aws::String &value)
Definition: CreateSchemaRequest.h:106
Aws::Schemas::Model::CreateSchemaRequest::SetContent
void SetContent(Aws::String &&value)
Definition: CreateSchemaRequest.h:55
Aws::Schemas::Model::CreateSchemaRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateSchemaRequest.h:32
Aws::Schemas::Model::CreateSchemaRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateSchemaRequest.h:101
Aws::Schemas::Model::CreateSchemaRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::Schemas::Model::CreateSchemaRequest::SetType
void SetType(Type &&value)
Definition: CreateSchemaRequest.h:285
Aws::Schemas::Model::CreateSchemaRequest::AddTags
CreateSchemaRequest & AddTags(const char *key, const char *value)
Definition: CreateSchemaRequest.h:264
Aws::Schemas::Model::CreateSchemaRequest::WithDescription
CreateSchemaRequest & WithDescription(const char *value)
Definition: CreateSchemaRequest.h:116
Aws::Schemas::Model::CreateSchemaRequest::AddTags
CreateSchemaRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateSchemaRequest.h:239
Aws::Schemas::Model::CreateSchemaRequest::WithType
CreateSchemaRequest & WithType(Type &&value)
Definition: CreateSchemaRequest.h:295
Aws::Schemas::Model::CreateSchemaRequest::AddTags
CreateSchemaRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateSchemaRequest.h:249
Aws::Schemas::Model::CreateSchemaRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateSchemaRequest.h:86
Aws::Schemas::Model::CreateSchemaRequest::SetRegistryName
void SetRegistryName(Aws::String &&value)
Definition: CreateSchemaRequest.h:137
Aws::Schemas::Model::CreateSchemaRequest::GetType
const Type & GetType() const
Definition: CreateSchemaRequest.h:270
Aws::Schemas::Model::CreateSchemaRequest::WithType
CreateSchemaRequest & WithType(const Type &value)
Definition: CreateSchemaRequest.h:290
Aws::Schemas::Model::CreateSchemaRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateSchemaRequest.h:81
Aws::Schemas::Model::Type
Type
Definition: Type.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::Schemas::Model::CreateSchemaRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateSchemaRequest.h:91
Aws::Schemas::Model::CreateSchemaRequest::AddTags
CreateSchemaRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateSchemaRequest.h:234
Type.h
Aws::Schemas::Model::CreateSchemaRequest::WithDescription
CreateSchemaRequest & WithDescription(Aws::String &&value)
Definition: CreateSchemaRequest.h:111
Aws::Schemas::Model::CreateSchemaRequest::SetType
void SetType(const Type &value)
Definition: CreateSchemaRequest.h:280
Aws::Schemas::Model::CreateSchemaRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: CreateSchemaRequest.h:275
Aws::Schemas::Model::CreateSchemaRequest::WithSchemaName
CreateSchemaRequest & WithSchemaName(const char *value)
Definition: CreateSchemaRequest.h:198
Aws::Schemas::Model::CreateSchemaRequest::SetSchemaName
void SetSchemaName(const char *value)
Definition: CreateSchemaRequest.h:183
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Schemas::Model::CreateSchemaRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateSchemaRequest.h:204
Aws::Schemas::Model::CreateSchemaRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateSchemaRequest.h:96
AWS_SCHEMAS_API
#define AWS_SCHEMAS_API
Definition: Schemas_EXPORTS.h:28
Aws::Schemas::Model::CreateSchemaRequest::SetRegistryName
void SetRegistryName(const char *value)
Definition: CreateSchemaRequest.h:142
AWSMap.h
Aws::Schemas::Model::CreateSchemaRequest::GetContent
const Aws::String & GetContent() const
Definition: CreateSchemaRequest.h:40
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::Schemas::Model::CreateSchemaRequest::GetRegistryName
const Aws::String & GetRegistryName() const
Definition: CreateSchemaRequest.h:122
Aws::Schemas::Model::CreateSchemaRequest::WithContent
CreateSchemaRequest & WithContent(Aws::String &&value)
Definition: CreateSchemaRequest.h:70