/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace LexModelsV2 { namespace Model { class CreateBotVersionResult { public: AWS_LEXMODELSV2_API CreateBotVersionResult(); AWS_LEXMODELSV2_API CreateBotVersionResult(const Aws::AmazonWebServiceResult& result); AWS_LEXMODELSV2_API CreateBotVersionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The bot identifier specified in the request.

*/ inline const Aws::String& GetBotId() const{ return m_botId; } /** *

The bot identifier specified in the request.

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

The bot identifier specified in the request.

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

The bot identifier specified in the request.

*/ inline void SetBotId(const char* value) { m_botId.assign(value); } /** *

The bot identifier specified in the request.

*/ inline CreateBotVersionResult& WithBotId(const Aws::String& value) { SetBotId(value); return *this;} /** *

The bot identifier specified in the request.

*/ inline CreateBotVersionResult& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;} /** *

The bot identifier specified in the request.

*/ inline CreateBotVersionResult& WithBotId(const char* value) { SetBotId(value); return *this;} /** *

The description of the version specified in the request.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the version specified in the request.

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

The description of the version specified in the request.

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

The description of the version specified in the request.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

The description of the version specified in the request.

*/ inline CreateBotVersionResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the version specified in the request.

*/ inline CreateBotVersionResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the version specified in the request.

*/ inline CreateBotVersionResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The version number assigned to the version.

*/ inline const Aws::String& GetBotVersion() const{ return m_botVersion; } /** *

The version number assigned to the version.

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

The version number assigned to the version.

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

The version number assigned to the version.

*/ inline void SetBotVersion(const char* value) { m_botVersion.assign(value); } /** *

The version number assigned to the version.

*/ inline CreateBotVersionResult& WithBotVersion(const Aws::String& value) { SetBotVersion(value); return *this;} /** *

The version number assigned to the version.

*/ inline CreateBotVersionResult& WithBotVersion(Aws::String&& value) { SetBotVersion(std::move(value)); return *this;} /** *

The version number assigned to the version.

*/ inline CreateBotVersionResult& WithBotVersion(const char* value) { SetBotVersion(value); return *this;} /** *

The source versions used for each locale in the new version.

*/ inline const Aws::Map& GetBotVersionLocaleSpecification() const{ return m_botVersionLocaleSpecification; } /** *

The source versions used for each locale in the new version.

*/ inline void SetBotVersionLocaleSpecification(const Aws::Map& value) { m_botVersionLocaleSpecification = value; } /** *

The source versions used for each locale in the new version.

*/ inline void SetBotVersionLocaleSpecification(Aws::Map&& value) { m_botVersionLocaleSpecification = std::move(value); } /** *

The source versions used for each locale in the new version.

*/ inline CreateBotVersionResult& WithBotVersionLocaleSpecification(const Aws::Map& value) { SetBotVersionLocaleSpecification(value); return *this;} /** *

The source versions used for each locale in the new version.

*/ inline CreateBotVersionResult& WithBotVersionLocaleSpecification(Aws::Map&& value) { SetBotVersionLocaleSpecification(std::move(value)); return *this;} /** *

The source versions used for each locale in the new version.

*/ inline CreateBotVersionResult& AddBotVersionLocaleSpecification(const Aws::String& key, const BotVersionLocaleDetails& value) { m_botVersionLocaleSpecification.emplace(key, value); return *this; } /** *

The source versions used for each locale in the new version.

*/ inline CreateBotVersionResult& AddBotVersionLocaleSpecification(Aws::String&& key, const BotVersionLocaleDetails& value) { m_botVersionLocaleSpecification.emplace(std::move(key), value); return *this; } /** *

The source versions used for each locale in the new version.

*/ inline CreateBotVersionResult& AddBotVersionLocaleSpecification(const Aws::String& key, BotVersionLocaleDetails&& value) { m_botVersionLocaleSpecification.emplace(key, std::move(value)); return *this; } /** *

The source versions used for each locale in the new version.

*/ inline CreateBotVersionResult& AddBotVersionLocaleSpecification(Aws::String&& key, BotVersionLocaleDetails&& value) { m_botVersionLocaleSpecification.emplace(std::move(key), std::move(value)); return *this; } /** *

The source versions used for each locale in the new version.

*/ inline CreateBotVersionResult& AddBotVersionLocaleSpecification(const char* key, BotVersionLocaleDetails&& value) { m_botVersionLocaleSpecification.emplace(key, std::move(value)); return *this; } /** *

The source versions used for each locale in the new version.

*/ inline CreateBotVersionResult& AddBotVersionLocaleSpecification(const char* key, const BotVersionLocaleDetails& value) { m_botVersionLocaleSpecification.emplace(key, value); return *this; } /** *

When you send a request to create or update a bot, Amazon Lex sets the status * response element to Creating. After Amazon Lex builds the bot, it * sets status to Available. If Amazon Lex can't build the bot, it * sets status to Failed.

*/ inline const BotStatus& GetBotStatus() const{ return m_botStatus; } /** *

When you send a request to create or update a bot, Amazon Lex sets the status * response element to Creating. After Amazon Lex builds the bot, it * sets status to Available. If Amazon Lex can't build the bot, it * sets status to Failed.

*/ inline void SetBotStatus(const BotStatus& value) { m_botStatus = value; } /** *

When you send a request to create or update a bot, Amazon Lex sets the status * response element to Creating. After Amazon Lex builds the bot, it * sets status to Available. If Amazon Lex can't build the bot, it * sets status to Failed.

*/ inline void SetBotStatus(BotStatus&& value) { m_botStatus = std::move(value); } /** *

When you send a request to create or update a bot, Amazon Lex sets the status * response element to Creating. After Amazon Lex builds the bot, it * sets status to Available. If Amazon Lex can't build the bot, it * sets status to Failed.

*/ inline CreateBotVersionResult& WithBotStatus(const BotStatus& value) { SetBotStatus(value); return *this;} /** *

When you send a request to create or update a bot, Amazon Lex sets the status * response element to Creating. After Amazon Lex builds the bot, it * sets status to Available. If Amazon Lex can't build the bot, it * sets status to Failed.

*/ inline CreateBotVersionResult& WithBotStatus(BotStatus&& value) { SetBotStatus(std::move(value)); return *this;} /** *

A timestamp of the date and time that the version was created.

*/ inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; } /** *

A timestamp of the date and time that the version was created.

*/ inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTime = value; } /** *

A timestamp of the date and time that the version was created.

*/ inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTime = std::move(value); } /** *

A timestamp of the date and time that the version was created.

*/ inline CreateBotVersionResult& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;} /** *

A timestamp of the date and time that the version was created.

*/ inline CreateBotVersionResult& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(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 CreateBotVersionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateBotVersionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateBotVersionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_botId; Aws::String m_description; Aws::String m_botVersion; Aws::Map m_botVersionLocaleSpecification; BotStatus m_botStatus; Aws::Utils::DateTime m_creationDateTime; Aws::String m_requestId; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws