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/schemas/Schemas_EXPORTS.h>
8#include <aws/schemas/SchemasRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/schemas/model/Type.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Schemas
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SCHEMAS_API CreateSchemaRequest();
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_SCHEMAS_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetContent() const{ return m_content; }
42 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
43 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
44 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
45 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
46 inline CreateSchemaRequest& WithContent(const Aws::String& value) { SetContent(value); return *this;}
47 inline CreateSchemaRequest& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
48 inline CreateSchemaRequest& WithContent(const char* value) { SetContent(value); return *this;}
50
52
55 inline const Aws::String& GetDescription() const{ return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
58 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
59 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
60 inline CreateSchemaRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
61 inline CreateSchemaRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
62 inline CreateSchemaRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
64
66
69 inline const Aws::String& GetRegistryName() const{ return m_registryName; }
70 inline bool RegistryNameHasBeenSet() const { return m_registryNameHasBeenSet; }
71 inline void SetRegistryName(const Aws::String& value) { m_registryNameHasBeenSet = true; m_registryName = value; }
72 inline void SetRegistryName(Aws::String&& value) { m_registryNameHasBeenSet = true; m_registryName = std::move(value); }
73 inline void SetRegistryName(const char* value) { m_registryNameHasBeenSet = true; m_registryName.assign(value); }
74 inline CreateSchemaRequest& WithRegistryName(const Aws::String& value) { SetRegistryName(value); return *this;}
75 inline CreateSchemaRequest& WithRegistryName(Aws::String&& value) { SetRegistryName(std::move(value)); return *this;}
76 inline CreateSchemaRequest& WithRegistryName(const char* value) { SetRegistryName(value); return *this;}
78
80
83 inline const Aws::String& GetSchemaName() const{ return m_schemaName; }
84 inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
85 inline void SetSchemaName(const Aws::String& value) { m_schemaNameHasBeenSet = true; m_schemaName = value; }
86 inline void SetSchemaName(Aws::String&& value) { m_schemaNameHasBeenSet = true; m_schemaName = std::move(value); }
87 inline void SetSchemaName(const char* value) { m_schemaNameHasBeenSet = true; m_schemaName.assign(value); }
88 inline CreateSchemaRequest& WithSchemaName(const Aws::String& value) { SetSchemaName(value); return *this;}
89 inline CreateSchemaRequest& WithSchemaName(Aws::String&& value) { SetSchemaName(std::move(value)); return *this;}
90 inline CreateSchemaRequest& WithSchemaName(const char* value) { SetSchemaName(value); return *this;}
92
94
97 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
98 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
100 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
101 inline CreateSchemaRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
102 inline CreateSchemaRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
103 inline CreateSchemaRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
104 inline CreateSchemaRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
105 inline CreateSchemaRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
106 inline CreateSchemaRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
107 inline CreateSchemaRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
108 inline CreateSchemaRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
109 inline CreateSchemaRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
111
113
116 inline const Type& GetType() const{ return m_type; }
117 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
118 inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
119 inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
120 inline CreateSchemaRequest& WithType(const Type& value) { SetType(value); return *this;}
121 inline CreateSchemaRequest& WithType(Type&& value) { SetType(std::move(value)); return *this;}
123 private:
124
125 Aws::String m_content;
126 bool m_contentHasBeenSet = false;
127
128 Aws::String m_description;
129 bool m_descriptionHasBeenSet = false;
130
131 Aws::String m_registryName;
132 bool m_registryNameHasBeenSet = false;
133
134 Aws::String m_schemaName;
135 bool m_schemaNameHasBeenSet = false;
136
138 bool m_tagsHasBeenSet = false;
139
140 Type m_type;
141 bool m_typeHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace Schemas
146} // namespace Aws
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSchemaRequest & WithRegistryName(Aws::String &&value)
CreateSchemaRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateSchemaRequest & WithSchemaName(const Aws::String &value)
CreateSchemaRequest & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateSchemaRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetDescription(const Aws::String &value)
const Aws::String & GetRegistryName() const
AWS_SCHEMAS_API Aws::String SerializePayload() const override
CreateSchemaRequest & WithContent(Aws::String &&value)
CreateSchemaRequest & WithDescription(const char *value)
CreateSchemaRequest & AddTags(const char *key, Aws::String &&value)
CreateSchemaRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateSchemaRequest & WithSchemaName(const char *value)
CreateSchemaRequest & WithRegistryName(const char *value)
void SetRegistryName(const Aws::String &value)
void SetContent(const Aws::String &value)
CreateSchemaRequest & WithDescription(Aws::String &&value)
CreateSchemaRequest & WithSchemaName(Aws::String &&value)
CreateSchemaRequest & WithDescription(const Aws::String &value)
CreateSchemaRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSchemaRequest & WithContent(const Aws::String &value)
CreateSchemaRequest & WithContent(const char *value)
CreateSchemaRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateSchemaRequest & AddTags(const char *key, const char *value)
virtual const char * GetServiceRequestName() const override
CreateSchemaRequest & WithRegistryName(const Aws::String &value)
void SetSchemaName(const Aws::String &value)
CreateSchemaRequest & AddTags(Aws::String &&key, const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateSchemaRequest & WithType(Type &&value)
CreateSchemaRequest & WithType(const Type &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