Class TimeWindow
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TimeWindow.Builder,TimeWindow>
In a GetSampledRequests request, the StartTime and EndTime objects specify the time
range for which you want WAF to return a sample of web 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.
In a GetSampledRequests response, the StartTime and EndTime objects specify the time
range for which WAF actually returned a sample of web requests. WAF gets the specified number of requests from among
the first 5,000 requests that your Amazon Web Services resource receives during the specified time period. If your
resource receives more than 5,000 requests during that period, WAF stops sampling after the 5,000th request. In that
case, EndTime is the time that WAF received the 5,000th request.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeWindow.Builderbuilder()final InstantendTime()The end of the time range from which you wantGetSampledRequeststo return a sample of the requests that your Amazon Web Services resource received.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends TimeWindow.Builder>final InstantThe beginning of the time range from which you wantGetSampledRequeststo return a sample of the requests that your Amazon Web Services resource received.final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
startTime
The beginning of the time range from which you want
GetSampledRequeststo return a sample of the requests that your Amazon Web Services resource received. 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 beginning of the time range from which you want
GetSampledRequeststo return a sample of the requests that your Amazon Web Services resource received. 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.
-
endTime
The end of the time range from which you want
GetSampledRequeststo return a sample of the requests that your Amazon Web Services resource received. 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 end of the time range from which you want
GetSampledRequeststo return a sample of the requests that your Amazon Web Services resource received. 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.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<TimeWindow.Builder,TimeWindow>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-