AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetIndexResult.h
1
6#pragma once
7#include <aws/resource-explorer-2/ResourceExplorer2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/resource-explorer-2/model/IndexState.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/resource-explorer-2/model/IndexType.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace ResourceExplorer2
29{
30namespace Model
31{
33 {
34 public:
35 AWS_RESOURCEEXPLORER2_API GetIndexResult() = default;
38
39
41
46 inline const Aws::String& GetArn() const { return m_arn; }
47 template<typename ArnT = Aws::String>
48 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
49 template<typename ArnT = Aws::String>
50 GetIndexResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
52
54
57 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
58 template<typename CreatedAtT = Aws::Utils::DateTime>
59 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
60 template<typename CreatedAtT = Aws::Utils::DateTime>
61 GetIndexResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
63
65
68 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
69 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
70 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
71 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
72 GetIndexResult& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
74
76
81 inline const Aws::Vector<Aws::String>& GetReplicatingFrom() const { return m_replicatingFrom; }
82 template<typename ReplicatingFromT = Aws::Vector<Aws::String>>
83 void SetReplicatingFrom(ReplicatingFromT&& value) { m_replicatingFromHasBeenSet = true; m_replicatingFrom = std::forward<ReplicatingFromT>(value); }
84 template<typename ReplicatingFromT = Aws::Vector<Aws::String>>
85 GetIndexResult& WithReplicatingFrom(ReplicatingFromT&& value) { SetReplicatingFrom(std::forward<ReplicatingFromT>(value)); return *this;}
86 template<typename ReplicatingFromT = Aws::String>
87 GetIndexResult& AddReplicatingFrom(ReplicatingFromT&& value) { m_replicatingFromHasBeenSet = true; m_replicatingFrom.emplace_back(std::forward<ReplicatingFromT>(value)); return *this; }
89
91
98 inline const Aws::Vector<Aws::String>& GetReplicatingTo() const { return m_replicatingTo; }
99 template<typename ReplicatingToT = Aws::Vector<Aws::String>>
100 void SetReplicatingTo(ReplicatingToT&& value) { m_replicatingToHasBeenSet = true; m_replicatingTo = std::forward<ReplicatingToT>(value); }
101 template<typename ReplicatingToT = Aws::Vector<Aws::String>>
102 GetIndexResult& WithReplicatingTo(ReplicatingToT&& value) { SetReplicatingTo(std::forward<ReplicatingToT>(value)); return *this;}
103 template<typename ReplicatingToT = Aws::String>
104 GetIndexResult& AddReplicatingTo(ReplicatingToT&& value) { m_replicatingToHasBeenSet = true; m_replicatingTo.emplace_back(std::forward<ReplicatingToT>(value)); return *this; }
106
108
111 inline IndexState GetState() const { return m_state; }
112 inline void SetState(IndexState value) { m_stateHasBeenSet = true; m_state = value; }
113 inline GetIndexResult& WithState(IndexState value) { SetState(value); return *this;}
115
117
120 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
121 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
122 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
123 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
124 GetIndexResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
125 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
126 GetIndexResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
127 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
128 }
130
132
138 inline IndexType GetType() const { return m_type; }
139 inline void SetType(IndexType value) { m_typeHasBeenSet = true; m_type = value; }
140 inline GetIndexResult& WithType(IndexType value) { SetType(value); return *this;}
142
144
145 inline const Aws::String& GetRequestId() const { return m_requestId; }
146 template<typename RequestIdT = Aws::String>
147 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
148 template<typename RequestIdT = Aws::String>
149 GetIndexResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
151 private:
152
153 Aws::String m_arn;
154 bool m_arnHasBeenSet = false;
155
156 Aws::Utils::DateTime m_createdAt{};
157 bool m_createdAtHasBeenSet = false;
158
159 Aws::Utils::DateTime m_lastUpdatedAt{};
160 bool m_lastUpdatedAtHasBeenSet = false;
161
162 Aws::Vector<Aws::String> m_replicatingFrom;
163 bool m_replicatingFromHasBeenSet = false;
164
165 Aws::Vector<Aws::String> m_replicatingTo;
166 bool m_replicatingToHasBeenSet = false;
167
169 bool m_stateHasBeenSet = false;
170
172 bool m_tagsHasBeenSet = false;
173
175 bool m_typeHasBeenSet = false;
176
177 Aws::String m_requestId;
178 bool m_requestIdHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace ResourceExplorer2
183} // namespace Aws
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