AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Term.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.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
27class Term {
28 public:
29 AWS_TRANSLATE_API Term() = default;
30 AWS_TRANSLATE_API Term(Aws::Utils::Json::JsonView jsonValue);
31 AWS_TRANSLATE_API Term& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetSourceText() const { return m_sourceText; }
39 inline bool SourceTextHasBeenSet() const { return m_sourceTextHasBeenSet; }
40 template <typename SourceTextT = Aws::String>
41 void SetSourceText(SourceTextT&& value) {
42 m_sourceTextHasBeenSet = true;
43 m_sourceText = std::forward<SourceTextT>(value);
44 }
45 template <typename SourceTextT = Aws::String>
46 Term& WithSourceText(SourceTextT&& value) {
47 SetSourceText(std::forward<SourceTextT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetTargetText() const { return m_targetText; }
57 inline bool TargetTextHasBeenSet() const { return m_targetTextHasBeenSet; }
58 template <typename TargetTextT = Aws::String>
59 void SetTargetText(TargetTextT&& value) {
60 m_targetTextHasBeenSet = true;
61 m_targetText = std::forward<TargetTextT>(value);
62 }
63 template <typename TargetTextT = Aws::String>
64 Term& WithTargetText(TargetTextT&& value) {
65 SetTargetText(std::forward<TargetTextT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_sourceText;
71
72 Aws::String m_targetText;
73 bool m_sourceTextHasBeenSet = false;
74 bool m_targetTextHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace Translate
79} // namespace Aws
void SetTargetText(TargetTextT &&value)
Definition Term.h:59
const Aws::String & GetTargetText() const
Definition Term.h:56
Term & WithTargetText(TargetTextT &&value)
Definition Term.h:64
void SetSourceText(SourceTextT &&value)
Definition Term.h:41
AWS_TRANSLATE_API Term()=default
AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const
bool TargetTextHasBeenSet() const
Definition Term.h:57
bool SourceTextHasBeenSet() const
Definition Term.h:39
const Aws::String & GetSourceText() const
Definition Term.h:38
Term & WithSourceText(SourceTextT &&value)
Definition Term.h:46
AWS_TRANSLATE_API Term & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSLATE_API Term(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue