AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Document.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/translate/Translate_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Translate {
21namespace Model {
22
28class Document {
29 public:
30 AWS_TRANSLATE_API Document() = default;
31 AWS_TRANSLATE_API Document(Aws::Utils::Json::JsonView jsonValue);
32 AWS_TRANSLATE_API Document& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
42 inline const Aws::Utils::CryptoBuffer& GetContent() const { return m_content; }
43 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
44 template <typename ContentT = Aws::Utils::CryptoBuffer>
45 void SetContent(ContentT&& value) {
46 m_contentHasBeenSet = true;
47 m_content = std::forward<ContentT>(value);
48 }
49 template <typename ContentT = Aws::Utils::CryptoBuffer>
50 Document& WithContent(ContentT&& value) {
51 SetContent(std::forward<ContentT>(value));
52 return *this;
53 }
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) {
71 m_contentTypeHasBeenSet = true;
72 m_contentType = std::forward<ContentTypeT>(value);
73 }
74 template <typename ContentTypeT = Aws::String>
75 Document& WithContentType(ContentTypeT&& value) {
76 SetContentType(std::forward<ContentTypeT>(value));
77 return *this;
78 }
80 private:
81 Aws::Utils::CryptoBuffer m_content{};
82
83 Aws::String m_contentType;
84 bool m_contentHasBeenSet = false;
85 bool m_contentTypeHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace Translate
90} // namespace Aws
AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const
Document & WithContentType(ContentTypeT &&value)
Definition Document.h:75
Document & WithContent(ContentT &&value)
Definition Document.h:50
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:42
const Aws::String & GetContentType() const
Definition Document.h:67
void SetContent(ContentT &&value)
Definition Document.h:45
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