AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
VocabularySummary.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/VocabularyLanguageCode.h>
9#include <aws/connect/model/VocabularyState.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Connect {
23namespace Model {
24
32 public:
33 AWS_CONNECT_API VocabularySummary() = default;
36 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 VocabularySummary& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetId() const { return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 template <typename IdT = Aws::String>
63 void SetId(IdT&& value) {
64 m_idHasBeenSet = true;
65 m_id = std::forward<IdT>(value);
66 }
67 template <typename IdT = Aws::String>
68 VocabularySummary& WithId(IdT&& value) {
69 SetId(std::forward<IdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetArn() const { return m_arn; }
79 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
80 template <typename ArnT = Aws::String>
81 void SetArn(ArnT&& value) {
82 m_arnHasBeenSet = true;
83 m_arn = std::forward<ArnT>(value);
84 }
85 template <typename ArnT = Aws::String>
86 VocabularySummary& WithArn(ArnT&& value) {
87 SetArn(std::forward<ArnT>(value));
88 return *this;
89 }
91
93
99 inline VocabularyLanguageCode GetLanguageCode() const { return m_languageCode; }
100 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
102 m_languageCodeHasBeenSet = true;
103 m_languageCode = value;
104 }
106 SetLanguageCode(value);
107 return *this;
108 }
110
112
115 inline VocabularyState GetState() const { return m_state; }
116 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
117 inline void SetState(VocabularyState value) {
118 m_stateHasBeenSet = true;
119 m_state = value;
120 }
122 SetState(value);
123 return *this;
124 }
126
128
131 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
132 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
133 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
134 void SetLastModifiedTime(LastModifiedTimeT&& value) {
135 m_lastModifiedTimeHasBeenSet = true;
136 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
137 }
138 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
139 VocabularySummary& WithLastModifiedTime(LastModifiedTimeT&& value) {
140 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
150 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
151 template <typename FailureReasonT = Aws::String>
152 void SetFailureReason(FailureReasonT&& value) {
153 m_failureReasonHasBeenSet = true;
154 m_failureReason = std::forward<FailureReasonT>(value);
155 }
156 template <typename FailureReasonT = Aws::String>
157 VocabularySummary& WithFailureReason(FailureReasonT&& value) {
158 SetFailureReason(std::forward<FailureReasonT>(value));
159 return *this;
160 }
162 private:
163 Aws::String m_name;
164
165 Aws::String m_id;
166
167 Aws::String m_arn;
168
170
172
173 Aws::Utils::DateTime m_lastModifiedTime{};
174
175 Aws::String m_failureReason;
176 bool m_nameHasBeenSet = false;
177 bool m_idHasBeenSet = false;
178 bool m_arnHasBeenSet = false;
179 bool m_languageCodeHasBeenSet = false;
180 bool m_stateHasBeenSet = false;
181 bool m_lastModifiedTimeHasBeenSet = false;
182 bool m_failureReasonHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace Connect
187} // namespace Aws
const Aws::String & GetFailureReason() const
VocabularySummary & WithName(NameT &&value)
VocabularySummary & WithFailureReason(FailureReasonT &&value)
const Aws::String & GetName() const
AWS_CONNECT_API VocabularySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
VocabularySummary & WithLanguageCode(VocabularyLanguageCode value)
VocabularySummary & WithId(IdT &&value)
void SetLanguageCode(VocabularyLanguageCode value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
VocabularyLanguageCode GetLanguageCode() const
VocabularySummary & WithLastModifiedTime(LastModifiedTimeT &&value)
AWS_CONNECT_API VocabularySummary()=default
void SetFailureReason(FailureReasonT &&value)
VocabularySummary & WithState(VocabularyState value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
AWS_CONNECT_API VocabularySummary(Aws::Utils::Json::JsonView jsonValue)
VocabularySummary & WithArn(ArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue