AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Document.h
1
6#pragma once
7#include <aws/translate/Translate_EXPORTS.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Translate
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_TRANSLATE_API Document() = default;
36 AWS_TRANSLATE_API Document(Aws::Utils::Json::JsonView jsonValue);
37 AWS_TRANSLATE_API Document& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
48 inline const Aws::Utils::CryptoBuffer& GetContent() const { return m_content; }
49 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
50 template<typename ContentT = Aws::Utils::CryptoBuffer>
51 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
52 template<typename ContentT = Aws::Utils::CryptoBuffer>
53 Document& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
55
57
67 inline const Aws::String& GetContentType() const { return m_contentType; }
68 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
69 template<typename ContentTypeT = Aws::String>
70 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
71 template<typename ContentTypeT = Aws::String>
72 Document& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
74 private:
75
76 Aws::Utils::CryptoBuffer m_content{};
77 bool m_contentHasBeenSet = false;
78
79 Aws::String m_contentType;
80 bool m_contentTypeHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace Translate
85} // namespace Aws
AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const
Document & WithContentType(ContentTypeT &&value)
Definition Document.h:72
Document & WithContent(ContentT &&value)
Definition Document.h:53
AWS_TRANSLATE_API Document(Aws::Utils::Json::JsonView jsonValue)
void SetContentType(ContentTypeT &&value)
Definition Document.h:70
AWS_TRANSLATE_API Document()=default
bool ContentTypeHasBeenSet() const
Definition Document.h:68
const Aws::Utils::CryptoBuffer & GetContent() const
Definition Document.h:48
const Aws::String & GetContentType() const
Definition Document.h:67
void SetContent(ContentT &&value)
Definition Document.h:51
AWS_TRANSLATE_API Document & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue