AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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/schemas/SchemasRequest.h>
10#include <aws/schemas/Schemas_EXPORTS.h>
11#include <aws/schemas/model/Type.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Schemas {
17namespace Model {
18
22 public:
23 AWS_SCHEMAS_API CreateSchemaRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateSchema"; }
30
31 AWS_SCHEMAS_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetContent() const { return m_content; }
38 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
39 template <typename ContentT = Aws::String>
40 void SetContent(ContentT&& value) {
41 m_contentHasBeenSet = true;
42 m_content = std::forward<ContentT>(value);
43 }
44 template <typename ContentT = Aws::String>
45 CreateSchemaRequest& WithContent(ContentT&& value) {
46 SetContent(std::forward<ContentT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetDescription() const { return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 template <typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) {
59 m_descriptionHasBeenSet = true;
60 m_description = std::forward<DescriptionT>(value);
61 }
62 template <typename DescriptionT = Aws::String>
63 CreateSchemaRequest& WithDescription(DescriptionT&& value) {
64 SetDescription(std::forward<DescriptionT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetRegistryName() const { return m_registryName; }
74 inline bool RegistryNameHasBeenSet() const { return m_registryNameHasBeenSet; }
75 template <typename RegistryNameT = Aws::String>
76 void SetRegistryName(RegistryNameT&& value) {
77 m_registryNameHasBeenSet = true;
78 m_registryName = std::forward<RegistryNameT>(value);
79 }
80 template <typename RegistryNameT = Aws::String>
81 CreateSchemaRequest& WithRegistryName(RegistryNameT&& value) {
82 SetRegistryName(std::forward<RegistryNameT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetSchemaName() const { return m_schemaName; }
92 inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
93 template <typename SchemaNameT = Aws::String>
94 void SetSchemaName(SchemaNameT&& value) {
95 m_schemaNameHasBeenSet = true;
96 m_schemaName = std::forward<SchemaNameT>(value);
97 }
98 template <typename SchemaNameT = Aws::String>
99 CreateSchemaRequest& WithSchemaName(SchemaNameT&& value) {
100 SetSchemaName(std::forward<SchemaNameT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
110 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
111 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
112 void SetTags(TagsT&& value) {
113 m_tagsHasBeenSet = true;
114 m_tags = std::forward<TagsT>(value);
115 }
116 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
118 SetTags(std::forward<TagsT>(value));
119 return *this;
120 }
121 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
122 CreateSchemaRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
123 m_tagsHasBeenSet = true;
124 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
125 return *this;
126 }
128
130
133 inline Type GetType() const { return m_type; }
134 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
135 inline void SetType(Type value) {
136 m_typeHasBeenSet = true;
137 m_type = value;
138 }
140 SetType(value);
141 return *this;
142 }
144 private:
145 Aws::String m_content;
146
147 Aws::String m_description;
148
149 Aws::String m_registryName;
150
151 Aws::String m_schemaName;
152
154
155 Type m_type{Type::NOT_SET};
156 bool m_contentHasBeenSet = false;
157 bool m_descriptionHasBeenSet = false;
158 bool m_registryNameHasBeenSet = false;
159 bool m_schemaNameHasBeenSet = false;
160 bool m_tagsHasBeenSet = false;
161 bool m_typeHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace Schemas
166} // namespace Aws
void SetRegistryName(RegistryNameT &&value)
CreateSchemaRequest & WithTags(TagsT &&value)
CreateSchemaRequest & WithContent(ContentT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetRegistryName() const
AWS_SCHEMAS_API Aws::String SerializePayload() const override
CreateSchemaRequest & WithSchemaName(SchemaNameT &&value)
CreateSchemaRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateSchemaRequest & WithDescription(DescriptionT &&value)
CreateSchemaRequest & WithRegistryName(RegistryNameT &&value)
CreateSchemaRequest & WithType(Type value)
AWS_SCHEMAS_API CreateSchemaRequest()=default
virtual const char * GetServiceRequestName() const override
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