SwfRequest Class
(QtAws::SWF::SwfRequest)The SwfRequest class provides an interface for SWF requests. More...
Public Types
| enum | Action { CountClosedWorkflowExecutionsAction, CountOpenWorkflowExecutionsAction, CountPendingActivityTasksAction, CountPendingDecisionTasksAction, ..., TerminateWorkflowExecutionAction } |
| flags | Actions |
Public Functions
| SwfRequest(const Action action) | |
| SwfRequest(const SwfRequest &other) | |
| Action | action() const |
| QString | actionString() const |
| QString | apiVersion() const |
| void | setAction(const Action action) |
| void | setApiVersion(const QString &version) |
| SwfRequest & | operator=(const SwfRequest &other) |
| virtual bool | operator==(const SwfRequest &other) const |
- 7 public functions inherited from QtAws::Core::AwsAbstractRequest
Protected Functions
| SwfRequest(SwfRequestPrivate * const d) | |
| int | clearParameter(const QString &name) |
| void | clearParameters() |
| QVariant | parameter(const QString &name, const QVariant &defaultValue = QVariant()) const |
| const QVariantMap & | parameters() const |
| void | setParameter(const QString &name, const QVariant &value) |
| void | setParameters(const QVariantMap ¶meters) |
Reimplemented Protected Functions
| virtual QNetworkRequest | unsignedRequest(const QUrl &endpoint) const override |
- 4 protected functions inherited from QtAws::Core::AwsAbstractRequest
Detailed Description
The SwfRequest class provides an interface for SWF requests.
Member Type Documentation
enum SwfRequest::Action
flags SwfRequest::Actions
This enum describes the actions that can be performed as SWF requests.
| Constant | Value | Description |
|---|---|---|
QtAws::SWF::SwfRequest::CountClosedWorkflowExecutionsAction | 0 | SWF CountClosedWorkflowExecutions action. |
QtAws::SWF::SwfRequest::CountOpenWorkflowExecutionsAction | 1 | SWF CountOpenWorkflowExecutions action. |
QtAws::SWF::SwfRequest::CountPendingActivityTasksAction | 2 | SWF CountPendingActivityTasks action. |
QtAws::SWF::SwfRequest::CountPendingDecisionTasksAction | 3 | SWF CountPendingDecisionTasks action. |
QtAws::SWF::SwfRequest::DeprecateActivityTypeAction | 4 | SWF DeprecateActivityType action. |
QtAws::SWF::SwfRequest::DeprecateDomainAction | 5 | SWF DeprecateDomain action. |
QtAws::SWF::SwfRequest::DeprecateWorkflowTypeAction | 6 | SWF DeprecateWorkflowType action. |
QtAws::SWF::SwfRequest::DescribeActivityTypeAction | 7 | SWF DescribeActivityType action. |
QtAws::SWF::SwfRequest::DescribeDomainAction | 8 | SWF DescribeDomain action. |
QtAws::SWF::SwfRequest::DescribeWorkflowExecutionAction | 9 | SWF DescribeWorkflowExecution action. |
QtAws::SWF::SwfRequest::DescribeWorkflowTypeAction | 10 | SWF DescribeWorkflowType action. |
QtAws::SWF::SwfRequest::GetWorkflowExecutionHistoryAction | 11 | SWF GetWorkflowExecutionHistory action. |
QtAws::SWF::SwfRequest::ListActivityTypesAction | 12 | SWF ListActivityTypes action. |
QtAws::SWF::SwfRequest::ListClosedWorkflowExecutionsAction | 13 | SWF ListClosedWorkflowExecutions action. |
QtAws::SWF::SwfRequest::ListDomainsAction | 14 | SWF ListDomains action. |
QtAws::SWF::SwfRequest::ListOpenWorkflowExecutionsAction | 15 | SWF ListOpenWorkflowExecutions action. |
QtAws::SWF::SwfRequest::ListWorkflowTypesAction | 16 | SWF ListWorkflowTypes action. |
QtAws::SWF::SwfRequest::PollForActivityTaskAction | 17 | SWF PollForActivityTask action. |
QtAws::SWF::SwfRequest::PollForDecisionTaskAction | 18 | SWF PollForDecisionTask action. |
QtAws::SWF::SwfRequest::RecordActivityTaskHeartbeatAction | 19 | SWF RecordActivityTaskHeartbeat action. |
QtAws::SWF::SwfRequest::RegisterActivityTypeAction | 20 | SWF RegisterActivityType action. |
QtAws::SWF::SwfRequest::RegisterDomainAction | 21 | SWF RegisterDomain action. |
QtAws::SWF::SwfRequest::RegisterWorkflowTypeAction | 22 | SWF RegisterWorkflowType action. |
QtAws::SWF::SwfRequest::RequestCancelWorkflowExecutionAction | 23 | SWF RequestCancelWorkflowExecution action. |
QtAws::SWF::SwfRequest::RespondActivityTaskCanceledAction | 24 | SWF RespondActivityTaskCanceled action. |
QtAws::SWF::SwfRequest::RespondActivityTaskCompletedAction | 25 | SWF RespondActivityTaskCompleted action. |
QtAws::SWF::SwfRequest::RespondActivityTaskFailedAction | 26 | SWF RespondActivityTaskFailed action. |
QtAws::SWF::SwfRequest::RespondDecisionTaskCompletedAction | 27 | SWF RespondDecisionTaskCompleted action. |
QtAws::SWF::SwfRequest::SignalWorkflowExecutionAction | 28 | SWF SignalWorkflowExecution action. |
QtAws::SWF::SwfRequest::StartWorkflowExecutionAction | 29 | SWF StartWorkflowExecution action. |
QtAws::SWF::SwfRequest::TerminateWorkflowExecutionAction | 30 | SWF TerminateWorkflowExecution action. |
The Actions type is a typedef for QFlags<Action>. It stores an OR combination of Action values.
Member Function Documentation
SwfRequest::SwfRequest(const Action action)
Constructs a SwfRequest object for SWF action.
SwfRequest::SwfRequest(const SwfRequest &other)
Constructs a copy of other.
[protected] SwfRequest::SwfRequest(SwfRequestPrivate * const d)
Constructs aa SwfRequest object with private implementation d.
This overload allows derived classes to provide their own private class implementation that inherits from SwfRequestPrivate.
Action SwfRequest::action() const
Returns the SWF action to be performed by this request.
See also setAction().
QString SwfRequest::actionString() const
Returns the name of the SWF action to be performed by this request.
QString SwfRequest::apiVersion() const
Returns the SWF API version implemented by this request.
See also setApiVersion().
[protected] int SwfRequest::clearParameter(const QString &name)
Removes the a name parameter from the request, then returns the number of paramters removed (typically 0 or 1).
[protected] void SwfRequest::clearParameters()
Removes all parameters from the request.
[protected] QVariant SwfRequest::parameter(const QString &name, const QVariant &defaultValue = QVariant()) const
Returns the value of the name pararemter if set; defaultValue otherwise.
See also setParameter().
[protected] const QVariantMap &SwfRequest::parameters() const
Returns the parameters included in this request.
See also setParameters().
void SwfRequest::setAction(const Action action)
Sets the SWF action to be performed by this request to action.
See also action().
void SwfRequest::setApiVersion(const QString &version)
Sets the SWF API version to include in this request to version.
See also apiVersion().
[protected] void SwfRequest::setParameter(const QString &name, const QVariant &value)
Sets the name parameter to value.
See also parameter().
[protected] void SwfRequest::setParameters(const QVariantMap ¶meters)
Sets the paramters for this request to parameters. Any request parameters set previously will be discarded.
See also parameters().
[override virtual protected] QNetworkRequest SwfRequest::unsignedRequest(const QUrl &endpoint) const
Reimplemented from AwsAbstractRequest::unsignedRequest().
Returns a network request for the SWF request using the given endpoint.
This SWF implementation builds request URLs by combining the common query parameters (such as Action and Version), with any that have been added (via setParameter) by child classes.
SwfRequest &SwfRequest::operator=(const SwfRequest &other)
Sets the SwfRequest object to be equal to other.
[virtual] bool SwfRequest::operator==(const SwfRequest &other) const
Returns true if this request is equal to other; false otherwise.
Note, most derived *Request classes do not need to provider their own implementations of this function, since most such request classes rely on this class' parameters functionality for all request parameters, and that parameters map is already checked via this implementation.
© 2018 Paul Colby Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.