Class GetSnapshotsRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.kendra.model.KendraRequest
-
- software.amazon.awssdk.services.kendra.model.GetSnapshotsRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetSnapshotsRequest.Builder,GetSnapshotsRequest>
@Generated("software.amazon.awssdk:codegen") public final class GetSnapshotsRequest extends KendraRequest implements ToCopyableBuilder<GetSnapshotsRequest.Builder,GetSnapshotsRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetSnapshotsRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetSnapshotsRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringindexId()The identifier of the index to get search metrics data.Intervalinterval()The time interval or time window to get search metrics data.StringintervalAsString()The time interval or time window to get search metrics data.IntegermaxResults()The maximum number of returned data for the metric.MetricTypemetricType()The metric you want to retrieve.StringmetricTypeAsString()The metric you want to retrieve.StringnextToken()If the previous response was incomplete (because there is more data to retrieve), Amazon Kendra returns a pagination token in the response.List<SdkField<?>>sdkFields()static Class<? extends GetSnapshotsRequest.Builder>serializableBuilderClass()GetSnapshotsRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
indexId
public final String indexId()
The identifier of the index to get search metrics data.
- Returns:
- The identifier of the index to get search metrics data.
-
interval
public final Interval interval()
The time interval or time window to get search metrics data. The time interval uses the time zone of your index. You can view data in the following time windows:
-
THIS_WEEK: The current week, starting on the Sunday and ending on the day before the current date. -
ONE_WEEK_AGO: The previous week, starting on the Sunday and ending on the following Saturday. -
TWO_WEEKS_AGO: The week before the previous week, starting on the Sunday and ending on the following Saturday. -
THIS_MONTH: The current month, starting on the first day of the month and ending on the day before the current date. -
ONE_MONTH_AGO: The previous month, starting on the first day of the month and ending on the last day of the month. -
TWO_MONTHS_AGO: The month before the previous month, starting on the first day of the month and ending on last day of the month.
If the service returns an enum value that is not available in the current SDK version,
intervalwill returnInterval.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromintervalAsString().- Returns:
- The time interval or time window to get search metrics data. The time interval uses the time zone of your
index. You can view data in the following time windows:
-
THIS_WEEK: The current week, starting on the Sunday and ending on the day before the current date. -
ONE_WEEK_AGO: The previous week, starting on the Sunday and ending on the following Saturday. -
TWO_WEEKS_AGO: The week before the previous week, starting on the Sunday and ending on the following Saturday. -
THIS_MONTH: The current month, starting on the first day of the month and ending on the day before the current date. -
ONE_MONTH_AGO: The previous month, starting on the first day of the month and ending on the last day of the month. -
TWO_MONTHS_AGO: The month before the previous month, starting on the first day of the month and ending on last day of the month.
-
- See Also:
Interval
-
-
intervalAsString
public final String intervalAsString()
The time interval or time window to get search metrics data. The time interval uses the time zone of your index. You can view data in the following time windows:
-
THIS_WEEK: The current week, starting on the Sunday and ending on the day before the current date. -
ONE_WEEK_AGO: The previous week, starting on the Sunday and ending on the following Saturday. -
TWO_WEEKS_AGO: The week before the previous week, starting on the Sunday and ending on the following Saturday. -
THIS_MONTH: The current month, starting on the first day of the month and ending on the day before the current date. -
ONE_MONTH_AGO: The previous month, starting on the first day of the month and ending on the last day of the month. -
TWO_MONTHS_AGO: The month before the previous month, starting on the first day of the month and ending on last day of the month.
If the service returns an enum value that is not available in the current SDK version,
intervalwill returnInterval.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromintervalAsString().- Returns:
- The time interval or time window to get search metrics data. The time interval uses the time zone of your
index. You can view data in the following time windows:
-
THIS_WEEK: The current week, starting on the Sunday and ending on the day before the current date. -
ONE_WEEK_AGO: The previous week, starting on the Sunday and ending on the following Saturday. -
TWO_WEEKS_AGO: The week before the previous week, starting on the Sunday and ending on the following Saturday. -
THIS_MONTH: The current month, starting on the first day of the month and ending on the day before the current date. -
ONE_MONTH_AGO: The previous month, starting on the first day of the month and ending on the last day of the month. -
TWO_MONTHS_AGO: The month before the previous month, starting on the first day of the month and ending on last day of the month.
-
- See Also:
Interval
-
-
metricType
public final MetricType metricType()
The metric you want to retrieve. You can specify only one metric per call.
For more information about the metrics you can view, see Gaining insights with search analytics.
If the service returns an enum value that is not available in the current SDK version,
metricTypewill returnMetricType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommetricTypeAsString().- Returns:
- The metric you want to retrieve. You can specify only one metric per call.
For more information about the metrics you can view, see Gaining insights with search analytics.
- See Also:
MetricType
-
metricTypeAsString
public final String metricTypeAsString()
The metric you want to retrieve. You can specify only one metric per call.
For more information about the metrics you can view, see Gaining insights with search analytics.
If the service returns an enum value that is not available in the current SDK version,
metricTypewill returnMetricType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommetricTypeAsString().- Returns:
- The metric you want to retrieve. You can specify only one metric per call.
For more information about the metrics you can view, see Gaining insights with search analytics.
- See Also:
MetricType
-
nextToken
public final String nextToken()
If the previous response was incomplete (because there is more data to retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of search metrics data.
- Returns:
- If the previous response was incomplete (because there is more data to retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of search metrics data.
-
maxResults
public final Integer maxResults()
The maximum number of returned data for the metric.
- Returns:
- The maximum number of returned data for the metric.
-
toBuilder
public GetSnapshotsRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetSnapshotsRequest.Builder,GetSnapshotsRequest>- Specified by:
toBuilderin classKendraRequest
-
builder
public static GetSnapshotsRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetSnapshotsRequest.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
-
-