regenerate code

This commit is contained in:
wb-hx510875
2020-03-26 17:27:13 +08:00
committed by Axios
parent cba94f2119
commit f0c2600a26
6249 changed files with 188711 additions and 43443 deletions

View File

@@ -29,6 +29,8 @@ set(chatbot_public_header_model
include/alibabacloud/chatbot/model/AppendEntityMemberResult.h
include/alibabacloud/chatbot/model/ChatRequest.h
include/alibabacloud/chatbot/model/ChatResult.h
include/alibabacloud/chatbot/model/CreateBotRequest.h
include/alibabacloud/chatbot/model/CreateBotResult.h
include/alibabacloud/chatbot/model/CreateCategoryRequest.h
include/alibabacloud/chatbot/model/CreateCategoryResult.h
include/alibabacloud/chatbot/model/CreateCoreWordRequest.h
@@ -43,6 +45,8 @@ set(chatbot_public_header_model
include/alibabacloud/chatbot/model/CreateKnowledgeResult.h
include/alibabacloud/chatbot/model/CreatePerspectiveRequest.h
include/alibabacloud/chatbot/model/CreatePerspectiveResult.h
include/alibabacloud/chatbot/model/DeleteBotRequest.h
include/alibabacloud/chatbot/model/DeleteBotResult.h
include/alibabacloud/chatbot/model/DeleteCategoryRequest.h
include/alibabacloud/chatbot/model/DeleteCategoryResult.h
include/alibabacloud/chatbot/model/DeleteCoreWordRequest.h
@@ -55,6 +59,8 @@ set(chatbot_public_header_model
include/alibabacloud/chatbot/model/DeleteIntentResult.h
include/alibabacloud/chatbot/model/DeleteKnowledgeRequest.h
include/alibabacloud/chatbot/model/DeleteKnowledgeResult.h
include/alibabacloud/chatbot/model/DescribeBotRequest.h
include/alibabacloud/chatbot/model/DescribeBotResult.h
include/alibabacloud/chatbot/model/DescribeCategoryRequest.h
include/alibabacloud/chatbot/model/DescribeCategoryResult.h
include/alibabacloud/chatbot/model/DescribeCoreWordRequest.h
@@ -77,12 +83,16 @@ set(chatbot_public_header_model
include/alibabacloud/chatbot/model/DisableKnowledgeResult.h
include/alibabacloud/chatbot/model/FeedbackRequest.h
include/alibabacloud/chatbot/model/FeedbackResult.h
include/alibabacloud/chatbot/model/LinkBotCategoryRequest.h
include/alibabacloud/chatbot/model/LinkBotCategoryResult.h
include/alibabacloud/chatbot/model/MoveKnowledgeCategoryRequest.h
include/alibabacloud/chatbot/model/MoveKnowledgeCategoryResult.h
include/alibabacloud/chatbot/model/PublishDialogFlowRequest.h
include/alibabacloud/chatbot/model/PublishDialogFlowResult.h
include/alibabacloud/chatbot/model/PublishKnowledgeRequest.h
include/alibabacloud/chatbot/model/PublishKnowledgeResult.h
include/alibabacloud/chatbot/model/QueryBotsRequest.h
include/alibabacloud/chatbot/model/QueryBotsResult.h
include/alibabacloud/chatbot/model/QueryCategoriesRequest.h
include/alibabacloud/chatbot/model/QueryCategoriesResult.h
include/alibabacloud/chatbot/model/QueryCoreWordsRequest.h
@@ -132,6 +142,8 @@ set(chatbot_src
src/model/AppendEntityMemberResult.cc
src/model/ChatRequest.cc
src/model/ChatResult.cc
src/model/CreateBotRequest.cc
src/model/CreateBotResult.cc
src/model/CreateCategoryRequest.cc
src/model/CreateCategoryResult.cc
src/model/CreateCoreWordRequest.cc
@@ -146,6 +158,8 @@ set(chatbot_src
src/model/CreateKnowledgeResult.cc
src/model/CreatePerspectiveRequest.cc
src/model/CreatePerspectiveResult.cc
src/model/DeleteBotRequest.cc
src/model/DeleteBotResult.cc
src/model/DeleteCategoryRequest.cc
src/model/DeleteCategoryResult.cc
src/model/DeleteCoreWordRequest.cc
@@ -158,6 +172,8 @@ set(chatbot_src
src/model/DeleteIntentResult.cc
src/model/DeleteKnowledgeRequest.cc
src/model/DeleteKnowledgeResult.cc
src/model/DescribeBotRequest.cc
src/model/DescribeBotResult.cc
src/model/DescribeCategoryRequest.cc
src/model/DescribeCategoryResult.cc
src/model/DescribeCoreWordRequest.cc
@@ -180,12 +196,16 @@ set(chatbot_src
src/model/DisableKnowledgeResult.cc
src/model/FeedbackRequest.cc
src/model/FeedbackResult.cc
src/model/LinkBotCategoryRequest.cc
src/model/LinkBotCategoryResult.cc
src/model/MoveKnowledgeCategoryRequest.cc
src/model/MoveKnowledgeCategoryResult.cc
src/model/PublishDialogFlowRequest.cc
src/model/PublishDialogFlowResult.cc
src/model/PublishKnowledgeRequest.cc
src/model/PublishKnowledgeResult.cc
src/model/QueryBotsRequest.cc
src/model/QueryBotsResult.cc
src/model/QueryCategoriesRequest.cc
src/model/QueryCategoriesResult.cc
src/model/QueryCoreWordsRequest.cc

View File

@@ -30,6 +30,8 @@
#include "model/AppendEntityMemberResult.h"
#include "model/ChatRequest.h"
#include "model/ChatResult.h"
#include "model/CreateBotRequest.h"
#include "model/CreateBotResult.h"
#include "model/CreateCategoryRequest.h"
#include "model/CreateCategoryResult.h"
#include "model/CreateCoreWordRequest.h"
@@ -44,6 +46,8 @@
#include "model/CreateKnowledgeResult.h"
#include "model/CreatePerspectiveRequest.h"
#include "model/CreatePerspectiveResult.h"
#include "model/DeleteBotRequest.h"
#include "model/DeleteBotResult.h"
#include "model/DeleteCategoryRequest.h"
#include "model/DeleteCategoryResult.h"
#include "model/DeleteCoreWordRequest.h"
@@ -56,6 +60,8 @@
#include "model/DeleteIntentResult.h"
#include "model/DeleteKnowledgeRequest.h"
#include "model/DeleteKnowledgeResult.h"
#include "model/DescribeBotRequest.h"
#include "model/DescribeBotResult.h"
#include "model/DescribeCategoryRequest.h"
#include "model/DescribeCategoryResult.h"
#include "model/DescribeCoreWordRequest.h"
@@ -78,12 +84,16 @@
#include "model/DisableKnowledgeResult.h"
#include "model/FeedbackRequest.h"
#include "model/FeedbackResult.h"
#include "model/LinkBotCategoryRequest.h"
#include "model/LinkBotCategoryResult.h"
#include "model/MoveKnowledgeCategoryRequest.h"
#include "model/MoveKnowledgeCategoryResult.h"
#include "model/PublishDialogFlowRequest.h"
#include "model/PublishDialogFlowResult.h"
#include "model/PublishKnowledgeRequest.h"
#include "model/PublishKnowledgeResult.h"
#include "model/QueryBotsRequest.h"
#include "model/QueryBotsResult.h"
#include "model/QueryCategoriesRequest.h"
#include "model/QueryCategoriesResult.h"
#include "model/QueryCoreWordsRequest.h"
@@ -143,6 +153,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ChatResult> ChatOutcome;
typedef std::future<ChatOutcome> ChatOutcomeCallable;
typedef std::function<void(const ChatbotClient*, const Model::ChatRequest&, const ChatOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChatAsyncHandler;
typedef Outcome<Error, Model::CreateBotResult> CreateBotOutcome;
typedef std::future<CreateBotOutcome> CreateBotOutcomeCallable;
typedef std::function<void(const ChatbotClient*, const Model::CreateBotRequest&, const CreateBotOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateBotAsyncHandler;
typedef Outcome<Error, Model::CreateCategoryResult> CreateCategoryOutcome;
typedef std::future<CreateCategoryOutcome> CreateCategoryOutcomeCallable;
typedef std::function<void(const ChatbotClient*, const Model::CreateCategoryRequest&, const CreateCategoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCategoryAsyncHandler;
@@ -164,6 +177,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreatePerspectiveResult> CreatePerspectiveOutcome;
typedef std::future<CreatePerspectiveOutcome> CreatePerspectiveOutcomeCallable;
typedef std::function<void(const ChatbotClient*, const Model::CreatePerspectiveRequest&, const CreatePerspectiveOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreatePerspectiveAsyncHandler;
typedef Outcome<Error, Model::DeleteBotResult> DeleteBotOutcome;
typedef std::future<DeleteBotOutcome> DeleteBotOutcomeCallable;
typedef std::function<void(const ChatbotClient*, const Model::DeleteBotRequest&, const DeleteBotOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteBotAsyncHandler;
typedef Outcome<Error, Model::DeleteCategoryResult> DeleteCategoryOutcome;
typedef std::future<DeleteCategoryOutcome> DeleteCategoryOutcomeCallable;
typedef std::function<void(const ChatbotClient*, const Model::DeleteCategoryRequest&, const DeleteCategoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteCategoryAsyncHandler;
@@ -182,6 +198,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteKnowledgeResult> DeleteKnowledgeOutcome;
typedef std::future<DeleteKnowledgeOutcome> DeleteKnowledgeOutcomeCallable;
typedef std::function<void(const ChatbotClient*, const Model::DeleteKnowledgeRequest&, const DeleteKnowledgeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteKnowledgeAsyncHandler;
typedef Outcome<Error, Model::DescribeBotResult> DescribeBotOutcome;
typedef std::future<DescribeBotOutcome> DescribeBotOutcomeCallable;
typedef std::function<void(const ChatbotClient*, const Model::DescribeBotRequest&, const DescribeBotOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBotAsyncHandler;
typedef Outcome<Error, Model::DescribeCategoryResult> DescribeCategoryOutcome;
typedef std::future<DescribeCategoryOutcome> DescribeCategoryOutcomeCallable;
typedef std::function<void(const ChatbotClient*, const Model::DescribeCategoryRequest&, const DescribeCategoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCategoryAsyncHandler;
@@ -215,6 +234,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::FeedbackResult> FeedbackOutcome;
typedef std::future<FeedbackOutcome> FeedbackOutcomeCallable;
typedef std::function<void(const ChatbotClient*, const Model::FeedbackRequest&, const FeedbackOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FeedbackAsyncHandler;
typedef Outcome<Error, Model::LinkBotCategoryResult> LinkBotCategoryOutcome;
typedef std::future<LinkBotCategoryOutcome> LinkBotCategoryOutcomeCallable;
typedef std::function<void(const ChatbotClient*, const Model::LinkBotCategoryRequest&, const LinkBotCategoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LinkBotCategoryAsyncHandler;
typedef Outcome<Error, Model::MoveKnowledgeCategoryResult> MoveKnowledgeCategoryOutcome;
typedef std::future<MoveKnowledgeCategoryOutcome> MoveKnowledgeCategoryOutcomeCallable;
typedef std::function<void(const ChatbotClient*, const Model::MoveKnowledgeCategoryRequest&, const MoveKnowledgeCategoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MoveKnowledgeCategoryAsyncHandler;
@@ -224,6 +246,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::PublishKnowledgeResult> PublishKnowledgeOutcome;
typedef std::future<PublishKnowledgeOutcome> PublishKnowledgeOutcomeCallable;
typedef std::function<void(const ChatbotClient*, const Model::PublishKnowledgeRequest&, const PublishKnowledgeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PublishKnowledgeAsyncHandler;
typedef Outcome<Error, Model::QueryBotsResult> QueryBotsOutcome;
typedef std::future<QueryBotsOutcome> QueryBotsOutcomeCallable;
typedef std::function<void(const ChatbotClient*, const Model::QueryBotsRequest&, const QueryBotsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryBotsAsyncHandler;
typedef Outcome<Error, Model::QueryCategoriesResult> QueryCategoriesOutcome;
typedef std::future<QueryCategoriesOutcome> QueryCategoriesOutcomeCallable;
typedef std::function<void(const ChatbotClient*, const Model::QueryCategoriesRequest&, const QueryCategoriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryCategoriesAsyncHandler;
@@ -298,6 +323,9 @@ namespace AlibabaCloud
ChatOutcome chat(const Model::ChatRequest &request)const;
void chatAsync(const Model::ChatRequest& request, const ChatAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ChatOutcomeCallable chatCallable(const Model::ChatRequest& request) const;
CreateBotOutcome createBot(const Model::CreateBotRequest &request)const;
void createBotAsync(const Model::CreateBotRequest& request, const CreateBotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateBotOutcomeCallable createBotCallable(const Model::CreateBotRequest& request) const;
CreateCategoryOutcome createCategory(const Model::CreateCategoryRequest &request)const;
void createCategoryAsync(const Model::CreateCategoryRequest& request, const CreateCategoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateCategoryOutcomeCallable createCategoryCallable(const Model::CreateCategoryRequest& request) const;
@@ -319,6 +347,9 @@ namespace AlibabaCloud
CreatePerspectiveOutcome createPerspective(const Model::CreatePerspectiveRequest &request)const;
void createPerspectiveAsync(const Model::CreatePerspectiveRequest& request, const CreatePerspectiveAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreatePerspectiveOutcomeCallable createPerspectiveCallable(const Model::CreatePerspectiveRequest& request) const;
DeleteBotOutcome deleteBot(const Model::DeleteBotRequest &request)const;
void deleteBotAsync(const Model::DeleteBotRequest& request, const DeleteBotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteBotOutcomeCallable deleteBotCallable(const Model::DeleteBotRequest& request) const;
DeleteCategoryOutcome deleteCategory(const Model::DeleteCategoryRequest &request)const;
void deleteCategoryAsync(const Model::DeleteCategoryRequest& request, const DeleteCategoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteCategoryOutcomeCallable deleteCategoryCallable(const Model::DeleteCategoryRequest& request) const;
@@ -337,6 +368,9 @@ namespace AlibabaCloud
DeleteKnowledgeOutcome deleteKnowledge(const Model::DeleteKnowledgeRequest &request)const;
void deleteKnowledgeAsync(const Model::DeleteKnowledgeRequest& request, const DeleteKnowledgeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteKnowledgeOutcomeCallable deleteKnowledgeCallable(const Model::DeleteKnowledgeRequest& request) const;
DescribeBotOutcome describeBot(const Model::DescribeBotRequest &request)const;
void describeBotAsync(const Model::DescribeBotRequest& request, const DescribeBotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeBotOutcomeCallable describeBotCallable(const Model::DescribeBotRequest& request) const;
DescribeCategoryOutcome describeCategory(const Model::DescribeCategoryRequest &request)const;
void describeCategoryAsync(const Model::DescribeCategoryRequest& request, const DescribeCategoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeCategoryOutcomeCallable describeCategoryCallable(const Model::DescribeCategoryRequest& request) const;
@@ -370,6 +404,9 @@ namespace AlibabaCloud
FeedbackOutcome feedback(const Model::FeedbackRequest &request)const;
void feedbackAsync(const Model::FeedbackRequest& request, const FeedbackAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
FeedbackOutcomeCallable feedbackCallable(const Model::FeedbackRequest& request) const;
LinkBotCategoryOutcome linkBotCategory(const Model::LinkBotCategoryRequest &request)const;
void linkBotCategoryAsync(const Model::LinkBotCategoryRequest& request, const LinkBotCategoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
LinkBotCategoryOutcomeCallable linkBotCategoryCallable(const Model::LinkBotCategoryRequest& request) const;
MoveKnowledgeCategoryOutcome moveKnowledgeCategory(const Model::MoveKnowledgeCategoryRequest &request)const;
void moveKnowledgeCategoryAsync(const Model::MoveKnowledgeCategoryRequest& request, const MoveKnowledgeCategoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
MoveKnowledgeCategoryOutcomeCallable moveKnowledgeCategoryCallable(const Model::MoveKnowledgeCategoryRequest& request) const;
@@ -379,6 +416,9 @@ namespace AlibabaCloud
PublishKnowledgeOutcome publishKnowledge(const Model::PublishKnowledgeRequest &request)const;
void publishKnowledgeAsync(const Model::PublishKnowledgeRequest& request, const PublishKnowledgeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PublishKnowledgeOutcomeCallable publishKnowledgeCallable(const Model::PublishKnowledgeRequest& request) const;
QueryBotsOutcome queryBots(const Model::QueryBotsRequest &request)const;
void queryBotsAsync(const Model::QueryBotsRequest& request, const QueryBotsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryBotsOutcomeCallable queryBotsCallable(const Model::QueryBotsRequest& request) const;
QueryCategoriesOutcome queryCategories(const Model::QueryCategoriesRequest &request)const;
void queryCategoriesAsync(const Model::QueryCategoriesRequest& request, const QueryCategoriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryCategoriesOutcomeCallable queryCategoriesCallable(const Model::QueryCategoriesRequest& request) const;

View File

@@ -37,9 +37,12 @@ namespace AlibabaCloud
std::string getPerspectiveId()const;
void setPerspectiveId(const std::string& perspectiveId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string perspectiveId_;
std::string accessKeyId_;
};
}

View File

@@ -41,12 +41,8 @@ namespace AlibabaCloud
void setSessionId(const std::string& sessionId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getKnowledgeId()const;
void setKnowledgeId(const std::string& knowledgeId);
std::string getSenderId()const;
void setSenderId(const std::string& senderId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getIntentName()const;
void setIntentName(const std::string& intentName);
std::string getSenderNick()const;
void setSenderNick(const std::string& senderNick);
std::vector<std::string> getPerspective()const;
@@ -55,18 +51,28 @@ namespace AlibabaCloud
void setTag(const std::string& tag);
std::string getUtterance()const;
void setUtterance(const std::string& utterance);
int getRecommendNum()const;
void setRecommendNum(int recommendNum);
std::string getKnowledgeId()const;
void setKnowledgeId(const std::string& knowledgeId);
std::string getSenderId()const;
void setSenderId(const std::string& senderId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
private:
bool recommend_;
std::string sessionId_;
std::string accessKeyId_;
std::string knowledgeId_;
std::string senderId_;
std::string instanceId_;
std::string intentName_;
std::string senderNick_;
std::vector<std::string> perspective_;
std::string tag_;
std::string utterance_;
int recommendNum_;
std::string knowledgeId_;
std::string senderId_;
std::string instanceId_;
};
}

View File

@@ -40,6 +40,7 @@ namespace AlibabaCloud
std::string content;
std::string answerSource;
std::string metaData;
std::string externalFlags;
};
struct Knowledge
{

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CHATBOT_MODEL_CREATEBOTREQUEST_H_
#define ALIBABACLOUD_CHATBOT_MODEL_CREATEBOTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/chatbot/ChatbotExport.h>
namespace AlibabaCloud
{
namespace Chatbot
{
namespace Model
{
class ALIBABACLOUD_CHATBOT_EXPORT CreateBotRequest : public RpcServiceRequest
{
public:
CreateBotRequest();
~CreateBotRequest();
std::string getRobotType()const;
void setRobotType(const std::string& robotType);
std::string getTimeZone()const;
void setTimeZone(const std::string& timeZone);
std::string getAvatar()const;
void setAvatar(const std::string& avatar);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getLanguageCode()const;
void setLanguageCode(const std::string& languageCode);
std::string getName()const;
void setName(const std::string& name);
std::string getIntroduction()const;
void setIntroduction(const std::string& introduction);
private:
std::string robotType_;
std::string timeZone_;
std::string avatar_;
std::string accessKeyId_;
std::string languageCode_;
std::string name_;
std::string introduction_;
};
}
}
}
#endif // !ALIBABACLOUD_CHATBOT_MODEL_CREATEBOTREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CHATBOT_MODEL_CREATEBOTRESULT_H_
#define ALIBABACLOUD_CHATBOT_MODEL_CREATEBOTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/chatbot/ChatbotExport.h>
namespace AlibabaCloud
{
namespace Chatbot
{
namespace Model
{
class ALIBABACLOUD_CHATBOT_EXPORT CreateBotResult : public ServiceResult
{
public:
CreateBotResult();
explicit CreateBotResult(const std::string &payload);
~CreateBotResult();
std::string getInstanceId()const;
protected:
void parse(const std::string &payload);
private:
std::string instanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_CHATBOT_MODEL_CREATEBOTRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CHATBOT_MODEL_DELETEBOTREQUEST_H_
#define ALIBABACLOUD_CHATBOT_MODEL_DELETEBOTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/chatbot/ChatbotExport.h>
namespace AlibabaCloud
{
namespace Chatbot
{
namespace Model
{
class ALIBABACLOUD_CHATBOT_EXPORT DeleteBotRequest : public RpcServiceRequest
{
public:
DeleteBotRequest();
~DeleteBotRequest();
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
private:
std::string accessKeyId_;
std::string instanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_CHATBOT_MODEL_DELETEBOTREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CHATBOT_MODEL_DELETEBOTRESULT_H_
#define ALIBABACLOUD_CHATBOT_MODEL_DELETEBOTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/chatbot/ChatbotExport.h>
namespace AlibabaCloud
{
namespace Chatbot
{
namespace Model
{
class ALIBABACLOUD_CHATBOT_EXPORT DeleteBotResult : public ServiceResult
{
public:
DeleteBotResult();
explicit DeleteBotResult(const std::string &payload);
~DeleteBotResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_CHATBOT_MODEL_DELETEBOTRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEBOTREQUEST_H_
#define ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEBOTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/chatbot/ChatbotExport.h>
namespace AlibabaCloud
{
namespace Chatbot
{
namespace Model
{
class ALIBABACLOUD_CHATBOT_EXPORT DescribeBotRequest : public RpcServiceRequest
{
public:
DescribeBotRequest();
~DescribeBotRequest();
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
private:
std::string accessKeyId_;
std::string instanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEBOTREQUEST_H_

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEBOTRESULT_H_
#define ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEBOTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/chatbot/ChatbotExport.h>
namespace AlibabaCloud
{
namespace Chatbot
{
namespace Model
{
class ALIBABACLOUD_CHATBOT_EXPORT DescribeBotResult : public ServiceResult
{
public:
struct Category
{
long categoryId;
long parentCategoryId;
std::string name;
};
DescribeBotResult();
explicit DescribeBotResult(const std::string &payload);
~DescribeBotResult();
std::string getLanguageCode()const;
std::string getTimeZone()const;
std::vector<Category> getCategories()const;
std::string getInstanceId()const;
std::string getIntroduction()const;
std::string getCreateTime()const;
std::string getAvatar()const;
std::string getName()const;
std::string getLogo()const;
protected:
void parse(const std::string &payload);
private:
std::string languageCode_;
std::string timeZone_;
std::vector<Category> categories_;
std::string instanceId_;
std::string introduction_;
std::string createTime_;
std::string avatar_;
std::string name_;
std::string logo_;
};
}
}
}
#endif // !ALIBABACLOUD_CHATBOT_MODEL_DESCRIBEBOTRESULT_H_

View File

@@ -37,9 +37,12 @@ namespace AlibabaCloud
std::string getPerspectiveId()const;
void setPerspectiveId(const std::string& perspectiveId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string perspectiveId_;
std::string accessKeyId_;
};
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CHATBOT_MODEL_LINKBOTCATEGORYREQUEST_H_
#define ALIBABACLOUD_CHATBOT_MODEL_LINKBOTCATEGORYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/chatbot/ChatbotExport.h>
namespace AlibabaCloud
{
namespace Chatbot
{
namespace Model
{
class ALIBABACLOUD_CHATBOT_EXPORT LinkBotCategoryRequest : public RpcServiceRequest
{
public:
LinkBotCategoryRequest();
~LinkBotCategoryRequest();
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getCategoryIds()const;
void setCategoryIds(const std::string& categoryIds);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
private:
std::string accessKeyId_;
std::string categoryIds_;
std::string instanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_CHATBOT_MODEL_LINKBOTCATEGORYREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CHATBOT_MODEL_LINKBOTCATEGORYRESULT_H_
#define ALIBABACLOUD_CHATBOT_MODEL_LINKBOTCATEGORYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/chatbot/ChatbotExport.h>
namespace AlibabaCloud
{
namespace Chatbot
{
namespace Model
{
class ALIBABACLOUD_CHATBOT_EXPORT LinkBotCategoryResult : public ServiceResult
{
public:
LinkBotCategoryResult();
explicit LinkBotCategoryResult(const std::string &payload);
~LinkBotCategoryResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_CHATBOT_MODEL_LINKBOTCATEGORYRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CHATBOT_MODEL_QUERYBOTSREQUEST_H_
#define ALIBABACLOUD_CHATBOT_MODEL_QUERYBOTSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/chatbot/ChatbotExport.h>
namespace AlibabaCloud
{
namespace Chatbot
{
namespace Model
{
class ALIBABACLOUD_CHATBOT_EXPORT QueryBotsRequest : public RpcServiceRequest
{
public:
QueryBotsRequest();
~QueryBotsRequest();
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
int getPageSize()const;
void setPageSize(int pageSize);
private:
int pageNumber_;
std::string accessKeyId_;
int pageSize_;
};
}
}
}
#endif // !ALIBABACLOUD_CHATBOT_MODEL_QUERYBOTSREQUEST_H_

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CHATBOT_MODEL_QUERYBOTSRESULT_H_
#define ALIBABACLOUD_CHATBOT_MODEL_QUERYBOTSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/chatbot/ChatbotExport.h>
namespace AlibabaCloud
{
namespace Chatbot
{
namespace Model
{
class ALIBABACLOUD_CHATBOT_EXPORT QueryBotsResult : public ServiceResult
{
public:
struct Bot
{
std::string languageCode;
std::string timeZone;
std::string introduction;
std::string instanceId;
std::string createTime;
std::string avatar;
std::string name;
};
QueryBotsResult();
explicit QueryBotsResult(const std::string &payload);
~QueryBotsResult();
int getTotalCount()const;
std::vector<Bot> getBots()const;
int getPageSize()const;
int getPageNumber()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
std::vector<Bot> bots_;
int pageSize_;
int pageNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_CHATBOT_MODEL_QUERYBOTSRESULT_H_

View File

@@ -35,8 +35,11 @@ namespace AlibabaCloud
QueryPerspectivesRequest();
~QueryPerspectivesRequest();
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string accessKeyId_;
};
}

View File

@@ -37,11 +37,14 @@ namespace AlibabaCloud
std::string getPerspectiveId()const;
void setPerspectiveId(const std::string& perspectiveId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getName()const;
void setName(const std::string& name);
private:
std::string perspectiveId_;
std::string accessKeyId_;
std::string name_;
};

View File

@@ -195,6 +195,42 @@ ChatbotClient::ChatOutcomeCallable ChatbotClient::chatCallable(const ChatRequest
return task->get_future();
}
ChatbotClient::CreateBotOutcome ChatbotClient::createBot(const CreateBotRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateBotOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateBotOutcome(CreateBotResult(outcome.result()));
else
return CreateBotOutcome(outcome.error());
}
void ChatbotClient::createBotAsync(const CreateBotRequest& request, const CreateBotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createBot(request), context);
};
asyncExecute(new Runnable(fn));
}
ChatbotClient::CreateBotOutcomeCallable ChatbotClient::createBotCallable(const CreateBotRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateBotOutcome()>>(
[this, request]()
{
return this->createBot(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ChatbotClient::CreateCategoryOutcome ChatbotClient::createCategory(const CreateCategoryRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -447,6 +483,42 @@ ChatbotClient::CreatePerspectiveOutcomeCallable ChatbotClient::createPerspective
return task->get_future();
}
ChatbotClient::DeleteBotOutcome ChatbotClient::deleteBot(const DeleteBotRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteBotOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteBotOutcome(DeleteBotResult(outcome.result()));
else
return DeleteBotOutcome(outcome.error());
}
void ChatbotClient::deleteBotAsync(const DeleteBotRequest& request, const DeleteBotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteBot(request), context);
};
asyncExecute(new Runnable(fn));
}
ChatbotClient::DeleteBotOutcomeCallable ChatbotClient::deleteBotCallable(const DeleteBotRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteBotOutcome()>>(
[this, request]()
{
return this->deleteBot(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ChatbotClient::DeleteCategoryOutcome ChatbotClient::deleteCategory(const DeleteCategoryRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -663,6 +735,42 @@ ChatbotClient::DeleteKnowledgeOutcomeCallable ChatbotClient::deleteKnowledgeCall
return task->get_future();
}
ChatbotClient::DescribeBotOutcome ChatbotClient::describeBot(const DescribeBotRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeBotOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeBotOutcome(DescribeBotResult(outcome.result()));
else
return DescribeBotOutcome(outcome.error());
}
void ChatbotClient::describeBotAsync(const DescribeBotRequest& request, const DescribeBotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeBot(request), context);
};
asyncExecute(new Runnable(fn));
}
ChatbotClient::DescribeBotOutcomeCallable ChatbotClient::describeBotCallable(const DescribeBotRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeBotOutcome()>>(
[this, request]()
{
return this->describeBot(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ChatbotClient::DescribeCategoryOutcome ChatbotClient::describeCategory(const DescribeCategoryRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1059,6 +1167,42 @@ ChatbotClient::FeedbackOutcomeCallable ChatbotClient::feedbackCallable(const Fee
return task->get_future();
}
ChatbotClient::LinkBotCategoryOutcome ChatbotClient::linkBotCategory(const LinkBotCategoryRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return LinkBotCategoryOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return LinkBotCategoryOutcome(LinkBotCategoryResult(outcome.result()));
else
return LinkBotCategoryOutcome(outcome.error());
}
void ChatbotClient::linkBotCategoryAsync(const LinkBotCategoryRequest& request, const LinkBotCategoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, linkBotCategory(request), context);
};
asyncExecute(new Runnable(fn));
}
ChatbotClient::LinkBotCategoryOutcomeCallable ChatbotClient::linkBotCategoryCallable(const LinkBotCategoryRequest &request) const
{
auto task = std::make_shared<std::packaged_task<LinkBotCategoryOutcome()>>(
[this, request]()
{
return this->linkBotCategory(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ChatbotClient::MoveKnowledgeCategoryOutcome ChatbotClient::moveKnowledgeCategory(const MoveKnowledgeCategoryRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1167,6 +1311,42 @@ ChatbotClient::PublishKnowledgeOutcomeCallable ChatbotClient::publishKnowledgeCa
return task->get_future();
}
ChatbotClient::QueryBotsOutcome ChatbotClient::queryBots(const QueryBotsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryBotsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryBotsOutcome(QueryBotsResult(outcome.result()));
else
return QueryBotsOutcome(outcome.error());
}
void ChatbotClient::queryBotsAsync(const QueryBotsRequest& request, const QueryBotsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryBots(request), context);
};
asyncExecute(new Runnable(fn));
}
ChatbotClient::QueryBotsOutcomeCallable ChatbotClient::queryBotsCallable(const QueryBotsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryBotsOutcome()>>(
[this, request]()
{
return this->queryBots(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ChatbotClient::QueryCategoriesOutcome ChatbotClient::queryCategories(const QueryCategoriesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -35,6 +35,17 @@ std::string ActivatePerspectiveRequest::getPerspectiveId()const
void ActivatePerspectiveRequest::setPerspectiveId(const std::string& perspectiveId)
{
perspectiveId_ = perspectiveId;
setCoreParameter("PerspectiveId", perspectiveId);
setParameter("PerspectiveId", perspectiveId);
}
std::string ActivatePerspectiveRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ActivatePerspectiveRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -35,7 +35,7 @@ std::string AddSynonymRequest::getSynonym()const
void AddSynonymRequest::setSynonym(const std::string& synonym)
{
synonym_ = synonym;
setCoreParameter("Synonym", synonym);
setParameter("Synonym", synonym);
}
std::string AddSynonymRequest::getCoreWordName()const
@@ -46,6 +46,6 @@ std::string AddSynonymRequest::getCoreWordName()const
void AddSynonymRequest::setCoreWordName(const std::string& coreWordName)
{
coreWordName_ = coreWordName;
setCoreParameter("CoreWordName", coreWordName);
setParameter("CoreWordName", coreWordName);
}

View File

@@ -35,7 +35,7 @@ long AppendEntityMemberRequest::getEntityId()const
void AppendEntityMemberRequest::setEntityId(long entityId)
{
entityId_ = entityId;
setCoreParameter("EntityId", std::to_string(entityId));
setParameter("EntityId", std::to_string(entityId));
}
std::string AppendEntityMemberRequest::getMember()const
@@ -46,7 +46,7 @@ std::string AppendEntityMemberRequest::getMember()const
void AppendEntityMemberRequest::setMember(const std::string& member)
{
member_ = member;
setCoreParameter("Member", member);
setBodyParameter("Member", member);
}
std::string AppendEntityMemberRequest::getApplyType()const
@@ -57,6 +57,6 @@ std::string AppendEntityMemberRequest::getApplyType()const
void AppendEntityMemberRequest::setApplyType(const std::string& applyType)
{
applyType_ = applyType;
setCoreParameter("ApplyType", applyType);
setParameter("ApplyType", applyType);
}

View File

@@ -35,7 +35,7 @@ bool ChatRequest::getRecommend()const
void ChatRequest::setRecommend(bool recommend)
{
recommend_ = recommend;
setCoreParameter("Recommend", recommend ? "true" : "false");
setParameter("Recommend", recommend ? "true" : "false");
}
std::string ChatRequest::getSessionId()const
@@ -46,7 +46,7 @@ std::string ChatRequest::getSessionId()const
void ChatRequest::setSessionId(const std::string& sessionId)
{
sessionId_ = sessionId;
setCoreParameter("SessionId", sessionId);
setParameter("SessionId", sessionId);
}
std::string ChatRequest::getAccessKeyId()const
@@ -57,40 +57,18 @@ std::string ChatRequest::getAccessKeyId()const
void ChatRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
setParameter("AccessKeyId", accessKeyId);
}
std::string ChatRequest::getKnowledgeId()const
std::string ChatRequest::getIntentName()const
{
return knowledgeId_;
return intentName_;
}
void ChatRequest::setKnowledgeId(const std::string& knowledgeId)
void ChatRequest::setIntentName(const std::string& intentName)
{
knowledgeId_ = knowledgeId;
setCoreParameter("KnowledgeId", knowledgeId);
}
std::string ChatRequest::getSenderId()const
{
return senderId_;
}
void ChatRequest::setSenderId(const std::string& senderId)
{
senderId_ = senderId;
setCoreParameter("SenderId", senderId);
}
std::string ChatRequest::getInstanceId()const
{
return instanceId_;
}
void ChatRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
intentName_ = intentName;
setParameter("IntentName", intentName);
}
std::string ChatRequest::getSenderNick()const
@@ -101,7 +79,7 @@ std::string ChatRequest::getSenderNick()const
void ChatRequest::setSenderNick(const std::string& senderNick)
{
senderNick_ = senderNick;
setCoreParameter("SenderNick", senderNick);
setParameter("SenderNick", senderNick);
}
std::vector<std::string> ChatRequest::getPerspective()const
@@ -113,7 +91,7 @@ void ChatRequest::setPerspective(const std::vector<std::string>& perspective)
{
perspective_ = perspective;
for(int dep1 = 0; dep1!= perspective.size(); dep1++) {
setCoreParameter("Perspective."+ std::to_string(dep1), perspective.at(dep1));
setParameter("Perspective."+ std::to_string(dep1), perspective.at(dep1));
}
}
@@ -125,7 +103,7 @@ std::string ChatRequest::getTag()const
void ChatRequest::setTag(const std::string& tag)
{
tag_ = tag;
setCoreParameter("Tag", tag);
setParameter("Tag", tag);
}
std::string ChatRequest::getUtterance()const
@@ -136,6 +114,50 @@ std::string ChatRequest::getUtterance()const
void ChatRequest::setUtterance(const std::string& utterance)
{
utterance_ = utterance;
setCoreParameter("Utterance", utterance);
setParameter("Utterance", utterance);
}
int ChatRequest::getRecommendNum()const
{
return recommendNum_;
}
void ChatRequest::setRecommendNum(int recommendNum)
{
recommendNum_ = recommendNum;
setParameter("RecommendNum", std::to_string(recommendNum));
}
std::string ChatRequest::getKnowledgeId()const
{
return knowledgeId_;
}
void ChatRequest::setKnowledgeId(const std::string& knowledgeId)
{
knowledgeId_ = knowledgeId;
setParameter("KnowledgeId", knowledgeId);
}
std::string ChatRequest::getSenderId()const
{
return senderId_;
}
void ChatRequest::setSenderId(const std::string& senderId)
{
senderId_ = senderId;
setParameter("SenderId", senderId);
}
std::string ChatRequest::getInstanceId()const
{
return instanceId_;
}
void ChatRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

@@ -70,6 +70,8 @@ void ChatResult::parse(const std::string &payload)
messagesObject.text.metaData = textNode["MetaData"].asString();
if(!textNode["IntentName"].isNull())
messagesObject.text.intentName = textNode["IntentName"].asString();
if(!textNode["ExternalFlags"].isNull())
messagesObject.text.externalFlags = textNode["ExternalFlags"].asString();
auto knowledgeNode = value["Knowledge"];
if(!knowledgeNode["Id"].isNull())
messagesObject.knowledge.id = knowledgeNode["Id"].asString();

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/chatbot/model/CreateBotRequest.h>
using AlibabaCloud::Chatbot::Model::CreateBotRequest;
CreateBotRequest::CreateBotRequest() :
RpcServiceRequest("chatbot", "2017-10-11", "CreateBot")
{
setMethod(HttpRequest::Method::Post);
}
CreateBotRequest::~CreateBotRequest()
{}
std::string CreateBotRequest::getRobotType()const
{
return robotType_;
}
void CreateBotRequest::setRobotType(const std::string& robotType)
{
robotType_ = robotType;
setParameter("RobotType", robotType);
}
std::string CreateBotRequest::getTimeZone()const
{
return timeZone_;
}
void CreateBotRequest::setTimeZone(const std::string& timeZone)
{
timeZone_ = timeZone;
setParameter("TimeZone", timeZone);
}
std::string CreateBotRequest::getAvatar()const
{
return avatar_;
}
void CreateBotRequest::setAvatar(const std::string& avatar)
{
avatar_ = avatar;
setParameter("Avatar", avatar);
}
std::string CreateBotRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateBotRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string CreateBotRequest::getLanguageCode()const
{
return languageCode_;
}
void CreateBotRequest::setLanguageCode(const std::string& languageCode)
{
languageCode_ = languageCode;
setParameter("LanguageCode", languageCode);
}
std::string CreateBotRequest::getName()const
{
return name_;
}
void CreateBotRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateBotRequest::getIntroduction()const
{
return introduction_;
}
void CreateBotRequest::setIntroduction(const std::string& introduction)
{
introduction_ = introduction;
setParameter("Introduction", introduction);
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/chatbot/model/CreateBotResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Chatbot;
using namespace AlibabaCloud::Chatbot::Model;
CreateBotResult::CreateBotResult() :
ServiceResult()
{}
CreateBotResult::CreateBotResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateBotResult::~CreateBotResult()
{}
void CreateBotResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["InstanceId"].isNull())
instanceId_ = value["InstanceId"].asString();
}
std::string CreateBotResult::getInstanceId()const
{
return instanceId_;
}

View File

@@ -35,7 +35,7 @@ long CreateCategoryRequest::getParentCategoryId()const
void CreateCategoryRequest::setParentCategoryId(long parentCategoryId)
{
parentCategoryId_ = parentCategoryId;
setCoreParameter("ParentCategoryId", std::to_string(parentCategoryId));
setParameter("ParentCategoryId", std::to_string(parentCategoryId));
}
std::string CreateCategoryRequest::getName()const
@@ -46,6 +46,6 @@ std::string CreateCategoryRequest::getName()const
void CreateCategoryRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
setParameter("Name", name);
}

View File

@@ -35,6 +35,6 @@ std::string CreateCoreWordRequest::getCoreWordName()const
void CreateCoreWordRequest::setCoreWordName(const std::string& coreWordName)
{
coreWordName_ = coreWordName;
setCoreParameter("CoreWordName", coreWordName);
setParameter("CoreWordName", coreWordName);
}

View File

@@ -35,7 +35,7 @@ std::string CreateDialogRequest::getDescription()const
void CreateDialogRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
setParameter("Description", description);
}
std::string CreateDialogRequest::getDialogName()const
@@ -46,7 +46,7 @@ std::string CreateDialogRequest::getDialogName()const
void CreateDialogRequest::setDialogName(const std::string& dialogName)
{
dialogName_ = dialogName;
setCoreParameter("DialogName", dialogName);
setParameter("DialogName", dialogName);
}
std::string CreateDialogRequest::getInstanceId()const
@@ -57,6 +57,6 @@ std::string CreateDialogRequest::getInstanceId()const
void CreateDialogRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
setParameter("InstanceId", instanceId);
}

View File

@@ -35,7 +35,7 @@ std::string CreateEntityRequest::getEntityName()const
void CreateEntityRequest::setEntityName(const std::string& entityName)
{
entityName_ = entityName;
setCoreParameter("EntityName", entityName);
setParameter("EntityName", entityName);
}
long CreateEntityRequest::getDialogId()const
@@ -46,7 +46,7 @@ long CreateEntityRequest::getDialogId()const
void CreateEntityRequest::setDialogId(long dialogId)
{
dialogId_ = dialogId;
setCoreParameter("DialogId", std::to_string(dialogId));
setParameter("DialogId", std::to_string(dialogId));
}
std::string CreateEntityRequest::getRegex()const
@@ -57,7 +57,7 @@ std::string CreateEntityRequest::getRegex()const
void CreateEntityRequest::setRegex(const std::string& regex)
{
regex_ = regex;
setCoreParameter("Regex", regex);
setParameter("Regex", regex);
}
std::string CreateEntityRequest::getEntityType()const
@@ -68,7 +68,7 @@ std::string CreateEntityRequest::getEntityType()const
void CreateEntityRequest::setEntityType(const std::string& entityType)
{
entityType_ = entityType;
setCoreParameter("EntityType", entityType);
setParameter("EntityType", entityType);
}
std::string CreateEntityRequest::getMembers()const
@@ -79,6 +79,6 @@ std::string CreateEntityRequest::getMembers()const
void CreateEntityRequest::setMembers(const std::string& members)
{
members_ = members;
setCoreParameter("Members", members);
setBodyParameter("Members", members);
}

View File

@@ -35,7 +35,7 @@ std::string CreateIntentRequest::getIntentDefinition()const
void CreateIntentRequest::setIntentDefinition(const std::string& intentDefinition)
{
intentDefinition_ = intentDefinition;
setCoreParameter("IntentDefinition", intentDefinition);
setBodyParameter("IntentDefinition", intentDefinition);
}
long CreateIntentRequest::getDialogId()const
@@ -46,6 +46,6 @@ long CreateIntentRequest::getDialogId()const
void CreateIntentRequest::setDialogId(long dialogId)
{
dialogId_ = dialogId;
setCoreParameter("DialogId", std::to_string(dialogId));
setParameter("DialogId", std::to_string(dialogId));
}

View File

@@ -35,6 +35,6 @@ std::string CreateKnowledgeRequest::getKnowledge()const
void CreateKnowledgeRequest::setKnowledge(const std::string& knowledge)
{
knowledge_ = knowledge;
setCoreParameter("Knowledge", knowledge);
setBodyParameter("Knowledge", knowledge);
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/chatbot/model/DeleteBotRequest.h>
using AlibabaCloud::Chatbot::Model::DeleteBotRequest;
DeleteBotRequest::DeleteBotRequest() :
RpcServiceRequest("chatbot", "2017-10-11", "DeleteBot")
{
setMethod(HttpRequest::Method::Post);
}
DeleteBotRequest::~DeleteBotRequest()
{}
std::string DeleteBotRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteBotRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DeleteBotRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteBotRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/chatbot/model/DeleteBotResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Chatbot;
using namespace AlibabaCloud::Chatbot::Model;
DeleteBotResult::DeleteBotResult() :
ServiceResult()
{}
DeleteBotResult::DeleteBotResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteBotResult::~DeleteBotResult()
{}
void DeleteBotResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -35,6 +35,6 @@ long DeleteCategoryRequest::getCategoryId()const
void DeleteCategoryRequest::setCategoryId(long categoryId)
{
categoryId_ = categoryId;
setCoreParameter("CategoryId", std::to_string(categoryId));
setParameter("CategoryId", std::to_string(categoryId));
}

View File

@@ -35,6 +35,6 @@ std::string DeleteCoreWordRequest::getCoreWordName()const
void DeleteCoreWordRequest::setCoreWordName(const std::string& coreWordName)
{
coreWordName_ = coreWordName;
setCoreParameter("CoreWordName", coreWordName);
setParameter("CoreWordName", coreWordName);
}

View File

@@ -35,6 +35,6 @@ long DeleteDialogRequest::getDialogId()const
void DeleteDialogRequest::setDialogId(long dialogId)
{
dialogId_ = dialogId;
setCoreParameter("DialogId", std::to_string(dialogId));
setParameter("DialogId", std::to_string(dialogId));
}

View File

@@ -35,6 +35,6 @@ long DeleteEntityRequest::getEntityId()const
void DeleteEntityRequest::setEntityId(long entityId)
{
entityId_ = entityId;
setCoreParameter("EntityId", std::to_string(entityId));
setParameter("EntityId", std::to_string(entityId));
}

View File

@@ -35,6 +35,6 @@ long DeleteIntentRequest::getIntentId()const
void DeleteIntentRequest::setIntentId(long intentId)
{
intentId_ = intentId;
setCoreParameter("IntentId", std::to_string(intentId));
setParameter("IntentId", std::to_string(intentId));
}

View File

@@ -35,6 +35,6 @@ long DeleteKnowledgeRequest::getKnowledgeId()const
void DeleteKnowledgeRequest::setKnowledgeId(long knowledgeId)
{
knowledgeId_ = knowledgeId;
setCoreParameter("KnowledgeId", std::to_string(knowledgeId));
setParameter("KnowledgeId", std::to_string(knowledgeId));
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/chatbot/model/DescribeBotRequest.h>
using AlibabaCloud::Chatbot::Model::DescribeBotRequest;
DescribeBotRequest::DescribeBotRequest() :
RpcServiceRequest("chatbot", "2017-10-11", "DescribeBot")
{
setMethod(HttpRequest::Method::Post);
}
DescribeBotRequest::~DescribeBotRequest()
{}
std::string DescribeBotRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeBotRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeBotRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeBotRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/chatbot/model/DescribeBotResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Chatbot;
using namespace AlibabaCloud::Chatbot::Model;
DescribeBotResult::DescribeBotResult() :
ServiceResult()
{}
DescribeBotResult::DescribeBotResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBotResult::~DescribeBotResult()
{}
void DescribeBotResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCategoriesNode = value["Categories"]["Category"];
for (auto valueCategoriesCategory : allCategoriesNode)
{
Category categoriesObject;
if(!valueCategoriesCategory["Name"].isNull())
categoriesObject.name = valueCategoriesCategory["Name"].asString();
if(!valueCategoriesCategory["CategoryId"].isNull())
categoriesObject.categoryId = std::stol(valueCategoriesCategory["CategoryId"].asString());
if(!valueCategoriesCategory["ParentCategoryId"].isNull())
categoriesObject.parentCategoryId = std::stol(valueCategoriesCategory["ParentCategoryId"].asString());
categories_.push_back(categoriesObject);
}
if(!value["TimeZone"].isNull())
timeZone_ = value["TimeZone"].asString();
if(!value["Avatar"].isNull())
avatar_ = value["Avatar"].asString();
if(!value["LanguageCode"].isNull())
languageCode_ = value["LanguageCode"].asString();
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["Logo"].isNull())
logo_ = value["Logo"].asString();
if(!value["InstanceId"].isNull())
instanceId_ = value["InstanceId"].asString();
if(!value["Introduction"].isNull())
introduction_ = value["Introduction"].asString();
if(!value["CreateTime"].isNull())
createTime_ = value["CreateTime"].asString();
}
std::string DescribeBotResult::getLanguageCode()const
{
return languageCode_;
}
std::string DescribeBotResult::getTimeZone()const
{
return timeZone_;
}
std::vector<DescribeBotResult::Category> DescribeBotResult::getCategories()const
{
return categories_;
}
std::string DescribeBotResult::getInstanceId()const
{
return instanceId_;
}
std::string DescribeBotResult::getIntroduction()const
{
return introduction_;
}
std::string DescribeBotResult::getCreateTime()const
{
return createTime_;
}
std::string DescribeBotResult::getAvatar()const
{
return avatar_;
}
std::string DescribeBotResult::getName()const
{
return name_;
}
std::string DescribeBotResult::getLogo()const
{
return logo_;
}

View File

@@ -35,6 +35,6 @@ long DescribeCategoryRequest::getCategoryId()const
void DescribeCategoryRequest::setCategoryId(long categoryId)
{
categoryId_ = categoryId;
setCoreParameter("CategoryId", std::to_string(categoryId));
setParameter("CategoryId", std::to_string(categoryId));
}

View File

@@ -35,6 +35,6 @@ std::string DescribeCoreWordRequest::getCoreWordName()const
void DescribeCoreWordRequest::setCoreWordName(const std::string& coreWordName)
{
coreWordName_ = coreWordName;
setCoreParameter("CoreWordName", coreWordName);
setParameter("CoreWordName", coreWordName);
}

View File

@@ -35,6 +35,6 @@ long DescribeDialogFlowRequest::getDialogId()const
void DescribeDialogFlowRequest::setDialogId(long dialogId)
{
dialogId_ = dialogId;
setCoreParameter("DialogId", std::to_string(dialogId));
setParameter("DialogId", std::to_string(dialogId));
}

View File

@@ -35,6 +35,6 @@ long DescribeDialogRequest::getDialogId()const
void DescribeDialogRequest::setDialogId(long dialogId)
{
dialogId_ = dialogId;
setCoreParameter("DialogId", std::to_string(dialogId));
setParameter("DialogId", std::to_string(dialogId));
}

View File

@@ -35,6 +35,6 @@ long DescribeEntitiesRequest::getEntityId()const
void DescribeEntitiesRequest::setEntityId(long entityId)
{
entityId_ = entityId;
setCoreParameter("EntityId", std::to_string(entityId));
setParameter("EntityId", std::to_string(entityId));
}

View File

@@ -35,6 +35,6 @@ long DescribeIntentRequest::getIntentId()const
void DescribeIntentRequest::setIntentId(long intentId)
{
intentId_ = intentId;
setCoreParameter("IntentId", std::to_string(intentId));
setParameter("IntentId", std::to_string(intentId));
}

View File

@@ -35,6 +35,6 @@ long DescribeKnowledgeRequest::getKnowledgeId()const
void DescribeKnowledgeRequest::setKnowledgeId(long knowledgeId)
{
knowledgeId_ = knowledgeId;
setCoreParameter("KnowledgeId", std::to_string(knowledgeId));
setParameter("KnowledgeId", std::to_string(knowledgeId));
}

View File

@@ -35,6 +35,17 @@ std::string DescribePerspectiveRequest::getPerspectiveId()const
void DescribePerspectiveRequest::setPerspectiveId(const std::string& perspectiveId)
{
perspectiveId_ = perspectiveId;
setCoreParameter("PerspectiveId", perspectiveId);
setParameter("PerspectiveId", perspectiveId);
}
std::string DescribePerspectiveRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribePerspectiveRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -35,6 +35,6 @@ long DisableDialogFlowRequest::getDialogId()const
void DisableDialogFlowRequest::setDialogId(long dialogId)
{
dialogId_ = dialogId;
setCoreParameter("DialogId", std::to_string(dialogId));
setParameter("DialogId", std::to_string(dialogId));
}

View File

@@ -35,6 +35,6 @@ long DisableKnowledgeRequest::getKnowledgeId()const
void DisableKnowledgeRequest::setKnowledgeId(long knowledgeId)
{
knowledgeId_ = knowledgeId;
setCoreParameter("KnowledgeId", std::to_string(knowledgeId));
setParameter("KnowledgeId", std::to_string(knowledgeId));
}

View File

@@ -35,7 +35,7 @@ std::string FeedbackRequest::getFeedback()const
void FeedbackRequest::setFeedback(const std::string& feedback)
{
feedback_ = feedback;
setCoreParameter("Feedback", feedback);
setParameter("Feedback", feedback);
}
std::string FeedbackRequest::getInstanceId()const
@@ -46,7 +46,7 @@ std::string FeedbackRequest::getInstanceId()const
void FeedbackRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
setParameter("InstanceId", instanceId);
}
std::string FeedbackRequest::getMessageId()const
@@ -57,7 +57,7 @@ std::string FeedbackRequest::getMessageId()const
void FeedbackRequest::setMessageId(const std::string& messageId)
{
messageId_ = messageId;
setCoreParameter("MessageId", messageId);
setParameter("MessageId", messageId);
}
std::string FeedbackRequest::getSessionId()const
@@ -68,6 +68,6 @@ std::string FeedbackRequest::getSessionId()const
void FeedbackRequest::setSessionId(const std::string& sessionId)
{
sessionId_ = sessionId;
setCoreParameter("SessionId", sessionId);
setParameter("SessionId", sessionId);
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/chatbot/model/LinkBotCategoryRequest.h>
using AlibabaCloud::Chatbot::Model::LinkBotCategoryRequest;
LinkBotCategoryRequest::LinkBotCategoryRequest() :
RpcServiceRequest("chatbot", "2017-10-11", "LinkBotCategory")
{
setMethod(HttpRequest::Method::Post);
}
LinkBotCategoryRequest::~LinkBotCategoryRequest()
{}
std::string LinkBotCategoryRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void LinkBotCategoryRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string LinkBotCategoryRequest::getCategoryIds()const
{
return categoryIds_;
}
void LinkBotCategoryRequest::setCategoryIds(const std::string& categoryIds)
{
categoryIds_ = categoryIds;
setBodyParameter("CategoryIds", categoryIds);
}
std::string LinkBotCategoryRequest::getInstanceId()const
{
return instanceId_;
}
void LinkBotCategoryRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/chatbot/model/LinkBotCategoryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Chatbot;
using namespace AlibabaCloud::Chatbot::Model;
LinkBotCategoryResult::LinkBotCategoryResult() :
ServiceResult()
{}
LinkBotCategoryResult::LinkBotCategoryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
LinkBotCategoryResult::~LinkBotCategoryResult()
{}
void LinkBotCategoryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -35,7 +35,7 @@ long MoveKnowledgeCategoryRequest::getKnowledgeId()const
void MoveKnowledgeCategoryRequest::setKnowledgeId(long knowledgeId)
{
knowledgeId_ = knowledgeId;
setCoreParameter("KnowledgeId", std::to_string(knowledgeId));
setParameter("KnowledgeId", std::to_string(knowledgeId));
}
long MoveKnowledgeCategoryRequest::getCategoryId()const
@@ -46,6 +46,6 @@ long MoveKnowledgeCategoryRequest::getCategoryId()const
void MoveKnowledgeCategoryRequest::setCategoryId(long categoryId)
{
categoryId_ = categoryId;
setCoreParameter("CategoryId", std::to_string(categoryId));
setParameter("CategoryId", std::to_string(categoryId));
}

View File

@@ -35,6 +35,6 @@ long PublishDialogFlowRequest::getDialogId()const
void PublishDialogFlowRequest::setDialogId(long dialogId)
{
dialogId_ = dialogId;
setCoreParameter("DialogId", std::to_string(dialogId));
setParameter("DialogId", std::to_string(dialogId));
}

View File

@@ -35,6 +35,6 @@ long PublishKnowledgeRequest::getKnowledgeId()const
void PublishKnowledgeRequest::setKnowledgeId(long knowledgeId)
{
knowledgeId_ = knowledgeId;
setCoreParameter("KnowledgeId", std::to_string(knowledgeId));
setParameter("KnowledgeId", std::to_string(knowledgeId));
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/chatbot/model/QueryBotsRequest.h>
using AlibabaCloud::Chatbot::Model::QueryBotsRequest;
QueryBotsRequest::QueryBotsRequest() :
RpcServiceRequest("chatbot", "2017-10-11", "QueryBots")
{
setMethod(HttpRequest::Method::Post);
}
QueryBotsRequest::~QueryBotsRequest()
{}
int QueryBotsRequest::getPageNumber()const
{
return pageNumber_;
}
void QueryBotsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string QueryBotsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryBotsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
int QueryBotsRequest::getPageSize()const
{
return pageSize_;
}
void QueryBotsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -0,0 +1,90 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/chatbot/model/QueryBotsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Chatbot;
using namespace AlibabaCloud::Chatbot::Model;
QueryBotsResult::QueryBotsResult() :
ServiceResult()
{}
QueryBotsResult::QueryBotsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryBotsResult::~QueryBotsResult()
{}
void QueryBotsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBotsNode = value["Bots"]["Bot"];
for (auto valueBotsBot : allBotsNode)
{
Bot botsObject;
if(!valueBotsBot["Name"].isNull())
botsObject.name = valueBotsBot["Name"].asString();
if(!valueBotsBot["Introduction"].isNull())
botsObject.introduction = valueBotsBot["Introduction"].asString();
if(!valueBotsBot["TimeZone"].isNull())
botsObject.timeZone = valueBotsBot["TimeZone"].asString();
if(!valueBotsBot["LanguageCode"].isNull())
botsObject.languageCode = valueBotsBot["LanguageCode"].asString();
if(!valueBotsBot["Avatar"].isNull())
botsObject.avatar = valueBotsBot["Avatar"].asString();
if(!valueBotsBot["CreateTime"].isNull())
botsObject.createTime = valueBotsBot["CreateTime"].asString();
if(!valueBotsBot["InstanceId"].isNull())
botsObject.instanceId = valueBotsBot["InstanceId"].asString();
bots_.push_back(botsObject);
}
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int QueryBotsResult::getTotalCount()const
{
return totalCount_;
}
std::vector<QueryBotsResult::Bot> QueryBotsResult::getBots()const
{
return bots_;
}
int QueryBotsResult::getPageSize()const
{
return pageSize_;
}
int QueryBotsResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -35,7 +35,7 @@ bool QueryCategoriesRequest::getShowChildrens()const
void QueryCategoriesRequest::setShowChildrens(bool showChildrens)
{
showChildrens_ = showChildrens;
setCoreParameter("ShowChildrens", showChildrens ? "true" : "false");
setParameter("ShowChildrens", showChildrens ? "true" : "false");
}
long QueryCategoriesRequest::getParentCategoryId()const
@@ -46,6 +46,6 @@ long QueryCategoriesRequest::getParentCategoryId()const
void QueryCategoriesRequest::setParentCategoryId(long parentCategoryId)
{
parentCategoryId_ = parentCategoryId;
setCoreParameter("ParentCategoryId", std::to_string(parentCategoryId));
setParameter("ParentCategoryId", std::to_string(parentCategoryId));
}

View File

@@ -35,7 +35,7 @@ int QueryCoreWordsRequest::getPageNumber()const
void QueryCoreWordsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string QueryCoreWordsRequest::getSynonym()const
@@ -46,7 +46,7 @@ std::string QueryCoreWordsRequest::getSynonym()const
void QueryCoreWordsRequest::setSynonym(const std::string& synonym)
{
synonym_ = synonym;
setCoreParameter("Synonym", synonym);
setParameter("Synonym", synonym);
}
int QueryCoreWordsRequest::getPageSize()const
@@ -57,7 +57,7 @@ int QueryCoreWordsRequest::getPageSize()const
void QueryCoreWordsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
setParameter("PageSize", std::to_string(pageSize));
}
std::string QueryCoreWordsRequest::getCoreWordName()const
@@ -68,6 +68,6 @@ std::string QueryCoreWordsRequest::getCoreWordName()const
void QueryCoreWordsRequest::setCoreWordName(const std::string& coreWordName)
{
coreWordName_ = coreWordName;
setCoreParameter("CoreWordName", coreWordName);
setParameter("CoreWordName", coreWordName);
}

View File

@@ -35,7 +35,7 @@ std::string QueryDialogsRequest::getDialogName()const
void QueryDialogsRequest::setDialogName(const std::string& dialogName)
{
dialogName_ = dialogName;
setCoreParameter("DialogName", dialogName);
setParameter("DialogName", dialogName);
}
int QueryDialogsRequest::getPageNumber()const
@@ -46,7 +46,7 @@ int QueryDialogsRequest::getPageNumber()const
void QueryDialogsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string QueryDialogsRequest::getInstanceId()const
@@ -57,7 +57,7 @@ std::string QueryDialogsRequest::getInstanceId()const
void QueryDialogsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
setParameter("InstanceId", instanceId);
}
int QueryDialogsRequest::getPageSize()const
@@ -68,6 +68,6 @@ int QueryDialogsRequest::getPageSize()const
void QueryDialogsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -35,7 +35,7 @@ std::string QueryEntitiesRequest::getEntityName()const
void QueryEntitiesRequest::setEntityName(const std::string& entityName)
{
entityName_ = entityName;
setCoreParameter("EntityName", entityName);
setParameter("EntityName", entityName);
}
long QueryEntitiesRequest::getDialogId()const
@@ -46,7 +46,7 @@ long QueryEntitiesRequest::getDialogId()const
void QueryEntitiesRequest::setDialogId(long dialogId)
{
dialogId_ = dialogId;
setCoreParameter("DialogId", std::to_string(dialogId));
setParameter("DialogId", std::to_string(dialogId));
}
int QueryEntitiesRequest::getPageNumber()const
@@ -57,7 +57,7 @@ int QueryEntitiesRequest::getPageNumber()const
void QueryEntitiesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
setParameter("PageNumber", std::to_string(pageNumber));
}
int QueryEntitiesRequest::getPageSize()const
@@ -68,6 +68,6 @@ int QueryEntitiesRequest::getPageSize()const
void QueryEntitiesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -35,7 +35,7 @@ long QueryIntentsRequest::getDialogId()const
void QueryIntentsRequest::setDialogId(long dialogId)
{
dialogId_ = dialogId;
setCoreParameter("DialogId", std::to_string(dialogId));
setParameter("DialogId", std::to_string(dialogId));
}
int QueryIntentsRequest::getPageNumber()const
@@ -46,7 +46,7 @@ int QueryIntentsRequest::getPageNumber()const
void QueryIntentsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string QueryIntentsRequest::getIntentName()const
@@ -57,7 +57,7 @@ std::string QueryIntentsRequest::getIntentName()const
void QueryIntentsRequest::setIntentName(const std::string& intentName)
{
intentName_ = intentName;
setCoreParameter("IntentName", intentName);
setParameter("IntentName", intentName);
}
int QueryIntentsRequest::getPageSize()const
@@ -68,6 +68,6 @@ int QueryIntentsRequest::getPageSize()const
void QueryIntentsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -35,7 +35,7 @@ std::string QueryKnowledgesRequest::getKnowledgeTitle()const
void QueryKnowledgesRequest::setKnowledgeTitle(const std::string& knowledgeTitle)
{
knowledgeTitle_ = knowledgeTitle;
setCoreParameter("KnowledgeTitle", knowledgeTitle);
setParameter("KnowledgeTitle", knowledgeTitle);
}
int QueryKnowledgesRequest::getPageNumber()const
@@ -46,7 +46,7 @@ int QueryKnowledgesRequest::getPageNumber()const
void QueryKnowledgesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
setParameter("PageNumber", std::to_string(pageNumber));
}
int QueryKnowledgesRequest::getPageSize()const
@@ -57,7 +57,7 @@ int QueryKnowledgesRequest::getPageSize()const
void QueryKnowledgesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
setParameter("PageSize", std::to_string(pageSize));
}
std::string QueryKnowledgesRequest::getCoreWordName()const
@@ -68,7 +68,7 @@ std::string QueryKnowledgesRequest::getCoreWordName()const
void QueryKnowledgesRequest::setCoreWordName(const std::string& coreWordName)
{
coreWordName_ = coreWordName;
setCoreParameter("CoreWordName", coreWordName);
setParameter("CoreWordName", coreWordName);
}
long QueryKnowledgesRequest::getCategoryId()const
@@ -79,6 +79,6 @@ long QueryKnowledgesRequest::getCategoryId()const
void QueryKnowledgesRequest::setCategoryId(long categoryId)
{
categoryId_ = categoryId;
setCoreParameter("CategoryId", std::to_string(categoryId));
setParameter("CategoryId", std::to_string(categoryId));
}

View File

@@ -27,3 +27,14 @@ QueryPerspectivesRequest::QueryPerspectivesRequest() :
QueryPerspectivesRequest::~QueryPerspectivesRequest()
{}
std::string QueryPerspectivesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryPerspectivesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -35,6 +35,6 @@ std::string QuerySystemEntitiesRequest::getEntityName()const
void QuerySystemEntitiesRequest::setEntityName(const std::string& entityName)
{
entityName_ = entityName;
setCoreParameter("EntityName", entityName);
setParameter("EntityName", entityName);
}

View File

@@ -35,7 +35,7 @@ long RemoveEntityMemberRequest::getEntityId()const
void RemoveEntityMemberRequest::setEntityId(long entityId)
{
entityId_ = entityId;
setCoreParameter("EntityId", std::to_string(entityId));
setParameter("EntityId", std::to_string(entityId));
}
std::string RemoveEntityMemberRequest::getRemoveType()const
@@ -46,7 +46,7 @@ std::string RemoveEntityMemberRequest::getRemoveType()const
void RemoveEntityMemberRequest::setRemoveType(const std::string& removeType)
{
removeType_ = removeType;
setCoreParameter("RemoveType", removeType);
setParameter("RemoveType", removeType);
}
std::string RemoveEntityMemberRequest::getMember()const
@@ -57,6 +57,6 @@ std::string RemoveEntityMemberRequest::getMember()const
void RemoveEntityMemberRequest::setMember(const std::string& member)
{
member_ = member;
setCoreParameter("Member", member);
setBodyParameter("Member", member);
}

View File

@@ -35,7 +35,7 @@ std::string RemoveSynonymRequest::getSynonym()const
void RemoveSynonymRequest::setSynonym(const std::string& synonym)
{
synonym_ = synonym;
setCoreParameter("Synonym", synonym);
setParameter("Synonym", synonym);
}
std::string RemoveSynonymRequest::getCoreWordName()const
@@ -46,6 +46,6 @@ std::string RemoveSynonymRequest::getCoreWordName()const
void RemoveSynonymRequest::setCoreWordName(const std::string& coreWordName)
{
coreWordName_ = coreWordName;
setCoreParameter("CoreWordName", coreWordName);
setParameter("CoreWordName", coreWordName);
}

View File

@@ -35,6 +35,6 @@ long TestDialogFlowRequest::getDialogId()const
void TestDialogFlowRequest::setDialogId(long dialogId)
{
dialogId_ = dialogId;
setCoreParameter("DialogId", std::to_string(dialogId));
setParameter("DialogId", std::to_string(dialogId));
}

View File

@@ -35,7 +35,7 @@ std::string UpdateCategoryRequest::getName()const
void UpdateCategoryRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
setParameter("Name", name);
}
long UpdateCategoryRequest::getCategoryId()const
@@ -46,6 +46,6 @@ long UpdateCategoryRequest::getCategoryId()const
void UpdateCategoryRequest::setCategoryId(long categoryId)
{
categoryId_ = categoryId;
setCoreParameter("CategoryId", std::to_string(categoryId));
setParameter("CategoryId", std::to_string(categoryId));
}

View File

@@ -35,7 +35,7 @@ std::string UpdateCoreWordRequest::getCoreWordName()const
void UpdateCoreWordRequest::setCoreWordName(const std::string& coreWordName)
{
coreWordName_ = coreWordName;
setCoreParameter("CoreWordName", coreWordName);
setParameter("CoreWordName", coreWordName);
}
std::string UpdateCoreWordRequest::getCoreWordCode()const
@@ -46,6 +46,6 @@ std::string UpdateCoreWordRequest::getCoreWordCode()const
void UpdateCoreWordRequest::setCoreWordCode(const std::string& coreWordCode)
{
coreWordCode_ = coreWordCode;
setCoreParameter("CoreWordCode", coreWordCode);
setParameter("CoreWordCode", coreWordCode);
}

View File

@@ -35,7 +35,7 @@ std::string UpdateDialogFlowRequest::getModuleDefinition()const
void UpdateDialogFlowRequest::setModuleDefinition(const std::string& moduleDefinition)
{
moduleDefinition_ = moduleDefinition;
setCoreParameter("ModuleDefinition", moduleDefinition);
setBodyParameter("ModuleDefinition", moduleDefinition);
}
long UpdateDialogFlowRequest::getDialogId()const
@@ -46,6 +46,6 @@ long UpdateDialogFlowRequest::getDialogId()const
void UpdateDialogFlowRequest::setDialogId(long dialogId)
{
dialogId_ = dialogId;
setCoreParameter("DialogId", std::to_string(dialogId));
setParameter("DialogId", std::to_string(dialogId));
}

View File

@@ -35,7 +35,7 @@ std::string UpdateDialogRequest::getDescription()const
void UpdateDialogRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
setParameter("Description", description);
}
long UpdateDialogRequest::getDialogId()const
@@ -46,7 +46,7 @@ long UpdateDialogRequest::getDialogId()const
void UpdateDialogRequest::setDialogId(long dialogId)
{
dialogId_ = dialogId;
setCoreParameter("DialogId", std::to_string(dialogId));
setParameter("DialogId", std::to_string(dialogId));
}
std::string UpdateDialogRequest::getDialogName()const
@@ -57,6 +57,6 @@ std::string UpdateDialogRequest::getDialogName()const
void UpdateDialogRequest::setDialogName(const std::string& dialogName)
{
dialogName_ = dialogName;
setCoreParameter("DialogName", dialogName);
setParameter("DialogName", dialogName);
}

View File

@@ -35,7 +35,7 @@ std::string UpdateEntityRequest::getEntityName()const
void UpdateEntityRequest::setEntityName(const std::string& entityName)
{
entityName_ = entityName;
setCoreParameter("EntityName", entityName);
setParameter("EntityName", entityName);
}
long UpdateEntityRequest::getEntityId()const
@@ -46,7 +46,7 @@ long UpdateEntityRequest::getEntityId()const
void UpdateEntityRequest::setEntityId(long entityId)
{
entityId_ = entityId;
setCoreParameter("EntityId", std::to_string(entityId));
setParameter("EntityId", std::to_string(entityId));
}
std::string UpdateEntityRequest::getRegex()const
@@ -57,7 +57,7 @@ std::string UpdateEntityRequest::getRegex()const
void UpdateEntityRequest::setRegex(const std::string& regex)
{
regex_ = regex;
setCoreParameter("Regex", regex);
setParameter("Regex", regex);
}
std::string UpdateEntityRequest::getEntityType()const
@@ -68,7 +68,7 @@ std::string UpdateEntityRequest::getEntityType()const
void UpdateEntityRequest::setEntityType(const std::string& entityType)
{
entityType_ = entityType;
setCoreParameter("EntityType", entityType);
setParameter("EntityType", entityType);
}
std::string UpdateEntityRequest::getMembers()const
@@ -79,6 +79,6 @@ std::string UpdateEntityRequest::getMembers()const
void UpdateEntityRequest::setMembers(const std::string& members)
{
members_ = members;
setCoreParameter("Members", members);
setBodyParameter("Members", members);
}

View File

@@ -35,7 +35,7 @@ std::string UpdateIntentRequest::getIntentDefinition()const
void UpdateIntentRequest::setIntentDefinition(const std::string& intentDefinition)
{
intentDefinition_ = intentDefinition;
setCoreParameter("IntentDefinition", intentDefinition);
setBodyParameter("IntentDefinition", intentDefinition);
}
long UpdateIntentRequest::getIntentId()const
@@ -46,6 +46,6 @@ long UpdateIntentRequest::getIntentId()const
void UpdateIntentRequest::setIntentId(long intentId)
{
intentId_ = intentId;
setCoreParameter("IntentId", std::to_string(intentId));
setParameter("IntentId", std::to_string(intentId));
}

View File

@@ -35,6 +35,6 @@ std::string UpdateKnowledgeRequest::getKnowledge()const
void UpdateKnowledgeRequest::setKnowledge(const std::string& knowledge)
{
knowledge_ = knowledge;
setCoreParameter("Knowledge", knowledge);
setBodyParameter("Knowledge", knowledge);
}

View File

@@ -35,7 +35,18 @@ std::string UpdatePerspectiveRequest::getPerspectiveId()const
void UpdatePerspectiveRequest::setPerspectiveId(const std::string& perspectiveId)
{
perspectiveId_ = perspectiveId;
setCoreParameter("PerspectiveId", perspectiveId);
setParameter("PerspectiveId", perspectiveId);
}
std::string UpdatePerspectiveRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void UpdatePerspectiveRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string UpdatePerspectiveRequest::getName()const
@@ -46,6 +57,6 @@ std::string UpdatePerspectiveRequest::getName()const
void UpdatePerspectiveRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
setParameter("Name", name);
}