AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListQueriesRequest.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/CloudTrailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/cloudtrail/model/QueryStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudTrail
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUDTRAIL_API ListQueriesRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListQueries"; }
33
34 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetEventDataStore() const { return m_eventDataStore; }
45 inline bool EventDataStoreHasBeenSet() const { return m_eventDataStoreHasBeenSet; }
46 template<typename EventDataStoreT = Aws::String>
47 void SetEventDataStore(EventDataStoreT&& value) { m_eventDataStoreHasBeenSet = true; m_eventDataStore = std::forward<EventDataStoreT>(value); }
48 template<typename EventDataStoreT = Aws::String>
49 ListQueriesRequest& WithEventDataStore(EventDataStoreT&& value) { SetEventDataStore(std::forward<EventDataStoreT>(value)); return *this;}
51
53
56 inline const Aws::String& GetNextToken() const { return m_nextToken; }
57 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
58 template<typename NextTokenT = Aws::String>
59 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
60 template<typename NextTokenT = Aws::String>
61 ListQueriesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
63
65
68 inline int GetMaxResults() const { return m_maxResults; }
69 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
70 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
71 inline ListQueriesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
73
75
80 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
81 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
82 template<typename StartTimeT = Aws::Utils::DateTime>
83 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
84 template<typename StartTimeT = Aws::Utils::DateTime>
85 ListQueriesRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
87
89
94 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
95 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
96 template<typename EndTimeT = Aws::Utils::DateTime>
97 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
98 template<typename EndTimeT = Aws::Utils::DateTime>
99 ListQueriesRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
101
103
109 inline QueryStatus GetQueryStatus() const { return m_queryStatus; }
110 inline bool QueryStatusHasBeenSet() const { return m_queryStatusHasBeenSet; }
111 inline void SetQueryStatus(QueryStatus value) { m_queryStatusHasBeenSet = true; m_queryStatus = value; }
112 inline ListQueriesRequest& WithQueryStatus(QueryStatus value) { SetQueryStatus(value); return *this;}
114 private:
115
116 Aws::String m_eventDataStore;
117 bool m_eventDataStoreHasBeenSet = false;
118
119 Aws::String m_nextToken;
120 bool m_nextTokenHasBeenSet = false;
121
122 int m_maxResults{0};
123 bool m_maxResultsHasBeenSet = false;
124
125 Aws::Utils::DateTime m_startTime{};
126 bool m_startTimeHasBeenSet = false;
127
128 Aws::Utils::DateTime m_endTime{};
129 bool m_endTimeHasBeenSet = false;
130
131 QueryStatus m_queryStatus{QueryStatus::NOT_SET};
132 bool m_queryStatusHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace CloudTrail
137} // namespace Aws
const Aws::Utils::DateTime & GetEndTime() const
ListQueriesRequest & WithQueryStatus(QueryStatus value)
ListQueriesRequest & WithEndTime(EndTimeT &&value)
ListQueriesRequest & WithEventDataStore(EventDataStoreT &&value)
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetEventDataStore(EventDataStoreT &&value)
const Aws::String & GetEventDataStore() const
AWS_CLOUDTRAIL_API ListQueriesRequest()=default
ListQueriesRequest & WithStartTime(StartTimeT &&value)
ListQueriesRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
const Aws::Utils::DateTime & GetStartTime() const
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
ListQueriesRequest & WithNextToken(NextTokenT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String