AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
44 inline const Aws::String& GetAlphabet() const { return m_alphabet; }
45 inline bool AlphabetHasBeenSet() const { return m_alphabetHasBeenSet; }
46 template <typename AlphabetT = Aws::String>
47 void SetAlphabet(AlphabetT&& value) {
48 m_alphabetHasBeenSet = true;
49 m_alphabet = std::forward<AlphabetT>(value);
50 }
51 template <typename AlphabetT = Aws::String>
52 LexiconAttributes& WithAlphabet(AlphabetT&& value) {
53 SetAlphabet(std::forward<AlphabetT>(value));
54 return *this;
55 }
57
59
64 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
65 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
66 inline void SetLanguageCode(LanguageCode value) {
67 m_languageCodeHasBeenSet = true;
68 m_languageCode = value;
69 }
71 SetLanguageCode(value);
72 return *this;
73 }
75
77
80 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
81 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
82 template <typename LastModifiedT = Aws::Utils::DateTime>
83 void SetLastModified(LastModifiedT&& value) {
84 m_lastModifiedHasBeenSet = true;
85 m_lastModified = std::forward<LastModifiedT>(value);
86 }
87 template <typename LastModifiedT = Aws::Utils::DateTime>
88 LexiconAttributes& WithLastModified(LastModifiedT&& value) {
89 SetLastModified(std::forward<LastModifiedT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetLexiconArn() const { return m_lexiconArn; }
99 inline bool LexiconArnHasBeenSet() const { return m_lexiconArnHasBeenSet; }
100 template <typename LexiconArnT = Aws::String>
101 void SetLexiconArn(LexiconArnT&& value) {
102 m_lexiconArnHasBeenSet = true;
103 m_lexiconArn = std::forward<LexiconArnT>(value);
104 }
105 template <typename LexiconArnT = Aws::String>
106 LexiconAttributes& WithLexiconArn(LexiconArnT&& value) {
107 SetLexiconArn(std::forward<LexiconArnT>(value));
108 return *this;
109 }
111
113
116 inline int GetLexemesCount() const { return m_lexemesCount; }
117 inline bool LexemesCountHasBeenSet() const { return m_lexemesCountHasBeenSet; }
118 inline void SetLexemesCount(int value) {
119 m_lexemesCountHasBeenSet = true;
120 m_lexemesCount = value;
121 }
123 SetLexemesCount(value);
124 return *this;
125 }
127
129
132 inline int GetSize() const { return m_size; }
133 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
134 inline void SetSize(int value) {
135 m_sizeHasBeenSet = true;
136 m_size = value;
137 }
138 inline LexiconAttributes& WithSize(int value) {
139 SetSize(value);
140 return *this;
141 }
143 private:
144 Aws::String m_alphabet;
145
146 LanguageCode m_languageCode{LanguageCode::NOT_SET};
147
148 Aws::Utils::DateTime m_lastModified{};
149
150 Aws::String m_lexiconArn;
151
152 int m_lexemesCount{0};
153
154 int m_size{0};
155 bool m_alphabetHasBeenSet = false;
156 bool m_languageCodeHasBeenSet = false;
157 bool m_lastModifiedHasBeenSet = false;
158 bool m_lexiconArnHasBeenSet = false;
159 bool m_lexemesCountHasBeenSet = false;
160 bool m_sizeHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace Polly
165} // 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