AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
IndexConfigurationSummary.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/IndexEdition.h>
11#include <aws/kendra/model/IndexStatus.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 IndexConfigurationSummary() = default;
36 AWS_KENDRA_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>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetId() const { return m_id; }
63 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
64 template <typename IdT = Aws::String>
65 void SetId(IdT&& value) {
66 m_idHasBeenSet = true;
67 m_id = std::forward<IdT>(value);
68 }
69 template <typename IdT = Aws::String>
71 SetId(std::forward<IdT>(value));
72 return *this;
73 }
75
77
81 inline IndexEdition GetEdition() const { return m_edition; }
82 inline bool EditionHasBeenSet() const { return m_editionHasBeenSet; }
83 inline void SetEdition(IndexEdition value) {
84 m_editionHasBeenSet = true;
85 m_edition = value;
86 }
88 SetEdition(value);
89 return *this;
90 }
92
94
97 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
98 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
99 template <typename CreatedAtT = Aws::Utils::DateTime>
100 void SetCreatedAt(CreatedAtT&& value) {
101 m_createdAtHasBeenSet = true;
102 m_createdAt = std::forward<CreatedAtT>(value);
103 }
104 template <typename CreatedAtT = Aws::Utils::DateTime>
106 SetCreatedAt(std::forward<CreatedAtT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
116 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
117 template <typename UpdatedAtT = Aws::Utils::DateTime>
118 void SetUpdatedAt(UpdatedAtT&& value) {
119 m_updatedAtHasBeenSet = true;
120 m_updatedAt = std::forward<UpdatedAtT>(value);
121 }
122 template <typename UpdatedAtT = Aws::Utils::DateTime>
124 SetUpdatedAt(std::forward<UpdatedAtT>(value));
125 return *this;
126 }
128
130
134 inline IndexStatus GetStatus() const { return m_status; }
135 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
136 inline void SetStatus(IndexStatus value) {
137 m_statusHasBeenSet = true;
138 m_status = value;
139 }
141 SetStatus(value);
142 return *this;
143 }
145 private:
146 Aws::String m_name;
147
148 Aws::String m_id;
149
151
152 Aws::Utils::DateTime m_createdAt{};
153
154 Aws::Utils::DateTime m_updatedAt{};
155
157 bool m_nameHasBeenSet = false;
158 bool m_idHasBeenSet = false;
159 bool m_editionHasBeenSet = false;
160 bool m_createdAtHasBeenSet = false;
161 bool m_updatedAtHasBeenSet = false;
162 bool m_statusHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace kendra
167} // namespace Aws
IndexConfigurationSummary & WithName(NameT &&value)
AWS_KENDRA_API IndexConfigurationSummary(Aws::Utils::Json::JsonView jsonValue)
IndexConfigurationSummary & WithStatus(IndexStatus value)
AWS_KENDRA_API IndexConfigurationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
IndexConfigurationSummary & WithUpdatedAt(UpdatedAtT &&value)
AWS_KENDRA_API IndexConfigurationSummary()=default
IndexConfigurationSummary & WithCreatedAt(CreatedAtT &&value)
IndexConfigurationSummary & WithId(IdT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
IndexConfigurationSummary & WithEdition(IndexEdition value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue