EcsRequest Class
(QtAws::ECS::EcsRequest)The EcsRequest class provides an interface for ECS requests. More...
Public Types
| enum | Action { CreateClusterAction, CreateServiceAction, DeleteAttributesAction, DeleteClusterAction, ..., UpdateServiceAction } |
| flags | Actions |
Public Functions
| EcsRequest(const Action action) | |
| EcsRequest(const EcsRequest &other) | |
| Action | action() const |
| QString | actionString() const |
| QString | apiVersion() const |
| void | setAction(const Action action) |
| void | setApiVersion(const QString &version) |
| EcsRequest & | operator=(const EcsRequest &other) |
| virtual bool | operator==(const EcsRequest &other) const |
- 7 public functions inherited from QtAws::Core::AwsAbstractRequest
Protected Functions
| EcsRequest(EcsRequestPrivate * 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 EcsRequest class provides an interface for ECS requests.
Member Type Documentation
enum EcsRequest::Action
flags EcsRequest::Actions
This enum describes the actions that can be performed as ECS requests.
| Constant | Value | Description |
|---|---|---|
QtAws::ECS::EcsRequest::CreateClusterAction | 0 | ECS CreateCluster action. |
QtAws::ECS::EcsRequest::CreateServiceAction | 1 | ECS CreateService action. |
QtAws::ECS::EcsRequest::DeleteAttributesAction | 2 | ECS DeleteAttributes action. |
QtAws::ECS::EcsRequest::DeleteClusterAction | 3 | ECS DeleteCluster action. |
QtAws::ECS::EcsRequest::DeleteServiceAction | 4 | ECS DeleteService action. |
QtAws::ECS::EcsRequest::DeregisterContainerInstanceAction | 5 | ECS DeregisterContainerInstance action. |
QtAws::ECS::EcsRequest::DeregisterTaskDefinitionAction | 6 | ECS DeregisterTaskDefinition action. |
QtAws::ECS::EcsRequest::DescribeClustersAction | 7 | ECS DescribeClusters action. |
QtAws::ECS::EcsRequest::DescribeContainerInstancesAction | 8 | ECS DescribeContainerInstances action. |
QtAws::ECS::EcsRequest::DescribeServicesAction | 9 | ECS DescribeServices action. |
QtAws::ECS::EcsRequest::DescribeTaskDefinitionAction | 10 | ECS DescribeTaskDefinition action. |
QtAws::ECS::EcsRequest::DescribeTasksAction | 11 | ECS DescribeTasks action. |
QtAws::ECS::EcsRequest::DiscoverPollEndpointAction | 12 | ECS DiscoverPollEndpoint action. |
QtAws::ECS::EcsRequest::ListAttributesAction | 13 | ECS ListAttributes action. |
QtAws::ECS::EcsRequest::ListClustersAction | 14 | ECS ListClusters action. |
QtAws::ECS::EcsRequest::ListContainerInstancesAction | 15 | ECS ListContainerInstances action. |
QtAws::ECS::EcsRequest::ListServicesAction | 16 | ECS ListServices action. |
QtAws::ECS::EcsRequest::ListTaskDefinitionFamiliesAction | 17 | ECS ListTaskDefinitionFamilies action. |
QtAws::ECS::EcsRequest::ListTaskDefinitionsAction | 18 | ECS ListTaskDefinitions action. |
QtAws::ECS::EcsRequest::ListTasksAction | 19 | ECS ListTasks action. |
QtAws::ECS::EcsRequest::PutAttributesAction | 20 | ECS PutAttributes action. |
QtAws::ECS::EcsRequest::RegisterContainerInstanceAction | 21 | ECS RegisterContainerInstance action. |
QtAws::ECS::EcsRequest::RegisterTaskDefinitionAction | 22 | ECS RegisterTaskDefinition action. |
QtAws::ECS::EcsRequest::RunTaskAction | 23 | ECS RunTask action. |
QtAws::ECS::EcsRequest::StartTaskAction | 24 | ECS StartTask action. |
QtAws::ECS::EcsRequest::StopTaskAction | 25 | ECS StopTask action. |
QtAws::ECS::EcsRequest::SubmitContainerStateChangeAction | 26 | ECS SubmitContainerStateChange action. |
QtAws::ECS::EcsRequest::SubmitTaskStateChangeAction | 27 | ECS SubmitTaskStateChange action. |
QtAws::ECS::EcsRequest::UpdateContainerAgentAction | 28 | ECS UpdateContainerAgent action. |
QtAws::ECS::EcsRequest::UpdateContainerInstancesStateAction | 29 | ECS UpdateContainerInstancesState action. |
QtAws::ECS::EcsRequest::UpdateServiceAction | 30 | ECS UpdateService action. |
The Actions type is a typedef for QFlags<Action>. It stores an OR combination of Action values.
Member Function Documentation
EcsRequest::EcsRequest(const Action action)
Constructs a EcsRequest object for ECS action.
EcsRequest::EcsRequest(const EcsRequest &other)
Constructs a copy of other.
[protected] EcsRequest::EcsRequest(EcsRequestPrivate * const d)
Constructs aa EcsRequest object with private implementation d.
This overload allows derived classes to provide their own private class implementation that inherits from EcsRequestPrivate.
Action EcsRequest::action() const
Returns the ECS action to be performed by this request.
See also setAction().
QString EcsRequest::actionString() const
Returns the name of the ECS action to be performed by this request.
QString EcsRequest::apiVersion() const
Returns the ECS API version implemented by this request.
See also setApiVersion().
[protected] int EcsRequest::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 EcsRequest::clearParameters()
Removes all parameters from the request.
[protected] QVariant EcsRequest::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 &EcsRequest::parameters() const
Returns the parameters included in this request.
See also setParameters().
void EcsRequest::setAction(const Action action)
Sets the ECS action to be performed by this request to action.
See also action().
void EcsRequest::setApiVersion(const QString &version)
Sets the ECS API version to include in this request to version.
See also apiVersion().
[protected] void EcsRequest::setParameter(const QString &name, const QVariant &value)
Sets the name parameter to value.
See also parameter().
[protected] void EcsRequest::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 EcsRequest::unsignedRequest(const QUrl &endpoint) const
Reimplemented from AwsAbstractRequest::unsignedRequest().
Returns a network request for the ECS request using the given endpoint.
This ECS 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.
EcsRequest &EcsRequest::operator=(const EcsRequest &other)
Sets the EcsRequest object to be equal to other.
[virtual] bool EcsRequest::operator==(const EcsRequest &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.