AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEventDataStore(const Aws::String& value) { m_eventDataStoreHasBeenSet = true; m_eventDataStore = value; }
47 inline void SetEventDataStore(Aws::String&& value) { m_eventDataStoreHasBeenSet = true; m_eventDataStore = std::move(value); }
48 inline void SetEventDataStore(const char* value) { m_eventDataStoreHasBeenSet = true; m_eventDataStore.assign(value); }
49 inline ListQueriesRequest& WithEventDataStore(const Aws::String& value) { SetEventDataStore(value); return *this;}
50 inline ListQueriesRequest& WithEventDataStore(Aws::String&& value) { SetEventDataStore(std::move(value)); return *this;}
51 inline ListQueriesRequest& WithEventDataStore(const char* value) { SetEventDataStore(value); return *this;}
53
55
58 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
59 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
60 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
61 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
62 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
63 inline ListQueriesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
64 inline ListQueriesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
65 inline ListQueriesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
67
69
72 inline int GetMaxResults() const{ return m_maxResults; }
73 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
74 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
75 inline ListQueriesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
77
79
84 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
85 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
86 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
87 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
88 inline ListQueriesRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
89 inline ListQueriesRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
91
93
98 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
99 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
100 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
101 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
102 inline ListQueriesRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
103 inline ListQueriesRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
105
107
113 inline const QueryStatus& GetQueryStatus() const{ return m_queryStatus; }
114 inline bool QueryStatusHasBeenSet() const { return m_queryStatusHasBeenSet; }
115 inline void SetQueryStatus(const QueryStatus& value) { m_queryStatusHasBeenSet = true; m_queryStatus = value; }
116 inline void SetQueryStatus(QueryStatus&& value) { m_queryStatusHasBeenSet = true; m_queryStatus = std::move(value); }
117 inline ListQueriesRequest& WithQueryStatus(const QueryStatus& value) { SetQueryStatus(value); return *this;}
118 inline ListQueriesRequest& WithQueryStatus(QueryStatus&& value) { SetQueryStatus(std::move(value)); return *this;}
120 private:
121
122 Aws::String m_eventDataStore;
123 bool m_eventDataStoreHasBeenSet = false;
124
125 Aws::String m_nextToken;
126 bool m_nextTokenHasBeenSet = false;
127
128 int m_maxResults;
129 bool m_maxResultsHasBeenSet = false;
130
131 Aws::Utils::DateTime m_startTime;
132 bool m_startTimeHasBeenSet = false;
133
134 Aws::Utils::DateTime m_endTime;
135 bool m_endTimeHasBeenSet = false;
136
137 QueryStatus m_queryStatus;
138 bool m_queryStatusHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace CloudTrail
143} // namespace Aws
ListQueriesRequest & WithEventDataStore(Aws::String &&value)
ListQueriesRequest & WithEventDataStore(const char *value)
const Aws::Utils::DateTime & GetEndTime() const
ListQueriesRequest & WithNextToken(const Aws::String &value)
ListQueriesRequest & WithEndTime(const Aws::Utils::DateTime &value)
ListQueriesRequest & WithQueryStatus(QueryStatus &&value)
ListQueriesRequest & WithNextToken(Aws::String &&value)
void SetQueryStatus(const QueryStatus &value)
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListQueriesRequest & WithEventDataStore(const Aws::String &value)
void SetStartTime(const Aws::Utils::DateTime &value)
const Aws::String & GetEventDataStore() const
ListQueriesRequest & WithEndTime(Aws::Utils::DateTime &&value)
ListQueriesRequest & WithStartTime(Aws::Utils::DateTime &&value)
void SetEndTime(const Aws::Utils::DateTime &value)
ListQueriesRequest & WithQueryStatus(const QueryStatus &value)
void SetEventDataStore(const Aws::String &value)
void SetStartTime(Aws::Utils::DateTime &&value)
void SetEndTime(Aws::Utils::DateTime &&value)
ListQueriesRequest & WithStartTime(const Aws::Utils::DateTime &value)
ListQueriesRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
const Aws::Utils::DateTime & GetStartTime() const
void SetNextToken(const Aws::String &value)
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
ListQueriesRequest & WithNextToken(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String