AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
FaqSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kendra/Kendra_EXPORTS.h>
10#include <aws/kendra/model/FaqFileFormat.h>
11#include <aws/kendra/model/FaqStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace kendra {
23namespace Model {
24
32 public:
33 AWS_KENDRA_API FaqSummary() = default;
34 AWS_KENDRA_API FaqSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
50 FaqSummary& WithId(IdT&& value) {
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
68 FaqSummary& WithName(NameT&& value) {
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
79 inline FaqStatus GetStatus() const { return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 inline void SetStatus(FaqStatus value) {
82 m_statusHasBeenSet = true;
83 m_status = value;
84 }
86 SetStatus(value);
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
96 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
97 template <typename CreatedAtT = Aws::Utils::DateTime>
98 void SetCreatedAt(CreatedAtT&& value) {
99 m_createdAtHasBeenSet = true;
100 m_createdAt = std::forward<CreatedAtT>(value);
101 }
102 template <typename CreatedAtT = Aws::Utils::DateTime>
103 FaqSummary& WithCreatedAt(CreatedAtT&& value) {
104 SetCreatedAt(std::forward<CreatedAtT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
114 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
115 template <typename UpdatedAtT = Aws::Utils::DateTime>
116 void SetUpdatedAt(UpdatedAtT&& value) {
117 m_updatedAtHasBeenSet = true;
118 m_updatedAt = std::forward<UpdatedAtT>(value);
119 }
120 template <typename UpdatedAtT = Aws::Utils::DateTime>
121 FaqSummary& WithUpdatedAt(UpdatedAtT&& value) {
122 SetUpdatedAt(std::forward<UpdatedAtT>(value));
123 return *this;
124 }
126
128
131 inline FaqFileFormat GetFileFormat() const { return m_fileFormat; }
132 inline bool FileFormatHasBeenSet() const { return m_fileFormatHasBeenSet; }
133 inline void SetFileFormat(FaqFileFormat value) {
134 m_fileFormatHasBeenSet = true;
135 m_fileFormat = value;
136 }
138 SetFileFormat(value);
139 return *this;
140 }
142
144
151 inline const Aws::String& GetLanguageCode() const { return m_languageCode; }
152 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
153 template <typename LanguageCodeT = Aws::String>
154 void SetLanguageCode(LanguageCodeT&& value) {
155 m_languageCodeHasBeenSet = true;
156 m_languageCode = std::forward<LanguageCodeT>(value);
157 }
158 template <typename LanguageCodeT = Aws::String>
159 FaqSummary& WithLanguageCode(LanguageCodeT&& value) {
160 SetLanguageCode(std::forward<LanguageCodeT>(value));
161 return *this;
162 }
164 private:
165 Aws::String m_id;
166
167 Aws::String m_name;
168
170
171 Aws::Utils::DateTime m_createdAt{};
172
173 Aws::Utils::DateTime m_updatedAt{};
174
176
177 Aws::String m_languageCode;
178 bool m_idHasBeenSet = false;
179 bool m_nameHasBeenSet = false;
180 bool m_statusHasBeenSet = false;
181 bool m_createdAtHasBeenSet = false;
182 bool m_updatedAtHasBeenSet = false;
183 bool m_fileFormatHasBeenSet = false;
184 bool m_languageCodeHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace kendra
189} // namespace Aws
FaqSummary & WithStatus(FaqStatus value)
Definition FaqSummary.h:85
FaqFileFormat GetFileFormat() const
Definition FaqSummary.h:131
FaqSummary & WithName(NameT &&value)
Definition FaqSummary.h:68
FaqSummary & WithUpdatedAt(UpdatedAtT &&value)
Definition FaqSummary.h:121
const Aws::String & GetName() const
Definition FaqSummary.h:60
void SetStatus(FaqStatus value)
Definition FaqSummary.h:81
void SetUpdatedAt(UpdatedAtT &&value)
Definition FaqSummary.h:116
void SetCreatedAt(CreatedAtT &&value)
Definition FaqSummary.h:98
const Aws::Utils::DateTime & GetCreatedAt() const
Definition FaqSummary.h:95
const Aws::String & GetLanguageCode() const
Definition FaqSummary.h:151
FaqSummary & WithLanguageCode(LanguageCodeT &&value)
Definition FaqSummary.h:159
void SetFileFormat(FaqFileFormat value)
Definition FaqSummary.h:133
const Aws::String & GetId() const
Definition FaqSummary.h:42
FaqStatus GetStatus() const
Definition FaqSummary.h:79
FaqSummary & WithFileFormat(FaqFileFormat value)
Definition FaqSummary.h:137
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KENDRA_API FaqSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
FaqSummary & WithId(IdT &&value)
Definition FaqSummary.h:50
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition FaqSummary.h:113
AWS_KENDRA_API FaqSummary(Aws::Utils::Json::JsonView jsonValue)
FaqSummary & WithCreatedAt(CreatedAtT &&value)
Definition FaqSummary.h:103
void SetLanguageCode(LanguageCodeT &&value)
Definition FaqSummary.h:154
void SetName(NameT &&value)
Definition FaqSummary.h:63
AWS_KENDRA_API FaqSummary()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue