AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TranslatedDocument.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/translate/Translate_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Translate {
20namespace Model {
21
28 public:
29 AWS_TRANSLATE_API TranslatedDocument() = default;
30 AWS_TRANSLATE_API TranslatedDocument(Aws::Utils::Json::JsonView jsonValue);
32 AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() 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()=default
TranslatedDocument & WithContent(ContentT &&value)
AWS_TRANSLATE_API TranslatedDocument(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSLATE_API TranslatedDocument & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::CryptoBuffer & GetContent() const
Aws::Utils::Json::JsonValue JsonValue