public static interface SampledHTTPRequest.Builder extends SdkPojo, CopyableBuilder<SampledHTTPRequest.Builder,SampledHTTPRequest>
| Modifier and Type | Method and Description |
|---|---|
SampledHTTPRequest.Builder |
action(String action)
The action for the
Rule that the request matched: ALLOW, BLOCK, or
COUNT. |
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.
|
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 AWS 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 AWS 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 AWS 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 AWS WAF received the request from your AWS 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 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 AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
timestamp - The time at which AWS WAF received the request from your AWS resource, in Unix time format (in
seconds).SampledHTTPRequest.Builder action(String action)
The action for the Rule that the request matched: ALLOW, BLOCK, or
COUNT.
action - The action for the Rule that the request matched: ALLOW, BLOCK,
or COUNT.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 AWS WAF into the request, according to the custom request configuration for the matching rule action.
requestHeadersInserted - Custom request headers inserted by AWS 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 AWS WAF into the request, according to the custom request configuration for the matching rule action.
requestHeadersInserted - Custom request headers inserted by AWS 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 AWS WAF into the request, according to the custom request configuration for the matching rule action.
This is a convenience that creates an instance of theList.Builder avoiding the need to
create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its
result is passed to #requestHeadersInserted(List) .requestHeadersInserted - a consumer that will call methods on List.Builder #requestHeadersInserted(List) 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. AWS 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. AWS 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. AWS 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. AWS 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. AWS 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.
List avoiding the need to create
one manually via List.
When the Consumer completes, List is called immediately and its result
is passed to #labels(List.labels - a consumer that will call methods on List#labels(ListCopyright © 2021. All rights reserved.