Class GetSampledRequestsRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.waf.model.WafRequest
-
- software.amazon.awssdk.services.waf.model.GetSampledRequestsRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetSampledRequestsRequest.Builder,GetSampledRequestsRequest>
@Generated("software.amazon.awssdk:codegen") public final class GetSampledRequestsRequest extends WafRequest implements ToCopyableBuilder<GetSampledRequestsRequest.Builder,GetSampledRequestsRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetSampledRequestsRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetSampledRequestsRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()LongmaxItems()The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range.StringruleId()RuleIdis one of three values:List<SdkField<?>>sdkFields()static Class<? extends GetSampledRequestsRequest.Builder>serializableBuilderClass()TimeWindowtimeWindow()The start date and time and the end date and time of the range for which you wantGetSampledRequeststo return a sample of requests.GetSampledRequestsRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringwebAclId()TheWebACLIdof theWebACLfor which you wantGetSampledRequeststo return a sample of requests.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
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
-
webAclId
public final String webAclId()
The
WebACLIdof theWebACLfor which you wantGetSampledRequeststo return a sample of requests.- Returns:
- The
WebACLIdof theWebACLfor which you wantGetSampledRequeststo return a sample of requests.
-
ruleId
public final String ruleId()
RuleIdis one of three values:-
The
RuleIdof theRuleor theRuleGroupIdof theRuleGroupfor which you wantGetSampledRequeststo return a sample of requests. -
Default_Action, which causesGetSampledRequeststo return a sample of the requests that didn't match any of the rules in the specifiedWebACL.
- Returns:
RuleIdis one of three values:-
The
RuleIdof theRuleor theRuleGroupIdof theRuleGroupfor which you wantGetSampledRequeststo return a sample of requests. -
Default_Action, which causesGetSampledRequeststo return a sample of the requests that didn't match any of the rules in the specifiedWebACL.
-
-
-
timeWindow
public final TimeWindow timeWindow()
The start date and time and the end date and time of the range for which you want
GetSampledRequeststo return a sample of requests. You must specify the times in Coordinated Universal Time (UTC) format. UTC format includes the special designator,Z. For example,"2016-09-27T14:50Z". You can specify any time range in the previous three hours.- Returns:
- The start date and time and the end date and time of the range for which you want
GetSampledRequeststo return a sample of requests. You must specify the times in Coordinated Universal Time (UTC) format. UTC format includes the special designator,Z. For example,"2016-09-27T14:50Z". You can specify any time range in the previous three hours.
-
maxItems
public final Long maxItems()
The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range. If your resource received fewer requests than the value of
MaxItems,GetSampledRequestsreturns information about all of them.- Returns:
- The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS
resource received during the time range. If your resource received fewer requests than the value of
MaxItems,GetSampledRequestsreturns information about all of them.
-
toBuilder
public GetSampledRequestsRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetSampledRequestsRequest.Builder,GetSampledRequestsRequest>- Specified by:
toBuilderin classWafRequest
-
builder
public static GetSampledRequestsRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetSampledRequestsRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-