AWS SDK for C++

AWS SDK for C++ Version 1.11.923

Loading...
Searching...
No Matches
LexiconAttributes.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/polly/Polly_EXPORTS.h>
10#include <aws/polly/model/LanguageCode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Polly {
22namespace Model {
23
33 public:
34 AWS_POLLY_API LexiconAttributes() = default;
37 AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
46 inline const Aws::String& GetAlphabet() const { return m_alphabet; }
47 inline bool AlphabetHasBeenSet() const { return m_alphabetHasBeenSet; }
48 template <typename AlphabetT = Aws::String>
49 void SetAlphabet(AlphabetT&& value) {
50 m_alphabetHasBeenSet = true;
51 m_alphabet = std::forward<AlphabetT>(value);
52 }
53 template <typename AlphabetT = Aws::String>
54 LexiconAttributes& WithAlphabet(AlphabetT&& value) {
55 SetAlphabet(std::forward<AlphabetT>(value));
56 return *this;
57 }
59
61
66 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
67 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
68 inline void SetLanguageCode(LanguageCode value) {
69 m_languageCodeHasBeenSet = true;
70 m_languageCode = value;
71 }
73 SetLanguageCode(value);
74 return *this;
75 }
77
79
82 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
83 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
84 template <typename LastModifiedT = Aws::Utils::DateTime>
85 void SetLastModified(LastModifiedT&& value) {
86 m_lastModifiedHasBeenSet = true;
87 m_lastModified = std::forward<LastModifiedT>(value);
88 }
89 template <typename LastModifiedT = Aws::Utils::DateTime>
90 LexiconAttributes& WithLastModified(LastModifiedT&& value) {
91 SetLastModified(std::forward<LastModifiedT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetLexiconArn() const { return m_lexiconArn; }
101 inline bool LexiconArnHasBeenSet() const { return m_lexiconArnHasBeenSet; }
102 template <typename LexiconArnT = Aws::String>
103 void SetLexiconArn(LexiconArnT&& value) {
104 m_lexiconArnHasBeenSet = true;
105 m_lexiconArn = std::forward<LexiconArnT>(value);
106 }
107 template <typename LexiconArnT = Aws::String>
108 LexiconAttributes& WithLexiconArn(LexiconArnT&& value) {
109 SetLexiconArn(std::forward<LexiconArnT>(value));
110 return *this;
111 }
113
115
118 inline int GetLexemesCount() const { return m_lexemesCount; }
119 inline bool LexemesCountHasBeenSet() const { return m_lexemesCountHasBeenSet; }
120 inline void SetLexemesCount(int value) {
121 m_lexemesCountHasBeenSet = true;
122 m_lexemesCount = value;
123 }
125 SetLexemesCount(value);
126 return *this;
127 }
129
131
134 inline int GetSize() const { return m_size; }
135 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
136 inline void SetSize(int value) {
137 m_sizeHasBeenSet = true;
138 m_size = value;
139 }
140 inline LexiconAttributes& WithSize(int value) {
141 SetSize(value);
142 return *this;
143 }
145 private:
146 Aws::String m_alphabet;
147
148 LanguageCode m_languageCode{LanguageCode::NOT_SET};
149
150 Aws::Utils::DateTime m_lastModified{};
151
152 Aws::String m_lexiconArn;
153
154 int m_lexemesCount{0};
155
156 int m_size{0};
157 bool m_alphabetHasBeenSet = false;
158 bool m_languageCodeHasBeenSet = false;
159 bool m_lastModifiedHasBeenSet = false;
160 bool m_lexiconArnHasBeenSet = false;
161 bool m_lexemesCountHasBeenSet = false;
162 bool m_sizeHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace Polly
167} // namespace Aws
const Aws::String & GetLexiconArn() const
LexiconAttributes & WithSize(int value)
LexiconAttributes & WithLastModified(LastModifiedT &&value)
LexiconAttributes & WithAlphabet(AlphabetT &&value)
const Aws::Utils::DateTime & GetLastModified() const
void SetLastModified(LastModifiedT &&value)
AWS_POLLY_API LexiconAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_POLLY_API LexiconAttributes()=default
LexiconAttributes & WithLanguageCode(LanguageCode value)
AWS_POLLY_API LexiconAttributes(Aws::Utils::Json::JsonView jsonValue)
LexiconAttributes & WithLexiconArn(LexiconArnT &&value)
void SetLexiconArn(LexiconArnT &&value)
void SetLanguageCode(LanguageCode value)
AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAlphabet() const
LexiconAttributes & WithLexemesCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue