AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
RetrievedContextContent.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/core/utils/Array.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 RetrievedContextContent() = default;
31 AWS_CONTEXT_API RetrievedContextContent(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_CONTEXT_API RetrievedContextContent& 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::Utils::CryptoBuffer& GetByteContent() const { return m_byteContent; }
40 inline bool ByteContentHasBeenSet() const { return m_byteContentHasBeenSet; }
41 template <typename ByteContentT = Aws::Utils::CryptoBuffer>
42 void SetByteContent(ByteContentT&& value) {
43 m_byteContentHasBeenSet = true;
44 m_byteContent = std::forward<ByteContentT>(value);
45 }
46 template <typename ByteContentT = Aws::Utils::CryptoBuffer>
48 SetByteContent(std::forward<ByteContentT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetText() const { return m_text; }
58 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
59 template <typename TextT = Aws::String>
60 void SetText(TextT&& value) {
61 m_textHasBeenSet = true;
62 m_text = std::forward<TextT>(value);
63 }
64 template <typename TextT = Aws::String>
66 SetText(std::forward<TextT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetMimeType() const { return m_mimeType; }
77 inline bool MimeTypeHasBeenSet() const { return m_mimeTypeHasBeenSet; }
78 template <typename MimeTypeT = Aws::String>
79 void SetMimeType(MimeTypeT&& value) {
80 m_mimeTypeHasBeenSet = true;
81 m_mimeType = std::forward<MimeTypeT>(value);
82 }
83 template <typename MimeTypeT = Aws::String>
85 SetMimeType(std::forward<MimeTypeT>(value));
86 return *this;
87 }
89 private:
90 Aws::Utils::CryptoBuffer m_byteContent{};
91
92 Aws::String m_text;
93
94 Aws::String m_mimeType;
95 bool m_byteContentHasBeenSet = false;
96 bool m_textHasBeenSet = false;
97 bool m_mimeTypeHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Context
102} // namespace Aws
RetrievedContextContent & WithText(TextT &&value)
RetrievedContextContent & WithMimeType(MimeTypeT &&value)
RetrievedContextContent & WithByteContent(ByteContentT &&value)
AWS_CONTEXT_API RetrievedContextContent & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Utils::CryptoBuffer & GetByteContent() const
AWS_CONTEXT_API RetrievedContextContent()=default
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CONTEXT_API RetrievedContextContent(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String