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/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() = default;
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 template<typename ContentT = Aws::String>
44 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
45 template<typename ContentT = Aws::String>
46 CreateSchemaRequest& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
48
50
53 inline const Aws::String& GetDescription() const { return m_description; }
54 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
55 template<typename DescriptionT = Aws::String>
56 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
57 template<typename DescriptionT = Aws::String>
58 CreateSchemaRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
60
62
65 inline const Aws::String& GetRegistryName() const { return m_registryName; }
66 inline bool RegistryNameHasBeenSet() const { return m_registryNameHasBeenSet; }
67 template<typename RegistryNameT = Aws::String>
68 void SetRegistryName(RegistryNameT&& value) { m_registryNameHasBeenSet = true; m_registryName = std::forward<RegistryNameT>(value); }
69 template<typename RegistryNameT = Aws::String>
70 CreateSchemaRequest& WithRegistryName(RegistryNameT&& value) { SetRegistryName(std::forward<RegistryNameT>(value)); return *this;}
72
74
77 inline const Aws::String& GetSchemaName() const { return m_schemaName; }
78 inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
79 template<typename SchemaNameT = Aws::String>
80 void SetSchemaName(SchemaNameT&& value) { m_schemaNameHasBeenSet = true; m_schemaName = std::forward<SchemaNameT>(value); }
81 template<typename SchemaNameT = Aws::String>
82 CreateSchemaRequest& WithSchemaName(SchemaNameT&& value) { SetSchemaName(std::forward<SchemaNameT>(value)); return *this;}
84
86
89 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
90 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
91 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
92 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
93 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
94 CreateSchemaRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
95 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
96 CreateSchemaRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
97 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
98 }
100
102
105 inline Type GetType() const { return m_type; }
106 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
107 inline void SetType(Type value) { m_typeHasBeenSet = true; m_type = value; }
108 inline CreateSchemaRequest& WithType(Type value) { SetType(value); return *this;}
110 private:
111
112 Aws::String m_content;
113 bool m_contentHasBeenSet = false;
114
115 Aws::String m_description;
116 bool m_descriptionHasBeenSet = false;
117
118 Aws::String m_registryName;
119 bool m_registryNameHasBeenSet = false;
120
121 Aws::String m_schemaName;
122 bool m_schemaNameHasBeenSet = false;
123
125 bool m_tagsHasBeenSet = false;
126
127 Type m_type{Type::NOT_SET};
128 bool m_typeHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace Schemas
133} // 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