AWS SDK for C++

AWS SDK for C++ Version 1.11.824

Loading...
Searching...
No Matches
ListSessionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticmapreduce/EMRRequest.h>
10#include <aws/elasticmapreduce/EMR_EXPORTS.h>
11#include <aws/elasticmapreduce/model/SessionState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EMR {
17namespace Model {
18
26 public:
27 AWS_EMR_API ListSessionsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ListSessions"; }
34
35 AWS_EMR_API Aws::String SerializePayload() const override;
36
38
40
43 inline const Aws::String& GetClusterId() const { return m_clusterId; }
44 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
45 template <typename ClusterIdT = Aws::String>
46 void SetClusterId(ClusterIdT&& value) {
47 m_clusterIdHasBeenSet = true;
48 m_clusterId = std::forward<ClusterIdT>(value);
49 }
50 template <typename ClusterIdT = Aws::String>
51 ListSessionsRequest& WithClusterId(ClusterIdT&& value) {
52 SetClusterId(std::forward<ClusterIdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::Vector<SessionState>& GetSessionStates() const { return m_sessionStates; }
63 inline bool SessionStatesHasBeenSet() const { return m_sessionStatesHasBeenSet; }
64 template <typename SessionStatesT = Aws::Vector<SessionState>>
65 void SetSessionStates(SessionStatesT&& value) {
66 m_sessionStatesHasBeenSet = true;
67 m_sessionStates = std::forward<SessionStatesT>(value);
68 }
69 template <typename SessionStatesT = Aws::Vector<SessionState>>
70 ListSessionsRequest& WithSessionStates(SessionStatesT&& value) {
71 SetSessionStates(std::forward<SessionStatesT>(value));
72 return *this;
73 }
75 m_sessionStatesHasBeenSet = true;
76 m_sessionStates.push_back(value);
77 return *this;
78 }
80
82
86 inline const Aws::String& GetNextToken() const { return m_nextToken; }
87 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
88 template <typename NextTokenT = Aws::String>
89 void SetNextToken(NextTokenT&& value) {
90 m_nextTokenHasBeenSet = true;
91 m_nextToken = std::forward<NextTokenT>(value);
92 }
93 template <typename NextTokenT = Aws::String>
94 ListSessionsRequest& WithNextToken(NextTokenT&& value) {
95 SetNextToken(std::forward<NextTokenT>(value));
96 return *this;
97 }
99
101
104 inline int GetMaxResults() const { return m_maxResults; }
105 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
106 inline void SetMaxResults(int value) {
107 m_maxResultsHasBeenSet = true;
108 m_maxResults = value;
109 }
111 SetMaxResults(value);
112 return *this;
113 }
115 private:
116 Aws::String m_clusterId;
117
118 Aws::Vector<SessionState> m_sessionStates;
119
120 Aws::String m_nextToken;
121
122 int m_maxResults{0};
123 bool m_clusterIdHasBeenSet = false;
124 bool m_sessionStatesHasBeenSet = false;
125 bool m_nextTokenHasBeenSet = false;
126 bool m_maxResultsHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace EMR
131} // namespace Aws
ListSessionsRequest & WithMaxResults(int value)
AWS_EMR_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::String & GetNextToken() const
const Aws::String & GetClusterId() const
ListSessionsRequest & WithSessionStates(SessionStatesT &&value)
ListSessionsRequest & WithNextToken(NextTokenT &&value)
AWS_EMR_API ListSessionsRequest()=default
ListSessionsRequest & AddSessionStates(SessionState value)
AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< SessionState > & GetSessionStates() const
ListSessionsRequest & WithClusterId(ClusterIdT &&value)
void SetSessionStates(SessionStatesT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector