AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListSessionsResult.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/glue/model/Session.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Glue
26{
27namespace Model
28{
30 {
31 public:
32 AWS_GLUE_API ListSessionsResult() = default;
35
36
38
41 inline const Aws::Vector<Aws::String>& GetIds() const { return m_ids; }
42 template<typename IdsT = Aws::Vector<Aws::String>>
43 void SetIds(IdsT&& value) { m_idsHasBeenSet = true; m_ids = std::forward<IdsT>(value); }
44 template<typename IdsT = Aws::Vector<Aws::String>>
45 ListSessionsResult& WithIds(IdsT&& value) { SetIds(std::forward<IdsT>(value)); return *this;}
46 template<typename IdsT = Aws::String>
47 ListSessionsResult& AddIds(IdsT&& value) { m_idsHasBeenSet = true; m_ids.emplace_back(std::forward<IdsT>(value)); return *this; }
49
51
54 inline const Aws::Vector<Session>& GetSessions() const { return m_sessions; }
55 template<typename SessionsT = Aws::Vector<Session>>
56 void SetSessions(SessionsT&& value) { m_sessionsHasBeenSet = true; m_sessions = std::forward<SessionsT>(value); }
57 template<typename SessionsT = Aws::Vector<Session>>
58 ListSessionsResult& WithSessions(SessionsT&& value) { SetSessions(std::forward<SessionsT>(value)); return *this;}
59 template<typename SessionsT = Session>
60 ListSessionsResult& AddSessions(SessionsT&& value) { m_sessionsHasBeenSet = true; m_sessions.emplace_back(std::forward<SessionsT>(value)); return *this; }
62
64
68 inline const Aws::String& GetNextToken() const { return m_nextToken; }
69 template<typename NextTokenT = Aws::String>
70 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
71 template<typename NextTokenT = Aws::String>
72 ListSessionsResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
74
76
77 inline const Aws::String& GetRequestId() const { return m_requestId; }
78 template<typename RequestIdT = Aws::String>
79 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
80 template<typename RequestIdT = Aws::String>
81 ListSessionsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
83 private:
84
86 bool m_idsHasBeenSet = false;
87
88 Aws::Vector<Session> m_sessions;
89 bool m_sessionsHasBeenSet = false;
90
91 Aws::String m_nextToken;
92 bool m_nextTokenHasBeenSet = false;
93
94 Aws::String m_requestId;
95 bool m_requestIdHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace Glue
100} // namespace Aws
ListSessionsResult & WithNextToken(NextTokenT &&value)
ListSessionsResult & AddIds(IdsT &&value)
const Aws::String & GetRequestId() const
const Aws::Vector< Session > & GetSessions() const
AWS_GLUE_API ListSessionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListSessionsResult & WithIds(IdsT &&value)
ListSessionsResult & AddSessions(SessionsT &&value)
ListSessionsResult & WithSessions(SessionsT &&value)
ListSessionsResult & WithRequestId(RequestIdT &&value)
AWS_GLUE_API ListSessionsResult()=default
const Aws::Vector< Aws::String > & GetIds() const
AWS_GLUE_API ListSessionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetNextToken() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue