AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VocabularySummary.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connect/model/VocabularyLanguageCode.h>
10#include <aws/connect/model/VocabularyState.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Connect
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_CONNECT_API VocabularySummary() = default;
41 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 VocabularySummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
64 template<typename IdT = Aws::String>
65 VocabularySummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetArn() const { return m_arn; }
73 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
74 template<typename ArnT = Aws::String>
75 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
76 template<typename ArnT = Aws::String>
77 VocabularySummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
79
81
87 inline VocabularyLanguageCode GetLanguageCode() const { return m_languageCode; }
88 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
89 inline void SetLanguageCode(VocabularyLanguageCode value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
92
94
97 inline VocabularyState GetState() const { return m_state; }
98 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
99 inline void SetState(VocabularyState value) { m_stateHasBeenSet = true; m_state = value; }
100 inline VocabularySummary& WithState(VocabularyState value) { SetState(value); return *this;}
102
104
107 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
108 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
109 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
110 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
111 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
112 VocabularySummary& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
114
116
119 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
120 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
121 template<typename FailureReasonT = Aws::String>
122 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
123 template<typename FailureReasonT = Aws::String>
124 VocabularySummary& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
126 private:
127
128 Aws::String m_name;
129 bool m_nameHasBeenSet = false;
130
131 Aws::String m_id;
132 bool m_idHasBeenSet = false;
133
134 Aws::String m_arn;
135 bool m_arnHasBeenSet = false;
136
138 bool m_languageCodeHasBeenSet = false;
139
141 bool m_stateHasBeenSet = false;
142
143 Aws::Utils::DateTime m_lastModifiedTime{};
144 bool m_lastModifiedTimeHasBeenSet = false;
145
146 Aws::String m_failureReason;
147 bool m_failureReasonHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace Connect
152} // namespace Aws
const Aws::String & GetFailureReason() const
void SetState(VocabularyState value)
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