AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
TranslationSettings.h
1
6#pragma once
7#include <aws/translate/Translate_EXPORTS.h>
8#include <aws/translate/model/Brevity.h>
9#include <aws/translate/model/Formality.h>
10#include <aws/translate/model/Profanity.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Translate {
22namespace Model {
23
36 public:
37 AWS_TRANSLATE_API TranslationSettings() = default;
38 AWS_TRANSLATE_API TranslationSettings(Aws::Utils::Json::JsonView jsonValue);
40 AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
57 inline Formality GetFormality() const { return m_formality; }
58 inline bool FormalityHasBeenSet() const { return m_formalityHasBeenSet; }
59 inline void SetFormality(Formality value) {
60 m_formalityHasBeenSet = true;
61 m_formality = value;
62 }
64 SetFormality(value);
65 return *this;
66 }
68
70
84 inline Profanity GetProfanity() const { return m_profanity; }
85 inline bool ProfanityHasBeenSet() const { return m_profanityHasBeenSet; }
86 inline void SetProfanity(Profanity value) {
87 m_profanityHasBeenSet = true;
88 m_profanity = value;
89 }
91 SetProfanity(value);
92 return *this;
93 }
95
97
107 inline Brevity GetBrevity() const { return m_brevity; }
108 inline bool BrevityHasBeenSet() const { return m_brevityHasBeenSet; }
109 inline void SetBrevity(Brevity value) {
110 m_brevityHasBeenSet = true;
111 m_brevity = value;
112 }
114 SetBrevity(value);
115 return *this;
116 }
118 private:
119 Formality m_formality{Formality::NOT_SET};
120 bool m_formalityHasBeenSet = false;
121
122 Profanity m_profanity{Profanity::NOT_SET};
123 bool m_profanityHasBeenSet = false;
124
125 Brevity m_brevity{Brevity::NOT_SET};
126 bool m_brevityHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace Translate
131} // namespace Aws
AWS_TRANSLATE_API TranslationSettings()=default
TranslationSettings & WithProfanity(Profanity value)
AWS_TRANSLATE_API TranslationSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSLATE_API TranslationSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
TranslationSettings & WithBrevity(Brevity value)
TranslationSettings & WithFormality(Formality value)
AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue