/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace kendra { namespace Model { class GetSnapshotsResult { public: AWS_KENDRA_API GetSnapshotsResult(); AWS_KENDRA_API GetSnapshotsResult(const Aws::AmazonWebServiceResult& result); AWS_KENDRA_API GetSnapshotsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Unix timestamp for the beginning and end of the time window for the * search metrics data.

*/ inline const TimeRange& GetSnapShotTimeFilter() const{ return m_snapShotTimeFilter; } /** *

The Unix timestamp for the beginning and end of the time window for the * search metrics data.

*/ inline void SetSnapShotTimeFilter(const TimeRange& value) { m_snapShotTimeFilter = value; } /** *

The Unix timestamp for the beginning and end of the time window for the * search metrics data.

*/ inline void SetSnapShotTimeFilter(TimeRange&& value) { m_snapShotTimeFilter = std::move(value); } /** *

The Unix timestamp for the beginning and end of the time window for the * search metrics data.

*/ inline GetSnapshotsResult& WithSnapShotTimeFilter(const TimeRange& value) { SetSnapShotTimeFilter(value); return *this;} /** *

The Unix timestamp for the beginning and end of the time window for the * search metrics data.

*/ inline GetSnapshotsResult& WithSnapShotTimeFilter(TimeRange&& value) { SetSnapShotTimeFilter(std::move(value)); return *this;} /** *

The column headers for the search metrics data.

*/ inline const Aws::Vector& GetSnapshotsDataHeader() const{ return m_snapshotsDataHeader; } /** *

The column headers for the search metrics data.

*/ inline void SetSnapshotsDataHeader(const Aws::Vector& value) { m_snapshotsDataHeader = value; } /** *

The column headers for the search metrics data.

*/ inline void SetSnapshotsDataHeader(Aws::Vector&& value) { m_snapshotsDataHeader = std::move(value); } /** *

The column headers for the search metrics data.

*/ inline GetSnapshotsResult& WithSnapshotsDataHeader(const Aws::Vector& value) { SetSnapshotsDataHeader(value); return *this;} /** *

The column headers for the search metrics data.

*/ inline GetSnapshotsResult& WithSnapshotsDataHeader(Aws::Vector&& value) { SetSnapshotsDataHeader(std::move(value)); return *this;} /** *

The column headers for the search metrics data.

*/ inline GetSnapshotsResult& AddSnapshotsDataHeader(const Aws::String& value) { m_snapshotsDataHeader.push_back(value); return *this; } /** *

The column headers for the search metrics data.

*/ inline GetSnapshotsResult& AddSnapshotsDataHeader(Aws::String&& value) { m_snapshotsDataHeader.push_back(std::move(value)); return *this; } /** *

The column headers for the search metrics data.

*/ inline GetSnapshotsResult& AddSnapshotsDataHeader(const char* value) { m_snapshotsDataHeader.push_back(value); return *this; } /** *

The search metrics data. The data returned depends on the metric type you * requested.

*/ inline const Aws::Vector>& GetSnapshotsData() const{ return m_snapshotsData; } /** *

The search metrics data. The data returned depends on the metric type you * requested.

*/ inline void SetSnapshotsData(const Aws::Vector>& value) { m_snapshotsData = value; } /** *

The search metrics data. The data returned depends on the metric type you * requested.

*/ inline void SetSnapshotsData(Aws::Vector>&& value) { m_snapshotsData = std::move(value); } /** *

The search metrics data. The data returned depends on the metric type you * requested.

*/ inline GetSnapshotsResult& WithSnapshotsData(const Aws::Vector>& value) { SetSnapshotsData(value); return *this;} /** *

The search metrics data. The data returned depends on the metric type you * requested.

*/ inline GetSnapshotsResult& WithSnapshotsData(Aws::Vector>&& value) { SetSnapshotsData(std::move(value)); return *this;} /** *

The search metrics data. The data returned depends on the metric type you * requested.

*/ inline GetSnapshotsResult& AddSnapshotsData(const Aws::Vector& value) { m_snapshotsData.push_back(value); return *this; } /** *

The search metrics data. The data returned depends on the metric type you * requested.

*/ inline GetSnapshotsResult& AddSnapshotsData(Aws::Vector&& value) { m_snapshotsData.push_back(std::move(value)); return *this; } /** *

If the response is truncated, Amazon Kendra returns this token, which you can * use in a later request to retrieve the next set of search metrics data.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

If the response is truncated, Amazon Kendra returns this token, which you can * use in a later request to retrieve the next set of search metrics data.

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

If the response is truncated, Amazon Kendra returns this token, which you can * use in a later request to retrieve the next set of search metrics data.

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

If the response is truncated, Amazon Kendra returns this token, which you can * use in a later request to retrieve the next set of search metrics data.

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

If the response is truncated, Amazon Kendra returns this token, which you can * use in a later request to retrieve the next set of search metrics data.

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

If the response is truncated, Amazon Kendra returns this token, which you can * use in a later request to retrieve the next set of search metrics data.

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

If the response is truncated, Amazon Kendra returns this token, which you can * use in a later request to retrieve the next set of search metrics data.

*/ inline GetSnapshotsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetSnapshotsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetSnapshotsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetSnapshotsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: TimeRange m_snapShotTimeFilter; Aws::Vector m_snapshotsDataHeader; Aws::Vector> m_snapshotsData; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace kendra } // namespace Aws