7#include <aws/core/utils/Waiter.h>
8#include <aws/core/utils/memory/AWSMemory.h>
9#include <aws/neptune-graph/NeptuneGraphClient.h>
10#include <aws/neptune-graph/model/ExportTaskStatus.h>
11#include <aws/neptune-graph/model/GetExportTaskRequest.h>
12#include <aws/neptune-graph/model/GetExportTaskResult.h>
13#include <aws/neptune-graph/model/GetGraphRequest.h>
14#include <aws/neptune-graph/model/GetGraphResult.h>
15#include <aws/neptune-graph/model/GetGraphSnapshotRequest.h>
16#include <aws/neptune-graph/model/GetGraphSnapshotResult.h>
17#include <aws/neptune-graph/model/GetImportTaskRequest.h>
18#include <aws/neptune-graph/model/GetImportTaskResult.h>
19#include <aws/neptune-graph/model/GetPrivateGraphEndpointRequest.h>
20#include <aws/neptune-graph/model/GetPrivateGraphEndpointResult.h>
21#include <aws/neptune-graph/model/GraphStatus.h>
22#include <aws/neptune-graph/model/ImportTaskStatus.h>
23#include <aws/neptune-graph/model/PrivateGraphEndpointStatus.h>
24#include <aws/neptune-graph/model/SnapshotStatus.h>
29namespace NeptuneGraph {
31template <
typename DerivedClient = NeptuneGraphClient>
39 "ExportTaskSuccessfulWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"CANCELLING"),
46 "ExportTaskSuccessfulWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"CANCELLED"),
53 "ExportTaskSuccessfulWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"FAILED"),
60 "ExportTaskSuccessfulWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"SUCCEEDED"),
67 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetExportTask(req); };
69 return waiter.
Wait(request);
77 "ExportTaskCancelledWaiter", Aws::Utils::WaiterState::FAILURE,
true,
85 "ExportTaskCancelledWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"CANCELLED"),
92 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetExportTask(req); };
94 return waiter.
Wait(request);
102 "GraphAvailableWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"DELETING"),
105 const auto& result = outcome.
GetResult();
109 "GraphAvailableWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"FAILED"),
112 const auto& result = outcome.
GetResult();
116 "GraphAvailableWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"AVAILABLE"),
119 const auto& result = outcome.
GetResult();
123 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetGraph(req); };
125 return waiter.
Wait(request);
133 "GraphDeletedWaiter", Aws::Utils::WaiterState::FAILURE,
true,
136 const auto& result = outcome.
GetResult();
142 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetGraph(req); };
144 return waiter.
Wait(request);
152 "GraphStoppedWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"STOPPED"),
155 const auto& result = outcome.
GetResult();
159 "GraphStoppedWaiter", Aws::Utils::WaiterState::FAILURE,
true,
162 const auto& result = outcome.
GetResult();
166 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetGraph(req); };
168 return waiter.
Wait(request);
176 "GraphSnapshotAvailableWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"DELETING"),
179 const auto& result = outcome.
GetResult();
183 "GraphSnapshotAvailableWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"FAILED"),
186 const auto& result = outcome.
GetResult();
190 "GraphSnapshotAvailableWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"AVAILABLE"),
193 const auto& result = outcome.
GetResult();
197 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetGraphSnapshot(req); };
199 return waiter.
Wait(request);
207 "GraphSnapshotDeletedWaiter", Aws::Utils::WaiterState::FAILURE,
true,
210 const auto& result = outcome.
GetResult();
214 "GraphSnapshotDeletedWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"ResourceNotFoundException")));
216 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetGraphSnapshot(req); };
218 return waiter.
Wait(request);
226 "ImportTaskSuccessfulWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"CANCELLING"),
229 const auto& result = outcome.
GetResult();
233 "ImportTaskSuccessfulWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"CANCELLED"),
236 const auto& result = outcome.
GetResult();
240 "ImportTaskSuccessfulWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"ROLLING_BACK"),
243 const auto& result = outcome.
GetResult();
247 "ImportTaskSuccessfulWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"FAILED"),
250 const auto& result = outcome.
GetResult();
254 "ImportTaskSuccessfulWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"SUCCEEDED"),
257 const auto& result = outcome.
GetResult();
261 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetImportTask(req); };
263 return waiter.
Wait(request);
271 "ImportTaskCancelledWaiter", Aws::Utils::WaiterState::FAILURE,
true,
274 const auto& result = outcome.
GetResult();
279 "ImportTaskCancelledWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"CANCELLED"),
282 const auto& result = outcome.
GetResult();
286 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetImportTask(req); };
288 return waiter.
Wait(request);
297 "PrivateGraphEndpointAvailableWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"DELETING"),
300 const auto& result = outcome.
GetResult();
305 "PrivateGraphEndpointAvailableWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"FAILED"),
308 const auto& result = outcome.
GetResult();
313 "PrivateGraphEndpointAvailableWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"AVAILABLE"),
316 const auto& result = outcome.
GetResult();
321 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetPrivateGraphEndpoint(req); };
323 return waiter.
Wait(request);
332 "PrivateGraphEndpointDeletedWaiter", Aws::Utils::WaiterState::FAILURE,
true,
335 const auto& result = outcome.
GetResult();
337 expected.get<
bool>();
340 "PrivateGraphEndpointDeletedWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"ResourceNotFoundException")));
342 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetPrivateGraphEndpoint(req); };
344 return waiter.
Wait(request);
Aws::Utils::WaiterOutcome< Model::GetImportTaskOutcome > WaitUntilImportTaskSuccessful(const Model::GetImportTaskRequest &request)
Aws::Utils::WaiterOutcome< Model::GetExportTaskOutcome > WaitUntilExportTaskCancelled(const Model::GetExportTaskRequest &request)
Aws::Utils::WaiterOutcome< Model::GetGraphSnapshotOutcome > WaitUntilGraphSnapshotDeleted(const Model::GetGraphSnapshotRequest &request)
Aws::Utils::WaiterOutcome< Model::GetGraphOutcome > WaitUntilGraphAvailable(const Model::GetGraphRequest &request)
Aws::Utils::WaiterOutcome< Model::GetGraphOutcome > WaitUntilGraphStopped(const Model::GetGraphRequest &request)
Aws::Utils::WaiterOutcome< Model::GetImportTaskOutcome > WaitUntilImportTaskCancelled(const Model::GetImportTaskRequest &request)
Aws::Utils::WaiterOutcome< Model::GetPrivateGraphEndpointOutcome > WaitUntilPrivateGraphEndpointDeleted(const Model::GetPrivateGraphEndpointRequest &request)
Aws::Utils::WaiterOutcome< Model::GetExportTaskOutcome > WaitUntilExportTaskSuccessful(const Model::GetExportTaskRequest &request)
Aws::Utils::WaiterOutcome< Model::GetPrivateGraphEndpointOutcome > WaitUntilPrivateGraphEndpointAvailable(const Model::GetPrivateGraphEndpointRequest &request)
Aws::Utils::WaiterOutcome< Model::GetGraphSnapshotOutcome > WaitUntilGraphSnapshotAvailable(const Model::GetGraphSnapshotRequest &request)
Aws::Utils::WaiterOutcome< Model::GetGraphOutcome > WaitUntilGraphDeleted(const Model::GetGraphRequest &request)
const R & GetResult() const
WaiterOutcome< OutcomeT > Wait(const RequestT &request)
AWS_NEPTUNEGRAPH_API Aws::String GetNameForExportTaskStatus(ExportTaskStatus value)
AWS_NEPTUNEGRAPH_API Aws::String GetNameForGraphStatus(GraphStatus value)
AWS_NEPTUNEGRAPH_API Aws::String GetNameForImportTaskStatus(ImportTaskStatus value)
AWS_NEPTUNEGRAPH_API Aws::String GetNameForPrivateGraphEndpointStatus(PrivateGraphEndpointStatus value)
AWS_NEPTUNEGRAPH_API Aws::String GetNameForSnapshotStatus(SnapshotStatus value)
Aws::Utils::Outcome< GetExportTaskResult, NeptuneGraphError > GetExportTaskOutcome
Aws::Utils::Outcome< GetGraphSnapshotResult, NeptuneGraphError > GetGraphSnapshotOutcome
Aws::Utils::Outcome< GetImportTaskResult, NeptuneGraphError > GetImportTaskOutcome
Aws::Utils::Outcome< GetGraphResult, NeptuneGraphError > GetGraphOutcome
Aws::Utils::Outcome< GetPrivateGraphEndpointResult, NeptuneGraphError > GetPrivateGraphEndpointOutcome
Crt::Variant< int, bool, Aws::String > ExpectedValue
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
UniquePtr< T > MakeUnique(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector