AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 Formality GetFormality() const { return m_formality; }
64 inline bool FormalityHasBeenSet() const { return m_formalityHasBeenSet; }
65 inline void SetFormality(Formality value) { m_formalityHasBeenSet = true; m_formality = value; }
66 inline TranslationSettings& WithFormality(Formality value) { SetFormality(value); return *this;}
68
70
84 inline Profanity GetProfanity() const { return m_profanity; }
85 inline bool ProfanityHasBeenSet() const { return m_profanityHasBeenSet; }
86 inline void SetProfanity(Profanity value) { m_profanityHasBeenSet = true; m_profanity = value; }
87 inline TranslationSettings& WithProfanity(Profanity value) { SetProfanity(value); return *this;}
89
91
101 inline Brevity GetBrevity() const { return m_brevity; }
102 inline bool BrevityHasBeenSet() const { return m_brevityHasBeenSet; }
103 inline void SetBrevity(Brevity value) { m_brevityHasBeenSet = true; m_brevity = value; }
104 inline TranslationSettings& WithBrevity(Brevity value) { SetBrevity(value); return *this;}
106 private:
107
108 Formality m_formality{Formality::NOT_SET};
109 bool m_formalityHasBeenSet = false;
110
111 Profanity m_profanity{Profanity::NOT_SET};
112 bool m_profanityHasBeenSet = false;
113
114 Brevity m_brevity{Brevity::NOT_SET};
115 bool m_brevityHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace Translate
120} // 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