Class SampledHTTPRequest
- java.lang.Object
-
- software.amazon.awssdk.services.waf.model.SampledHTTPRequest
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SampledHTTPRequest.Builder,SampledHTTPRequest>
@Generated("software.amazon.awssdk:codegen") public final class SampledHTTPRequest extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SampledHTTPRequest.Builder,SampledHTTPRequest>
This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use.
The response from a GetSampledRequests request includes a
SampledHTTPRequestscomplex type that appears asSampledRequestsin the response syntax.SampledHTTPRequestscontains oneSampledHTTPRequestobject for each web request that is returned byGetSampledRequests.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSampledHTTPRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringaction()The action for theRulethat the request matched:ALLOW,BLOCK, orCOUNT.static SampledHTTPRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()HTTPRequestrequest()A complex type that contains detailed information about the request.StringruleWithinRuleGroup()This value is returned if theGetSampledRequestsrequest specifies the ID of aRuleGrouprather than the ID of an individual rule.List<SdkField<?>>sdkFields()static Class<? extends SampledHTTPRequest.Builder>serializableBuilderClass()Instanttimestamp()The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).SampledHTTPRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.Longweight()A value that indicates how one result in the response relates proportionally to other results in the response.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
request
public final HTTPRequest request()
A complex type that contains detailed information about the request.
- Returns:
- A complex type that contains detailed information about the request.
-
weight
public final 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.- Returns:
- 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.
-
timestamp
public final Instant timestamp()
The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
- Returns:
- The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
-
action
public final String action()
The action for the
Rulethat the request matched:ALLOW,BLOCK, orCOUNT.- Returns:
- The action for the
Rulethat the request matched:ALLOW,BLOCK, orCOUNT.
-
ruleWithinRuleGroup
public final 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.- Returns:
- 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.
-
toBuilder
public SampledHTTPRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SampledHTTPRequest.Builder,SampledHTTPRequest>
-
builder
public static SampledHTTPRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends SampledHTTPRequest.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-