/** * 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 DeviceFarm { namespace Model { class ListTestGridSessionsResult { public: AWS_DEVICEFARM_API ListTestGridSessionsResult(); AWS_DEVICEFARM_API ListTestGridSessionsResult(const Aws::AmazonWebServiceResult& result); AWS_DEVICEFARM_API ListTestGridSessionsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The sessions that match the criteria in a ListTestGridSessionsRequest. *

*/ inline const Aws::Vector& GetTestGridSessions() const{ return m_testGridSessions; } /** *

The sessions that match the criteria in a ListTestGridSessionsRequest. *

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

The sessions that match the criteria in a ListTestGridSessionsRequest. *

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

The sessions that match the criteria in a ListTestGridSessionsRequest. *

*/ inline ListTestGridSessionsResult& WithTestGridSessions(const Aws::Vector& value) { SetTestGridSessions(value); return *this;} /** *

The sessions that match the criteria in a ListTestGridSessionsRequest. *

*/ inline ListTestGridSessionsResult& WithTestGridSessions(Aws::Vector&& value) { SetTestGridSessions(std::move(value)); return *this;} /** *

The sessions that match the criteria in a ListTestGridSessionsRequest. *

*/ inline ListTestGridSessionsResult& AddTestGridSessions(const TestGridSession& value) { m_testGridSessions.push_back(value); return *this; } /** *

The sessions that match the criteria in a ListTestGridSessionsRequest. *

*/ inline ListTestGridSessionsResult& AddTestGridSessions(TestGridSession&& value) { m_testGridSessions.push_back(std::move(value)); return *this; } /** *

Pagination token.

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

Pagination token.

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

Pagination token.

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

Pagination token.

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

Pagination token.

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

Pagination token.

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

Pagination token.

*/ inline ListTestGridSessionsResult& 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 ListTestGridSessionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListTestGridSessionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListTestGridSessionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_testGridSessions; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws