InspectorRequest Class
(QtAws::Inspector::InspectorRequest)The InspectorRequest class provides an interface for Inspector requests. More...
Public Types
| enum | Action { AddAttributesToFindingsAction, CreateAssessmentTargetAction, CreateAssessmentTemplateAction, CreateResourceGroupAction, ..., UpdateAssessmentTargetAction } |
| flags | Actions |
Public Functions
| InspectorRequest(const Action action) | |
| InspectorRequest(const InspectorRequest &other) | |
| Action | action() const |
| QString | actionString() const |
| QString | apiVersion() const |
| void | setAction(const Action action) |
| void | setApiVersion(const QString &version) |
| InspectorRequest & | operator=(const InspectorRequest &other) |
| virtual bool | operator==(const InspectorRequest &other) const |
- 7 public functions inherited from QtAws::Core::AwsAbstractRequest
Protected Functions
| InspectorRequest(InspectorRequestPrivate * 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 InspectorRequest class provides an interface for Inspector requests.
Member Type Documentation
enum InspectorRequest::Action
flags InspectorRequest::Actions
This enum describes the actions that can be performed as Inspector requests.
| Constant | Value | Description |
|---|---|---|
QtAws::Inspector::InspectorRequest::AddAttributesToFindingsAction | 0 | Inspector AddAttributesToFindings action. |
QtAws::Inspector::InspectorRequest::CreateAssessmentTargetAction | 1 | Inspector CreateAssessmentTarget action. |
QtAws::Inspector::InspectorRequest::CreateAssessmentTemplateAction | 2 | Inspector CreateAssessmentTemplate action. |
QtAws::Inspector::InspectorRequest::CreateResourceGroupAction | 3 | Inspector CreateResourceGroup action. |
QtAws::Inspector::InspectorRequest::DeleteAssessmentRunAction | 4 | Inspector DeleteAssessmentRun action. |
QtAws::Inspector::InspectorRequest::DeleteAssessmentTargetAction | 5 | Inspector DeleteAssessmentTarget action. |
QtAws::Inspector::InspectorRequest::DeleteAssessmentTemplateAction | 6 | Inspector DeleteAssessmentTemplate action. |
QtAws::Inspector::InspectorRequest::DescribeAssessmentRunsAction | 7 | Inspector DescribeAssessmentRuns action. |
QtAws::Inspector::InspectorRequest::DescribeAssessmentTargetsAction | 8 | Inspector DescribeAssessmentTargets action. |
QtAws::Inspector::InspectorRequest::DescribeAssessmentTemplatesAction | 9 | Inspector DescribeAssessmentTemplates action. |
QtAws::Inspector::InspectorRequest::DescribeCrossAccountAccessRoleAction | 10 | Inspector DescribeCrossAccountAccessRole action. |
QtAws::Inspector::InspectorRequest::DescribeFindingsAction | 11 | Inspector DescribeFindings action. |
QtAws::Inspector::InspectorRequest::DescribeResourceGroupsAction | 12 | Inspector DescribeResourceGroups action. |
QtAws::Inspector::InspectorRequest::DescribeRulesPackagesAction | 13 | Inspector DescribeRulesPackages action. |
QtAws::Inspector::InspectorRequest::GetAssessmentReportAction | 14 | Inspector GetAssessmentReport action. |
QtAws::Inspector::InspectorRequest::GetTelemetryMetadataAction | 15 | Inspector GetTelemetryMetadata action. |
QtAws::Inspector::InspectorRequest::ListAssessmentRunAgentsAction | 16 | Inspector ListAssessmentRunAgents action. |
QtAws::Inspector::InspectorRequest::ListAssessmentRunsAction | 17 | Inspector ListAssessmentRuns action. |
QtAws::Inspector::InspectorRequest::ListAssessmentTargetsAction | 18 | Inspector ListAssessmentTargets action. |
QtAws::Inspector::InspectorRequest::ListAssessmentTemplatesAction | 19 | Inspector ListAssessmentTemplates action. |
QtAws::Inspector::InspectorRequest::ListEventSubscriptionsAction | 20 | Inspector ListEventSubscriptions action. |
QtAws::Inspector::InspectorRequest::ListFindingsAction | 21 | Inspector ListFindings action. |
QtAws::Inspector::InspectorRequest::ListRulesPackagesAction | 22 | Inspector ListRulesPackages action. |
QtAws::Inspector::InspectorRequest::ListTagsForResourceAction | 23 | Inspector ListTagsForResource action. |
QtAws::Inspector::InspectorRequest::PreviewAgentsAction | 24 | Inspector PreviewAgents action. |
QtAws::Inspector::InspectorRequest::RegisterCrossAccountAccessRoleAction | 25 | Inspector RegisterCrossAccountAccessRole action. |
QtAws::Inspector::InspectorRequest::RemoveAttributesFromFindingsAction | 26 | Inspector RemoveAttributesFromFindings action. |
QtAws::Inspector::InspectorRequest::SetTagsForResourceAction | 27 | Inspector SetTagsForResource action. |
QtAws::Inspector::InspectorRequest::StartAssessmentRunAction | 28 | Inspector StartAssessmentRun action. |
QtAws::Inspector::InspectorRequest::StopAssessmentRunAction | 29 | Inspector StopAssessmentRun action. |
QtAws::Inspector::InspectorRequest::SubscribeToEventAction | 30 | Inspector SubscribeToEvent action. |
QtAws::Inspector::InspectorRequest::UnsubscribeFromEventAction | 31 | Inspector UnsubscribeFromEvent action. |
QtAws::Inspector::InspectorRequest::UpdateAssessmentTargetAction | 32 | Inspector UpdateAssessmentTarget action. |
The Actions type is a typedef for QFlags<Action>. It stores an OR combination of Action values.
Member Function Documentation
InspectorRequest::InspectorRequest(const Action action)
Constructs a InspectorRequest object for Inspector action.
InspectorRequest::InspectorRequest(const InspectorRequest &other)
Constructs a copy of other.
[protected] InspectorRequest::InspectorRequest(InspectorRequestPrivate * const d)
Constructs aa InspectorRequest object with private implementation d.
This overload allows derived classes to provide their own private class implementation that inherits from InspectorRequestPrivate.
Action InspectorRequest::action() const
Returns the Inspector action to be performed by this request.
See also setAction().
QString InspectorRequest::actionString() const
Returns the name of the Inspector action to be performed by this request.
QString InspectorRequest::apiVersion() const
Returns the Inspector API version implemented by this request.
See also setApiVersion().
[protected] int InspectorRequest::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 InspectorRequest::clearParameters()
Removes all parameters from the request.
[protected] QVariant InspectorRequest::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 &InspectorRequest::parameters() const
Returns the parameters included in this request.
See also setParameters().
void InspectorRequest::setAction(const Action action)
Sets the Inspector action to be performed by this request to action.
See also action().
void InspectorRequest::setApiVersion(const QString &version)
Sets the Inspector API version to include in this request to version.
See also apiVersion().
[protected] void InspectorRequest::setParameter(const QString &name, const QVariant &value)
Sets the name parameter to value.
See also parameter().
[protected] void InspectorRequest::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 InspectorRequest::unsignedRequest(const QUrl &endpoint) const
Reimplemented from AwsAbstractRequest::unsignedRequest().
Returns a network request for the Inspector request using the given endpoint.
This Inspector 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.
InspectorRequest &InspectorRequest::operator=(const InspectorRequest &other)
Sets the InspectorRequest object to be equal to other.
[virtual] bool InspectorRequest::operator==(const InspectorRequest &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.