@Generated(value="software.amazon.awssdk:codegen") public final class SampledHTTPRequest extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SampledHTTPRequest.Builder,SampledHTTPRequest>
Represents a single sampled web request. The response from GetSampledRequests includes a
SampledHTTPRequests complex type that appears as SampledRequests in the response syntax.
SampledHTTPRequests contains an array of SampledHTTPRequest objects.
| 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) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasLabels()
Returns true if the Labels property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
boolean |
hasRequestHeadersInserted()
Returns true if the RequestHeadersInserted property was specified by the sender (it may be empty), or false if
the sender did not specify the value (it will be empty).
|
List<Label> |
labels()
Labels applied to the web request by matching rules.
|
HTTPRequest |
request()
A complex type that contains detailed information about the request.
|
List<HTTPHeader> |
requestHeadersInserted()
Custom request headers inserted by AWS WAF into the request, according to the custom request configuration for
the matching rule action.
|
Integer |
responseCodeSent()
The response code that was sent for the request.
|
String |
ruleNameWithinRuleGroup()
The name of the
Rule that the request matched. |
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() |
String |
toString()
Returns a string representation of this object.
|
Long |
weight()
A value that indicates how one result in the response relates proportionally to other results in the response.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final HTTPRequest request()
A complex type that contains detailed information about the request.
public final 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.
2 represents roughly twice as many web
requests as a result that has a weight of 1.public final Instant timestamp()
The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
public final 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 final 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.
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.public final boolean hasRequestHeadersInserted()
public final List<HTTPHeader> requestHeadersInserted()
Custom request headers inserted by AWS WAF into the request, according to the custom request configuration for the matching rule action.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasRequestHeadersInserted() to see if a value was sent in this field.
public final Integer responseCodeSent()
The response code that was sent for the request.
public final boolean hasLabels()
public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasLabels() to see if a value was sent in this field.
For example, awswaf:111122223333:myRuleGroup:testRules:testNS1:testNS2:labelNameA or
awswaf:managed:aws:managed-rule-set:header:encoding:utf8.
public SampledHTTPRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SampledHTTPRequest.Builder,SampledHTTPRequest>public static SampledHTTPRequest.Builder builder()
public static Class<? extends SampledHTTPRequest.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.