AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
ListSessionsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glue/Glue_EXPORTS.h>
11#include <aws/glue/model/Session.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Glue {
25namespace Model {
27 public:
28 AWS_GLUE_API ListSessionsResult() = default;
31
33
36 inline const Aws::Vector<Aws::String>& GetIds() const { return m_ids; }
37 template <typename IdsT = Aws::Vector<Aws::String>>
38 void SetIds(IdsT&& value) {
39 m_idsHasBeenSet = true;
40 m_ids = std::forward<IdsT>(value);
41 }
42 template <typename IdsT = Aws::Vector<Aws::String>>
43 ListSessionsResult& WithIds(IdsT&& value) {
44 SetIds(std::forward<IdsT>(value));
45 return *this;
46 }
47 template <typename IdsT = Aws::String>
48 ListSessionsResult& AddIds(IdsT&& value) {
49 m_idsHasBeenSet = true;
50 m_ids.emplace_back(std::forward<IdsT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Session>& GetSessions() const { return m_sessions; }
60 template <typename SessionsT = Aws::Vector<Session>>
61 void SetSessions(SessionsT&& value) {
62 m_sessionsHasBeenSet = true;
63 m_sessions = std::forward<SessionsT>(value);
64 }
65 template <typename SessionsT = Aws::Vector<Session>>
66 ListSessionsResult& WithSessions(SessionsT&& value) {
67 SetSessions(std::forward<SessionsT>(value));
68 return *this;
69 }
70 template <typename SessionsT = Session>
71 ListSessionsResult& AddSessions(SessionsT&& value) {
72 m_sessionsHasBeenSet = true;
73 m_sessions.emplace_back(std::forward<SessionsT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetNextToken() const { return m_nextToken; }
84 template <typename NextTokenT = Aws::String>
85 void SetNextToken(NextTokenT&& value) {
86 m_nextTokenHasBeenSet = true;
87 m_nextToken = std::forward<NextTokenT>(value);
88 }
89 template <typename NextTokenT = Aws::String>
90 ListSessionsResult& WithNextToken(NextTokenT&& value) {
91 SetNextToken(std::forward<NextTokenT>(value));
92 return *this;
93 }
95
97
98 inline const Aws::String& GetRequestId() const { return m_requestId; }
99 template <typename RequestIdT = Aws::String>
100 void SetRequestId(RequestIdT&& value) {
101 m_requestIdHasBeenSet = true;
102 m_requestId = std::forward<RequestIdT>(value);
103 }
104 template <typename RequestIdT = Aws::String>
105 ListSessionsResult& WithRequestId(RequestIdT&& value) {
106 SetRequestId(std::forward<RequestIdT>(value));
107 return *this;
108 }
110 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
111
112 private:
114
115 Aws::Vector<Session> m_sessions;
116
117 Aws::String m_nextToken;
118
119 Aws::String m_requestId;
120 Aws::Http::HttpResponseCode m_HttpResponseCode;
121 bool m_idsHasBeenSet = false;
122 bool m_sessionsHasBeenSet = false;
123 bool m_nextTokenHasBeenSet = false;
124 bool m_requestIdHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace Glue
129} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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