@Generated(value="software.amazon.awssdk:codegen") public final class SampledHTTPRequest extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SampledHTTPRequest.Builder,SampledHTTPRequest>
The response from a GetSampledRequests request includes a SampledHTTPRequests
complex type that
appears as SampledRequests
in the response syntax. SampledHTTPRequests
contains one
SampledHTTPRequest
object for each web request that is returned by GetSampledRequests
.
Modifier and Type | Class and Description |
---|---|
static interface |
SampledHTTPRequest.Builder |
Modifier and Type | Method and Description |
---|---|
String |
action()
The action for the
Rule that the request matched: ALLOW , BLOCK , or
COUNT . |
static SampledHTTPRequest.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
HTTPRequest |
request()
A complex type that contains detailed information about the request.
|
String |
ruleWithinRuleGroup()
This value is returned if the
GetSampledRequests request specifies the ID of a
RuleGroup rather than the ID of an individual rule. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends SampledHTTPRequest.Builder> |
serializableBuilderClass() |
Instant |
timestamp()
The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
|
SampledHTTPRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
Long |
weight()
A value that indicates how one result in the response relates proportionally to other results in the response.
|
copy
public HTTPRequest request()
A complex type that contains detailed information about the request.
public 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 2
represents roughly twice as many CloudFront web requests as a result
that has a weight of 1
.
2
represents roughly twice as many CloudFront web
requests as a result that has a weight of 1
.public Instant timestamp()
The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
public String action()
The action for the Rule
that the request matched: ALLOW
, BLOCK
, or
COUNT
.
Rule
that the request matched: ALLOW
, BLOCK
, or
COUNT
.public String ruleWithinRuleGroup()
This value is returned if the GetSampledRequests
request specifies the ID of a
RuleGroup
rather than the ID of an individual rule. RuleWithinRuleGroup
is the rule
within the specified RuleGroup
that matched the request listed in the response.
GetSampledRequests
request specifies the ID of a
RuleGroup
rather than the ID of an individual rule. RuleWithinRuleGroup
is the
rule within the specified RuleGroup
that matched the request listed in the response.public SampledHTTPRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<SampledHTTPRequest.Builder,SampledHTTPRequest>
public static SampledHTTPRequest.Builder builder()
public static Class<? extends SampledHTTPRequest.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.