/** * 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 CloudTrail { namespace Model { /** */ class ListQueriesRequest : public CloudTrailRequest { public: AWS_CLOUDTRAIL_API ListQueriesRequest(); // 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 "ListQueries"; } AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override; AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ARN (or the ID suffix of the ARN) of an event data store on which queries * were run.

*/ inline const Aws::String& GetEventDataStore() const{ return m_eventDataStore; } /** *

The ARN (or the ID suffix of the ARN) of an event data store on which queries * were run.

*/ inline bool EventDataStoreHasBeenSet() const { return m_eventDataStoreHasBeenSet; } /** *

The ARN (or the ID suffix of the ARN) of an event data store on which queries * were run.

*/ inline void SetEventDataStore(const Aws::String& value) { m_eventDataStoreHasBeenSet = true; m_eventDataStore = value; } /** *

The ARN (or the ID suffix of the ARN) of an event data store on which queries * were run.

*/ inline void SetEventDataStore(Aws::String&& value) { m_eventDataStoreHasBeenSet = true; m_eventDataStore = std::move(value); } /** *

The ARN (or the ID suffix of the ARN) of an event data store on which queries * were run.

*/ inline void SetEventDataStore(const char* value) { m_eventDataStoreHasBeenSet = true; m_eventDataStore.assign(value); } /** *

The ARN (or the ID suffix of the ARN) of an event data store on which queries * were run.

*/ inline ListQueriesRequest& WithEventDataStore(const Aws::String& value) { SetEventDataStore(value); return *this;} /** *

The ARN (or the ID suffix of the ARN) of an event data store on which queries * were run.

*/ inline ListQueriesRequest& WithEventDataStore(Aws::String&& value) { SetEventDataStore(std::move(value)); return *this;} /** *

The ARN (or the ID suffix of the ARN) of an event data store on which queries * were run.

*/ inline ListQueriesRequest& WithEventDataStore(const char* value) { SetEventDataStore(value); return *this;} /** *

A token you can use to get the next page of results.

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

A token you can use to get the next page of results.

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

A token you can use to get the next page of results.

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

A token you can use to get the next page of results.

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

A token you can use to get the next page of results.

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

A token you can use to get the next page of results.

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

A token you can use to get the next page of results.

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

A token you can use to get the next page of results.

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

The maximum number of queries to show on a page.

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

The maximum number of queries to show on a page.

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

The maximum number of queries to show on a page.

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

The maximum number of queries to show on a page.

*/ inline ListQueriesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

Use with EndTime to bound a ListQueries request, * and limit its results to only those queries run within a specified time * period.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

Use with EndTime to bound a ListQueries request, * and limit its results to only those queries run within a specified time * period.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

Use with EndTime to bound a ListQueries request, * and limit its results to only those queries run within a specified time * period.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

Use with EndTime to bound a ListQueries request, * and limit its results to only those queries run within a specified time * period.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

Use with EndTime to bound a ListQueries request, * and limit its results to only those queries run within a specified time * period.

*/ inline ListQueriesRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

Use with EndTime to bound a ListQueries request, * and limit its results to only those queries run within a specified time * period.

*/ inline ListQueriesRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

Use with StartTime to bound a ListQueries request, * and limit its results to only those queries run within a specified time * period.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

Use with StartTime to bound a ListQueries request, * and limit its results to only those queries run within a specified time * period.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

Use with StartTime to bound a ListQueries request, * and limit its results to only those queries run within a specified time * period.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

Use with StartTime to bound a ListQueries request, * and limit its results to only those queries run within a specified time * period.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

Use with StartTime to bound a ListQueries request, * and limit its results to only those queries run within a specified time * period.

*/ inline ListQueriesRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

Use with StartTime to bound a ListQueries request, * and limit its results to only those queries run within a specified time * period.

*/ inline ListQueriesRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

The status of queries that you want to return in results. Valid values for * QueryStatus include QUEUED, RUNNING, * FINISHED, FAILED, TIMED_OUT, or * CANCELLED.

*/ inline const QueryStatus& GetQueryStatus() const{ return m_queryStatus; } /** *

The status of queries that you want to return in results. Valid values for * QueryStatus include QUEUED, RUNNING, * FINISHED, FAILED, TIMED_OUT, or * CANCELLED.

*/ inline bool QueryStatusHasBeenSet() const { return m_queryStatusHasBeenSet; } /** *

The status of queries that you want to return in results. Valid values for * QueryStatus include QUEUED, RUNNING, * FINISHED, FAILED, TIMED_OUT, or * CANCELLED.

*/ inline void SetQueryStatus(const QueryStatus& value) { m_queryStatusHasBeenSet = true; m_queryStatus = value; } /** *

The status of queries that you want to return in results. Valid values for * QueryStatus include QUEUED, RUNNING, * FINISHED, FAILED, TIMED_OUT, or * CANCELLED.

*/ inline void SetQueryStatus(QueryStatus&& value) { m_queryStatusHasBeenSet = true; m_queryStatus = std::move(value); } /** *

The status of queries that you want to return in results. Valid values for * QueryStatus include QUEUED, RUNNING, * FINISHED, FAILED, TIMED_OUT, or * CANCELLED.

*/ inline ListQueriesRequest& WithQueryStatus(const QueryStatus& value) { SetQueryStatus(value); return *this;} /** *

The status of queries that you want to return in results. Valid values for * QueryStatus include QUEUED, RUNNING, * FINISHED, FAILED, TIMED_OUT, or * CANCELLED.

*/ inline ListQueriesRequest& WithQueryStatus(QueryStatus&& value) { SetQueryStatus(std::move(value)); return *this;} private: Aws::String m_eventDataStore; bool m_eventDataStoreHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; QueryStatus m_queryStatus; bool m_queryStatusHasBeenSet = false; }; } // namespace Model } // namespace CloudTrail } // namespace Aws