/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/iot/IoT_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSVector.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/iot/model/GroupNameAndArn.h> #include <utility> namespace Aws { template<typename RESULT_TYPE> class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace IoT { namespace Model { class ListThingGroupsResult { public: AWS_IOT_API ListThingGroupsResult(); AWS_IOT_API ListThingGroupsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); AWS_IOT_API ListThingGroupsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); /** * <p>The thing groups.</p> */ inline const Aws::Vector<GroupNameAndArn>& GetThingGroups() const{ return m_thingGroups; } /** * <p>The thing groups.</p> */ inline void SetThingGroups(const Aws::Vector<GroupNameAndArn>& value) { m_thingGroups = value; } /** * <p>The thing groups.</p> */ inline void SetThingGroups(Aws::Vector<GroupNameAndArn>&& value) { m_thingGroups = std::move(value); } /** * <p>The thing groups.</p> */ inline ListThingGroupsResult& WithThingGroups(const Aws::Vector<GroupNameAndArn>& value) { SetThingGroups(value); return *this;} /** * <p>The thing groups.</p> */ inline ListThingGroupsResult& WithThingGroups(Aws::Vector<GroupNameAndArn>&& value) { SetThingGroups(std::move(value)); return *this;} /** * <p>The thing groups.</p> */ inline ListThingGroupsResult& AddThingGroups(const GroupNameAndArn& value) { m_thingGroups.push_back(value); return *this; } /** * <p>The thing groups.</p> */ inline ListThingGroupsResult& AddThingGroups(GroupNameAndArn&& value) { m_thingGroups.push_back(std::move(value)); return *this; } /** * <p>The token to use to get the next set of results. Will not be returned if * operation has returned all results.</p> */ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** * <p>The token to use to get the next set of results. Will not be returned if * operation has returned all results.</p> */ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** * <p>The token to use to get the next set of results. Will not be returned if * operation has returned all results.</p> */ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** * <p>The token to use to get the next set of results. Will not be returned if * operation has returned all results.</p> */ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** * <p>The token to use to get the next set of results. Will not be returned if * operation has returned all results.</p> */ inline ListThingGroupsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** * <p>The token to use to get the next set of results. Will not be returned if * operation has returned all results.</p> */ inline ListThingGroupsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** * <p>The token to use to get the next set of results. Will not be returned if * operation has returned all results.</p> */ inline ListThingGroupsResult& 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 ListThingGroupsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListThingGroupsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListThingGroupsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector<GroupNameAndArn> m_thingGroups; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace IoT } // namespace Aws