AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ListSessionsRequest.h
1
6#pragma once
7#include <aws/athena/AthenaRequest.h>
8#include <aws/athena/Athena_EXPORTS.h>
9#include <aws/athena/model/SessionState.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Athena {
16namespace Model {
17
21 public:
22 AWS_ATHENA_API ListSessionsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListSessions"; }
29
30 AWS_ATHENA_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetWorkGroup() const { return m_workGroup; }
39 inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; }
40 template <typename WorkGroupT = Aws::String>
41 void SetWorkGroup(WorkGroupT&& value) {
42 m_workGroupHasBeenSet = true;
43 m_workGroup = std::forward<WorkGroupT>(value);
44 }
45 template <typename WorkGroupT = Aws::String>
46 ListSessionsRequest& WithWorkGroup(WorkGroupT&& value) {
47 SetWorkGroup(std::forward<WorkGroupT>(value));
48 return *this;
49 }
51
53
66 inline SessionState GetStateFilter() const { return m_stateFilter; }
67 inline bool StateFilterHasBeenSet() const { return m_stateFilterHasBeenSet; }
68 inline void SetStateFilter(SessionState value) {
69 m_stateFilterHasBeenSet = true;
70 m_stateFilter = value;
71 }
73 SetStateFilter(value);
74 return *this;
75 }
77
79
82 inline int GetMaxResults() const { return m_maxResults; }
83 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
84 inline void SetMaxResults(int value) {
85 m_maxResultsHasBeenSet = true;
86 m_maxResults = value;
87 }
89 SetMaxResults(value);
90 return *this;
91 }
93
95
101 inline const Aws::String& GetNextToken() const { return m_nextToken; }
102 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
103 template <typename NextTokenT = Aws::String>
104 void SetNextToken(NextTokenT&& value) {
105 m_nextTokenHasBeenSet = true;
106 m_nextToken = std::forward<NextTokenT>(value);
107 }
108 template <typename NextTokenT = Aws::String>
109 ListSessionsRequest& WithNextToken(NextTokenT&& value) {
110 SetNextToken(std::forward<NextTokenT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_workGroup;
116
117 SessionState m_stateFilter{SessionState::NOT_SET};
118
119 int m_maxResults{0};
120
121 Aws::String m_nextToken;
122 bool m_workGroupHasBeenSet = false;
123 bool m_stateFilterHasBeenSet = false;
124 bool m_maxResultsHasBeenSet = false;
125 bool m_nextTokenHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace Athena
130} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_ATHENA_API ListSessionsRequest()=default
ListSessionsRequest & WithWorkGroup(WorkGroupT &&value)
AWS_ATHENA_API Aws::String SerializePayload() const override
ListSessionsRequest & WithStateFilter(SessionState value)
ListSessionsRequest & WithMaxResults(int value)
AWS_ATHENA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListSessionsRequest & WithNextToken(NextTokenT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String