AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
GetIndexResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/resource-explorer-2/ResourceExplorer2_EXPORTS.h>
13#include <aws/resource-explorer-2/model/IndexState.h>
14#include <aws/resource-explorer-2/model/IndexType.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace ResourceExplorer2 {
28namespace Model {
30 public:
31 AWS_RESOURCEEXPLORER2_API GetIndexResult() = default;
34
36
41 inline const Aws::String& GetArn() const { return m_arn; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
48 GetIndexResult& WithArn(ArnT&& value) {
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
61 inline IndexType GetType() const { return m_type; }
62 inline void SetType(IndexType value) {
63 m_typeHasBeenSet = true;
64 m_type = value;
65 }
67 SetType(value);
68 return *this;
69 }
71
73
76 inline IndexState GetState() const { return m_state; }
77 inline void SetState(IndexState value) {
78 m_stateHasBeenSet = true;
79 m_state = value;
80 }
82 SetState(value);
83 return *this;
84 }
86
88
93 inline const Aws::Vector<Aws::String>& GetReplicatingFrom() const { return m_replicatingFrom; }
94 template <typename ReplicatingFromT = Aws::Vector<Aws::String>>
95 void SetReplicatingFrom(ReplicatingFromT&& value) {
96 m_replicatingFromHasBeenSet = true;
97 m_replicatingFrom = std::forward<ReplicatingFromT>(value);
98 }
99 template <typename ReplicatingFromT = Aws::Vector<Aws::String>>
100 GetIndexResult& WithReplicatingFrom(ReplicatingFromT&& value) {
101 SetReplicatingFrom(std::forward<ReplicatingFromT>(value));
102 return *this;
103 }
104 template <typename ReplicatingFromT = Aws::String>
105 GetIndexResult& AddReplicatingFrom(ReplicatingFromT&& value) {
106 m_replicatingFromHasBeenSet = true;
107 m_replicatingFrom.emplace_back(std::forward<ReplicatingFromT>(value));
108 return *this;
109 }
111
113
120 inline const Aws::Vector<Aws::String>& GetReplicatingTo() const { return m_replicatingTo; }
121 template <typename ReplicatingToT = Aws::Vector<Aws::String>>
122 void SetReplicatingTo(ReplicatingToT&& value) {
123 m_replicatingToHasBeenSet = true;
124 m_replicatingTo = std::forward<ReplicatingToT>(value);
125 }
126 template <typename ReplicatingToT = Aws::Vector<Aws::String>>
127 GetIndexResult& WithReplicatingTo(ReplicatingToT&& value) {
128 SetReplicatingTo(std::forward<ReplicatingToT>(value));
129 return *this;
130 }
131 template <typename ReplicatingToT = Aws::String>
132 GetIndexResult& AddReplicatingTo(ReplicatingToT&& value) {
133 m_replicatingToHasBeenSet = true;
134 m_replicatingTo.emplace_back(std::forward<ReplicatingToT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
144 template <typename CreatedAtT = Aws::Utils::DateTime>
145 void SetCreatedAt(CreatedAtT&& value) {
146 m_createdAtHasBeenSet = true;
147 m_createdAt = std::forward<CreatedAtT>(value);
148 }
149 template <typename CreatedAtT = Aws::Utils::DateTime>
150 GetIndexResult& WithCreatedAt(CreatedAtT&& value) {
151 SetCreatedAt(std::forward<CreatedAtT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
161 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
162 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
163 m_lastUpdatedAtHasBeenSet = true;
164 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
165 }
166 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
167 GetIndexResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
168 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
178 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
179 void SetTags(TagsT&& value) {
180 m_tagsHasBeenSet = true;
181 m_tags = std::forward<TagsT>(value);
182 }
183 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
184 GetIndexResult& WithTags(TagsT&& value) {
185 SetTags(std::forward<TagsT>(value));
186 return *this;
187 }
188 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
189 GetIndexResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
190 m_tagsHasBeenSet = true;
191 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
192 return *this;
193 }
195
197
198 inline const Aws::String& GetRequestId() const { return m_requestId; }
199 template <typename RequestIdT = Aws::String>
200 void SetRequestId(RequestIdT&& value) {
201 m_requestIdHasBeenSet = true;
202 m_requestId = std::forward<RequestIdT>(value);
203 }
204 template <typename RequestIdT = Aws::String>
205 GetIndexResult& WithRequestId(RequestIdT&& value) {
206 SetRequestId(std::forward<RequestIdT>(value));
207 return *this;
208 }
210 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
211
212 private:
213 Aws::String m_arn;
214
216
218
219 Aws::Vector<Aws::String> m_replicatingFrom;
220
221 Aws::Vector<Aws::String> m_replicatingTo;
222
223 Aws::Utils::DateTime m_createdAt{};
224
225 Aws::Utils::DateTime m_lastUpdatedAt{};
226
228
229 Aws::String m_requestId;
230 Aws::Http::HttpResponseCode m_HttpResponseCode;
231 bool m_arnHasBeenSet = false;
232 bool m_typeHasBeenSet = false;
233 bool m_stateHasBeenSet = false;
234 bool m_replicatingFromHasBeenSet = false;
235 bool m_replicatingToHasBeenSet = false;
236 bool m_createdAtHasBeenSet = false;
237 bool m_lastUpdatedAtHasBeenSet = false;
238 bool m_tagsHasBeenSet = false;
239 bool m_requestIdHasBeenSet = false;
240};
241
242} // namespace Model
243} // namespace ResourceExplorer2
244} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< Aws::String > & GetReplicatingTo() const
void SetReplicatingFrom(ReplicatingFromT &&value)
GetIndexResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< Aws::String > & GetReplicatingFrom() const
AWS_RESOURCEEXPLORER2_API GetIndexResult()=default
GetIndexResult & WithCreatedAt(CreatedAtT &&value)
GetIndexResult & WithArn(ArnT &&value)
GetIndexResult & WithReplicatingTo(ReplicatingToT &&value)
AWS_RESOURCEEXPLORER2_API GetIndexResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetIndexResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetIndexResult & WithState(IndexState value)
GetIndexResult & WithType(IndexType value)
GetIndexResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
GetIndexResult & WithReplicatingFrom(ReplicatingFromT &&value)
AWS_RESOURCEEXPLORER2_API GetIndexResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetReplicatingTo(ReplicatingToT &&value)
GetIndexResult & WithTags(TagsT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetLastUpdatedAt(LastUpdatedAtT &&value)
GetIndexResult & AddReplicatingFrom(ReplicatingFromT &&value)
GetIndexResult & AddReplicatingTo(ReplicatingToT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue