AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TranslateDocumentResult.h
1
6#pragma once
7#include <aws/translate/Translate_EXPORTS.h>
8#include <aws/translate/model/TranslatedDocument.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/translate/model/TranslationSettings.h>
12#include <aws/translate/model/AppliedTerminology.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace Translate
28{
29namespace Model
30{
32 {
33 public:
34 AWS_TRANSLATE_API TranslateDocumentResult();
37
38
40
44 inline const TranslatedDocument& GetTranslatedDocument() const{ return m_translatedDocument; }
45 inline void SetTranslatedDocument(const TranslatedDocument& value) { m_translatedDocument = value; }
46 inline void SetTranslatedDocument(TranslatedDocument&& value) { m_translatedDocument = std::move(value); }
50
52
55 inline const Aws::String& GetSourceLanguageCode() const{ return m_sourceLanguageCode; }
56 inline void SetSourceLanguageCode(const Aws::String& value) { m_sourceLanguageCode = value; }
57 inline void SetSourceLanguageCode(Aws::String&& value) { m_sourceLanguageCode = std::move(value); }
58 inline void SetSourceLanguageCode(const char* value) { m_sourceLanguageCode.assign(value); }
60 inline TranslateDocumentResult& WithSourceLanguageCode(Aws::String&& value) { SetSourceLanguageCode(std::move(value)); return *this;}
61 inline TranslateDocumentResult& WithSourceLanguageCode(const char* value) { SetSourceLanguageCode(value); return *this;}
63
65
68 inline const Aws::String& GetTargetLanguageCode() const{ return m_targetLanguageCode; }
69 inline void SetTargetLanguageCode(const Aws::String& value) { m_targetLanguageCode = value; }
70 inline void SetTargetLanguageCode(Aws::String&& value) { m_targetLanguageCode = std::move(value); }
71 inline void SetTargetLanguageCode(const char* value) { m_targetLanguageCode.assign(value); }
73 inline TranslateDocumentResult& WithTargetLanguageCode(Aws::String&& value) { SetTargetLanguageCode(std::move(value)); return *this;}
74 inline TranslateDocumentResult& WithTargetLanguageCode(const char* value) { SetTargetLanguageCode(value); return *this;}
76
78
82 inline const Aws::Vector<AppliedTerminology>& GetAppliedTerminologies() const{ return m_appliedTerminologies; }
83 inline void SetAppliedTerminologies(const Aws::Vector<AppliedTerminology>& value) { m_appliedTerminologies = value; }
84 inline void SetAppliedTerminologies(Aws::Vector<AppliedTerminology>&& value) { m_appliedTerminologies = std::move(value); }
87 inline TranslateDocumentResult& AddAppliedTerminologies(const AppliedTerminology& value) { m_appliedTerminologies.push_back(value); return *this; }
88 inline TranslateDocumentResult& AddAppliedTerminologies(AppliedTerminology&& value) { m_appliedTerminologies.push_back(std::move(value)); return *this; }
90
92
93 inline const TranslationSettings& GetAppliedSettings() const{ return m_appliedSettings; }
94 inline void SetAppliedSettings(const TranslationSettings& value) { m_appliedSettings = value; }
95 inline void SetAppliedSettings(TranslationSettings&& value) { m_appliedSettings = std::move(value); }
97 inline TranslateDocumentResult& WithAppliedSettings(TranslationSettings&& value) { SetAppliedSettings(std::move(value)); return *this;}
99
101
102 inline const Aws::String& GetRequestId() const{ return m_requestId; }
103 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
104 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
105 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
106 inline TranslateDocumentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
107 inline TranslateDocumentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
108 inline TranslateDocumentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
110 private:
111
112 TranslatedDocument m_translatedDocument;
113
114 Aws::String m_sourceLanguageCode;
115
116 Aws::String m_targetLanguageCode;
117
118 Aws::Vector<AppliedTerminology> m_appliedTerminologies;
119
120 TranslationSettings m_appliedSettings;
121
122 Aws::String m_requestId;
123 };
124
125} // namespace Model
126} // namespace Translate
127} // namespace Aws
AWS_TRANSLATE_API TranslateDocumentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetTranslatedDocument(TranslatedDocument &&value)
TranslateDocumentResult & WithAppliedTerminologies(const Aws::Vector< AppliedTerminology > &value)
TranslateDocumentResult & WithRequestId(const char *value)
void SetAppliedTerminologies(const Aws::Vector< AppliedTerminology > &value)
TranslateDocumentResult & WithTranslatedDocument(TranslatedDocument &&value)
void SetAppliedTerminologies(Aws::Vector< AppliedTerminology > &&value)
TranslateDocumentResult & WithTargetLanguageCode(const char *value)
TranslateDocumentResult & WithSourceLanguageCode(const Aws::String &value)
void SetTranslatedDocument(const TranslatedDocument &value)
TranslateDocumentResult & WithTranslatedDocument(const TranslatedDocument &value)
TranslateDocumentResult & WithSourceLanguageCode(Aws::String &&value)
const TranslationSettings & GetAppliedSettings() const
void SetAppliedSettings(const TranslationSettings &value)
TranslateDocumentResult & WithRequestId(const Aws::String &value)
void SetAppliedSettings(TranslationSettings &&value)
TranslateDocumentResult & WithAppliedSettings(TranslationSettings &&value)
const Aws::Vector< AppliedTerminology > & GetAppliedTerminologies() const
const TranslatedDocument & GetTranslatedDocument() const
TranslateDocumentResult & WithTargetLanguageCode(Aws::String &&value)
TranslateDocumentResult & WithTargetLanguageCode(const Aws::String &value)
TranslateDocumentResult & WithAppliedSettings(const TranslationSettings &value)
AWS_TRANSLATE_API TranslateDocumentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
TranslateDocumentResult & WithSourceLanguageCode(const char *value)
TranslateDocumentResult & AddAppliedTerminologies(AppliedTerminology &&value)
TranslateDocumentResult & WithAppliedTerminologies(Aws::Vector< AppliedTerminology > &&value)
TranslateDocumentResult & WithRequestId(Aws::String &&value)
TranslateDocumentResult & AddAppliedTerminologies(const AppliedTerminology &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue