WafRequest Class
(QtAws::WAF::WafRequest)The WafRequest class provides an interface for WAF requests. More...
Public Types
| enum | Action { CreateByteMatchSetAction, CreateGeoMatchSetAction, CreateIPSetAction, CreateRateBasedRuleAction, ..., UpdateXssMatchSetAction } |
| flags | Actions |
Public Functions
| WafRequest(const Action action) | |
| WafRequest(const WafRequest &other) | |
| Action | action() const |
| QString | actionString() const |
| QString | apiVersion() const |
| void | setAction(const Action action) |
| void | setApiVersion(const QString &version) |
| WafRequest & | operator=(const WafRequest &other) |
| virtual bool | operator==(const WafRequest &other) const |
- 7 public functions inherited from QtAws::Core::AwsAbstractRequest
Protected Functions
| WafRequest(WafRequestPrivate * 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 WafRequest class provides an interface for WAF requests.
Member Type Documentation
enum WafRequest::Action
flags WafRequest::Actions
This enum describes the actions that can be performed as WAF requests.
| Constant | Value | Description |
|---|---|---|
QtAws::WAF::WafRequest::CreateByteMatchSetAction | 0 | WAF CreateByteMatchSet action. |
QtAws::WAF::WafRequest::CreateGeoMatchSetAction | 1 | WAF CreateGeoMatchSet action. |
QtAws::WAF::WafRequest::CreateIPSetAction | 2 | WAF CreateIPSet action. |
QtAws::WAF::WafRequest::CreateRateBasedRuleAction | 3 | WAF CreateRateBasedRule action. |
QtAws::WAF::WafRequest::CreateRegexMatchSetAction | 4 | WAF CreateRegexMatchSet action. |
QtAws::WAF::WafRequest::CreateRegexPatternSetAction | 5 | WAF CreateRegexPatternSet action. |
QtAws::WAF::WafRequest::CreateRuleAction | 6 | WAF CreateRule action. |
QtAws::WAF::WafRequest::CreateRuleGroupAction | 7 | WAF CreateRuleGroup action. |
QtAws::WAF::WafRequest::CreateSizeConstraintSetAction | 8 | WAF CreateSizeConstraintSet action. |
QtAws::WAF::WafRequest::CreateSqlInjectionMatchSetAction | 9 | WAF CreateSqlInjectionMatchSet action. |
QtAws::WAF::WafRequest::CreateWebACLAction | 10 | WAF CreateWebACL action. |
QtAws::WAF::WafRequest::CreateXssMatchSetAction | 11 | WAF CreateXssMatchSet action. |
QtAws::WAF::WafRequest::DeleteByteMatchSetAction | 12 | WAF DeleteByteMatchSet action. |
QtAws::WAF::WafRequest::DeleteGeoMatchSetAction | 13 | WAF DeleteGeoMatchSet action. |
QtAws::WAF::WafRequest::DeleteIPSetAction | 14 | WAF DeleteIPSet action. |
QtAws::WAF::WafRequest::DeletePermissionPolicyAction | 15 | WAF DeletePermissionPolicy action. |
QtAws::WAF::WafRequest::DeleteRateBasedRuleAction | 16 | WAF DeleteRateBasedRule action. |
QtAws::WAF::WafRequest::DeleteRegexMatchSetAction | 17 | WAF DeleteRegexMatchSet action. |
QtAws::WAF::WafRequest::DeleteRegexPatternSetAction | 18 | WAF DeleteRegexPatternSet action. |
QtAws::WAF::WafRequest::DeleteRuleAction | 19 | WAF DeleteRule action. |
QtAws::WAF::WafRequest::DeleteRuleGroupAction | 20 | WAF DeleteRuleGroup action. |
QtAws::WAF::WafRequest::DeleteSizeConstraintSetAction | 21 | WAF DeleteSizeConstraintSet action. |
QtAws::WAF::WafRequest::DeleteSqlInjectionMatchSetAction | 22 | WAF DeleteSqlInjectionMatchSet action. |
QtAws::WAF::WafRequest::DeleteWebACLAction | 23 | WAF DeleteWebACL action. |
QtAws::WAF::WafRequest::DeleteXssMatchSetAction | 24 | WAF DeleteXssMatchSet action. |
QtAws::WAF::WafRequest::GetByteMatchSetAction | 25 | WAF GetByteMatchSet action. |
QtAws::WAF::WafRequest::GetChangeTokenAction | 26 | WAF GetChangeToken action. |
QtAws::WAF::WafRequest::GetChangeTokenStatusAction | 27 | WAF GetChangeTokenStatus action. |
QtAws::WAF::WafRequest::GetGeoMatchSetAction | 28 | WAF GetGeoMatchSet action. |
QtAws::WAF::WafRequest::GetIPSetAction | 29 | WAF GetIPSet action. |
QtAws::WAF::WafRequest::GetPermissionPolicyAction | 30 | WAF GetPermissionPolicy action. |
QtAws::WAF::WafRequest::GetRateBasedRuleAction | 31 | WAF GetRateBasedRule action. |
QtAws::WAF::WafRequest::GetRateBasedRuleManagedKeysAction | 32 | WAF GetRateBasedRuleManagedKeys action. |
QtAws::WAF::WafRequest::GetRegexMatchSetAction | 33 | WAF GetRegexMatchSet action. |
QtAws::WAF::WafRequest::GetRegexPatternSetAction | 34 | WAF GetRegexPatternSet action. |
QtAws::WAF::WafRequest::GetRuleAction | 35 | WAF GetRule action. |
QtAws::WAF::WafRequest::GetRuleGroupAction | 36 | WAF GetRuleGroup action. |
QtAws::WAF::WafRequest::GetSampledRequestsAction | 37 | WAF GetSampledRequests action. |
QtAws::WAF::WafRequest::GetSizeConstraintSetAction | 38 | WAF GetSizeConstraintSet action. |
QtAws::WAF::WafRequest::GetSqlInjectionMatchSetAction | 39 | WAF GetSqlInjectionMatchSet action. |
QtAws::WAF::WafRequest::GetWebACLAction | 40 | WAF GetWebACL action. |
QtAws::WAF::WafRequest::GetXssMatchSetAction | 41 | WAF GetXssMatchSet action. |
QtAws::WAF::WafRequest::ListActivatedRulesInRuleGroupAction | 42 | WAF ListActivatedRulesInRuleGroup action. |
QtAws::WAF::WafRequest::ListByteMatchSetsAction | 43 | WAF ListByteMatchSets action. |
QtAws::WAF::WafRequest::ListGeoMatchSetsAction | 44 | WAF ListGeoMatchSets action. |
QtAws::WAF::WafRequest::ListIPSetsAction | 45 | WAF ListIPSets action. |
QtAws::WAF::WafRequest::ListRateBasedRulesAction | 46 | WAF ListRateBasedRules action. |
QtAws::WAF::WafRequest::ListRegexMatchSetsAction | 47 | WAF ListRegexMatchSets action. |
QtAws::WAF::WafRequest::ListRegexPatternSetsAction | 48 | WAF ListRegexPatternSets action. |
QtAws::WAF::WafRequest::ListRuleGroupsAction | 49 | WAF ListRuleGroups action. |
QtAws::WAF::WafRequest::ListRulesAction | 50 | WAF ListRules action. |
QtAws::WAF::WafRequest::ListSizeConstraintSetsAction | 51 | WAF ListSizeConstraintSets action. |
QtAws::WAF::WafRequest::ListSqlInjectionMatchSetsAction | 52 | WAF ListSqlInjectionMatchSets action. |
QtAws::WAF::WafRequest::ListSubscribedRuleGroupsAction | 53 | WAF ListSubscribedRuleGroups action. |
QtAws::WAF::WafRequest::ListWebACLsAction | 54 | WAF ListWebACLs action. |
QtAws::WAF::WafRequest::ListXssMatchSetsAction | 55 | WAF ListXssMatchSets action. |
QtAws::WAF::WafRequest::PutPermissionPolicyAction | 56 | WAF PutPermissionPolicy action. |
QtAws::WAF::WafRequest::UpdateByteMatchSetAction | 57 | WAF UpdateByteMatchSet action. |
QtAws::WAF::WafRequest::UpdateGeoMatchSetAction | 58 | WAF UpdateGeoMatchSet action. |
QtAws::WAF::WafRequest::UpdateIPSetAction | 59 | WAF UpdateIPSet action. |
QtAws::WAF::WafRequest::UpdateRateBasedRuleAction | 60 | WAF UpdateRateBasedRule action. |
QtAws::WAF::WafRequest::UpdateRegexMatchSetAction | 61 | WAF UpdateRegexMatchSet action. |
QtAws::WAF::WafRequest::UpdateRegexPatternSetAction | 62 | WAF UpdateRegexPatternSet action. |
QtAws::WAF::WafRequest::UpdateRuleAction | 63 | WAF UpdateRule action. |
QtAws::WAF::WafRequest::UpdateRuleGroupAction | 64 | WAF UpdateRuleGroup action. |
QtAws::WAF::WafRequest::UpdateSizeConstraintSetAction | 65 | WAF UpdateSizeConstraintSet action. |
QtAws::WAF::WafRequest::UpdateSqlInjectionMatchSetAction | 66 | WAF UpdateSqlInjectionMatchSet action. |
QtAws::WAF::WafRequest::UpdateWebACLAction | 67 | WAF UpdateWebACL action. |
QtAws::WAF::WafRequest::UpdateXssMatchSetAction | 68 | WAF UpdateXssMatchSet action. |
The Actions type is a typedef for QFlags<Action>. It stores an OR combination of Action values.
Member Function Documentation
WafRequest::WafRequest(const Action action)
Constructs a WafRequest object for WAF action.
WafRequest::WafRequest(const WafRequest &other)
Constructs a copy of other.
[protected] WafRequest::WafRequest(WafRequestPrivate * const d)
Constructs aa WafRequest object with private implementation d.
This overload allows derived classes to provide their own private class implementation that inherits from WafRequestPrivate.
Action WafRequest::action() const
Returns the WAF action to be performed by this request.
See also setAction().
QString WafRequest::actionString() const
Returns the name of the WAF action to be performed by this request.
QString WafRequest::apiVersion() const
Returns the WAF API version implemented by this request.
See also setApiVersion().
[protected] int WafRequest::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 WafRequest::clearParameters()
Removes all parameters from the request.
[protected] QVariant WafRequest::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 &WafRequest::parameters() const
Returns the parameters included in this request.
See also setParameters().
void WafRequest::setAction(const Action action)
Sets the WAF action to be performed by this request to action.
See also action().
void WafRequest::setApiVersion(const QString &version)
Sets the WAF API version to include in this request to version.
See also apiVersion().
[protected] void WafRequest::setParameter(const QString &name, const QVariant &value)
Sets the name parameter to value.
See also parameter().
[protected] void WafRequest::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 WafRequest::unsignedRequest(const QUrl &endpoint) const
Reimplemented from AwsAbstractRequest::unsignedRequest().
Returns a network request for the WAF request using the given endpoint.
This WAF 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.
WafRequest &WafRequest::operator=(const WafRequest &other)
Sets the WafRequest object to be equal to other.
[virtual] bool WafRequest::operator==(const WafRequest &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.