AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
OntologyMapping.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace Context {
20namespace Model {
21
29 public:
30 AWS_CONTEXT_API OntologyMapping() = default;
31 AWS_CONTEXT_API OntologyMapping(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_CONTEXT_API OntologyMapping& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline const Aws::String& GetOntologyId() const { return m_ontologyId; }
40 inline bool OntologyIdHasBeenSet() const { return m_ontologyIdHasBeenSet; }
41 template <typename OntologyIdT = Aws::String>
42 void SetOntologyId(OntologyIdT&& value) {
43 m_ontologyIdHasBeenSet = true;
44 m_ontologyId = std::forward<OntologyIdT>(value);
45 }
46 template <typename OntologyIdT = Aws::String>
47 OntologyMapping& WithOntologyId(OntologyIdT&& value) {
48 SetOntologyId(std::forward<OntologyIdT>(value));
49 return *this;
50 }
52 private:
53 Aws::String m_ontologyId;
54 bool m_ontologyIdHasBeenSet = false;
55};
56
57} // namespace Model
58} // namespace Context
59} // namespace Aws
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CONTEXT_API OntologyMapping(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CONTEXT_API OntologyMapping & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CONTEXT_API OntologyMapping()=default
OntologyMapping & WithOntologyId(OntologyIdT &&value)
const Aws::String & GetOntologyId() const
void SetOntologyId(OntologyIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String