/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/devicefarm/DeviceFarm_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSVector.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/devicefarm/model/Job.h> #include <utility> namespace Aws { template<typename RESULT_TYPE> class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace DeviceFarm { namespace Model { /** * <p>Represents the result of a list jobs request.</p><p><h3>See Also:</h3> <a * href="http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListJobsResult">AWS * API Reference</a></p> */ class ListJobsResult { public: AWS_DEVICEFARM_API ListJobsResult(); AWS_DEVICEFARM_API ListJobsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); AWS_DEVICEFARM_API ListJobsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); /** * <p>Information about the jobs.</p> */ inline const Aws::Vector<Job>& GetJobs() const{ return m_jobs; } /** * <p>Information about the jobs.</p> */ inline void SetJobs(const Aws::Vector<Job>& value) { m_jobs = value; } /** * <p>Information about the jobs.</p> */ inline void SetJobs(Aws::Vector<Job>&& value) { m_jobs = std::move(value); } /** * <p>Information about the jobs.</p> */ inline ListJobsResult& WithJobs(const Aws::Vector<Job>& value) { SetJobs(value); return *this;} /** * <p>Information about the jobs.</p> */ inline ListJobsResult& WithJobs(Aws::Vector<Job>&& value) { SetJobs(std::move(value)); return *this;} /** * <p>Information about the jobs.</p> */ inline ListJobsResult& AddJobs(const Job& value) { m_jobs.push_back(value); return *this; } /** * <p>Information about the jobs.</p> */ inline ListJobsResult& AddJobs(Job&& value) { m_jobs.push_back(std::move(value)); return *this; } /** * <p>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.</p> */ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** * <p>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.</p> */ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** * <p>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.</p> */ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** * <p>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.</p> */ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** * <p>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.</p> */ inline ListJobsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** * <p>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.</p> */ inline ListJobsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** * <p>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.</p> */ inline ListJobsResult& 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 ListJobsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListJobsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListJobsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector<Job> m_jobs; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws