GreengrassRequest Class
(QtAws::Greengrass::GreengrassRequest)The GreengrassRequest class provides an interface for Greengrass requests. More...
Public Types
| enum | Action { AssociateRoleToGroupAction, AssociateServiceRoleToAccountAction, CreateCoreDefinitionAction, CreateCoreDefinitionVersionAction, ..., UpdateSubscriptionDefinitionAction } |
| flags | Actions |
Public Functions
| GreengrassRequest(const Action action) | |
| GreengrassRequest(const GreengrassRequest &other) | |
| Action | action() const |
| QString | actionString() const |
| QString | apiVersion() const |
| void | setAction(const Action action) |
| void | setApiVersion(const QString &version) |
| GreengrassRequest & | operator=(const GreengrassRequest &other) |
| virtual bool | operator==(const GreengrassRequest &other) const |
- 7 public functions inherited from QtAws::Core::AwsAbstractRequest
Protected Functions
| GreengrassRequest(GreengrassRequestPrivate * 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 GreengrassRequest class provides an interface for Greengrass requests.
Member Type Documentation
enum GreengrassRequest::Action
flags GreengrassRequest::Actions
This enum describes the actions that can be performed as Greengrass requests.
| Constant | Value | Description |
|---|---|---|
QtAws::Greengrass::GreengrassRequest::AssociateRoleToGroupAction | 0 | Greengrass AssociateRoleToGroup action. |
QtAws::Greengrass::GreengrassRequest::AssociateServiceRoleToAccountAction | 1 | Greengrass AssociateServiceRoleToAccount action. |
QtAws::Greengrass::GreengrassRequest::CreateCoreDefinitionAction | 2 | Greengrass CreateCoreDefinition action. |
QtAws::Greengrass::GreengrassRequest::CreateCoreDefinitionVersionAction | 3 | Greengrass CreateCoreDefinitionVersion action. |
QtAws::Greengrass::GreengrassRequest::CreateDeploymentAction | 4 | Greengrass CreateDeployment action. |
QtAws::Greengrass::GreengrassRequest::CreateDeviceDefinitionAction | 5 | Greengrass CreateDeviceDefinition action. |
QtAws::Greengrass::GreengrassRequest::CreateDeviceDefinitionVersionAction | 6 | Greengrass CreateDeviceDefinitionVersion action. |
QtAws::Greengrass::GreengrassRequest::CreateFunctionDefinitionAction | 7 | Greengrass CreateFunctionDefinition action. |
QtAws::Greengrass::GreengrassRequest::CreateFunctionDefinitionVersionAction | 8 | Greengrass CreateFunctionDefinitionVersion action. |
QtAws::Greengrass::GreengrassRequest::CreateGroupAction | 9 | Greengrass CreateGroup action. |
QtAws::Greengrass::GreengrassRequest::CreateGroupCertificateAuthorityAction | 10 | Greengrass CreateGroupCertificateAuthority action. |
QtAws::Greengrass::GreengrassRequest::CreateGroupVersionAction | 11 | Greengrass CreateGroupVersion action. |
QtAws::Greengrass::GreengrassRequest::CreateLoggerDefinitionAction | 12 | Greengrass CreateLoggerDefinition action. |
QtAws::Greengrass::GreengrassRequest::CreateLoggerDefinitionVersionAction | 13 | Greengrass CreateLoggerDefinitionVersion action. |
QtAws::Greengrass::GreengrassRequest::CreateResourceDefinitionAction | 14 | Greengrass CreateResourceDefinition action. |
QtAws::Greengrass::GreengrassRequest::CreateResourceDefinitionVersionAction | 15 | Greengrass CreateResourceDefinitionVersion action. |
QtAws::Greengrass::GreengrassRequest::CreateSoftwareUpdateJobAction | 16 | Greengrass CreateSoftwareUpdateJob action. |
QtAws::Greengrass::GreengrassRequest::CreateSubscriptionDefinitionAction | 17 | Greengrass CreateSubscriptionDefinition action. |
QtAws::Greengrass::GreengrassRequest::CreateSubscriptionDefinitionVersionAction | 18 | Greengrass CreateSubscriptionDefinitionVersion action. |
QtAws::Greengrass::GreengrassRequest::DeleteCoreDefinitionAction | 19 | Greengrass DeleteCoreDefinition action. |
QtAws::Greengrass::GreengrassRequest::DeleteDeviceDefinitionAction | 20 | Greengrass DeleteDeviceDefinition action. |
QtAws::Greengrass::GreengrassRequest::DeleteFunctionDefinitionAction | 21 | Greengrass DeleteFunctionDefinition action. |
QtAws::Greengrass::GreengrassRequest::DeleteGroupAction | 22 | Greengrass DeleteGroup action. |
QtAws::Greengrass::GreengrassRequest::DeleteLoggerDefinitionAction | 23 | Greengrass DeleteLoggerDefinition action. |
QtAws::Greengrass::GreengrassRequest::DeleteResourceDefinitionAction | 24 | Greengrass DeleteResourceDefinition action. |
QtAws::Greengrass::GreengrassRequest::DeleteSubscriptionDefinitionAction | 25 | Greengrass DeleteSubscriptionDefinition action. |
QtAws::Greengrass::GreengrassRequest::DisassociateRoleFromGroupAction | 26 | Greengrass DisassociateRoleFromGroup action. |
QtAws::Greengrass::GreengrassRequest::DisassociateServiceRoleFromAccountAction | 27 | Greengrass DisassociateServiceRoleFromAccount action. |
QtAws::Greengrass::GreengrassRequest::GetAssociatedRoleAction | 28 | Greengrass GetAssociatedRole action. |
QtAws::Greengrass::GreengrassRequest::GetConnectivityInfoAction | 29 | Greengrass GetConnectivityInfo action. |
QtAws::Greengrass::GreengrassRequest::GetCoreDefinitionAction | 30 | Greengrass GetCoreDefinition action. |
QtAws::Greengrass::GreengrassRequest::GetCoreDefinitionVersionAction | 31 | Greengrass GetCoreDefinitionVersion action. |
QtAws::Greengrass::GreengrassRequest::GetDeploymentStatusAction | 32 | Greengrass GetDeploymentStatus action. |
QtAws::Greengrass::GreengrassRequest::GetDeviceDefinitionAction | 33 | Greengrass GetDeviceDefinition action. |
QtAws::Greengrass::GreengrassRequest::GetDeviceDefinitionVersionAction | 34 | Greengrass GetDeviceDefinitionVersion action. |
QtAws::Greengrass::GreengrassRequest::GetFunctionDefinitionAction | 35 | Greengrass GetFunctionDefinition action. |
QtAws::Greengrass::GreengrassRequest::GetFunctionDefinitionVersionAction | 36 | Greengrass GetFunctionDefinitionVersion action. |
QtAws::Greengrass::GreengrassRequest::GetGroupAction | 37 | Greengrass GetGroup action. |
QtAws::Greengrass::GreengrassRequest::GetGroupCertificateAuthorityAction | 38 | Greengrass GetGroupCertificateAuthority action. |
QtAws::Greengrass::GreengrassRequest::GetGroupCertificateConfigurationAction | 39 | Greengrass GetGroupCertificateConfiguration action. |
QtAws::Greengrass::GreengrassRequest::GetGroupVersionAction | 40 | Greengrass GetGroupVersion action. |
QtAws::Greengrass::GreengrassRequest::GetLoggerDefinitionAction | 41 | Greengrass GetLoggerDefinition action. |
QtAws::Greengrass::GreengrassRequest::GetLoggerDefinitionVersionAction | 42 | Greengrass GetLoggerDefinitionVersion action. |
QtAws::Greengrass::GreengrassRequest::GetResourceDefinitionAction | 43 | Greengrass GetResourceDefinition action. |
QtAws::Greengrass::GreengrassRequest::GetResourceDefinitionVersionAction | 44 | Greengrass GetResourceDefinitionVersion action. |
QtAws::Greengrass::GreengrassRequest::GetServiceRoleForAccountAction | 45 | Greengrass GetServiceRoleForAccount action. |
QtAws::Greengrass::GreengrassRequest::GetSubscriptionDefinitionAction | 46 | Greengrass GetSubscriptionDefinition action. |
QtAws::Greengrass::GreengrassRequest::GetSubscriptionDefinitionVersionAction | 47 | Greengrass GetSubscriptionDefinitionVersion action. |
QtAws::Greengrass::GreengrassRequest::ListCoreDefinitionVersionsAction | 48 | Greengrass ListCoreDefinitionVersions action. |
QtAws::Greengrass::GreengrassRequest::ListCoreDefinitionsAction | 49 | Greengrass ListCoreDefinitions action. |
QtAws::Greengrass::GreengrassRequest::ListDeploymentsAction | 50 | Greengrass ListDeployments action. |
QtAws::Greengrass::GreengrassRequest::ListDeviceDefinitionVersionsAction | 51 | Greengrass ListDeviceDefinitionVersions action. |
QtAws::Greengrass::GreengrassRequest::ListDeviceDefinitionsAction | 52 | Greengrass ListDeviceDefinitions action. |
QtAws::Greengrass::GreengrassRequest::ListFunctionDefinitionVersionsAction | 53 | Greengrass ListFunctionDefinitionVersions action. |
QtAws::Greengrass::GreengrassRequest::ListFunctionDefinitionsAction | 54 | Greengrass ListFunctionDefinitions action. |
QtAws::Greengrass::GreengrassRequest::ListGroupCertificateAuthoritiesAction | 55 | Greengrass ListGroupCertificateAuthorities action. |
QtAws::Greengrass::GreengrassRequest::ListGroupVersionsAction | 56 | Greengrass ListGroupVersions action. |
QtAws::Greengrass::GreengrassRequest::ListGroupsAction | 57 | Greengrass ListGroups action. |
QtAws::Greengrass::GreengrassRequest::ListLoggerDefinitionVersionsAction | 58 | Greengrass ListLoggerDefinitionVersions action. |
QtAws::Greengrass::GreengrassRequest::ListLoggerDefinitionsAction | 59 | Greengrass ListLoggerDefinitions action. |
QtAws::Greengrass::GreengrassRequest::ListResourceDefinitionVersionsAction | 60 | Greengrass ListResourceDefinitionVersions action. |
QtAws::Greengrass::GreengrassRequest::ListResourceDefinitionsAction | 61 | Greengrass ListResourceDefinitions action. |
QtAws::Greengrass::GreengrassRequest::ListSubscriptionDefinitionVersionsAction | 62 | Greengrass ListSubscriptionDefinitionVersions action. |
QtAws::Greengrass::GreengrassRequest::ListSubscriptionDefinitionsAction | 63 | Greengrass ListSubscriptionDefinitions action. |
QtAws::Greengrass::GreengrassRequest::ResetDeploymentsAction | 64 | Greengrass ResetDeployments action. |
QtAws::Greengrass::GreengrassRequest::UpdateConnectivityInfoAction | 65 | Greengrass UpdateConnectivityInfo action. |
QtAws::Greengrass::GreengrassRequest::UpdateCoreDefinitionAction | 66 | Greengrass UpdateCoreDefinition action. |
QtAws::Greengrass::GreengrassRequest::UpdateDeviceDefinitionAction | 67 | Greengrass UpdateDeviceDefinition action. |
QtAws::Greengrass::GreengrassRequest::UpdateFunctionDefinitionAction | 68 | Greengrass UpdateFunctionDefinition action. |
QtAws::Greengrass::GreengrassRequest::UpdateGroupAction | 69 | Greengrass UpdateGroup action. |
QtAws::Greengrass::GreengrassRequest::UpdateGroupCertificateConfigurationAction | 70 | Greengrass UpdateGroupCertificateConfiguration action. |
QtAws::Greengrass::GreengrassRequest::UpdateLoggerDefinitionAction | 71 | Greengrass UpdateLoggerDefinition action. |
QtAws::Greengrass::GreengrassRequest::UpdateResourceDefinitionAction | 72 | Greengrass UpdateResourceDefinition action. |
QtAws::Greengrass::GreengrassRequest::UpdateSubscriptionDefinitionAction | 73 | Greengrass UpdateSubscriptionDefinition action. |
The Actions type is a typedef for QFlags<Action>. It stores an OR combination of Action values.
Member Function Documentation
GreengrassRequest::GreengrassRequest(const Action action)
Constructs a GreengrassRequest object for Greengrass action.
GreengrassRequest::GreengrassRequest(const GreengrassRequest &other)
Constructs a copy of other.
[protected] GreengrassRequest::GreengrassRequest(GreengrassRequestPrivate * const d)
Constructs aa GreengrassRequest object with private implementation d.
This overload allows derived classes to provide their own private class implementation that inherits from GreengrassRequestPrivate.
Action GreengrassRequest::action() const
Returns the Greengrass action to be performed by this request.
See also setAction().
QString GreengrassRequest::actionString() const
Returns the name of the Greengrass action to be performed by this request.
QString GreengrassRequest::apiVersion() const
Returns the Greengrass API version implemented by this request.
See also setApiVersion().
[protected] int GreengrassRequest::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 GreengrassRequest::clearParameters()
Removes all parameters from the request.
[protected] QVariant GreengrassRequest::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 &GreengrassRequest::parameters() const
Returns the parameters included in this request.
See also setParameters().
void GreengrassRequest::setAction(const Action action)
Sets the Greengrass action to be performed by this request to action.
See also action().
void GreengrassRequest::setApiVersion(const QString &version)
Sets the Greengrass API version to include in this request to version.
See also apiVersion().
[protected] void GreengrassRequest::setParameter(const QString &name, const QVariant &value)
Sets the name parameter to value.
See also parameter().
[protected] void GreengrassRequest::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 GreengrassRequest::unsignedRequest(const QUrl &endpoint) const
Reimplemented from AwsAbstractRequest::unsignedRequest().
Returns a network request for the Greengrass request using the given endpoint.
This Greengrass 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.
GreengrassRequest &GreengrassRequest::operator=(const GreengrassRequest &other)
Sets the GreengrassRequest object to be equal to other.
[virtual] bool GreengrassRequest::operator==(const GreengrassRequest &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.