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

An array of things in the result set.

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

An array of things in the result set.

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

An array of things in the result set.

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

An array of things in the result set.

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

An array of things in the result set.

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

An array of things in the result set.

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

An array of things in the result set.

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

The string to specify as nextToken when you request the next * page of results.

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

The string to specify as nextToken when you request the next * page of results.

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

The string to specify as nextToken when you request the next * page of results.

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

The string to specify as nextToken when you request the next * page of results.

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

The string to specify as nextToken when you request the next * page of results.

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

The string to specify as nextToken when you request the next * page of results.

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

The string to specify as nextToken when you request the next * page of results.

*/ inline SearchThingsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::Vector m_things; Aws::String m_nextToken; }; } // namespace Model } // namespace IoTThingsGraph } // namespace Aws