/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.kendra.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetSnapshotsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The identifier of the index to get search metrics data. *

*/ private String indexId; /** *

* 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: *

* */ private String interval; /** *

* 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. *

*/ private String metricType; /** *

* 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. *

*/ private String nextToken; /** *

* The maximum number of returned data for the metric. *

*/ private Integer maxResults; /** *

* The identifier of the index to get search metrics data. *

* * @param indexId * The identifier of the index to get search metrics data. */ public void setIndexId(String indexId) { this.indexId = indexId; } /** *

* The identifier of the index to get search metrics data. *

* * @return The identifier of the index to get search metrics data. */ public String getIndexId() { return this.indexId; } /** *

* The identifier of the index to get search metrics data. *

* * @param indexId * The identifier of the index to get search metrics data. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSnapshotsRequest withIndexId(String indexId) { setIndexId(indexId); return this; } /** *

* 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: *

* * * @param 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:

*