AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
OntologyInductionDocument.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/OntologyInductionDocumentContentType.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/crt/cbor/Cbor.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace Context {
22namespace Model {
23
33 public:
34 AWS_CONTEXT_API OntologyInductionDocument() = default;
35 AWS_CONTEXT_API OntologyInductionDocument(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_CONTEXT_API OntologyInductionDocument& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
38
40
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template <typename NameT = Aws::String>
48 void SetName(NameT&& value) {
49 m_nameHasBeenSet = true;
50 m_name = std::forward<NameT>(value);
51 }
52 template <typename NameT = Aws::String>
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
64 inline OntologyInductionDocumentContentType GetContentType() const { return m_contentType; }
65 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
67 m_contentTypeHasBeenSet = true;
68 m_contentType = value;
69 }
75
77
82 inline const Aws::Utils::CryptoBuffer& GetContent() const { return m_content; }
83 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
84 template <typename ContentT = Aws::Utils::CryptoBuffer>
85 void SetContent(ContentT&& value) {
86 m_contentHasBeenSet = true;
87 m_content = std::forward<ContentT>(value);
88 }
89 template <typename ContentT = Aws::Utils::CryptoBuffer>
91 SetContent(std::forward<ContentT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_name;
97
99
100 Aws::Utils::CryptoBuffer m_content{};
101 bool m_nameHasBeenSet = false;
102 bool m_contentTypeHasBeenSet = false;
103 bool m_contentHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace Context
108} // namespace Aws
OntologyInductionDocument & WithContentType(OntologyInductionDocumentContentType value)
const Aws::Utils::CryptoBuffer & GetContent() const
OntologyInductionDocumentContentType GetContentType() const
AWS_CONTEXT_API OntologyInductionDocument(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
OntologyInductionDocument & WithContent(ContentT &&value)
OntologyInductionDocument & WithName(NameT &&value)
AWS_CONTEXT_API OntologyInductionDocument()=default
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetContentType(OntologyInductionDocumentContentType value)
AWS_CONTEXT_API OntologyInductionDocument & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String