AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
OntologyInductionInputConfig.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/OntologyInductionDocument.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace Context {
21namespace Model {
22
31 public:
32 AWS_CONTEXT_API OntologyInductionInputConfig() = default;
33 AWS_CONTEXT_API OntologyInductionInputConfig(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CONTEXT_API OntologyInductionInputConfig& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline const Aws::Vector<OntologyInductionDocument>& GetDocuments() const { return m_documents; }
42 inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; }
43 template <typename DocumentsT = Aws::Vector<OntologyInductionDocument>>
44 void SetDocuments(DocumentsT&& value) {
45 m_documentsHasBeenSet = true;
46 m_documents = std::forward<DocumentsT>(value);
47 }
48 template <typename DocumentsT = Aws::Vector<OntologyInductionDocument>>
50 SetDocuments(std::forward<DocumentsT>(value));
51 return *this;
52 }
53 template <typename DocumentsT = OntologyInductionDocument>
55 m_documentsHasBeenSet = true;
56 m_documents.emplace_back(std::forward<DocumentsT>(value));
57 return *this;
58 }
60 private:
62 bool m_documentsHasBeenSet = false;
63};
64
65} // namespace Model
66} // namespace Context
67} // namespace Aws
AWS_CONTEXT_API OntologyInductionInputConfig(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Vector< OntologyInductionDocument > & GetDocuments() const
OntologyInductionInputConfig & WithDocuments(DocumentsT &&value)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CONTEXT_API OntologyInductionInputConfig()=default
AWS_CONTEXT_API OntologyInductionInputConfig & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
OntologyInductionInputConfig & AddDocuments(DocumentsT &&value)
std::vector< T, Aws::Allocator< T > > Vector