AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
CreateOntologyRequest.h
1
6#pragma once
7#include <aws/context/ContextRequest.h>
8#include <aws/context/Context_EXPORTS.h>
9#include <aws/context/model/OntologySourceFormat.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Context {
18namespace Model {
19
23 public:
24 AWS_CONTEXT_API CreateOntologyRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateOntology"; }
31
32 AWS_CONTEXT_API Aws::String SerializePayload() const override;
33
35
37
46 inline const Aws::String& GetClientToken() const { return m_clientToken; }
47 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
48 template <typename ClientTokenT = Aws::String>
49 void SetClientToken(ClientTokenT&& value) {
50 m_clientTokenHasBeenSet = true;
51 m_clientToken = std::forward<ClientTokenT>(value);
52 }
53 template <typename ClientTokenT = Aws::String>
54 CreateOntologyRequest& WithClientToken(ClientTokenT&& value) {
55 SetClientToken(std::forward<ClientTokenT>(value));
56 return *this;
57 }
59
61
66 inline const Aws::String& GetName() const { return m_name; }
67 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
68 template <typename NameT = Aws::String>
69 void SetName(NameT&& value) {
70 m_nameHasBeenSet = true;
71 m_name = std::forward<NameT>(value);
72 }
73 template <typename NameT = Aws::String>
75 SetName(std::forward<NameT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::String& GetDescription() const { return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 template <typename DescriptionT = Aws::String>
88 void SetDescription(DescriptionT&& value) {
89 m_descriptionHasBeenSet = true;
90 m_description = std::forward<DescriptionT>(value);
91 }
92 template <typename DescriptionT = Aws::String>
93 CreateOntologyRequest& WithDescription(DescriptionT&& value) {
94 SetDescription(std::forward<DescriptionT>(value));
95 return *this;
96 }
98
100
104 inline OntologySourceFormat GetSourceFormat() const { return m_sourceFormat; }
105 inline bool SourceFormatHasBeenSet() const { return m_sourceFormatHasBeenSet; }
107 m_sourceFormatHasBeenSet = true;
108 m_sourceFormat = value;
109 }
111 SetSourceFormat(value);
112 return *this;
113 }
115
117
121 inline const Aws::String& GetSource() const { return m_source; }
122 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
123 template <typename SourceT = Aws::String>
124 void SetSource(SourceT&& value) {
125 m_sourceHasBeenSet = true;
126 m_source = std::forward<SourceT>(value);
127 }
128 template <typename SourceT = Aws::String>
130 SetSource(std::forward<SourceT>(value));
131 return *this;
132 }
134
136
145 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
146 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
147 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
148 void SetTags(TagsT&& value) {
149 m_tagsHasBeenSet = true;
150 m_tags = std::forward<TagsT>(value);
151 }
152 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
154 SetTags(std::forward<TagsT>(value));
155 return *this;
156 }
157 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
158 CreateOntologyRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
159 m_tagsHasBeenSet = true;
160 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
161 return *this;
162 }
164 private:
166
167 Aws::String m_name;
168
169 Aws::String m_description;
170
172
173 Aws::String m_source;
174
176 bool m_clientTokenHasBeenSet = true;
177 bool m_nameHasBeenSet = false;
178 bool m_descriptionHasBeenSet = false;
179 bool m_sourceFormatHasBeenSet = false;
180 bool m_sourceHasBeenSet = false;
181 bool m_tagsHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace Context
186} // namespace Aws
CreateOntologyRequest & WithSourceFormat(OntologySourceFormat value)
CreateOntologyRequest & WithClientToken(ClientTokenT &&value)
AWS_CONTEXT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateOntologyRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateOntologyRequest & WithTags(TagsT &&value)
CreateOntologyRequest & WithDescription(DescriptionT &&value)
AWS_CONTEXT_API Aws::String SerializePayload() const override
CreateOntologyRequest & WithSource(SourceT &&value)
AWS_CONTEXT_API CreateOntologyRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateOntologyRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
void SetSourceFormat(OntologySourceFormat value)
static Aws::Utils::UUID PseudoRandomUUID()
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