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

The output from the ListThings operation.

See Also:

AWS * API Reference

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

The things.

*/ inline const Aws::Vector& GetThings() const{ return m_things; } /** *

The things.

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

The things.

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

The things.

*/ inline ListThingsResult& WithThings(const Aws::Vector& value) { SetThings(value); return *this;} /** *

The things.

*/ inline ListThingsResult& WithThings(Aws::Vector&& value) { SetThings(std::move(value)); return *this;} /** *

The things.

*/ inline ListThingsResult& AddThings(const ThingAttribute& value) { m_things.push_back(value); return *this; } /** *

The things.

*/ inline ListThingsResult& AddThings(ThingAttribute&& value) { m_things.push_back(std::move(value)); return *this; } /** *

The token to use to get the next set of results. Will not be returned if * operation has returned all results.

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

The token to use to get the next set of results. Will not be returned if * operation has returned all results.

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

The token to use to get the next set of results. Will not be returned if * operation has returned all results.

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

The token to use to get the next set of results. Will not be returned if * operation has returned all results.

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

The token to use to get the next set of results. Will not be returned if * operation has returned all results.

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

The token to use to get the next set of results. Will not be returned if * operation has returned all results.

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

The token to use to get the next set of results. Will not be returned if * operation has returned all results.

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