/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Glue { namespace Model { class ListSessionsResult { public: AWS_GLUE_API ListSessionsResult(); AWS_GLUE_API ListSessionsResult(const Aws::AmazonWebServiceResult& result); AWS_GLUE_API ListSessionsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Returns the ID of the session.

*/ inline const Aws::Vector& GetIds() const{ return m_ids; } /** *

Returns the ID of the session.

*/ inline void SetIds(const Aws::Vector& value) { m_ids = value; } /** *

Returns the ID of the session.

*/ inline void SetIds(Aws::Vector&& value) { m_ids = std::move(value); } /** *

Returns the ID of the session.

*/ inline ListSessionsResult& WithIds(const Aws::Vector& value) { SetIds(value); return *this;} /** *

Returns the ID of the session.

*/ inline ListSessionsResult& WithIds(Aws::Vector&& value) { SetIds(std::move(value)); return *this;} /** *

Returns the ID of the session.

*/ inline ListSessionsResult& AddIds(const Aws::String& value) { m_ids.push_back(value); return *this; } /** *

Returns the ID of the session.

*/ inline ListSessionsResult& AddIds(Aws::String&& value) { m_ids.push_back(std::move(value)); return *this; } /** *

Returns the ID of the session.

*/ inline ListSessionsResult& AddIds(const char* value) { m_ids.push_back(value); return *this; } /** *

Returns the session object.

*/ inline const Aws::Vector& GetSessions() const{ return m_sessions; } /** *

Returns the session object.

*/ inline void SetSessions(const Aws::Vector& value) { m_sessions = value; } /** *

Returns the session object.

*/ inline void SetSessions(Aws::Vector&& value) { m_sessions = std::move(value); } /** *

Returns the session object.

*/ inline ListSessionsResult& WithSessions(const Aws::Vector& value) { SetSessions(value); return *this;} /** *

Returns the session object.

*/ inline ListSessionsResult& WithSessions(Aws::Vector&& value) { SetSessions(std::move(value)); return *this;} /** *

Returns the session object.

*/ inline ListSessionsResult& AddSessions(const Session& value) { m_sessions.push_back(value); return *this; } /** *

Returns the session object.

*/ inline ListSessionsResult& AddSessions(Session&& value) { m_sessions.push_back(std::move(value)); return *this; } /** *

The token for the next set of results, or null if there are no more result. *

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token for the next set of results, or null if there are no more result. *

*/ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** *

The token for the next set of results, or null if there are no more result. *

*/ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** *

The token for the next set of results, or null if there are no more result. *

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

The token for the next set of results, or null if there are no more result. *

*/ inline ListSessionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token for the next set of results, or null if there are no more result. *

*/ inline ListSessionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token for the next set of results, or null if there are no more result. *

*/ inline ListSessionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline ListSessionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListSessionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListSessionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_ids; Aws::Vector m_sessions; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace Glue } // namespace Aws