AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
OntologyInductionDocumentSummary.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/OntologyInductionDocumentContentType.h>
9#include <aws/core/utils/memory/stl/AWSString.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
29 public:
30 AWS_CONTEXT_API OntologyInductionDocumentSummary() = default;
31 AWS_CONTEXT_API OntologyInductionDocumentSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_CONTEXT_API OntologyInductionDocumentSummary& 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& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline long long GetSizeBytes() const { return m_sizeBytes; }
58 inline bool SizeBytesHasBeenSet() const { return m_sizeBytesHasBeenSet; }
59 inline void SetSizeBytes(long long value) {
60 m_sizeBytesHasBeenSet = true;
61 m_sizeBytes = value;
62 }
64 SetSizeBytes(value);
65 return *this;
66 }
68
70
75 inline OntologyInductionDocumentContentType GetContentType() const { return m_contentType; }
76 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
78 m_contentTypeHasBeenSet = true;
79 m_contentType = value;
80 }
86 private:
87 Aws::String m_name;
88
89 long long m_sizeBytes{0};
90
92 bool m_nameHasBeenSet = false;
93 bool m_sizeBytesHasBeenSet = false;
94 bool m_contentTypeHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace Context
99} // namespace Aws
void SetContentType(OntologyInductionDocumentContentType value)
AWS_CONTEXT_API OntologyInductionDocumentSummary()=default
OntologyInductionDocumentSummary & WithSizeBytes(long long value)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
OntologyInductionDocumentSummary & WithName(NameT &&value)
AWS_CONTEXT_API OntologyInductionDocumentSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CONTEXT_API OntologyInductionDocumentSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
OntologyInductionDocumentSummary & WithContentType(OntologyInductionDocumentContentType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String