public static interface SampledHTTPRequest.Builder extends SdkPojo, CopyableBuilder<SampledHTTPRequest.Builder,SampledHTTPRequest>
| Modifier and Type | Method and Description |
|---|---|
SampledHTTPRequest.Builder |
action(String action)
The action that WAF applied to the request.
|
SampledHTTPRequest.Builder |
captchaResponse(CaptchaResponse captchaResponse)
The
CAPTCHA response for the request. |
default SampledHTTPRequest.Builder |
captchaResponse(Consumer<CaptchaResponse.Builder> captchaResponse)
The
CAPTCHA response for the request. |
SampledHTTPRequest.Builder |
challengeResponse(ChallengeResponse challengeResponse)
The
Challenge response for the request. |
default SampledHTTPRequest.Builder |
challengeResponse(Consumer<ChallengeResponse.Builder> challengeResponse)
The
Challenge response for the request. |
SampledHTTPRequest.Builder |
labels(Collection<Label> labels)
Labels applied to the web request by matching rules.
|
SampledHTTPRequest.Builder |
labels(Consumer<Label.Builder>... labels)
Labels applied to the web request by matching rules.
|
SampledHTTPRequest.Builder |
labels(Label... labels)
Labels applied to the web request by matching rules.
|
SampledHTTPRequest.Builder |
overriddenAction(String overriddenAction)
Used only for rule group rules that have a rule action override in place in the web ACL.
|
default SampledHTTPRequest.Builder |
request(Consumer<HTTPRequest.Builder> request)
A complex type that contains detailed information about the request.
|
SampledHTTPRequest.Builder |
request(HTTPRequest request)
A complex type that contains detailed information about the request.
|
SampledHTTPRequest.Builder |
requestHeadersInserted(Collection<HTTPHeader> requestHeadersInserted)
Custom request headers inserted by WAF into the request, according to the custom request configuration for
the matching rule action.
|
SampledHTTPRequest.Builder |
requestHeadersInserted(Consumer<HTTPHeader.Builder>... requestHeadersInserted)
Custom request headers inserted by WAF into the request, according to the custom request configuration for
the matching rule action.
|
SampledHTTPRequest.Builder |
requestHeadersInserted(HTTPHeader... requestHeadersInserted)
Custom request headers inserted by WAF into the request, according to the custom request configuration for
the matching rule action.
|
SampledHTTPRequest.Builder |
responseCodeSent(Integer responseCodeSent)
The response code that was sent for the request.
|
SampledHTTPRequest.Builder |
ruleNameWithinRuleGroup(String ruleNameWithinRuleGroup)
The name of the
Rule that the request matched. |
SampledHTTPRequest.Builder |
timestamp(Instant timestamp)
The time at which WAF received the request from your Amazon Web Services resource, in Unix time format (in
seconds).
|
SampledHTTPRequest.Builder |
weight(Long weight)
A value that indicates how one result in the response relates proportionally to other results in the
response.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildSampledHTTPRequest.Builder request(HTTPRequest request)
A complex type that contains detailed information about the request.
request - A complex type that contains detailed information about the request.default SampledHTTPRequest.Builder request(Consumer<HTTPRequest.Builder> request)
A complex type that contains detailed information about the request.
This is a convenience method that creates an instance of theHTTPRequest.Builder avoiding the need to
create one manually via HTTPRequest.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to request(HTTPRequest).
request - a consumer that will call methods on HTTPRequest.Builderrequest(HTTPRequest)SampledHTTPRequest.Builder weight(Long weight)
A value that indicates how one result in the response relates proportionally to other results in the
response. For example, a result that has a weight of 2 represents roughly twice as many web
requests as a result that has a weight of 1.
weight - A value that indicates how one result in the response relates proportionally to other results in the
response. For example, a result that has a weight of 2 represents roughly twice as many
web requests as a result that has a weight of 1.SampledHTTPRequest.Builder timestamp(Instant timestamp)
The time at which WAF received the request from your Amazon Web Services resource, in Unix time format (in seconds).
timestamp - The time at which WAF received the request from your Amazon Web Services resource, in Unix time format
(in seconds).SampledHTTPRequest.Builder action(String action)
The action that WAF applied to the request.
action - The action that WAF applied to the request.SampledHTTPRequest.Builder ruleNameWithinRuleGroup(String ruleNameWithinRuleGroup)
The name of the Rule that the request matched. For managed rule groups, the format for this name
is <vendor name>#<managed rule group name>#<rule name>. For your own rule
groups, the format for this name is <rule group name>#<rule name>. If the rule is
not in a rule group, this field is absent.
ruleNameWithinRuleGroup - The name of the Rule that the request matched. For managed rule groups, the format for
this name is <vendor name>#<managed rule group name>#<rule name>. For
your own rule groups, the format for this name is
<rule group name>#<rule name>. If the rule is not in a rule group, this field
is absent.SampledHTTPRequest.Builder requestHeadersInserted(Collection<HTTPHeader> requestHeadersInserted)
Custom request headers inserted by WAF into the request, according to the custom request configuration for the matching rule action.
requestHeadersInserted - Custom request headers inserted by WAF into the request, according to the custom request configuration
for the matching rule action.SampledHTTPRequest.Builder requestHeadersInserted(HTTPHeader... requestHeadersInserted)
Custom request headers inserted by WAF into the request, according to the custom request configuration for the matching rule action.
requestHeadersInserted - Custom request headers inserted by WAF into the request, according to the custom request configuration
for the matching rule action.SampledHTTPRequest.Builder requestHeadersInserted(Consumer<HTTPHeader.Builder>... requestHeadersInserted)
Custom request headers inserted by WAF into the request, according to the custom request configuration for the matching rule action.
This is a convenience method that creates an instance of theHTTPHeader.Builder avoiding the need to create one
manually via HTTPHeader.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #requestHeadersInserted(List.
requestHeadersInserted - a consumer that will call methods on
HTTPHeader.Builder#requestHeadersInserted(java.util.Collection) SampledHTTPRequest.Builder responseCodeSent(Integer responseCodeSent)
The response code that was sent for the request.
responseCodeSent - The response code that was sent for the request.SampledHTTPRequest.Builder labels(Collection<Label> labels)
Labels applied to the web request by matching rules. WAF applies fully qualified labels to matching web requests. A fully qualified label is the concatenation of a label namespace and a rule label. The rule's rule group or web ACL defines the label namespace.
For example, awswaf:111122223333:myRuleGroup:testRules:testNS1:testNS2:labelNameA or
awswaf:managed:aws:managed-rule-set:header:encoding:utf8.
labels - Labels applied to the web request by matching rules. WAF applies fully qualified labels to matching
web requests. A fully qualified label is the concatenation of a label namespace and a rule label. The
rule's rule group or web ACL defines the label namespace.
For example, awswaf:111122223333:myRuleGroup:testRules:testNS1:testNS2:labelNameA or
awswaf:managed:aws:managed-rule-set:header:encoding:utf8.
SampledHTTPRequest.Builder labels(Label... labels)
Labels applied to the web request by matching rules. WAF applies fully qualified labels to matching web requests. A fully qualified label is the concatenation of a label namespace and a rule label. The rule's rule group or web ACL defines the label namespace.
For example, awswaf:111122223333:myRuleGroup:testRules:testNS1:testNS2:labelNameA or
awswaf:managed:aws:managed-rule-set:header:encoding:utf8.
labels - Labels applied to the web request by matching rules. WAF applies fully qualified labels to matching
web requests. A fully qualified label is the concatenation of a label namespace and a rule label. The
rule's rule group or web ACL defines the label namespace.
For example, awswaf:111122223333:myRuleGroup:testRules:testNS1:testNS2:labelNameA or
awswaf:managed:aws:managed-rule-set:header:encoding:utf8.
SampledHTTPRequest.Builder labels(Consumer<Label.Builder>... labels)
Labels applied to the web request by matching rules. WAF applies fully qualified labels to matching web requests. A fully qualified label is the concatenation of a label namespace and a rule label. The rule's rule group or web ACL defines the label namespace.
For example, awswaf:111122223333:myRuleGroup:testRules:testNS1:testNS2:labelNameA or
awswaf:managed:aws:managed-rule-set:header:encoding:utf8.
Label.Builder avoiding the need to create one manually
via Label.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #labels(List.
labels - a consumer that will call methods on Label.Builder#labels(java.util.CollectionSampledHTTPRequest.Builder captchaResponse(CaptchaResponse captchaResponse)
The CAPTCHA response for the request.
captchaResponse - The CAPTCHA response for the request.default SampledHTTPRequest.Builder captchaResponse(Consumer<CaptchaResponse.Builder> captchaResponse)
The CAPTCHA response for the request.
CaptchaResponse.Builder avoiding the
need to create one manually via CaptchaResponse.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to captchaResponse(CaptchaResponse).
captchaResponse - a consumer that will call methods on CaptchaResponse.BuildercaptchaResponse(CaptchaResponse)SampledHTTPRequest.Builder challengeResponse(ChallengeResponse challengeResponse)
The Challenge response for the request.
challengeResponse - The Challenge response for the request.default SampledHTTPRequest.Builder challengeResponse(Consumer<ChallengeResponse.Builder> challengeResponse)
The Challenge response for the request.
ChallengeResponse.Builder avoiding the
need to create one manually via ChallengeResponse.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to challengeResponse(ChallengeResponse).
challengeResponse - a consumer that will call methods on ChallengeResponse.BuilderchallengeResponse(ChallengeResponse)SampledHTTPRequest.Builder overriddenAction(String overriddenAction)
Used only for rule group rules that have a rule action override in place in the web ACL. This is the action
that the rule group rule is configured for, and not the action that was applied to the request. The action
that WAF applied is the Action value.
overriddenAction - Used only for rule group rules that have a rule action override in place in the web ACL. This is the
action that the rule group rule is configured for, and not the action that was applied to the request.
The action that WAF applied is the Action value.Copyright © 2023. All rights reserved.