/** * 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 { /** *

Represents the result of a list tests request.

See Also:

AWS * API Reference

*/ class ListTestsResult { public: AWS_DEVICEFARM_API ListTestsResult(); AWS_DEVICEFARM_API ListTestsResult(const Aws::AmazonWebServiceResult& result); AWS_DEVICEFARM_API ListTestsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Information about the tests.

*/ inline const Aws::Vector& GetTests() const{ return m_tests; } /** *

Information about the tests.

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

Information about the tests.

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

Information about the tests.

*/ inline ListTestsResult& WithTests(const Aws::Vector& value) { SetTests(value); return *this;} /** *

Information about the tests.

*/ inline ListTestsResult& WithTests(Aws::Vector&& value) { SetTests(std::move(value)); return *this;} /** *

Information about the tests.

*/ inline ListTestsResult& AddTests(const Test& value) { m_tests.push_back(value); return *this; } /** *

Information about the tests.

*/ inline ListTestsResult& AddTests(Test&& value) { m_tests.push_back(std::move(value)); return *this; } /** *

If the number of items that are returned is significantly large, this is an * identifier that is also returned. It can be used in a subsequent call to this * operation to return the next set of items in the list.

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

If the number of items that are returned is significantly large, this is an * identifier that is also returned. It can be used in a subsequent call to this * operation to return the next set of items in the list.

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

If the number of items that are returned is significantly large, this is an * identifier that is also returned. It can be used in a subsequent call to this * operation to return the next set of items in the list.

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

If the number of items that are returned is significantly large, this is an * identifier that is also returned. It can be used in a subsequent call to this * operation to return the next set of items in the list.

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

If the number of items that are returned is significantly large, this is an * identifier that is also returned. It can be used in a subsequent call to this * operation to return the next set of items in the list.

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

If the number of items that are returned is significantly large, this is an * identifier that is also returned. It can be used in a subsequent call to this * operation to return the next set of items in the list.

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

If the number of items that are returned is significantly large, this is an * identifier that is also returned. It can be used in a subsequent call to this * operation to return the next set of items in the list.

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