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

An array of BotMetadata objects, one for each numbered version * of the bot plus one for the $LATEST version.

*/ inline const Aws::Vector& GetBots() const{ return m_bots; } /** *

An array of BotMetadata objects, one for each numbered version * of the bot plus one for the $LATEST version.

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

An array of BotMetadata objects, one for each numbered version * of the bot plus one for the $LATEST version.

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

An array of BotMetadata objects, one for each numbered version * of the bot plus one for the $LATEST version.

*/ inline GetBotVersionsResult& WithBots(const Aws::Vector& value) { SetBots(value); return *this;} /** *

An array of BotMetadata objects, one for each numbered version * of the bot plus one for the $LATEST version.

*/ inline GetBotVersionsResult& WithBots(Aws::Vector&& value) { SetBots(std::move(value)); return *this;} /** *

An array of BotMetadata objects, one for each numbered version * of the bot plus one for the $LATEST version.

*/ inline GetBotVersionsResult& AddBots(const BotMetadata& value) { m_bots.push_back(value); return *this; } /** *

An array of BotMetadata objects, one for each numbered version * of the bot plus one for the $LATEST version.

*/ inline GetBotVersionsResult& AddBots(BotMetadata&& value) { m_bots.push_back(std::move(value)); return *this; } /** *

A pagination token for fetching the next page of bot versions. If the * response to this call is truncated, Amazon Lex returns a pagination token in the * response. To fetch the next page of versions, specify the pagination token in * the next request.

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

A pagination token for fetching the next page of bot versions. If the * response to this call is truncated, Amazon Lex returns a pagination token in the * response. To fetch the next page of versions, specify the pagination token in * the next request.

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

A pagination token for fetching the next page of bot versions. If the * response to this call is truncated, Amazon Lex returns a pagination token in the * response. To fetch the next page of versions, specify the pagination token in * the next request.

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

A pagination token for fetching the next page of bot versions. If the * response to this call is truncated, Amazon Lex returns a pagination token in the * response. To fetch the next page of versions, specify the pagination token in * the next request.

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

A pagination token for fetching the next page of bot versions. If the * response to this call is truncated, Amazon Lex returns a pagination token in the * response. To fetch the next page of versions, specify the pagination token in * the next request.

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

A pagination token for fetching the next page of bot versions. If the * response to this call is truncated, Amazon Lex returns a pagination token in the * response. To fetch the next page of versions, specify the pagination token in * the next request.

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

A pagination token for fetching the next page of bot versions. If the * response to this call is truncated, Amazon Lex returns a pagination token in the * response. To fetch the next page of versions, specify the pagination token in * the next request.

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