AWS SDK for C++

AWS SDK for C++ Version 1.11.912

Loading...
Searching...
No Matches
TranslationSettings.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/translate/Translate_EXPORTS.h>
9#include <aws/translate/model/Brevity.h>
10#include <aws/translate/model/Formality.h>
11#include <aws/translate/model/Profanity.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace Translate {
22namespace Model {
23
36 public:
37 AWS_TRANSLATE_API TranslationSettings() = default;
38 AWS_TRANSLATE_API TranslationSettings(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_TRANSLATE_API TranslationSettings& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_TRANSLATE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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
121 Profanity m_profanity{Profanity::NOT_SET};
122
123 Brevity m_brevity{Brevity::NOT_SET};
124 bool m_formalityHasBeenSet = false;
125 bool m_profanityHasBeenSet = false;
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 void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_TRANSLATE_API TranslationSettings(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
TranslationSettings & WithBrevity(Brevity value)
TranslationSettings & WithFormality(Formality value)
AWS_TRANSLATE_API TranslationSettings & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)