7#include <aws/core/utils/Waiter.h>
8#include <aws/core/utils/memory/AWSMemory.h>
9#include <aws/endusermessaging/EndUserMessagingClient.h>
10#include <aws/endusermessaging/model/GetBrandProfileRequest.h>
11#include <aws/endusermessaging/model/GetBrandProfileResult.h>
12#include <aws/endusermessaging/model/GetJobRequest.h>
13#include <aws/endusermessaging/model/GetJobResult.h>
14#include <aws/endusermessaging/model/JobStatus.h>
15#include <aws/endusermessaging/model/Status.h>
20namespace EndUserMessaging {
22template <
typename DerivedClient = EndUserMessagingClient>
30 "BrandProfileActiveWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"ACTIVE"),
37 "BrandProfileActiveWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"BLOCKED"),
44 "BrandProfileActiveWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"CANCELLED"),
51 "BrandProfileActiveWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"FAILED"),
58 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetBrandProfile(req); };
60 return waiter.
Wait(request);
68 "JobSuccessWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"SUCCESS"),
75 "JobSuccessWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"FAILED"),
82 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetJob(req); };
84 return waiter.
Wait(request);
Aws::Utils::WaiterOutcome< Model::GetBrandProfileOutcome > WaitUntilBrandProfileActive(const Model::GetBrandProfileRequest &request)
Aws::Utils::WaiterOutcome< Model::GetJobOutcome > WaitUntilJobSuccess(const Model::GetJobRequest &request)
const R & GetResult() const
WaiterOutcome< OutcomeT > Wait(const RequestT &request)
AWS_ENDUSERMESSAGING_API Aws::String GetNameForJobStatus(JobStatus value)
AWS_ENDUSERMESSAGING_API Aws::String GetNameForStatus(Status value)
Aws::Utils::Outcome< GetBrandProfileResult, EndUserMessagingError > GetBrandProfileOutcome
Aws::Utils::Outcome< GetJobResult, EndUserMessagingError > GetJobOutcome
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