AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateCollectionDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
9#include <aws/opensearchserverless/model/CollectionStatus.h>
10#include <aws/opensearchserverless/model/CollectionType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpenSearchServerless {
22namespace Model {
23
31 public:
32 AWS_OPENSEARCHSERVERLESS_API UpdateCollectionDetail() = default;
33 AWS_OPENSEARCHSERVERLESS_API UpdateCollectionDetail(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVERLESS_API UpdateCollectionDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline CollectionStatus GetStatus() const { return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
79 inline void SetStatus(CollectionStatus value) {
80 m_statusHasBeenSet = true;
81 m_status = value;
82 }
84 SetStatus(value);
85 return *this;
86 }
88
90
93 inline CollectionType GetType() const { return m_type; }
94 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
95 inline void SetType(CollectionType value) {
96 m_typeHasBeenSet = true;
97 m_type = value;
98 }
100 SetType(value);
101 return *this;
102 }
104
106
109 inline const Aws::String& GetDescription() const { return m_description; }
110 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
111 template <typename DescriptionT = Aws::String>
112 void SetDescription(DescriptionT&& value) {
113 m_descriptionHasBeenSet = true;
114 m_description = std::forward<DescriptionT>(value);
115 }
116 template <typename DescriptionT = Aws::String>
118 SetDescription(std::forward<DescriptionT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetArn() const { return m_arn; }
128 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
129 template <typename ArnT = Aws::String>
130 void SetArn(ArnT&& value) {
131 m_arnHasBeenSet = true;
132 m_arn = std::forward<ArnT>(value);
133 }
134 template <typename ArnT = Aws::String>
136 SetArn(std::forward<ArnT>(value));
137 return *this;
138 }
140
142
145 inline long long GetCreatedDate() const { return m_createdDate; }
146 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
147 inline void SetCreatedDate(long long value) {
148 m_createdDateHasBeenSet = true;
149 m_createdDate = value;
150 }
151 inline UpdateCollectionDetail& WithCreatedDate(long long value) {
152 SetCreatedDate(value);
153 return *this;
154 }
156
158
161 inline long long GetLastModifiedDate() const { return m_lastModifiedDate; }
162 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
163 inline void SetLastModifiedDate(long long value) {
164 m_lastModifiedDateHasBeenSet = true;
165 m_lastModifiedDate = value;
166 }
168 SetLastModifiedDate(value);
169 return *this;
170 }
172 private:
173 Aws::String m_id;
174
175 Aws::String m_name;
176
178
180
181 Aws::String m_description;
182
183 Aws::String m_arn;
184
185 long long m_createdDate{0};
186
187 long long m_lastModifiedDate{0};
188 bool m_idHasBeenSet = false;
189 bool m_nameHasBeenSet = false;
190 bool m_statusHasBeenSet = false;
191 bool m_typeHasBeenSet = false;
192 bool m_descriptionHasBeenSet = false;
193 bool m_arnHasBeenSet = false;
194 bool m_createdDateHasBeenSet = false;
195 bool m_lastModifiedDateHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace OpenSearchServerless
200} // namespace Aws
AWS_OPENSEARCHSERVERLESS_API UpdateCollectionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API UpdateCollectionDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
UpdateCollectionDetail & WithLastModifiedDate(long long value)
UpdateCollectionDetail & WithType(CollectionType value)
AWS_OPENSEARCHSERVERLESS_API UpdateCollectionDetail()=default
UpdateCollectionDetail & WithStatus(CollectionStatus value)
UpdateCollectionDetail & WithCreatedDate(long long value)
UpdateCollectionDetail & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue