Interface SampledHTTPRequest.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SampledHTTPRequest.Builder,SampledHTTPRequest>,SdkBuilder<SampledHTTPRequest.Builder,SampledHTTPRequest>,SdkPojo
- Enclosing class:
- SampledHTTPRequest
public static interface SampledHTTPRequest.Builder extends SdkPojo, CopyableBuilder<SampledHTTPRequest.Builder,SampledHTTPRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SampledHTTPRequest.Builderaction(String action)The action for theRulethat the request matched:ALLOW,BLOCK, orCOUNT.default SampledHTTPRequest.Builderrequest(Consumer<HTTPRequest.Builder> request)A complex type that contains detailed information about the request.SampledHTTPRequest.Builderrequest(HTTPRequest request)A complex type that contains detailed information about the request.SampledHTTPRequest.BuilderruleWithinRuleGroup(String ruleWithinRuleGroup)This value is returned if theGetSampledRequestsrequest specifies the ID of aRuleGrouprather than the ID of an individual rule.SampledHTTPRequest.Buildertimestamp(Instant timestamp)The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).SampledHTTPRequest.Builderweight(Long weight)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, sdkFields
-
-
-
-
Method Detail
-
request
SampledHTTPRequest.Builder request(HTTPRequest 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
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.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:
request(HTTPRequest)
-
weight
SampledHTTPRequest.Builder weight(Long weight)
A value that indicates how one result in the response relates proportionally to other results in the response. A result that has a weight of
2represents roughly twice as many CloudFront 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. A result that has a weight of2represents roughly twice as many CloudFront 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
SampledHTTPRequest.Builder timestamp(Instant timestamp)
The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
- Parameters:
timestamp- The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
SampledHTTPRequest.Builder action(String action)
The action for the
Rulethat the request matched:ALLOW,BLOCK, orCOUNT.- Parameters:
action- The action for theRulethat the request matched:ALLOW,BLOCK, orCOUNT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleWithinRuleGroup
SampledHTTPRequest.Builder ruleWithinRuleGroup(String ruleWithinRuleGroup)
This value is returned if the
GetSampledRequestsrequest specifies the ID of aRuleGrouprather than the ID of an individual rule.RuleWithinRuleGroupis the rule within the specifiedRuleGroupthat matched the request listed in the response.- Parameters:
ruleWithinRuleGroup- This value is returned if theGetSampledRequestsrequest specifies the ID of aRuleGrouprather than the ID of an individual rule.RuleWithinRuleGroupis the rule within the specifiedRuleGroupthat matched the request listed in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-