AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListSessionsRequest.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/athena/AthenaRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/athena/model/SessionState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Athena
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_ATHENA_API ListSessionsRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListSessions"; }
32
33 AWS_ATHENA_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetWorkGroup() const{ return m_workGroup; }
43 inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; }
44 inline void SetWorkGroup(const Aws::String& value) { m_workGroupHasBeenSet = true; m_workGroup = value; }
45 inline void SetWorkGroup(Aws::String&& value) { m_workGroupHasBeenSet = true; m_workGroup = std::move(value); }
46 inline void SetWorkGroup(const char* value) { m_workGroupHasBeenSet = true; m_workGroup.assign(value); }
47 inline ListSessionsRequest& WithWorkGroup(const Aws::String& value) { SetWorkGroup(value); return *this;}
48 inline ListSessionsRequest& WithWorkGroup(Aws::String&& value) { SetWorkGroup(std::move(value)); return *this;}
49 inline ListSessionsRequest& WithWorkGroup(const char* value) { SetWorkGroup(value); return *this;}
51
53
66 inline const SessionState& GetStateFilter() const{ return m_stateFilter; }
67 inline bool StateFilterHasBeenSet() const { return m_stateFilterHasBeenSet; }
68 inline void SetStateFilter(const SessionState& value) { m_stateFilterHasBeenSet = true; m_stateFilter = value; }
69 inline void SetStateFilter(SessionState&& value) { m_stateFilterHasBeenSet = true; m_stateFilter = std::move(value); }
70 inline ListSessionsRequest& WithStateFilter(const SessionState& value) { SetStateFilter(value); return *this;}
71 inline ListSessionsRequest& WithStateFilter(SessionState&& value) { SetStateFilter(std::move(value)); return *this;}
73
75
78 inline int GetMaxResults() const{ return m_maxResults; }
79 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
80 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
81 inline ListSessionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
83
85
91 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
92 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
93 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
94 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
95 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
96 inline ListSessionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
97 inline ListSessionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
98 inline ListSessionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
100 private:
101
102 Aws::String m_workGroup;
103 bool m_workGroupHasBeenSet = false;
104
105 SessionState m_stateFilter;
106 bool m_stateFilterHasBeenSet = false;
107
108 int m_maxResults;
109 bool m_maxResultsHasBeenSet = false;
110
111 Aws::String m_nextToken;
112 bool m_nextTokenHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace Athena
117} // namespace Aws
ListSessionsRequest & WithNextToken(const char *value)
ListSessionsRequest & WithNextToken(const Aws::String &value)
ListSessionsRequest & WithWorkGroup(const char *value)
virtual const char * GetServiceRequestName() const override
void SetStateFilter(const SessionState &value)
const SessionState & GetStateFilter() const
void SetNextToken(const Aws::String &value)
ListSessionsRequest & WithWorkGroup(Aws::String &&value)
ListSessionsRequest & WithStateFilter(SessionState &&value)
void SetWorkGroup(const Aws::String &value)
AWS_ATHENA_API Aws::String SerializePayload() const override
ListSessionsRequest & WithNextToken(Aws::String &&value)
ListSessionsRequest & WithWorkGroup(const Aws::String &value)
ListSessionsRequest & WithMaxResults(int value)
AWS_ATHENA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListSessionsRequest & WithStateFilter(const SessionState &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String