Class SampledHTTPRequest
- All Implemented Interfaces:
- Serializable,- SdkPojo,- 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.
 
- See Also:
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionfinal Stringaction()The action that WAF applied to the request.static SampledHTTPRequest.Builderbuilder()final CaptchaResponseTheCAPTCHAresponse for the request.final ChallengeResponseTheChallengeresponse for the request.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final booleanFor responses, this returns true if the service returned a value for the Labels property.final booleanFor responses, this returns true if the service returned a value for the RequestHeadersInserted property.labels()Labels applied to the web request by matching rules.final StringUsed only for rule group rules that have a rule action override in place in the web ACL.final HTTPRequestrequest()A complex type that contains detailed information about the request.final List<HTTPHeader> Custom request headers inserted by WAF into the request, according to the custom request configuration for the matching rule action.final IntegerThe response code that was sent for the request.final StringThe name of theRulethat the request matched.static Class<? extends SampledHTTPRequest.Builder> final InstantThe time at which WAF received the request from your Amazon Web Services resource, in Unix time format (in seconds).Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final Longweight()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.ToCopyableBuildercopy
- 
Method Details- 
requestA complex type that contains detailed information about the request. - Returns:
- A complex type that contains detailed information about the request.
 
- 
weightA 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 2represents roughly twice as many 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. For example, a result that has a weight of 2represents roughly twice as many web requests as a result that has a weight of1.
 
- 
timestampThe time at which WAF received the request from your Amazon Web Services resource, in Unix time format (in seconds). - Returns:
- The time at which WAF received the request from your Amazon Web Services resource, in Unix time format (in seconds).
 
- 
actionThe action that WAF applied to the request. - Returns:
- The action that WAF applied to the request.
 
- 
ruleNameWithinRuleGroupThe name of the Rulethat 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.- Returns:
- The name of the Rulethat 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.
 
- 
hasRequestHeadersInsertedpublic final boolean hasRequestHeadersInserted()For responses, this returns true if the service returned a value for the RequestHeadersInserted property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
- 
requestHeadersInsertedCustom request headers inserted by 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. This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasRequestHeadersInserted()method.- Returns:
- Custom request headers inserted by WAF into the request, according to the custom request configuration for the matching rule action.
 
- 
responseCodeSentThe response code that was sent for the request. - Returns:
- The response code that was sent for the request.
 
- 
hasLabelspublic final boolean hasLabels()For responses, this returns true if the service returned a value for the Labels property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
- 
labelsLabels applied to the web request by matching rules. 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:labelNameAorawswaf:managed:aws:managed-rule-set:header:encoding:utf8.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasLabels()method.- Returns:
- Labels applied to the web request by matching rules. 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:labelNameAorawswaf:managed:aws:managed-rule-set:header:encoding:utf8.
 
- 
captchaResponseThe CAPTCHAresponse for the request.- Returns:
- The CAPTCHAresponse for the request.
 
- 
challengeResponseThe Challengeresponse for the request.- Returns:
- The Challengeresponse for the request.
 
- 
overriddenActionUsed only for rule group rules that have a rule action override in place in the web ACL. This is the action that the rule group rule is configured for, and not the action that was applied to the request. The action that WAF applied is the Actionvalue.- Returns:
- Used only for rule group rules that have a rule action override in place in the web ACL. This is the
         action that the rule group rule is configured for, and not the action that was applied to the request.
         The action that WAF applied is the Actionvalue.
 
- 
toBuilderDescription copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToCopyableBuilder<SampledHTTPRequest.Builder,- SampledHTTPRequest> 
- Returns:
- a builder for type T
 
- 
builder
- 
serializableBuilderClass
- 
hashCode
- 
equals
- 
equalsBySdkFieldsDescription copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
- equalsBySdkFieldsin interface- SdkPojo
- Parameters:
- obj- the object to be compared with
- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
 
- 
toString
- 
getValueForField
- 
sdkFields
- 
sdkFieldNameToField- Specified by:
- sdkFieldNameToFieldin interface- SdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
 
 
-