AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Term.h
1
6#pragma once
7#include <aws/translate/Translate_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Translate
22{
23namespace Model
24{
25
31 class Term
32 {
33 public:
34 AWS_TRANSLATE_API Term() = default;
35 AWS_TRANSLATE_API Term(Aws::Utils::Json::JsonView jsonValue);
36 AWS_TRANSLATE_API Term& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetSourceText() const { return m_sourceText; }
45 inline bool SourceTextHasBeenSet() const { return m_sourceTextHasBeenSet; }
46 template<typename SourceTextT = Aws::String>
47 void SetSourceText(SourceTextT&& value) { m_sourceTextHasBeenSet = true; m_sourceText = std::forward<SourceTextT>(value); }
48 template<typename SourceTextT = Aws::String>
49 Term& WithSourceText(SourceTextT&& value) { SetSourceText(std::forward<SourceTextT>(value)); return *this;}
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) { m_targetTextHasBeenSet = true; m_targetText = std::forward<TargetTextT>(value); }
60 template<typename TargetTextT = Aws::String>
61 Term& WithTargetText(TargetTextT&& value) { SetTargetText(std::forward<TargetTextT>(value)); return *this;}
63 private:
64
65 Aws::String m_sourceText;
66 bool m_sourceTextHasBeenSet = false;
67
68 Aws::String m_targetText;
69 bool m_targetTextHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace Translate
74} // 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:61
void SetSourceText(SourceTextT &&value)
Definition Term.h:47
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:45
const Aws::String & GetSourceText() const
Definition Term.h:44
Term & WithSourceText(SourceTextT &&value)
Definition Term.h:49
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