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

The software package summary.

*/ inline const Aws::Vector& GetPackageSummaries() const{ return m_packageSummaries; } /** *

The software package summary.

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

The software package summary.

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

The software package summary.

*/ inline ListPackagesResult& WithPackageSummaries(const Aws::Vector& value) { SetPackageSummaries(value); return *this;} /** *

The software package summary.

*/ inline ListPackagesResult& WithPackageSummaries(Aws::Vector&& value) { SetPackageSummaries(std::move(value)); return *this;} /** *

The software package summary.

*/ inline ListPackagesResult& AddPackageSummaries(const PackageSummary& value) { m_packageSummaries.push_back(value); return *this; } /** *

The software package summary.

*/ inline ListPackagesResult& AddPackageSummaries(PackageSummary&& value) { m_packageSummaries.push_back(std::move(value)); return *this; } /** *

The token for the next set of results.

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

The token for the next set of results.

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

The token for the next set of results.

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

The token for the next set of results.

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

The token for the next set of results.

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

The token for the next set of results.

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

The token for the next set of results.

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