AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
GetOntologyRequest.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/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Context {
16namespace Model {
17
25 public:
26 AWS_CONTEXT_API GetOntologyRequest() = 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 "GetOntology"; }
33
34 AWS_CONTEXT_API Aws::String SerializePayload() const override;
35
37
39
43 inline const Aws::String& GetOntologyId() const { return m_ontologyId; }
44 inline bool OntologyIdHasBeenSet() const { return m_ontologyIdHasBeenSet; }
45 template <typename OntologyIdT = Aws::String>
46 void SetOntologyId(OntologyIdT&& value) {
47 m_ontologyIdHasBeenSet = true;
48 m_ontologyId = std::forward<OntologyIdT>(value);
49 }
50 template <typename OntologyIdT = Aws::String>
51 GetOntologyRequest& WithOntologyId(OntologyIdT&& value) {
52 SetOntologyId(std::forward<OntologyIdT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetVersion() const { return m_version; }
64 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
65 template <typename VersionT = Aws::String>
66 void SetVersion(VersionT&& value) {
67 m_versionHasBeenSet = true;
68 m_version = std::forward<VersionT>(value);
69 }
70 template <typename VersionT = Aws::String>
71 GetOntologyRequest& WithVersion(VersionT&& value) {
72 SetVersion(std::forward<VersionT>(value));
73 return *this;
74 }
76
78
88 inline OntologySourceFormat GetSourceFormat() const { return m_sourceFormat; }
89 inline bool SourceFormatHasBeenSet() const { return m_sourceFormatHasBeenSet; }
91 m_sourceFormatHasBeenSet = true;
92 m_sourceFormat = value;
93 }
95 SetSourceFormat(value);
96 return *this;
97 }
99 private:
100 Aws::String m_ontologyId;
101
102 Aws::String m_version;
103
105 bool m_ontologyIdHasBeenSet = false;
106 bool m_versionHasBeenSet = false;
107 bool m_sourceFormatHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace Context
112} // namespace Aws
AWS_CONTEXT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CONTEXT_API GetOntologyRequest()=default
const Aws::String & GetOntologyId() const
GetOntologyRequest & WithOntologyId(OntologyIdT &&value)
AWS_CONTEXT_API Aws::String SerializePayload() const override
GetOntologyRequest & WithVersion(VersionT &&value)
virtual const char * GetServiceRequestName() const override
void SetSourceFormat(OntologySourceFormat value)
GetOntologyRequest & WithSourceFormat(OntologySourceFormat value)
OntologySourceFormat GetSourceFormat() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String