AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
TranslatedDocument.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/translate/Translate_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace Translate {
20namespace Model {
21
28 public:
29 AWS_TRANSLATE_API TranslatedDocument() = default;
30 AWS_TRANSLATE_API TranslatedDocument(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
31 AWS_TRANSLATE_API TranslatedDocument& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_TRANSLATE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
33
35
38 inline const Aws::Utils::CryptoBuffer& GetContent() const { return m_content; }
39 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
40 template <typename ContentT = Aws::Utils::CryptoBuffer>
41 void SetContent(ContentT&& value) {
42 m_contentHasBeenSet = true;
43 m_content = std::forward<ContentT>(value);
44 }
45 template <typename ContentT = Aws::Utils::CryptoBuffer>
46 TranslatedDocument& WithContent(ContentT&& value) {
47 SetContent(std::forward<ContentT>(value));
48 return *this;
49 }
51 private:
52 Aws::Utils::CryptoBuffer m_content{};
53 bool m_contentHasBeenSet = false;
54};
55
56} // namespace Model
57} // namespace Translate
58} // namespace Aws
AWS_TRANSLATE_API TranslatedDocument(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_TRANSLATE_API TranslatedDocument()=default
AWS_TRANSLATE_API TranslatedDocument & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
TranslatedDocument & WithContent(ContentT &&value)
const Aws::Utils::CryptoBuffer & GetContent() const
AWS_TRANSLATE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const