AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
DescribeSessionsResult.h
Go to the documentation of this file.
1
6#pragma once
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 AppStream
26{
27namespace Model
28{
30 {
31 public:
35
36
40 inline const Aws::Vector<Session>& GetSessions() const{ return m_sessions; }
41
45 inline void SetSessions(const Aws::Vector<Session>& value) { m_sessions = value; }
46
50 inline void SetSessions(Aws::Vector<Session>&& value) { m_sessions = std::move(value); }
51
55 inline DescribeSessionsResult& WithSessions(const Aws::Vector<Session>& value) { SetSessions(value); return *this;}
56
60 inline DescribeSessionsResult& WithSessions(Aws::Vector<Session>&& value) { SetSessions(std::move(value)); return *this;}
61
65 inline DescribeSessionsResult& AddSessions(const Session& value) { m_sessions.push_back(value); return *this; }
66
70 inline DescribeSessionsResult& AddSessions(Session&& value) { m_sessions.push_back(std::move(value)); return *this; }
71
72
77 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
78
83 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
84
89 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
90
95 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
96
101 inline DescribeSessionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
102
107 inline DescribeSessionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
108
113 inline DescribeSessionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
114
115 private:
116
117 Aws::Vector<Session> m_sessions;
118
119 Aws::String m_nextToken;
120 };
121
122} // namespace Model
123} // namespace AppStream
124} // namespace Aws
#define AWS_APPSTREAM_API
const Aws::Vector< Session > & GetSessions() const
DescribeSessionsResult & AddSessions(const Session &value)
DescribeSessionsResult & WithNextToken(const Aws::String &value)
DescribeSessionsResult & WithSessions(Aws::Vector< Session > &&value)
AWS_APPSTREAM_API DescribeSessionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetSessions(const Aws::Vector< Session > &value)
AWS_APPSTREAM_API DescribeSessionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeSessionsResult & AddSessions(Session &&value)
DescribeSessionsResult & WithSessions(const Aws::Vector< Session > &value)
DescribeSessionsResult & WithNextToken(Aws::String &&value)
DescribeSessionsResult & WithNextToken(const char *value)
void SetSessions(Aws::Vector< Session > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector