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) 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()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.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.Methods 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
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<TimeWindow.Builder,TimeWindow> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description 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 interfaceSdkPojo- 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
-