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.BuildercaptchaResponse(Consumer<CaptchaResponse.Builder> captchaResponse) TheCAPTCHAresponse for the request.captchaResponse(CaptchaResponse captchaResponse) TheCAPTCHAresponse for the request.default SampledHTTPRequest.BuilderchallengeResponse(Consumer<ChallengeResponse.Builder> challengeResponse) TheChallengeresponse for the request.challengeResponse(ChallengeResponse challengeResponse) TheChallengeresponse 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.Builderrequest(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 theRulethat 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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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.Builderavoiding the need to create one manually viaHTTPRequest.builder().When the
Consumercompletes,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
2represents 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 of2represents 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
Rulethat 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 theRulethat 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.Builderavoiding the need to create one manually viaHTTPHeader.builder().When the
Consumercompletes,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:labelNameAorawswaf: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:labelNameAorawswaf: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:labelNameAorawswaf: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:labelNameAorawswaf: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:labelNameAorawswaf:managed:aws:managed-rule-set:header:encoding:utf8.Label.Builderavoiding the need to create one manually viaLabel.builder().When the
Consumercompletes,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
CAPTCHAresponse for the request.- Parameters:
captchaResponse- TheCAPTCHAresponse 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 theCAPTCHAresponse for the request.CaptchaResponse.Builderavoiding the need to create one manually viaCaptchaResponse.builder().When the
Consumercompletes,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
Challengeresponse for the request.- Parameters:
challengeResponse- TheChallengeresponse 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 theChallengeresponse for the request.ChallengeResponse.Builderavoiding the need to create one manually viaChallengeResponse.builder().When the
Consumercompletes,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
Actionvalue.- 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 theActionvalue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-