AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
InputDocument.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/DocumentContentType.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
31 public:
32 AWS_CONTEXT_API InputDocument() = default;
33 AWS_CONTEXT_API InputDocument(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CONTEXT_API InputDocument& 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::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 InputDocument& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
60 inline DocumentContentType GetContentType() const { return m_contentType; }
61 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
63 m_contentTypeHasBeenSet = true;
64 m_contentType = value;
65 }
67 SetContentType(value);
68 return *this;
69 }
71
73
77 inline const Aws::Utils::CryptoBuffer& GetContent() const { return m_content; }
78 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
79 template <typename ContentT = Aws::Utils::CryptoBuffer>
80 void SetContent(ContentT&& value) {
81 m_contentHasBeenSet = true;
82 m_content = std::forward<ContentT>(value);
83 }
84 template <typename ContentT = Aws::Utils::CryptoBuffer>
85 InputDocument& WithContent(ContentT&& value) {
86 SetContent(std::forward<ContentT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_name;
92
94
95 Aws::Utils::CryptoBuffer m_content{};
96 bool m_nameHasBeenSet = false;
97 bool m_contentTypeHasBeenSet = false;
98 bool m_contentHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace Context
103} // namespace Aws
const Aws::Utils::CryptoBuffer & GetContent() const
AWS_CONTEXT_API InputDocument & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
InputDocument & WithContent(ContentT &&value)
AWS_CONTEXT_API InputDocument(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
InputDocument & WithContentType(DocumentContentType value)
AWS_CONTEXT_API InputDocument()=default
void SetContent(ContentT &&value)
InputDocument & WithName(NameT &&value)
DocumentContentType GetContentType() const
void SetContentType(DocumentContentType value)
const Aws::String & GetName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String