/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace kendra { namespace Model { /** */ class GetSnapshotsRequest : public KendraRequest { public: AWS_KENDRA_API GetSnapshotsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetSnapshots"; } AWS_KENDRA_API Aws::String SerializePayload() const override; AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The identifier of the index to get search metrics data.

*/ inline const Aws::String& GetIndexId() const{ return m_indexId; } /** *

The identifier of the index to get search metrics data.

*/ inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; } /** *

The identifier of the index to get search metrics data.

*/ inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; } /** *

The identifier of the index to get search metrics data.

*/ inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); } /** *

The identifier of the index to get search metrics data.

*/ inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); } /** *

The identifier of the index to get search metrics data.

*/ inline GetSnapshotsRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;} /** *

The identifier of the index to get search metrics data.

*/ inline GetSnapshotsRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;} /** *

The identifier of the index to get search metrics data.

*/ inline GetSnapshotsRequest& WithIndexId(const char* value) { SetIndexId(value); 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:

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

*/ inline const Interval& GetInterval() const{ return m_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.

*/ inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; } /** *

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.

*/ inline void SetInterval(const Interval& value) { m_intervalHasBeenSet = true; m_interval = value; } /** *

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.

*/ inline void SetInterval(Interval&& value) { m_intervalHasBeenSet = true; m_interval = std::move(value); } /** *

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.

*/ inline GetSnapshotsRequest& WithInterval(const Interval& value) { SetInterval(value); 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:

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

*/ inline GetSnapshotsRequest& WithInterval(Interval&& value) { SetInterval(std::move(value)); return *this;} /** *

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.

*/ inline const MetricType& GetMetricType() const{ return m_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.

*/ inline bool MetricTypeHasBeenSet() const { return m_metricTypeHasBeenSet; } /** *

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.

*/ inline void SetMetricType(const MetricType& value) { m_metricTypeHasBeenSet = true; m_metricType = value; } /** *

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.

*/ inline void SetMetricType(MetricType&& value) { m_metricTypeHasBeenSet = true; m_metricType = std::move(value); } /** *

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.

*/ inline GetSnapshotsRequest& WithMetricType(const MetricType& value) { SetMetricType(value); return *this;} /** *

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.

*/ inline GetSnapshotsRequest& WithMetricType(MetricType&& value) { SetMetricType(std::move(value)); return *this;} /** *

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.

*/ inline const Aws::String& GetNextToken() const{ return m_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.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

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.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

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.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

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.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

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.

*/ inline GetSnapshotsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

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.

*/ inline GetSnapshotsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

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.

*/ inline GetSnapshotsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of returned data for the metric.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of returned data for the metric.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of returned data for the metric.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of returned data for the metric.

*/ inline GetSnapshotsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_indexId; bool m_indexIdHasBeenSet = false; Interval m_interval; bool m_intervalHasBeenSet = false; MetricType m_metricType; bool m_metricTypeHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws