AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSourceText(const Aws::String& value) { m_sourceTextHasBeenSet = true; m_sourceText = value; }
47 inline void SetSourceText(Aws::String&& value) { m_sourceTextHasBeenSet = true; m_sourceText = std::move(value); }
48 inline void SetSourceText(const char* value) { m_sourceTextHasBeenSet = true; m_sourceText.assign(value); }
49 inline Term& WithSourceText(const Aws::String& value) { SetSourceText(value); return *this;}
50 inline Term& WithSourceText(Aws::String&& value) { SetSourceText(std::move(value)); return *this;}
51 inline Term& WithSourceText(const char* value) { SetSourceText(value); return *this;}
53
55
58 inline const Aws::String& GetTargetText() const{ return m_targetText; }
59 inline bool TargetTextHasBeenSet() const { return m_targetTextHasBeenSet; }
60 inline void SetTargetText(const Aws::String& value) { m_targetTextHasBeenSet = true; m_targetText = value; }
61 inline void SetTargetText(Aws::String&& value) { m_targetTextHasBeenSet = true; m_targetText = std::move(value); }
62 inline void SetTargetText(const char* value) { m_targetTextHasBeenSet = true; m_targetText.assign(value); }
63 inline Term& WithTargetText(const Aws::String& value) { SetTargetText(value); return *this;}
64 inline Term& WithTargetText(Aws::String&& value) { SetTargetText(std::move(value)); return *this;}
65 inline Term& WithTargetText(const char* value) { SetTargetText(value); return *this;}
67 private:
68
69 Aws::String m_sourceText;
70 bool m_sourceTextHasBeenSet = false;
71
72 Aws::String m_targetText;
73 bool m_targetTextHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Translate
78} // namespace Aws
void SetTargetText(const Aws::String &value)
Definition Term.h:60
Term & WithSourceText(Aws::String &&value)
Definition Term.h:50
void SetSourceText(const char *value)
Definition Term.h:48
Term & WithTargetText(const Aws::String &value)
Definition Term.h:63
const Aws::String & GetTargetText() const
Definition Term.h:58
void SetTargetText(Aws::String &&value)
Definition Term.h:61
AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const
bool TargetTextHasBeenSet() const
Definition Term.h:59
Term & WithTargetText(const char *value)
Definition Term.h:65
bool SourceTextHasBeenSet() const
Definition Term.h:45
Term & WithSourceText(const char *value)
Definition Term.h:51
Term & WithTargetText(Aws::String &&value)
Definition Term.h:64
void SetSourceText(const Aws::String &value)
Definition Term.h:46
AWS_TRANSLATE_API Term()
const Aws::String & GetSourceText() const
Definition Term.h:44
AWS_TRANSLATE_API Term & operator=(Aws::Utils::Json::JsonView jsonValue)
Term & WithSourceText(const Aws::String &value)
Definition Term.h:49
void SetTargetText(const char *value)
Definition Term.h:62
void SetSourceText(Aws::String &&value)
Definition Term.h:47
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