Interface SampledHTTPRequest.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SampledHTTPRequest.Builder,
,SampledHTTPRequest> SdkBuilder<SampledHTTPRequest.Builder,
,SampledHTTPRequest> SdkPojo
- Enclosing class:
SampledHTTPRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe action that WAF applied to the request.default SampledHTTPRequest.Builder
captchaResponse
(Consumer<CaptchaResponse.Builder> captchaResponse) TheCAPTCHA
response for the request.captchaResponse
(CaptchaResponse captchaResponse) TheCAPTCHA
response for the request.default SampledHTTPRequest.Builder
challengeResponse
(Consumer<ChallengeResponse.Builder> challengeResponse) TheChallenge
response for the request.challengeResponse
(ChallengeResponse challengeResponse) TheChallenge
response for the request.labels
(Collection<Label> labels) Labels applied to the web request by matching rules.labels
(Consumer<Label.Builder>... labels) Labels applied to the web request by matching rules.Labels applied to the web request by matching rules.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.request
(HTTPRequest request) A complex type that contains detailed information about the request.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
(Consumer<HTTPHeader.Builder>... requestHeadersInserted) Custom request headers inserted by WAF into the request, according to the custom request configuration for the matching rule action.requestHeadersInserted
(HTTPHeader... requestHeadersInserted) Custom request headers inserted by WAF into the request, according to the custom request configuration for the matching rule action.responseCodeSent
(Integer responseCodeSent) The response code that was sent for the request.ruleNameWithinRuleGroup
(String ruleNameWithinRuleGroup) The name of theRule
that the request matched.The time at which WAF received the request from your Amazon Web Services resource, in Unix time format (in seconds).A value that indicates how one result in the response relates proportionally to other results in the response.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
request
A complex type that contains detailed information about the request.
- Parameters:
request
- A complex type that contains detailed information about the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaHTTPRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torequest(HTTPRequest)
.- Parameters:
request
- a consumer that will call methods onHTTPRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 of1
.- Parameters:
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 of2
represents roughly twice as many web requests as a result that has a weight of1
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timestamp
The time at which WAF received the request from your Amazon Web Services resource, in Unix time format (in seconds).
- Parameters:
timestamp
- The time at which WAF received the request from your Amazon Web Services resource, in Unix time format (in seconds).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
The action that WAF applied to the request.
- Parameters:
action
- The action that WAF applied to the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
ruleNameWithinRuleGroup
- The name of theRule
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestHeadersInserted
Custom request headers inserted by WAF into the request, according to the custom request configuration for the matching rule action.
- Parameters:
requestHeadersInserted
- Custom request headers inserted by WAF into the request, according to the custom request configuration for the matching rule action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestHeadersInserted
Custom request headers inserted by WAF into the request, according to the custom request configuration for the matching rule action.
- Parameters:
requestHeadersInserted
- Custom request headers inserted by WAF into the request, according to the custom request configuration for the matching rule action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestHeadersInserted
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 viaHTTPHeader.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torequestHeadersInserted(List<HTTPHeader>)
.- Parameters:
requestHeadersInserted
- a consumer that will call methods onHTTPHeader.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
responseCodeSent
The response code that was sent for the request.
- Parameters:
responseCodeSent
- The response code that was sent for the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
orawswaf:managed:aws:managed-rule-set:header:encoding:utf8
.- Parameters:
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
orawswaf:managed:aws:managed-rule-set:header:encoding:utf8
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
orawswaf:managed:aws:managed-rule-set:header:encoding:utf8
.- Parameters:
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
orawswaf:managed:aws:managed-rule-set:header:encoding:utf8
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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,
This is a convenience method that creates an instance of theawswaf:111122223333:myRuleGroup:testRules:testNS1:testNS2:labelNameA
orawswaf:managed:aws:managed-rule-set:header:encoding:utf8
.Label.Builder
avoiding the need to create one manually viaLabel.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolabels(List<Label>)
.- Parameters:
labels
- a consumer that will call methods onLabel.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
captchaResponse
The
CAPTCHA
response for the request.- Parameters:
captchaResponse
- TheCAPTCHA
response for the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
captchaResponse
default SampledHTTPRequest.Builder captchaResponse(Consumer<CaptchaResponse.Builder> captchaResponse) The
This is a convenience method that creates an instance of theCAPTCHA
response for the request.CaptchaResponse.Builder
avoiding the need to create one manually viaCaptchaResponse.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocaptchaResponse(CaptchaResponse)
.- Parameters:
captchaResponse
- a consumer that will call methods onCaptchaResponse.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
challengeResponse
The
Challenge
response for the request.- Parameters:
challengeResponse
- TheChallenge
response for the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
challengeResponse
default SampledHTTPRequest.Builder challengeResponse(Consumer<ChallengeResponse.Builder> challengeResponse) The
This is a convenience method that creates an instance of theChallenge
response for the request.ChallengeResponse.Builder
avoiding the need to create one manually viaChallengeResponse.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tochallengeResponse(ChallengeResponse)
.- Parameters:
challengeResponse
- a consumer that will call methods onChallengeResponse.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- Parameters:
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 theAction
value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-