AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
GetQueryResultsRequest.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrailRequest.h>
8#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CloudTrail {
15namespace Model {
16
20 public:
21 AWS_CLOUDTRAIL_API GetQueryResultsRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "GetQueryResults"; }
28
29 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
30
32
34
37 inline const Aws::String& GetQueryId() const { return m_queryId; }
38 inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; }
39 template <typename QueryIdT = Aws::String>
40 void SetQueryId(QueryIdT&& value) {
41 m_queryIdHasBeenSet = true;
42 m_queryId = std::forward<QueryIdT>(value);
43 }
44 template <typename QueryIdT = Aws::String>
46 SetQueryId(std::forward<QueryIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetNextToken() const { return m_nextToken; }
56 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
57 template <typename NextTokenT = Aws::String>
58 void SetNextToken(NextTokenT&& value) {
59 m_nextTokenHasBeenSet = true;
60 m_nextToken = std::forward<NextTokenT>(value);
61 }
62 template <typename NextTokenT = Aws::String>
64 SetNextToken(std::forward<NextTokenT>(value));
65 return *this;
66 }
68
70
73 inline int GetMaxQueryResults() const { return m_maxQueryResults; }
74 inline bool MaxQueryResultsHasBeenSet() const { return m_maxQueryResultsHasBeenSet; }
75 inline void SetMaxQueryResults(int value) {
76 m_maxQueryResultsHasBeenSet = true;
77 m_maxQueryResults = value;
78 }
80 SetMaxQueryResults(value);
81 return *this;
82 }
84
86
89 inline const Aws::String& GetEventDataStoreOwnerAccountId() const { return m_eventDataStoreOwnerAccountId; }
90 inline bool EventDataStoreOwnerAccountIdHasBeenSet() const { return m_eventDataStoreOwnerAccountIdHasBeenSet; }
91 template <typename EventDataStoreOwnerAccountIdT = Aws::String>
92 void SetEventDataStoreOwnerAccountId(EventDataStoreOwnerAccountIdT&& value) {
93 m_eventDataStoreOwnerAccountIdHasBeenSet = true;
94 m_eventDataStoreOwnerAccountId = std::forward<EventDataStoreOwnerAccountIdT>(value);
95 }
96 template <typename EventDataStoreOwnerAccountIdT = Aws::String>
97 GetQueryResultsRequest& WithEventDataStoreOwnerAccountId(EventDataStoreOwnerAccountIdT&& value) {
98 SetEventDataStoreOwnerAccountId(std::forward<EventDataStoreOwnerAccountIdT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_queryId;
104
105 Aws::String m_nextToken;
106
107 int m_maxQueryResults{0};
108
109 Aws::String m_eventDataStoreOwnerAccountId;
110 bool m_queryIdHasBeenSet = false;
111 bool m_nextTokenHasBeenSet = false;
112 bool m_maxQueryResultsHasBeenSet = false;
113 bool m_eventDataStoreOwnerAccountIdHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace CloudTrail
118} // namespace Aws
GetQueryResultsRequest & WithNextToken(NextTokenT &&value)
GetQueryResultsRequest & WithEventDataStoreOwnerAccountId(EventDataStoreOwnerAccountIdT &&value)
AWS_CLOUDTRAIL_API GetQueryResultsRequest()=default
void SetEventDataStoreOwnerAccountId(EventDataStoreOwnerAccountIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetQueryResultsRequest & WithQueryId(QueryIdT &&value)
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
GetQueryResultsRequest & WithMaxQueryResults(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String