AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
35
36
38
41 inline const Aws::Vector<Aws::String>& GetIds() const{ return m_ids; }
42 inline void SetIds(const Aws::Vector<Aws::String>& value) { m_ids = value; }
43 inline void SetIds(Aws::Vector<Aws::String>&& value) { m_ids = std::move(value); }
44 inline ListSessionsResult& WithIds(const Aws::Vector<Aws::String>& value) { SetIds(value); return *this;}
45 inline ListSessionsResult& WithIds(Aws::Vector<Aws::String>&& value) { SetIds(std::move(value)); return *this;}
46 inline ListSessionsResult& AddIds(const Aws::String& value) { m_ids.push_back(value); return *this; }
47 inline ListSessionsResult& AddIds(Aws::String&& value) { m_ids.push_back(std::move(value)); return *this; }
48 inline ListSessionsResult& AddIds(const char* value) { m_ids.push_back(value); return *this; }
50
52
55 inline const Aws::Vector<Session>& GetSessions() const{ return m_sessions; }
56 inline void SetSessions(const Aws::Vector<Session>& value) { m_sessions = value; }
57 inline void SetSessions(Aws::Vector<Session>&& value) { m_sessions = std::move(value); }
58 inline ListSessionsResult& WithSessions(const Aws::Vector<Session>& value) { SetSessions(value); return *this;}
59 inline ListSessionsResult& WithSessions(Aws::Vector<Session>&& value) { SetSessions(std::move(value)); return *this;}
60 inline ListSessionsResult& AddSessions(const Session& value) { m_sessions.push_back(value); return *this; }
61 inline ListSessionsResult& AddSessions(Session&& value) { m_sessions.push_back(std::move(value)); return *this; }
63
65
69 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
70 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
71 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
72 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
73 inline ListSessionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
74 inline ListSessionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
75 inline ListSessionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
77
79
80 inline const Aws::String& GetRequestId() const{ return m_requestId; }
81 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
82 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
83 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
84 inline ListSessionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
85 inline ListSessionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
86 inline ListSessionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
88 private:
89
91
92 Aws::Vector<Session> m_sessions;
93
94 Aws::String m_nextToken;
95
96 Aws::String m_requestId;
97 };
98
99} // namespace Model
100} // namespace Glue
101} // namespace Aws
ListSessionsResult & WithNextToken(const Aws::String &value)
ListSessionsResult & WithRequestId(const char *value)
void SetIds(Aws::Vector< Aws::String > &&value)
void SetNextToken(Aws::String &&value)
const Aws::String & GetRequestId() const
const Aws::Vector< Session > & GetSessions() const
void SetRequestId(Aws::String &&value)
void SetRequestId(const Aws::String &value)
AWS_GLUE_API ListSessionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListSessionsResult & AddIds(const Aws::String &value)
void SetSessions(const Aws::Vector< Session > &value)
ListSessionsResult & AddIds(const char *value)
ListSessionsResult & WithSessions(const Aws::Vector< Session > &value)
void SetSessions(Aws::Vector< Session > &&value)
ListSessionsResult & WithRequestId(const Aws::String &value)
ListSessionsResult & WithNextToken(const char *value)
ListSessionsResult & AddSessions(const Session &value)
ListSessionsResult & WithRequestId(Aws::String &&value)
void SetNextToken(const Aws::String &value)
const Aws::Vector< Aws::String > & GetIds() const
ListSessionsResult & WithSessions(Aws::Vector< Session > &&value)
void SetIds(const Aws::Vector< Aws::String > &value)
ListSessionsResult & WithIds(const Aws::Vector< Aws::String > &value)
AWS_GLUE_API ListSessionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetNextToken() const
ListSessionsResult & WithNextToken(Aws::String &&value)
ListSessionsResult & AddIds(Aws::String &&value)
ListSessionsResult & AddSessions(Session &&value)
ListSessionsResult & WithIds(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue