AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetContent(const Aws::Utils::CryptoBuffer& value) { m_contentHasBeenSet = true; m_content = value; }
51 inline void SetContent(Aws::Utils::CryptoBuffer&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
52 inline Document& WithContent(const Aws::Utils::CryptoBuffer& value) { SetContent(value); return *this;}
53 inline Document& WithContent(Aws::Utils::CryptoBuffer&& value) { SetContent(std::move(value)); return *this;}
55
57
67 inline const Aws::String& GetContentType() const{ return m_contentType; }
68 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
69 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
70 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
71 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
72 inline Document& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
73 inline Document& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
74 inline Document& WithContentType(const char* value) { SetContentType(value); return *this;}
76 private:
77
79 bool m_contentHasBeenSet = false;
80
81 Aws::String m_contentType;
82 bool m_contentTypeHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace Translate
87} // namespace Aws
void SetContentType(const Aws::String &value)
Definition Document.h:69
Document & WithContent(const Aws::Utils::CryptoBuffer &value)
Definition Document.h:52
AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const
Document & WithContentType(Aws::String &&value)
Definition Document.h:73
Document & WithContent(Aws::Utils::CryptoBuffer &&value)
Definition Document.h:53
Document & WithContentType(const char *value)
Definition Document.h:74
void SetContentType(const char *value)
Definition Document.h:71
AWS_TRANSLATE_API Document(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSLATE_API Document()
void SetContent(const Aws::Utils::CryptoBuffer &value)
Definition Document.h:50
bool ContentTypeHasBeenSet() const
Definition Document.h:68
void SetContent(Aws::Utils::CryptoBuffer &&value)
Definition Document.h:51
const Aws::Utils::CryptoBuffer & GetContent() const
Definition Document.h:48
const Aws::String & GetContentType() const
Definition Document.h:67
void SetContentType(Aws::String &&value)
Definition Document.h:70
Document & WithContentType(const Aws::String &value)
Definition Document.h:72
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