AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TranslationSettings.h
1
6#pragma once
7#include <aws/translate/Translate_EXPORTS.h>
8#include <aws/translate/model/Formality.h>
9#include <aws/translate/model/Profanity.h>
10#include <aws/translate/model/Brevity.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Translate
24{
25namespace Model
26{
27
40 {
41 public:
42 AWS_TRANSLATE_API TranslationSettings();
43 AWS_TRANSLATE_API TranslationSettings(Aws::Utils::Json::JsonView jsonValue);
45 AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
63 inline const Formality& GetFormality() const{ return m_formality; }
64 inline bool FormalityHasBeenSet() const { return m_formalityHasBeenSet; }
65 inline void SetFormality(const Formality& value) { m_formalityHasBeenSet = true; m_formality = value; }
66 inline void SetFormality(Formality&& value) { m_formalityHasBeenSet = true; m_formality = std::move(value); }
67 inline TranslationSettings& WithFormality(const Formality& value) { SetFormality(value); return *this;}
68 inline TranslationSettings& WithFormality(Formality&& value) { SetFormality(std::move(value)); return *this;}
70
72
86 inline const Profanity& GetProfanity() const{ return m_profanity; }
87 inline bool ProfanityHasBeenSet() const { return m_profanityHasBeenSet; }
88 inline void SetProfanity(const Profanity& value) { m_profanityHasBeenSet = true; m_profanity = value; }
89 inline void SetProfanity(Profanity&& value) { m_profanityHasBeenSet = true; m_profanity = std::move(value); }
90 inline TranslationSettings& WithProfanity(const Profanity& value) { SetProfanity(value); return *this;}
91 inline TranslationSettings& WithProfanity(Profanity&& value) { SetProfanity(std::move(value)); return *this;}
93
95
105 inline const Brevity& GetBrevity() const{ return m_brevity; }
106 inline bool BrevityHasBeenSet() const { return m_brevityHasBeenSet; }
107 inline void SetBrevity(const Brevity& value) { m_brevityHasBeenSet = true; m_brevity = value; }
108 inline void SetBrevity(Brevity&& value) { m_brevityHasBeenSet = true; m_brevity = std::move(value); }
109 inline TranslationSettings& WithBrevity(const Brevity& value) { SetBrevity(value); return *this;}
110 inline TranslationSettings& WithBrevity(Brevity&& value) { SetBrevity(std::move(value)); return *this;}
112 private:
113
114 Formality m_formality;
115 bool m_formalityHasBeenSet = false;
116
117 Profanity m_profanity;
118 bool m_profanityHasBeenSet = false;
119
120 Brevity m_brevity;
121 bool m_brevityHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace Translate
126} // namespace Aws
TranslationSettings & WithFormality(const Formality &value)
TranslationSettings & WithProfanity(const Profanity &value)
AWS_TRANSLATE_API TranslationSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSLATE_API TranslationSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
TranslationSettings & WithProfanity(Profanity &&value)
TranslationSettings & WithFormality(Formality &&value)
TranslationSettings & WithBrevity(Brevity &&value)
TranslationSettings & WithBrevity(const Brevity &value)
AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue