An Az::Job that that executes a specific AWS request.
More...
#include <AWSApiRequestJob.h>
Inherits AWSCore::AwsApiClientJob< RequestTraits::ClientType >.
Inherited by AWSCore::AwsApiRequestJob< RequestTraits >::Function.
|
| AZ_CLASS_ALLOCATOR (AwsApiRequestJob, AZ::SystemAllocator) |
|
| AwsApiRequestJob (bool isAutoDelete, IConfig *config=GetDefaultConfig()) |
|
void | Reset (bool isClearDependent) override |
|
bool | WasSuccess () |
| Determines if the request was successful.
|
|
template<class Allocator > |
AwsApiRequestJob< RequestTraits > * | Create (OnSuccessFunction onSuccess, OnFailureFunction onFailure, IConfig *config) |
|
| AZ_CLASS_ALLOCATOR (AwsApiClientJob, AZ::SystemAllocator) |
|
| AZ_CLASS_ALLOCATOR (AwsApiJob, AZ::SystemAllocator) |
|
|
template<class Allocator = AZ::SystemAllocator> |
static AwsApiRequestJob * | Create (OnSuccessFunction onSuccess, OnFailureFunction onFailure=OnFailureFunction{}, IConfig *config=GetDefaultConfig()) |
|
static Config * | GetDefaultConfig () |
|
static Config * | GetDefaultConfig () |
|
static Config * | GetDefaultConfig () |
|
|
RequestType | request |
|
ResultType | result |
|
ErrorType | error |
|
|
void | Process () override |
|
virtual bool | PrepareRequest () |
|
virtual void | OnSuccess () |
| Called when request has completed successfully.
|
|
virtual void | OnFailure () |
| Called when the request fails.
|
|
virtual void | DoCleanup () |
| Called when request can't process and still requires cleanup (Specifically for the derived class AwsApiRequestJob<RequestTraits>::Function which does not use auto delete)
|
|
| AwsApiClientJob (bool isAutoDelete, IConfig *config=GetDefaultConfig()) |
|
| AwsApiJob (bool isAutoDelete, IConfig *config=GetDefaultConfig()) |
|
|
bool | m_wasSuccess { false } |
|
std::shared_ptr< RequestTraits::ClientType > | m_client |
|
|
static const char * | COMPONENT_DISPLAY_NAME |
| Used for error messages.
|
|
template<class RequestTraits>
class AWSCore::AwsApiRequestJob< RequestTraits >
An Az::Job that that executes a specific AWS request.
◆ PrepareRequest()
template<class RequestTraits >
Called by Process to prepare the request. By default no changes are made to the request object. Override to defer the preparation of request data until your running on the job's worker thread, instead of setting the request data before calling Start.
- Returns
- true if the request should be made.
◆ Reset()
template<class RequestTraits >
Override AZ:Job defined method to reset request state when the job object is reused.
The documentation for this class was generated from the following file:
- Gems/AWSCore/Code/Include/Framework/AWSApiRequestJob.h