Standardizing api.

This commit is contained in:
sdk-team
2023-12-13 11:12:26 +00:00
parent 6e83ebf540
commit fe741d3fe9
202 changed files with 12096 additions and 919 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,81 @@
/*
* 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/cloud-siem/model/AddDataSourceLogRequest.h>
using AlibabaCloud::Cloud_siem::Model::AddDataSourceLogRequest;
AddDataSourceLogRequest::AddDataSourceLogRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "AddDataSourceLog") {
setMethod(HttpRequest::Method::Post);
}
AddDataSourceLogRequest::~AddDataSourceLogRequest() {}
std::string AddDataSourceLogRequest::getCloudCode() const {
return cloudCode_;
}
void AddDataSourceLogRequest::setCloudCode(const std::string &cloudCode) {
cloudCode_ = cloudCode;
setBodyParameter(std::string("CloudCode"), cloudCode);
}
std::string AddDataSourceLogRequest::getAccountId() const {
return accountId_;
}
void AddDataSourceLogRequest::setAccountId(const std::string &accountId) {
accountId_ = accountId;
setBodyParameter(std::string("AccountId"), accountId);
}
std::string AddDataSourceLogRequest::getLogCode() const {
return logCode_;
}
void AddDataSourceLogRequest::setLogCode(const std::string &logCode) {
logCode_ = logCode;
setBodyParameter(std::string("LogCode"), logCode);
}
std::string AddDataSourceLogRequest::getRegionId() const {
return regionId_;
}
void AddDataSourceLogRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string AddDataSourceLogRequest::getDataSourceInstanceLogs() const {
return dataSourceInstanceLogs_;
}
void AddDataSourceLogRequest::setDataSourceInstanceLogs(const std::string &dataSourceInstanceLogs) {
dataSourceInstanceLogs_ = dataSourceInstanceLogs;
setBodyParameter(std::string("DataSourceInstanceLogs"), dataSourceInstanceLogs);
}
std::string AddDataSourceLogRequest::getDataSourceInstanceId() const {
return dataSourceInstanceId_;
}
void AddDataSourceLogRequest::setDataSourceInstanceId(const std::string &dataSourceInstanceId) {
dataSourceInstanceId_ = dataSourceInstanceId;
setBodyParameter(std::string("DataSourceInstanceId"), dataSourceInstanceId);
}

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.
*/
#include <alibabacloud/cloud-siem/model/AddDataSourceLogResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
AddDataSourceLogResult::AddDataSourceLogResult() :
ServiceResult()
{}
AddDataSourceLogResult::AddDataSourceLogResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddDataSourceLogResult::~AddDataSourceLogResult()
{}
void AddDataSourceLogResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Count"].isNull())
data_.count = std::stoi(dataNode["Count"].asString());
if(!dataNode["LogInstanceId"].isNull())
data_.logInstanceId = dataNode["LogInstanceId"].asString();
}
AddDataSourceLogResult::Data AddDataSourceLogResult::getData()const
{
return data_;
}

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/cloud-siem/model/AddDataSourceRequest.h>
using AlibabaCloud::Cloud_siem::Model::AddDataSourceRequest;
AddDataSourceRequest::AddDataSourceRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "AddDataSource") {
setMethod(HttpRequest::Method::Post);
}
AddDataSourceRequest::~AddDataSourceRequest() {}
std::string AddDataSourceRequest::getDataSourceType() const {
return dataSourceType_;
}
void AddDataSourceRequest::setDataSourceType(const std::string &dataSourceType) {
dataSourceType_ = dataSourceType;
setBodyParameter(std::string("DataSourceType"), dataSourceType);
}
std::string AddDataSourceRequest::getCloudCode() const {
return cloudCode_;
}
void AddDataSourceRequest::setCloudCode(const std::string &cloudCode) {
cloudCode_ = cloudCode;
setBodyParameter(std::string("CloudCode"), cloudCode);
}
std::string AddDataSourceRequest::getDataSourceInstanceName() const {
return dataSourceInstanceName_;
}
void AddDataSourceRequest::setDataSourceInstanceName(const std::string &dataSourceInstanceName) {
dataSourceInstanceName_ = dataSourceInstanceName;
setBodyParameter(std::string("DataSourceInstanceName"), dataSourceInstanceName);
}
std::string AddDataSourceRequest::getAccountId() const {
return accountId_;
}
void AddDataSourceRequest::setAccountId(const std::string &accountId) {
accountId_ = accountId;
setBodyParameter(std::string("AccountId"), accountId);
}
std::string AddDataSourceRequest::getRegionId() const {
return regionId_;
}
void AddDataSourceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string AddDataSourceRequest::getDataSourceInstanceRemark() const {
return dataSourceInstanceRemark_;
}
void AddDataSourceRequest::setDataSourceInstanceRemark(const std::string &dataSourceInstanceRemark) {
dataSourceInstanceRemark_ = dataSourceInstanceRemark;
setBodyParameter(std::string("DataSourceInstanceRemark"), dataSourceInstanceRemark);
}
std::string AddDataSourceRequest::getDataSourceInstanceParams() const {
return dataSourceInstanceParams_;
}
void AddDataSourceRequest::setDataSourceInstanceParams(const std::string &dataSourceInstanceParams) {
dataSourceInstanceParams_ = dataSourceInstanceParams;
setBodyParameter(std::string("DataSourceInstanceParams"), dataSourceInstanceParams);
}

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.
*/
#include <alibabacloud/cloud-siem/model/AddDataSourceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
AddDataSourceResult::AddDataSourceResult() :
ServiceResult()
{}
AddDataSourceResult::AddDataSourceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddDataSourceResult::~AddDataSourceResult()
{}
void AddDataSourceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Count"].isNull())
data_.count = std::stoi(dataNode["Count"].asString());
if(!dataNode["DataSourceInstanceId"].isNull())
data_.dataSourceInstanceId = dataNode["DataSourceInstanceId"].asString();
}
AddDataSourceResult::Data AddDataSourceResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,45 @@
/*
* 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/cloud-siem/model/AddUserRequest.h>
using AlibabaCloud::Cloud_siem::Model::AddUserRequest;
AddUserRequest::AddUserRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "AddUser") {
setMethod(HttpRequest::Method::Post);
}
AddUserRequest::~AddUserRequest() {}
long AddUserRequest::getAddedUserId() const {
return addedUserId_;
}
void AddUserRequest::setAddedUserId(long addedUserId) {
addedUserId_ = addedUserId;
setBodyParameter(std::string("AddedUserId"), std::to_string(addedUserId));
}
std::string AddUserRequest::getRegionId() const {
return regionId_;
}
void AddUserRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

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/cloud-siem/model/AddUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
AddUserResult::AddUserResult() :
ServiceResult()
{}
AddUserResult::AddUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddUserResult::~AddUserResult()
{}
void AddUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
bool AddUserResult::getData()const
{
return data_;
}

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/cloud-siem/model/AddUserSourceLogConfigRequest.h>
using AlibabaCloud::Cloud_siem::Model::AddUserSourceLogConfigRequest;
AddUserSourceLogConfigRequest::AddUserSourceLogConfigRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "AddUserSourceLogConfig") {
setMethod(HttpRequest::Method::Post);
}
AddUserSourceLogConfigRequest::~AddUserSourceLogConfigRequest() {}
std::string AddUserSourceLogConfigRequest::getDisPlayLine() const {
return disPlayLine_;
}
void AddUserSourceLogConfigRequest::setDisPlayLine(const std::string &disPlayLine) {
disPlayLine_ = disPlayLine;
setBodyParameter(std::string("DisPlayLine"), disPlayLine);
}
long AddUserSourceLogConfigRequest::getSubUserId() const {
return subUserId_;
}
void AddUserSourceLogConfigRequest::setSubUserId(long subUserId) {
subUserId_ = subUserId;
setBodyParameter(std::string("SubUserId"), std::to_string(subUserId));
}
std::string AddUserSourceLogConfigRequest::getRegionId() const {
return regionId_;
}
void AddUserSourceLogConfigRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string AddUserSourceLogConfigRequest::getSourceProdCode() const {
return sourceProdCode_;
}
void AddUserSourceLogConfigRequest::setSourceProdCode(const std::string &sourceProdCode) {
sourceProdCode_ = sourceProdCode;
setBodyParameter(std::string("SourceProdCode"), sourceProdCode);
}
std::string AddUserSourceLogConfigRequest::getSourceLogInfo() const {
return sourceLogInfo_;
}
void AddUserSourceLogConfigRequest::setSourceLogInfo(const std::string &sourceLogInfo) {
sourceLogInfo_ = sourceLogInfo;
setBodyParameter(std::string("SourceLogInfo"), sourceLogInfo);
}
int AddUserSourceLogConfigRequest::getDeleted() const {
return deleted_;
}
void AddUserSourceLogConfigRequest::setDeleted(int deleted) {
deleted_ = deleted;
setBodyParameter(std::string("Deleted"), std::to_string(deleted));
}
std::string AddUserSourceLogConfigRequest::getSourceLogCode() const {
return sourceLogCode_;
}
void AddUserSourceLogConfigRequest::setSourceLogCode(const std::string &sourceLogCode) {
sourceLogCode_ = sourceLogCode;
setBodyParameter(std::string("SourceLogCode"), sourceLogCode);
}

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.
*/
#include <alibabacloud/cloud-siem/model/AddUserSourceLogConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
AddUserSourceLogConfigResult::AddUserSourceLogConfigResult() :
ServiceResult()
{}
AddUserSourceLogConfigResult::AddUserSourceLogConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddUserSourceLogConfigResult::~AddUserSourceLogConfigResult()
{}
void AddUserSourceLogConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["DiplayLine"].isNull())
data_.diplayLine = dataNode["DiplayLine"].asString();
if(!dataNode["SourceProdCode"].isNull())
data_.sourceProdCode = dataNode["SourceProdCode"].asString();
if(!dataNode["SourceLogCode"].isNull())
data_.sourceLogCode = dataNode["SourceLogCode"].asString();
if(!dataNode["Displayed"].isNull())
data_.displayed = dataNode["Displayed"].asString() == "true";
if(!dataNode["Imported"].isNull())
data_.imported = dataNode["Imported"].asString() == "true";
if(!dataNode["MainUserId"].isNull())
data_.mainUserId = std::stol(dataNode["MainUserId"].asString());
if(!dataNode["SubUserId"].isNull())
data_.subUserId = std::stol(dataNode["SubUserId"].asString());
if(!dataNode["SubUserName"].isNull())
data_.subUserName = dataNode["SubUserName"].asString();
}
AddUserSourceLogConfigResult::Data AddUserSourceLogConfigResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,72 @@
/*
* 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/cloud-siem/model/BindAccountRequest.h>
using AlibabaCloud::Cloud_siem::Model::BindAccountRequest;
BindAccountRequest::BindAccountRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "BindAccount") {
setMethod(HttpRequest::Method::Post);
}
BindAccountRequest::~BindAccountRequest() {}
std::string BindAccountRequest::getCloudCode() const {
return cloudCode_;
}
void BindAccountRequest::setCloudCode(const std::string &cloudCode) {
cloudCode_ = cloudCode;
setBodyParameter(std::string("CloudCode"), cloudCode);
}
std::string BindAccountRequest::getAccountId() const {
return accountId_;
}
void BindAccountRequest::setAccountId(const std::string &accountId) {
accountId_ = accountId;
setBodyParameter(std::string("AccountId"), accountId);
}
std::string BindAccountRequest::getAccountName() const {
return accountName_;
}
void BindAccountRequest::setAccountName(const std::string &accountName) {
accountName_ = accountName;
setBodyParameter(std::string("AccountName"), accountName);
}
std::string BindAccountRequest::getRegionId() const {
return regionId_;
}
void BindAccountRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string BindAccountRequest::getAccessId() const {
return accessId_;
}
void BindAccountRequest::setAccessId(const std::string &accessId) {
accessId_ = accessId;
setBodyParameter(std::string("AccessId"), accessId);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/cloud-siem/model/BindAccountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
BindAccountResult::BindAccountResult() :
ServiceResult()
{}
BindAccountResult::BindAccountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BindAccountResult::~BindAccountResult()
{}
void BindAccountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Count"].isNull())
data_.count = std::stoi(dataNode["Count"].asString());
}
BindAccountResult::Data BindAccountResult::getData()const
{
return data_;
}

View File

@@ -41,53 +41,11 @@ void CloseDeliveryResult::parse(const std::string &payload)
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["DyCode"].isNull())
dyCode_ = value["DyCode"].asString();
if(!value["DyMessage"].isNull())
dyMessage_ = value["DyMessage"].asString();
}
std::string CloseDeliveryResult::getDyCode()const
{
return dyCode_;
}
std::string CloseDeliveryResult::getMessage()const
{
return message_;
}
bool CloseDeliveryResult::getData()const
{
return data_;
}
int CloseDeliveryResult::getCode()const
{
return code_;
}
std::string CloseDeliveryResult::getDyMessage()const
{
return dyMessage_;
}
bool CloseDeliveryResult::getSuccess()const
{
return success_;
}
std::string CloseDeliveryResult::getErrCode()const
{
return errCode_;
}

View File

@@ -0,0 +1,72 @@
/*
* 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/cloud-siem/model/DeleteBindAccountRequest.h>
using AlibabaCloud::Cloud_siem::Model::DeleteBindAccountRequest;
DeleteBindAccountRequest::DeleteBindAccountRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "DeleteBindAccount") {
setMethod(HttpRequest::Method::Post);
}
DeleteBindAccountRequest::~DeleteBindAccountRequest() {}
std::string DeleteBindAccountRequest::getCloudCode() const {
return cloudCode_;
}
void DeleteBindAccountRequest::setCloudCode(const std::string &cloudCode) {
cloudCode_ = cloudCode;
setBodyParameter(std::string("CloudCode"), cloudCode);
}
std::string DeleteBindAccountRequest::getAccountId() const {
return accountId_;
}
void DeleteBindAccountRequest::setAccountId(const std::string &accountId) {
accountId_ = accountId;
setBodyParameter(std::string("AccountId"), accountId);
}
std::string DeleteBindAccountRequest::getRegionId() const {
return regionId_;
}
void DeleteBindAccountRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
long DeleteBindAccountRequest::getBindId() const {
return bindId_;
}
void DeleteBindAccountRequest::setBindId(long bindId) {
bindId_ = bindId;
setBodyParameter(std::string("BindId"), std::to_string(bindId));
}
std::string DeleteBindAccountRequest::getAccessId() const {
return accessId_;
}
void DeleteBindAccountRequest::setAccessId(const std::string &accessId) {
accessId_ = accessId;
setBodyParameter(std::string("AccessId"), accessId);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/cloud-siem/model/DeleteBindAccountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
DeleteBindAccountResult::DeleteBindAccountResult() :
ServiceResult()
{}
DeleteBindAccountResult::DeleteBindAccountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteBindAccountResult::~DeleteBindAccountResult()
{}
void DeleteBindAccountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Count"].isNull())
data_.count = std::stoi(dataNode["Count"].asString());
}
DeleteBindAccountResult::Data DeleteBindAccountResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,72 @@
/*
* 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/cloud-siem/model/DeleteDataSourceLogRequest.h>
using AlibabaCloud::Cloud_siem::Model::DeleteDataSourceLogRequest;
DeleteDataSourceLogRequest::DeleteDataSourceLogRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "DeleteDataSourceLog") {
setMethod(HttpRequest::Method::Post);
}
DeleteDataSourceLogRequest::~DeleteDataSourceLogRequest() {}
std::string DeleteDataSourceLogRequest::getCloudCode() const {
return cloudCode_;
}
void DeleteDataSourceLogRequest::setCloudCode(const std::string &cloudCode) {
cloudCode_ = cloudCode;
setBodyParameter(std::string("CloudCode"), cloudCode);
}
std::string DeleteDataSourceLogRequest::getAccountId() const {
return accountId_;
}
void DeleteDataSourceLogRequest::setAccountId(const std::string &accountId) {
accountId_ = accountId;
setBodyParameter(std::string("AccountId"), accountId);
}
std::string DeleteDataSourceLogRequest::getRegionId() const {
return regionId_;
}
void DeleteDataSourceLogRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string DeleteDataSourceLogRequest::getLogInstanceId() const {
return logInstanceId_;
}
void DeleteDataSourceLogRequest::setLogInstanceId(const std::string &logInstanceId) {
logInstanceId_ = logInstanceId;
setBodyParameter(std::string("LogInstanceId"), logInstanceId);
}
std::string DeleteDataSourceLogRequest::getDataSourceInstanceId() const {
return dataSourceInstanceId_;
}
void DeleteDataSourceLogRequest::setDataSourceInstanceId(const std::string &dataSourceInstanceId) {
dataSourceInstanceId_ = dataSourceInstanceId;
setBodyParameter(std::string("DataSourceInstanceId"), dataSourceInstanceId);
}

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.
*/
#include <alibabacloud/cloud-siem/model/DeleteDataSourceLogResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
DeleteDataSourceLogResult::DeleteDataSourceLogResult() :
ServiceResult()
{}
DeleteDataSourceLogResult::DeleteDataSourceLogResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDataSourceLogResult::~DeleteDataSourceLogResult()
{}
void DeleteDataSourceLogResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Count"].isNull())
data_.count = std::stoi(dataNode["Count"].asString());
if(!dataNode["LogInstanceId"].isNull())
data_.logInstanceId = dataNode["LogInstanceId"].asString();
}
DeleteDataSourceLogResult::Data DeleteDataSourceLogResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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/cloud-siem/model/DeleteDataSourceRequest.h>
using AlibabaCloud::Cloud_siem::Model::DeleteDataSourceRequest;
DeleteDataSourceRequest::DeleteDataSourceRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "DeleteDataSource") {
setMethod(HttpRequest::Method::Post);
}
DeleteDataSourceRequest::~DeleteDataSourceRequest() {}
std::string DeleteDataSourceRequest::getCloudCode() const {
return cloudCode_;
}
void DeleteDataSourceRequest::setCloudCode(const std::string &cloudCode) {
cloudCode_ = cloudCode;
setBodyParameter(std::string("CloudCode"), cloudCode);
}
std::string DeleteDataSourceRequest::getAccountId() const {
return accountId_;
}
void DeleteDataSourceRequest::setAccountId(const std::string &accountId) {
accountId_ = accountId;
setBodyParameter(std::string("AccountId"), accountId);
}
std::string DeleteDataSourceRequest::getRegionId() const {
return regionId_;
}
void DeleteDataSourceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string DeleteDataSourceRequest::getDataSourceInstanceId() const {
return dataSourceInstanceId_;
}
void DeleteDataSourceRequest::setDataSourceInstanceId(const std::string &dataSourceInstanceId) {
dataSourceInstanceId_ = dataSourceInstanceId;
setBodyParameter(std::string("DataSourceInstanceId"), dataSourceInstanceId);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/cloud-siem/model/DeleteDataSourceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
DeleteDataSourceResult::DeleteDataSourceResult() :
ServiceResult()
{}
DeleteDataSourceResult::DeleteDataSourceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDataSourceResult::~DeleteDataSourceResult()
{}
void DeleteDataSourceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Count"].isNull())
data_.count = std::stoi(dataNode["Count"].asString());
}
DeleteDataSourceResult::Data DeleteDataSourceResult::getData()const
{
return data_;
}

View File

@@ -41,53 +41,11 @@ void DeleteQuickQueryResult::parse(const std::string &payload)
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["DyCode"].isNull())
dyCode_ = value["DyCode"].asString();
if(!value["DyMessage"].isNull())
dyMessage_ = value["DyMessage"].asString();
}
std::string DeleteQuickQueryResult::getDyCode()const
{
return dyCode_;
}
std::string DeleteQuickQueryResult::getMessage()const
{
return message_;
}
bool DeleteQuickQueryResult::getData()const
{
return data_;
}
int DeleteQuickQueryResult::getCode()const
{
return code_;
}
std::string DeleteQuickQueryResult::getDyMessage()const
{
return dyMessage_;
}
bool DeleteQuickQueryResult::getSuccess()const
{
return success_;
}
std::string DeleteQuickQueryResult::getErrCode()const
{
return errCode_;
}

View File

@@ -0,0 +1,45 @@
/*
* 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/cloud-siem/model/DeleteUserRequest.h>
using AlibabaCloud::Cloud_siem::Model::DeleteUserRequest;
DeleteUserRequest::DeleteUserRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "DeleteUser") {
setMethod(HttpRequest::Method::Post);
}
DeleteUserRequest::~DeleteUserRequest() {}
long DeleteUserRequest::getAddedUserId() const {
return addedUserId_;
}
void DeleteUserRequest::setAddedUserId(long addedUserId) {
addedUserId_ = addedUserId;
setBodyParameter(std::string("AddedUserId"), std::to_string(addedUserId));
}
std::string DeleteUserRequest::getRegionId() const {
return regionId_;
}
void DeleteUserRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

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/cloud-siem/model/DeleteUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
DeleteUserResult::DeleteUserResult() :
ServiceResult()
{}
DeleteUserResult::DeleteUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteUserResult::~DeleteUserResult()
{}
void DeleteUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
bool DeleteUserResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/cloud-siem/model/DescribeAlertSceneRequest.h>
using AlibabaCloud::Cloud_siem::Model::DescribeAlertSceneRequest;
DescribeAlertSceneRequest::DescribeAlertSceneRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeAlertScene") {
setMethod(HttpRequest::Method::Post);
}
DescribeAlertSceneRequest::~DescribeAlertSceneRequest() {}
std::string DescribeAlertSceneRequest::getRegionId() const {
return regionId_;
}
void DescribeAlertSceneRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

View File

@@ -0,0 +1,103 @@
/*
* 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/cloud-siem/model/DescribeAlertSceneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
DescribeAlertSceneResult::DescribeAlertSceneResult() :
ServiceResult()
{}
DescribeAlertSceneResult::DescribeAlertSceneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAlertSceneResult::~DescribeAlertSceneResult()
{}
void DescribeAlertSceneResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["DataItem"];
for (auto valueDataDataItem : allDataNode)
{
DataItem dataObject;
if(!valueDataDataItem["AlertType"].isNull())
dataObject.alertType = valueDataDataItem["AlertType"].asString();
if(!valueDataDataItem["AlertTypeId"].isNull())
dataObject.alertTypeId = valueDataDataItem["AlertTypeId"].asString();
if(!valueDataDataItem["AlertName"].isNull())
dataObject.alertName = valueDataDataItem["AlertName"].asString();
if(!valueDataDataItem["AlertNameId"].isNull())
dataObject.alertNameId = valueDataDataItem["AlertNameId"].asString();
if(!valueDataDataItem["AlertTile"].isNull())
dataObject.alertTile = valueDataDataItem["AlertTile"].asString();
if(!valueDataDataItem["AlertTileId"].isNull())
dataObject.alertTileId = valueDataDataItem["AlertTileId"].asString();
auto allTargetsNode = valueDataDataItem["Targets"]["Target"];
for (auto valueDataDataItemTargetsTarget : allTargetsNode)
{
DataItem::Target targetsObject;
if(!valueDataDataItemTargetsTarget["Type"].isNull())
targetsObject.type = valueDataDataItemTargetsTarget["Type"].asString();
if(!valueDataDataItemTargetsTarget["Name"].isNull())
targetsObject.name = valueDataDataItemTargetsTarget["Name"].asString();
if(!valueDataDataItemTargetsTarget["Value"].isNull())
targetsObject.value = valueDataDataItemTargetsTarget["Value"].asString();
auto allValues = value["Values"]["Value"];
for (auto value : allValues)
targetsObject.values.push_back(value.asString());
dataObject.targets.push_back(targetsObject);
}
data_.push_back(dataObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DescribeAlertSceneResult::getMessage()const
{
return message_;
}
std::vector<DescribeAlertSceneResult::DataItem> DescribeAlertSceneResult::getData()const
{
return data_;
}
int DescribeAlertSceneResult::getCode()const
{
return code_;
}
bool DescribeAlertSceneResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,125 @@
/*
* 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/cloud-siem/model/DescribeAlertsRequest.h>
using AlibabaCloud::Cloud_siem::Model::DescribeAlertsRequest;
DescribeAlertsRequest::DescribeAlertsRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeAlerts") {
setMethod(HttpRequest::Method::Post);
}
DescribeAlertsRequest::~DescribeAlertsRequest() {}
std::string DescribeAlertsRequest::getSource() const {
return source_;
}
void DescribeAlertsRequest::setSource(const std::string &source) {
source_ = source;
setBodyParameter(std::string("Source"), source);
}
std::string DescribeAlertsRequest::getIsDefend() const {
return isDefend_;
}
void DescribeAlertsRequest::setIsDefend(const std::string &isDefend) {
isDefend_ = isDefend;
setBodyParameter(std::string("IsDefend"), isDefend);
}
long DescribeAlertsRequest::getStartTime() const {
return startTime_;
}
void DescribeAlertsRequest::setStartTime(long startTime) {
startTime_ = startTime;
setBodyParameter(std::string("StartTime"), std::to_string(startTime));
}
std::string DescribeAlertsRequest::getSubUserId() const {
return subUserId_;
}
void DescribeAlertsRequest::setSubUserId(const std::string &subUserId) {
subUserId_ = subUserId;
setBodyParameter(std::string("SubUserId"), subUserId);
}
std::string DescribeAlertsRequest::getRegionId() const {
return regionId_;
}
void DescribeAlertsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
int DescribeAlertsRequest::getPageSize() const {
return pageSize_;
}
void DescribeAlertsRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::vector<std::string> DescribeAlertsRequest::getLevel() const {
return level_;
}
void DescribeAlertsRequest::setLevel(const std::vector<std::string> &level) {
level_ = level;
}
long DescribeAlertsRequest::getEndTime() const {
return endTime_;
}
void DescribeAlertsRequest::setEndTime(long endTime) {
endTime_ = endTime;
setBodyParameter(std::string("EndTime"), std::to_string(endTime));
}
std::string DescribeAlertsRequest::getAlertTitle() const {
return alertTitle_;
}
void DescribeAlertsRequest::setAlertTitle(const std::string &alertTitle) {
alertTitle_ = alertTitle;
setBodyParameter(std::string("AlertTitle"), alertTitle);
}
int DescribeAlertsRequest::getCurrentPage() const {
return currentPage_;
}
void DescribeAlertsRequest::setCurrentPage(int currentPage) {
currentPage_ = currentPage;
setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage));
}
std::string DescribeAlertsRequest::getAlertUuid() const {
return alertUuid_;
}
void DescribeAlertsRequest::setAlertUuid(const std::string &alertUuid) {
alertUuid_ = alertUuid;
setBodyParameter(std::string("AlertUuid"), alertUuid);
}

View File

@@ -0,0 +1,158 @@
/*
* 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/cloud-siem/model/DescribeAlertsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
DescribeAlertsResult::DescribeAlertsResult() :
ServiceResult()
{}
DescribeAlertsResult::DescribeAlertsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAlertsResult::~DescribeAlertsResult()
{}
void DescribeAlertsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allResponseDataNode = dataNode["ResponseData"]["ResponseDataItem"];
for (auto dataNodeResponseDataResponseDataItem : allResponseDataNode)
{
Data::ResponseDataItem responseDataItemObject;
if(!dataNodeResponseDataResponseDataItem["Id"].isNull())
responseDataItemObject.id = std::stol(dataNodeResponseDataResponseDataItem["Id"].asString());
if(!dataNodeResponseDataResponseDataItem["GmtCreate"].isNull())
responseDataItemObject.gmtCreate = dataNodeResponseDataResponseDataItem["GmtCreate"].asString();
if(!dataNodeResponseDataResponseDataItem["GmtModified"].isNull())
responseDataItemObject.gmtModified = dataNodeResponseDataResponseDataItem["GmtModified"].asString();
if(!dataNodeResponseDataResponseDataItem["MainUserId"].isNull())
responseDataItemObject.mainUserId = std::stol(dataNodeResponseDataResponseDataItem["MainUserId"].asString());
if(!dataNodeResponseDataResponseDataItem["IncidentUuid"].isNull())
responseDataItemObject.incidentUuid = dataNodeResponseDataResponseDataItem["IncidentUuid"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertUuid"].isNull())
responseDataItemObject.alertUuid = dataNodeResponseDataResponseDataItem["AlertUuid"].asString();
if(!dataNodeResponseDataResponseDataItem["LogTime"].isNull())
responseDataItemObject.logTime = dataNodeResponseDataResponseDataItem["LogTime"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertSrcProd"].isNull())
responseDataItemObject.alertSrcProd = dataNodeResponseDataResponseDataItem["AlertSrcProd"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertTitle"].isNull())
responseDataItemObject.alertTitle = dataNodeResponseDataResponseDataItem["AlertTitle"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertTitleEn"].isNull())
responseDataItemObject.alertTitleEn = dataNodeResponseDataResponseDataItem["AlertTitleEn"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertType"].isNull())
responseDataItemObject.alertType = dataNodeResponseDataResponseDataItem["AlertType"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertTypeEn"].isNull())
responseDataItemObject.alertTypeEn = dataNodeResponseDataResponseDataItem["AlertTypeEn"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertTypeCode"].isNull())
responseDataItemObject.alertTypeCode = dataNodeResponseDataResponseDataItem["AlertTypeCode"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertName"].isNull())
responseDataItemObject.alertName = dataNodeResponseDataResponseDataItem["AlertName"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertNameEn"].isNull())
responseDataItemObject.alertNameEn = dataNodeResponseDataResponseDataItem["AlertNameEn"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertNameCode"].isNull())
responseDataItemObject.alertNameCode = dataNodeResponseDataResponseDataItem["AlertNameCode"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertLevel"].isNull())
responseDataItemObject.alertLevel = dataNodeResponseDataResponseDataItem["AlertLevel"].asString();
if(!dataNodeResponseDataResponseDataItem["AssetList"].isNull())
responseDataItemObject.assetList = dataNodeResponseDataResponseDataItem["AssetList"].asString();
if(!dataNodeResponseDataResponseDataItem["OccurTime"].isNull())
responseDataItemObject.occurTime = dataNodeResponseDataResponseDataItem["OccurTime"].asString();
if(!dataNodeResponseDataResponseDataItem["StartTime"].isNull())
responseDataItemObject.startTime = dataNodeResponseDataResponseDataItem["StartTime"].asString();
if(!dataNodeResponseDataResponseDataItem["EndTime"].isNull())
responseDataItemObject.endTime = dataNodeResponseDataResponseDataItem["EndTime"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertSrcProdModule"].isNull())
responseDataItemObject.alertSrcProdModule = dataNodeResponseDataResponseDataItem["AlertSrcProdModule"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertDesc"].isNull())
responseDataItemObject.alertDesc = dataNodeResponseDataResponseDataItem["AlertDesc"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertDescEn"].isNull())
responseDataItemObject.alertDescEn = dataNodeResponseDataResponseDataItem["AlertDescEn"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertDescCode"].isNull())
responseDataItemObject.alertDescCode = dataNodeResponseDataResponseDataItem["AlertDescCode"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertDetail"].isNull())
responseDataItemObject.alertDetail = dataNodeResponseDataResponseDataItem["AlertDetail"].asString();
if(!dataNodeResponseDataResponseDataItem["LogUuid"].isNull())
responseDataItemObject.logUuid = dataNodeResponseDataResponseDataItem["LogUuid"].asString();
if(!dataNodeResponseDataResponseDataItem["AttCk"].isNull())
responseDataItemObject.attCk = dataNodeResponseDataResponseDataItem["AttCk"].asString();
if(!dataNodeResponseDataResponseDataItem["SubUserId"].isNull())
responseDataItemObject.subUserId = std::stol(dataNodeResponseDataResponseDataItem["SubUserId"].asString());
if(!dataNodeResponseDataResponseDataItem["CloudCode"].isNull())
responseDataItemObject.cloudCode = dataNodeResponseDataResponseDataItem["CloudCode"].asString();
if(!dataNodeResponseDataResponseDataItem["IsDefend"].isNull())
responseDataItemObject.isDefend = dataNodeResponseDataResponseDataItem["IsDefend"].asString();
auto allAlertInfoListNode = dataNodeResponseDataResponseDataItem["AlertInfoList"]["AlertInfoListItem"];
for (auto dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem : allAlertInfoListNode)
{
Data::ResponseDataItem::AlertInfoListItem alertInfoListObject;
if(!dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["Key"].isNull())
alertInfoListObject.key = dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["Key"].asString();
if(!dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["KeyName"].isNull())
alertInfoListObject.keyName = dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["KeyName"].asString();
if(!dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["Values"].isNull())
alertInfoListObject.values = dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["Values"].asString();
responseDataItemObject.alertInfoList.push_back(alertInfoListObject);
}
data_.responseData.push_back(responseDataItemObject);
}
auto pageInfoNode = dataNode["PageInfo"];
if(!pageInfoNode["CurrentPage"].isNull())
data_.pageInfo.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
if(!pageInfoNode["PageSize"].isNull())
data_.pageInfo.pageSize = std::stoi(pageInfoNode["PageSize"].asString());
if(!pageInfoNode["TotalCount"].isNull())
data_.pageInfo.totalCount = std::stol(pageInfoNode["TotalCount"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DescribeAlertsResult::getMessage()const
{
return message_;
}
DescribeAlertsResult::Data DescribeAlertsResult::getData()const
{
return data_;
}
int DescribeAlertsResult::getCode()const
{
return code_;
}
bool DescribeAlertsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,81 @@
/*
* 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/cloud-siem/model/DescribeAlertsWithEntityRequest.h>
using AlibabaCloud::Cloud_siem::Model::DescribeAlertsWithEntityRequest;
DescribeAlertsWithEntityRequest::DescribeAlertsWithEntityRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeAlertsWithEntity") {
setMethod(HttpRequest::Method::Post);
}
DescribeAlertsWithEntityRequest::~DescribeAlertsWithEntityRequest() {}
long DescribeAlertsWithEntityRequest::getEntityId() const {
return entityId_;
}
void DescribeAlertsWithEntityRequest::setEntityId(long entityId) {
entityId_ = entityId;
setBodyParameter(std::string("EntityId"), std::to_string(entityId));
}
std::string DescribeAlertsWithEntityRequest::getRegionId() const {
return regionId_;
}
void DescribeAlertsWithEntityRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
int DescribeAlertsWithEntityRequest::getPageSize() const {
return pageSize_;
}
void DescribeAlertsWithEntityRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string DescribeAlertsWithEntityRequest::getSophonTaskId() const {
return sophonTaskId_;
}
void DescribeAlertsWithEntityRequest::setSophonTaskId(const std::string &sophonTaskId) {
sophonTaskId_ = sophonTaskId;
setBodyParameter(std::string("SophonTaskId"), sophonTaskId);
}
int DescribeAlertsWithEntityRequest::getCurrentPage() const {
return currentPage_;
}
void DescribeAlertsWithEntityRequest::setCurrentPage(int currentPage) {
currentPage_ = currentPage;
setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage));
}
std::string DescribeAlertsWithEntityRequest::getIncidentUuid() const {
return incidentUuid_;
}
void DescribeAlertsWithEntityRequest::setIncidentUuid(const std::string &incidentUuid) {
incidentUuid_ = incidentUuid;
setBodyParameter(std::string("IncidentUuid"), incidentUuid);
}

View File

@@ -0,0 +1,158 @@
/*
* 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/cloud-siem/model/DescribeAlertsWithEntityResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
DescribeAlertsWithEntityResult::DescribeAlertsWithEntityResult() :
ServiceResult()
{}
DescribeAlertsWithEntityResult::DescribeAlertsWithEntityResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAlertsWithEntityResult::~DescribeAlertsWithEntityResult()
{}
void DescribeAlertsWithEntityResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allResponseDataNode = dataNode["ResponseData"]["ResponseDataItem"];
for (auto dataNodeResponseDataResponseDataItem : allResponseDataNode)
{
Data::ResponseDataItem responseDataItemObject;
if(!dataNodeResponseDataResponseDataItem["Id"].isNull())
responseDataItemObject.id = std::stol(dataNodeResponseDataResponseDataItem["Id"].asString());
if(!dataNodeResponseDataResponseDataItem["GmtCreate"].isNull())
responseDataItemObject.gmtCreate = dataNodeResponseDataResponseDataItem["GmtCreate"].asString();
if(!dataNodeResponseDataResponseDataItem["GmtModified"].isNull())
responseDataItemObject.gmtModified = dataNodeResponseDataResponseDataItem["GmtModified"].asString();
if(!dataNodeResponseDataResponseDataItem["MainUserId"].isNull())
responseDataItemObject.mainUserId = std::stol(dataNodeResponseDataResponseDataItem["MainUserId"].asString());
if(!dataNodeResponseDataResponseDataItem["IncidentUuid"].isNull())
responseDataItemObject.incidentUuid = dataNodeResponseDataResponseDataItem["IncidentUuid"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertUuid"].isNull())
responseDataItemObject.alertUuid = dataNodeResponseDataResponseDataItem["AlertUuid"].asString();
if(!dataNodeResponseDataResponseDataItem["LogTime"].isNull())
responseDataItemObject.logTime = dataNodeResponseDataResponseDataItem["LogTime"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertSrcProd"].isNull())
responseDataItemObject.alertSrcProd = dataNodeResponseDataResponseDataItem["AlertSrcProd"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertTitle"].isNull())
responseDataItemObject.alertTitle = dataNodeResponseDataResponseDataItem["AlertTitle"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertTitleEn"].isNull())
responseDataItemObject.alertTitleEn = dataNodeResponseDataResponseDataItem["AlertTitleEn"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertType"].isNull())
responseDataItemObject.alertType = dataNodeResponseDataResponseDataItem["AlertType"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertTypeEn"].isNull())
responseDataItemObject.alertTypeEn = dataNodeResponseDataResponseDataItem["AlertTypeEn"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertTypeCode"].isNull())
responseDataItemObject.alertTypeCode = dataNodeResponseDataResponseDataItem["AlertTypeCode"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertName"].isNull())
responseDataItemObject.alertName = dataNodeResponseDataResponseDataItem["AlertName"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertNameEn"].isNull())
responseDataItemObject.alertNameEn = dataNodeResponseDataResponseDataItem["AlertNameEn"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertNameCode"].isNull())
responseDataItemObject.alertNameCode = dataNodeResponseDataResponseDataItem["AlertNameCode"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertLevel"].isNull())
responseDataItemObject.alertLevel = dataNodeResponseDataResponseDataItem["AlertLevel"].asString();
if(!dataNodeResponseDataResponseDataItem["AssetList"].isNull())
responseDataItemObject.assetList = dataNodeResponseDataResponseDataItem["AssetList"].asString();
if(!dataNodeResponseDataResponseDataItem["OccurTime"].isNull())
responseDataItemObject.occurTime = dataNodeResponseDataResponseDataItem["OccurTime"].asString();
if(!dataNodeResponseDataResponseDataItem["StartTime"].isNull())
responseDataItemObject.startTime = dataNodeResponseDataResponseDataItem["StartTime"].asString();
if(!dataNodeResponseDataResponseDataItem["EndTime"].isNull())
responseDataItemObject.endTime = dataNodeResponseDataResponseDataItem["EndTime"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertSrcProdModule"].isNull())
responseDataItemObject.alertSrcProdModule = dataNodeResponseDataResponseDataItem["AlertSrcProdModule"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertDesc"].isNull())
responseDataItemObject.alertDesc = dataNodeResponseDataResponseDataItem["AlertDesc"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertDescEn"].isNull())
responseDataItemObject.alertDescEn = dataNodeResponseDataResponseDataItem["AlertDescEn"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertDescCode"].isNull())
responseDataItemObject.alertDescCode = dataNodeResponseDataResponseDataItem["AlertDescCode"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertDetail"].isNull())
responseDataItemObject.alertDetail = dataNodeResponseDataResponseDataItem["AlertDetail"].asString();
if(!dataNodeResponseDataResponseDataItem["LogUuid"].isNull())
responseDataItemObject.logUuid = dataNodeResponseDataResponseDataItem["LogUuid"].asString();
if(!dataNodeResponseDataResponseDataItem["AttCk"].isNull())
responseDataItemObject.attCk = dataNodeResponseDataResponseDataItem["AttCk"].asString();
if(!dataNodeResponseDataResponseDataItem["SubUserId"].isNull())
responseDataItemObject.subUserId = std::stol(dataNodeResponseDataResponseDataItem["SubUserId"].asString());
if(!dataNodeResponseDataResponseDataItem["CloudCode"].isNull())
responseDataItemObject.cloudCode = dataNodeResponseDataResponseDataItem["CloudCode"].asString();
if(!dataNodeResponseDataResponseDataItem["IsDefend"].isNull())
responseDataItemObject.isDefend = dataNodeResponseDataResponseDataItem["IsDefend"].asString();
auto allAlertInfoListNode = dataNodeResponseDataResponseDataItem["AlertInfoList"]["AlertInfoListItem"];
for (auto dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem : allAlertInfoListNode)
{
Data::ResponseDataItem::AlertInfoListItem alertInfoListObject;
if(!dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["Key"].isNull())
alertInfoListObject.key = dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["Key"].asString();
if(!dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["KeyName"].isNull())
alertInfoListObject.keyName = dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["KeyName"].asString();
if(!dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["Values"].isNull())
alertInfoListObject.values = dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["Values"].asString();
responseDataItemObject.alertInfoList.push_back(alertInfoListObject);
}
data_.responseData.push_back(responseDataItemObject);
}
auto pageInfoNode = dataNode["PageInfo"];
if(!pageInfoNode["CurrentPage"].isNull())
data_.pageInfo.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
if(!pageInfoNode["PageSize"].isNull())
data_.pageInfo.pageSize = std::stoi(pageInfoNode["PageSize"].asString());
if(!pageInfoNode["TotalCount"].isNull())
data_.pageInfo.totalCount = std::stol(pageInfoNode["TotalCount"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DescribeAlertsWithEntityResult::getMessage()const
{
return message_;
}
DescribeAlertsWithEntityResult::Data DescribeAlertsWithEntityResult::getData()const
{
return data_;
}
int DescribeAlertsWithEntityResult::getCode()const
{
return code_;
}
bool DescribeAlertsWithEntityResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,107 @@
/*
* 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/cloud-siem/model/DescribeAlertsWithEventRequest.h>
using AlibabaCloud::Cloud_siem::Model::DescribeAlertsWithEventRequest;
DescribeAlertsWithEventRequest::DescribeAlertsWithEventRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeAlertsWithEvent") {
setMethod(HttpRequest::Method::Post);
}
DescribeAlertsWithEventRequest::~DescribeAlertsWithEventRequest() {}
std::string DescribeAlertsWithEventRequest::getSource() const {
return source_;
}
void DescribeAlertsWithEventRequest::setSource(const std::string &source) {
source_ = source;
setBodyParameter(std::string("Source"), source);
}
std::string DescribeAlertsWithEventRequest::getIsDefend() const {
return isDefend_;
}
void DescribeAlertsWithEventRequest::setIsDefend(const std::string &isDefend) {
isDefend_ = isDefend;
setBodyParameter(std::string("IsDefend"), isDefend);
}
long DescribeAlertsWithEventRequest::getSubUserId() const {
return subUserId_;
}
void DescribeAlertsWithEventRequest::setSubUserId(long subUserId) {
subUserId_ = subUserId;
setBodyParameter(std::string("SubUserId"), std::to_string(subUserId));
}
std::string DescribeAlertsWithEventRequest::getRegionId() const {
return regionId_;
}
void DescribeAlertsWithEventRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
int DescribeAlertsWithEventRequest::getPageSize() const {
return pageSize_;
}
void DescribeAlertsWithEventRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::vector<std::string> DescribeAlertsWithEventRequest::getLevel() const {
return level_;
}
void DescribeAlertsWithEventRequest::setLevel(const std::vector<std::string> &level) {
level_ = level;
}
std::string DescribeAlertsWithEventRequest::getAlertTitle() const {
return alertTitle_;
}
void DescribeAlertsWithEventRequest::setAlertTitle(const std::string &alertTitle) {
alertTitle_ = alertTitle;
setBodyParameter(std::string("AlertTitle"), alertTitle);
}
int DescribeAlertsWithEventRequest::getCurrentPage() const {
return currentPage_;
}
void DescribeAlertsWithEventRequest::setCurrentPage(int currentPage) {
currentPage_ = currentPage;
setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage));
}
std::string DescribeAlertsWithEventRequest::getIncidentUuid() const {
return incidentUuid_;
}
void DescribeAlertsWithEventRequest::setIncidentUuid(const std::string &incidentUuid) {
incidentUuid_ = incidentUuid;
setBodyParameter(std::string("IncidentUuid"), incidentUuid);
}

View File

@@ -0,0 +1,158 @@
/*
* 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/cloud-siem/model/DescribeAlertsWithEventResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
DescribeAlertsWithEventResult::DescribeAlertsWithEventResult() :
ServiceResult()
{}
DescribeAlertsWithEventResult::DescribeAlertsWithEventResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAlertsWithEventResult::~DescribeAlertsWithEventResult()
{}
void DescribeAlertsWithEventResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allResponseDataNode = dataNode["ResponseData"]["ResponseDataItem"];
for (auto dataNodeResponseDataResponseDataItem : allResponseDataNode)
{
Data::ResponseDataItem responseDataItemObject;
if(!dataNodeResponseDataResponseDataItem["Id"].isNull())
responseDataItemObject.id = std::stol(dataNodeResponseDataResponseDataItem["Id"].asString());
if(!dataNodeResponseDataResponseDataItem["GmtCreate"].isNull())
responseDataItemObject.gmtCreate = dataNodeResponseDataResponseDataItem["GmtCreate"].asString();
if(!dataNodeResponseDataResponseDataItem["GmtModified"].isNull())
responseDataItemObject.gmtModified = dataNodeResponseDataResponseDataItem["GmtModified"].asString();
if(!dataNodeResponseDataResponseDataItem["MainUserId"].isNull())
responseDataItemObject.mainUserId = std::stol(dataNodeResponseDataResponseDataItem["MainUserId"].asString());
if(!dataNodeResponseDataResponseDataItem["IncidentUuid"].isNull())
responseDataItemObject.incidentUuid = dataNodeResponseDataResponseDataItem["IncidentUuid"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertUuid"].isNull())
responseDataItemObject.alertUuid = dataNodeResponseDataResponseDataItem["AlertUuid"].asString();
if(!dataNodeResponseDataResponseDataItem["LogTime"].isNull())
responseDataItemObject.logTime = dataNodeResponseDataResponseDataItem["LogTime"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertSrcProd"].isNull())
responseDataItemObject.alertSrcProd = dataNodeResponseDataResponseDataItem["AlertSrcProd"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertTitle"].isNull())
responseDataItemObject.alertTitle = dataNodeResponseDataResponseDataItem["AlertTitle"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertTitleEn"].isNull())
responseDataItemObject.alertTitleEn = dataNodeResponseDataResponseDataItem["AlertTitleEn"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertType"].isNull())
responseDataItemObject.alertType = dataNodeResponseDataResponseDataItem["AlertType"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertTypeEn"].isNull())
responseDataItemObject.alertTypeEn = dataNodeResponseDataResponseDataItem["AlertTypeEn"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertTypeCode"].isNull())
responseDataItemObject.alertTypeCode = dataNodeResponseDataResponseDataItem["AlertTypeCode"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertName"].isNull())
responseDataItemObject.alertName = dataNodeResponseDataResponseDataItem["AlertName"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertNameEn"].isNull())
responseDataItemObject.alertNameEn = dataNodeResponseDataResponseDataItem["AlertNameEn"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertNameCode"].isNull())
responseDataItemObject.alertNameCode = dataNodeResponseDataResponseDataItem["AlertNameCode"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertLevel"].isNull())
responseDataItemObject.alertLevel = dataNodeResponseDataResponseDataItem["AlertLevel"].asString();
if(!dataNodeResponseDataResponseDataItem["AssetList"].isNull())
responseDataItemObject.assetList = dataNodeResponseDataResponseDataItem["AssetList"].asString();
if(!dataNodeResponseDataResponseDataItem["OccurTime"].isNull())
responseDataItemObject.occurTime = dataNodeResponseDataResponseDataItem["OccurTime"].asString();
if(!dataNodeResponseDataResponseDataItem["StartTime"].isNull())
responseDataItemObject.startTime = dataNodeResponseDataResponseDataItem["StartTime"].asString();
if(!dataNodeResponseDataResponseDataItem["EndTime"].isNull())
responseDataItemObject.endTime = dataNodeResponseDataResponseDataItem["EndTime"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertSrcProdModule"].isNull())
responseDataItemObject.alertSrcProdModule = dataNodeResponseDataResponseDataItem["AlertSrcProdModule"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertDesc"].isNull())
responseDataItemObject.alertDesc = dataNodeResponseDataResponseDataItem["AlertDesc"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertDescEn"].isNull())
responseDataItemObject.alertDescEn = dataNodeResponseDataResponseDataItem["AlertDescEn"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertDescCode"].isNull())
responseDataItemObject.alertDescCode = dataNodeResponseDataResponseDataItem["AlertDescCode"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertDetail"].isNull())
responseDataItemObject.alertDetail = dataNodeResponseDataResponseDataItem["AlertDetail"].asString();
if(!dataNodeResponseDataResponseDataItem["LogUuid"].isNull())
responseDataItemObject.logUuid = dataNodeResponseDataResponseDataItem["LogUuid"].asString();
if(!dataNodeResponseDataResponseDataItem["AttCk"].isNull())
responseDataItemObject.attCk = dataNodeResponseDataResponseDataItem["AttCk"].asString();
if(!dataNodeResponseDataResponseDataItem["SubUserId"].isNull())
responseDataItemObject.subUserId = std::stol(dataNodeResponseDataResponseDataItem["SubUserId"].asString());
if(!dataNodeResponseDataResponseDataItem["CloudCode"].isNull())
responseDataItemObject.cloudCode = dataNodeResponseDataResponseDataItem["CloudCode"].asString();
if(!dataNodeResponseDataResponseDataItem["IsDefend"].isNull())
responseDataItemObject.isDefend = dataNodeResponseDataResponseDataItem["IsDefend"].asString();
auto allAlertInfoListNode = dataNodeResponseDataResponseDataItem["AlertInfoList"]["AlertInfoListItem"];
for (auto dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem : allAlertInfoListNode)
{
Data::ResponseDataItem::AlertInfoListItem alertInfoListObject;
if(!dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["Key"].isNull())
alertInfoListObject.key = dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["Key"].asString();
if(!dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["KeyName"].isNull())
alertInfoListObject.keyName = dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["KeyName"].asString();
if(!dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["Values"].isNull())
alertInfoListObject.values = dataNodeResponseDataResponseDataItemAlertInfoListAlertInfoListItem["Values"].asString();
responseDataItemObject.alertInfoList.push_back(alertInfoListObject);
}
data_.responseData.push_back(responseDataItemObject);
}
auto pageInfoNode = dataNode["PageInfo"];
if(!pageInfoNode["CurrentPage"].isNull())
data_.pageInfo.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
if(!pageInfoNode["PageSize"].isNull())
data_.pageInfo.pageSize = std::stoi(pageInfoNode["PageSize"].asString());
if(!pageInfoNode["TotalCount"].isNull())
data_.pageInfo.totalCount = std::stol(pageInfoNode["TotalCount"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DescribeAlertsWithEventResult::getMessage()const
{
return message_;
}
DescribeAlertsWithEventResult::Data DescribeAlertsWithEventResult::getData()const
{
return data_;
}
int DescribeAlertsWithEventResult::getCode()const
{
return code_;
}
bool DescribeAlertsWithEventResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/cloud-siem/model/DescribeAuthRequest.h>
using AlibabaCloud::Cloud_siem::Model::DescribeAuthRequest;
DescribeAuthRequest::DescribeAuthRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeAuth") {
setMethod(HttpRequest::Method::Post);
}
DescribeAuthRequest::~DescribeAuthRequest() {}
std::string DescribeAuthRequest::getRegionId() const {
return regionId_;
}
void DescribeAuthRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

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/cloud-siem/model/DescribeAuthResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
DescribeAuthResult::DescribeAuthResult() :
ServiceResult()
{}
DescribeAuthResult::DescribeAuthResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAuthResult::~DescribeAuthResult()
{}
void DescribeAuthResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
bool DescribeAuthResult::getData()const
{
return data_;
}

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.
*/
#include <alibabacloud/cloud-siem/model/DescribeCsImportedProdStatusByUserRequest.h>
using AlibabaCloud::Cloud_siem::Model::DescribeCsImportedProdStatusByUserRequest;
DescribeCsImportedProdStatusByUserRequest::DescribeCsImportedProdStatusByUserRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeCsImportedProdStatusByUser") {
setMethod(HttpRequest::Method::Post);
}
DescribeCsImportedProdStatusByUserRequest::~DescribeCsImportedProdStatusByUserRequest() {}
long DescribeCsImportedProdStatusByUserRequest::getUserId() const {
return userId_;
}
void DescribeCsImportedProdStatusByUserRequest::setUserId(long userId) {
userId_ = userId;
setBodyParameter(std::string("UserId"), std::to_string(userId));
}
std::string DescribeCsImportedProdStatusByUserRequest::getRegionId() const {
return regionId_;
}
void DescribeCsImportedProdStatusByUserRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string DescribeCsImportedProdStatusByUserRequest::getSourceLogProd() const {
return sourceLogProd_;
}
void DescribeCsImportedProdStatusByUserRequest::setSourceLogProd(const std::string &sourceLogProd) {
sourceLogProd_ = sourceLogProd;
setBodyParameter(std::string("SourceLogProd"), sourceLogProd);
}

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/cloud-siem/model/DescribeCsImportedProdStatusByUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
DescribeCsImportedProdStatusByUserResult::DescribeCsImportedProdStatusByUserResult() :
ServiceResult()
{}
DescribeCsImportedProdStatusByUserResult::DescribeCsImportedProdStatusByUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCsImportedProdStatusByUserResult::~DescribeCsImportedProdStatusByUserResult()
{}
void DescribeCsImportedProdStatusByUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
bool DescribeCsImportedProdStatusByUserResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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/cloud-siem/model/DescribeDataSourceInstanceRequest.h>
using AlibabaCloud::Cloud_siem::Model::DescribeDataSourceInstanceRequest;
DescribeDataSourceInstanceRequest::DescribeDataSourceInstanceRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeDataSourceInstance") {
setMethod(HttpRequest::Method::Post);
}
DescribeDataSourceInstanceRequest::~DescribeDataSourceInstanceRequest() {}
std::string DescribeDataSourceInstanceRequest::getCloudCode() const {
return cloudCode_;
}
void DescribeDataSourceInstanceRequest::setCloudCode(const std::string &cloudCode) {
cloudCode_ = cloudCode;
setBodyParameter(std::string("CloudCode"), cloudCode);
}
std::string DescribeDataSourceInstanceRequest::getAccountId() const {
return accountId_;
}
void DescribeDataSourceInstanceRequest::setAccountId(const std::string &accountId) {
accountId_ = accountId;
setBodyParameter(std::string("AccountId"), accountId);
}
std::string DescribeDataSourceInstanceRequest::getRegionId() const {
return regionId_;
}
void DescribeDataSourceInstanceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string DescribeDataSourceInstanceRequest::getDataSourceInstanceId() const {
return dataSourceInstanceId_;
}
void DescribeDataSourceInstanceRequest::setDataSourceInstanceId(const std::string &dataSourceInstanceId) {
dataSourceInstanceId_ = dataSourceInstanceId;
setBodyParameter(std::string("DataSourceInstanceId"), dataSourceInstanceId);
}

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.
*/
#include <alibabacloud/cloud-siem/model/DescribeDataSourceInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
DescribeDataSourceInstanceResult::DescribeDataSourceInstanceResult() :
ServiceResult()
{}
DescribeDataSourceInstanceResult::DescribeDataSourceInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDataSourceInstanceResult::~DescribeDataSourceInstanceResult()
{}
void DescribeDataSourceInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["DataSourceInstanceId"].isNull())
data_.dataSourceInstanceId = dataNode["DataSourceInstanceId"].asString();
if(!dataNode["AccountId"].isNull())
data_.accountId = dataNode["AccountId"].asString();
if(!dataNode["CloudCode"].isNull())
data_.cloudCode = dataNode["CloudCode"].asString();
auto allDataSourceInstanceParamsNode = dataNode["DataSourceInstanceParams"]["DataSourceInstanceParam"];
for (auto dataNodeDataSourceInstanceParamsDataSourceInstanceParam : allDataSourceInstanceParamsNode)
{
Data::DataSourceInstanceParam dataSourceInstanceParamObject;
if(!dataNodeDataSourceInstanceParamsDataSourceInstanceParam["ParaCode"].isNull())
dataSourceInstanceParamObject.paraCode = dataNodeDataSourceInstanceParamsDataSourceInstanceParam["ParaCode"].asString();
if(!dataNodeDataSourceInstanceParamsDataSourceInstanceParam["ParaValue"].isNull())
dataSourceInstanceParamObject.paraValue = dataNodeDataSourceInstanceParamsDataSourceInstanceParam["ParaValue"].asString();
data_.dataSourceInstanceParams.push_back(dataSourceInstanceParamObject);
}
}
DescribeDataSourceInstanceResult::Data DescribeDataSourceInstanceResult::getData()const
{
return data_;
}

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.
*/
#include <alibabacloud/cloud-siem/model/DescribeDataSourceParametersRequest.h>
using AlibabaCloud::Cloud_siem::Model::DescribeDataSourceParametersRequest;
DescribeDataSourceParametersRequest::DescribeDataSourceParametersRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeDataSourceParameters") {
setMethod(HttpRequest::Method::Post);
}
DescribeDataSourceParametersRequest::~DescribeDataSourceParametersRequest() {}
std::string DescribeDataSourceParametersRequest::getDataSourceType() const {
return dataSourceType_;
}
void DescribeDataSourceParametersRequest::setDataSourceType(const std::string &dataSourceType) {
dataSourceType_ = dataSourceType;
setBodyParameter(std::string("DataSourceType"), dataSourceType);
}
std::string DescribeDataSourceParametersRequest::getCloudCode() const {
return cloudCode_;
}
void DescribeDataSourceParametersRequest::setCloudCode(const std::string &cloudCode) {
cloudCode_ = cloudCode;
setBodyParameter(std::string("CloudCode"), cloudCode);
}
std::string DescribeDataSourceParametersRequest::getRegionId() const {
return regionId_;
}
void DescribeDataSourceParametersRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

View File

@@ -0,0 +1,91 @@
/*
* 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/cloud-siem/model/DescribeDataSourceParametersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
DescribeDataSourceParametersResult::DescribeDataSourceParametersResult() :
ServiceResult()
{}
DescribeDataSourceParametersResult::DescribeDataSourceParametersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDataSourceParametersResult::~DescribeDataSourceParametersResult()
{}
void DescribeDataSourceParametersResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["DataItem"];
for (auto valueDataDataItem : allDataNode)
{
DataItem dataObject;
if(!valueDataDataItem["DataSourceType"].isNull())
dataObject.dataSourceType = valueDataDataItem["DataSourceType"].asString();
if(!valueDataDataItem["ParaLevel"].isNull())
dataObject.paraLevel = std::stoi(valueDataDataItem["ParaLevel"].asString());
if(!valueDataDataItem["ParaCode"].isNull())
dataObject.paraCode = valueDataDataItem["ParaCode"].asString();
if(!valueDataDataItem["ParaName"].isNull())
dataObject.paraName = valueDataDataItem["ParaName"].asString();
if(!valueDataDataItem["ParaType"].isNull())
dataObject.paraType = valueDataDataItem["ParaType"].asString();
if(!valueDataDataItem["Required"].isNull())
dataObject.required = std::stoi(valueDataDataItem["Required"].asString());
if(!valueDataDataItem["FormatCheck"].isNull())
dataObject.formatCheck = valueDataDataItem["FormatCheck"].asString();
if(!valueDataDataItem["Title"].isNull())
dataObject.title = valueDataDataItem["Title"].asString();
if(!valueDataDataItem["Hit"].isNull())
dataObject.hit = valueDataDataItem["Hit"].asString();
if(!valueDataDataItem["DefaultValue"].isNull())
dataObject.defaultValue = valueDataDataItem["DefaultValue"].asString();
if(!valueDataDataItem["Disabled"].isNull())
dataObject.disabled = valueDataDataItem["Disabled"].asString() == "true";
if(!valueDataDataItem["CanEditted"].isNull())
dataObject.canEditted = std::stoi(valueDataDataItem["CanEditted"].asString());
if(!valueDataDataItem["CloudCode"].isNull())
dataObject.cloudCode = valueDataDataItem["CloudCode"].asString();
auto allParamValueNode = valueDataDataItem["ParamValue"]["ParamValueItem"];
for (auto valueDataDataItemParamValueParamValueItem : allParamValueNode)
{
DataItem::ParamValueItem paramValueObject;
if(!valueDataDataItemParamValueParamValueItem["Label"].isNull())
paramValueObject.label = valueDataDataItemParamValueParamValueItem["Label"].asString();
if(!valueDataDataItemParamValueParamValueItem["Value"].isNull())
paramValueObject.value = valueDataDataItemParamValueParamValueItem["Value"].asString();
dataObject.paramValue.push_back(paramValueObject);
}
data_.push_back(dataObject);
}
}
std::vector<DescribeDataSourceParametersResult::DataItem> DescribeDataSourceParametersResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/cloud-siem/model/DescribeImportedLogCountRequest.h>
using AlibabaCloud::Cloud_siem::Model::DescribeImportedLogCountRequest;
DescribeImportedLogCountRequest::DescribeImportedLogCountRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeImportedLogCount") {
setMethod(HttpRequest::Method::Post);
}
DescribeImportedLogCountRequest::~DescribeImportedLogCountRequest() {}
std::string DescribeImportedLogCountRequest::getRegionId() const {
return regionId_;
}
void DescribeImportedLogCountRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

View File

@@ -0,0 +1,56 @@
/*
* 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/cloud-siem/model/DescribeImportedLogCountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
DescribeImportedLogCountResult::DescribeImportedLogCountResult() :
ServiceResult()
{}
DescribeImportedLogCountResult::DescribeImportedLogCountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeImportedLogCountResult::~DescribeImportedLogCountResult()
{}
void DescribeImportedLogCountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["TotalLogCount"].isNull())
data_.totalLogCount = std::stoi(dataNode["TotalLogCount"].asString());
if(!dataNode["ImportedLogCount"].isNull())
data_.importedLogCount = std::stoi(dataNode["ImportedLogCount"].asString());
if(!dataNode["UnImportedLogCount"].isNull())
data_.unImportedLogCount = std::stoi(dataNode["UnImportedLogCount"].asString());
}
DescribeImportedLogCountResult::Data DescribeImportedLogCountResult::getData()const
{
return data_;
}

View File

@@ -54,53 +54,11 @@ void DescribeLogStoreResult::parse(const std::string &payload)
data_.maxSplitShard = std::stoi(dataNode["MaxSplitShard"].asString());
if(!dataNode["AppendMeta"].isNull())
data_.appendMeta = dataNode["AppendMeta"].asString() == "true";
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["DyCode"].isNull())
dyCode_ = value["DyCode"].asString();
if(!value["DyMessage"].isNull())
dyMessage_ = value["DyMessage"].asString();
}
std::string DescribeLogStoreResult::getDyCode()const
{
return dyCode_;
}
std::string DescribeLogStoreResult::getMessage()const
{
return message_;
}
DescribeLogStoreResult::Data DescribeLogStoreResult::getData()const
{
return data_;
}
int DescribeLogStoreResult::getCode()const
{
return code_;
}
std::string DescribeLogStoreResult::getDyMessage()const
{
return dyMessage_;
}
bool DescribeLogStoreResult::getSuccess()const
{
return success_;
}
std::string DescribeLogStoreResult::getErrCode()const
{
return errCode_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/cloud-siem/model/DescribeProdCountRequest.h>
using AlibabaCloud::Cloud_siem::Model::DescribeProdCountRequest;
DescribeProdCountRequest::DescribeProdCountRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeProdCount") {
setMethod(HttpRequest::Method::Post);
}
DescribeProdCountRequest::~DescribeProdCountRequest() {}
std::string DescribeProdCountRequest::getRegionId() const {
return regionId_;
}
void DescribeProdCountRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

View File

@@ -0,0 +1,56 @@
/*
* 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/cloud-siem/model/DescribeProdCountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
DescribeProdCountResult::DescribeProdCountResult() :
ServiceResult()
{}
DescribeProdCountResult::DescribeProdCountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeProdCountResult::~DescribeProdCountResult()
{}
void DescribeProdCountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["AliyunProdCount"].isNull())
data_.aliyunProdCount = std::stoi(dataNode["AliyunProdCount"].asString());
if(!dataNode["HcloudProdCount"].isNull())
data_.hcloudProdCount = std::stoi(dataNode["HcloudProdCount"].asString());
if(!dataNode["QcloudProdCount"].isNull())
data_.qcloudProdCount = std::stoi(dataNode["QcloudProdCount"].asString());
}
DescribeProdCountResult::Data DescribeProdCountResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/cloud-siem/model/DescribeServiceStatusRequest.h>
using AlibabaCloud::Cloud_siem::Model::DescribeServiceStatusRequest;
DescribeServiceStatusRequest::DescribeServiceStatusRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeServiceStatus") {
setMethod(HttpRequest::Method::Post);
}
DescribeServiceStatusRequest::~DescribeServiceStatusRequest() {}
std::string DescribeServiceStatusRequest::getRegionId() const {
return regionId_;
}
void DescribeServiceStatusRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

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/cloud-siem/model/DescribeServiceStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
DescribeServiceStatusResult::DescribeServiceStatusResult() :
ServiceResult()
{}
DescribeServiceStatusResult::DescribeServiceStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeServiceStatusResult::~DescribeServiceStatusResult()
{}
void DescribeServiceStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
bool DescribeServiceStatusResult::getData()const
{
return data_;
}

View File

@@ -41,53 +41,11 @@ void DescribeStorageResult::parse(const std::string &payload)
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["DyCode"].isNull())
dyCode_ = value["DyCode"].asString();
if(!value["DyMessage"].isNull())
dyMessage_ = value["DyMessage"].asString();
}
std::string DescribeStorageResult::getDyCode()const
{
return dyCode_;
}
std::string DescribeStorageResult::getMessage()const
{
return message_;
}
bool DescribeStorageResult::getData()const
{
return data_;
}
int DescribeStorageResult::getCode()const
{
return code_;
}
std::string DescribeStorageResult::getDyMessage()const
{
return dyMessage_;
}
bool DescribeStorageResult::getSuccess()const
{
return success_;
}
std::string DescribeStorageResult::getErrCode()const
{
return errCode_;
}

View File

@@ -0,0 +1,45 @@
/*
* 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/cloud-siem/model/DescribeUserBuyStatusRequest.h>
using AlibabaCloud::Cloud_siem::Model::DescribeUserBuyStatusRequest;
DescribeUserBuyStatusRequest::DescribeUserBuyStatusRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeUserBuyStatus") {
setMethod(HttpRequest::Method::Post);
}
DescribeUserBuyStatusRequest::~DescribeUserBuyStatusRequest() {}
long DescribeUserBuyStatusRequest::getSubUserId() const {
return subUserId_;
}
void DescribeUserBuyStatusRequest::setSubUserId(long subUserId) {
subUserId_ = subUserId;
setBodyParameter(std::string("SubUserId"), std::to_string(subUserId));
}
std::string DescribeUserBuyStatusRequest::getRegionId() const {
return regionId_;
}
void DescribeUserBuyStatusRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

View File

@@ -0,0 +1,72 @@
/*
* 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/cloud-siem/model/DescribeUserBuyStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
DescribeUserBuyStatusResult::DescribeUserBuyStatusResult() :
ServiceResult()
{}
DescribeUserBuyStatusResult::DescribeUserBuyStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeUserBuyStatusResult::~DescribeUserBuyStatusResult()
{}
void DescribeUserBuyStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["MasterUserId"].isNull())
data_.masterUserId = std::stol(dataNode["MasterUserId"].asString());
if(!dataNode["MasterUserName"].isNull())
data_.masterUserName = dataNode["MasterUserName"].asString();
if(!dataNode["MainUserId"].isNull())
data_.mainUserId = std::stol(dataNode["MainUserId"].asString());
if(!dataNode["MainUserName"].isNull())
data_.mainUserName = dataNode["MainUserName"].asString();
if(!dataNode["SubUserId"].isNull())
data_.subUserId = std::stol(dataNode["SubUserId"].asString());
if(!dataNode["SubUserName"].isNull())
data_.subUserName = dataNode["SubUserName"].asString();
if(!dataNode["Capacity"].isNull())
data_.capacity = std::stoi(dataNode["Capacity"].asString());
if(!dataNode["SasInstanceId"].isNull())
data_.sasInstanceId = dataNode["SasInstanceId"].asString();
if(!dataNode["CanBuy"].isNull())
data_.canBuy = dataNode["CanBuy"].asString() == "true";
if(!dataNode["EndTime"].isNull())
data_.endTime = std::stol(dataNode["EndTime"].asString());
if(!dataNode["DurationDays"].isNull())
data_.durationDays = std::stol(dataNode["DurationDays"].asString());
}
DescribeUserBuyStatusResult::Data DescribeUserBuyStatusResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,81 @@
/*
* 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/cloud-siem/model/DescribeWhiteRuleListRequest.h>
using AlibabaCloud::Cloud_siem::Model::DescribeWhiteRuleListRequest;
DescribeWhiteRuleListRequest::DescribeWhiteRuleListRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "DescribeWhiteRuleList") {
setMethod(HttpRequest::Method::Post);
}
DescribeWhiteRuleListRequest::~DescribeWhiteRuleListRequest() {}
std::string DescribeWhiteRuleListRequest::getAlertName() const {
return alertName_;
}
void DescribeWhiteRuleListRequest::setAlertName(const std::string &alertName) {
alertName_ = alertName;
setBodyParameter(std::string("AlertName"), alertName);
}
std::string DescribeWhiteRuleListRequest::getRegionId() const {
return regionId_;
}
void DescribeWhiteRuleListRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
int DescribeWhiteRuleListRequest::getPageSize() const {
return pageSize_;
}
void DescribeWhiteRuleListRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
}
int DescribeWhiteRuleListRequest::getCurrentPage() const {
return currentPage_;
}
void DescribeWhiteRuleListRequest::setCurrentPage(int currentPage) {
currentPage_ = currentPage;
setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage));
}
std::string DescribeWhiteRuleListRequest::getAlertType() const {
return alertType_;
}
void DescribeWhiteRuleListRequest::setAlertType(const std::string &alertType) {
alertType_ = alertType;
setBodyParameter(std::string("AlertType"), alertType);
}
std::string DescribeWhiteRuleListRequest::getIncidentUuid() const {
return incidentUuid_;
}
void DescribeWhiteRuleListRequest::setIncidentUuid(const std::string &incidentUuid) {
incidentUuid_ = incidentUuid;
setBodyParameter(std::string("IncidentUuid"), incidentUuid);
}

View File

@@ -0,0 +1,145 @@
/*
* 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/cloud-siem/model/DescribeWhiteRuleListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
DescribeWhiteRuleListResult::DescribeWhiteRuleListResult() :
ServiceResult()
{}
DescribeWhiteRuleListResult::DescribeWhiteRuleListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeWhiteRuleListResult::~DescribeWhiteRuleListResult()
{}
void DescribeWhiteRuleListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allResponseDataNode = dataNode["ResponseData"]["ResponseDataItem"];
for (auto dataNodeResponseDataResponseDataItem : allResponseDataNode)
{
Data::ResponseDataItem responseDataItemObject;
if(!dataNodeResponseDataResponseDataItem["Id"].isNull())
responseDataItemObject.id = std::stol(dataNodeResponseDataResponseDataItem["Id"].asString());
if(!dataNodeResponseDataResponseDataItem["GmtCreate"].isNull())
responseDataItemObject.gmtCreate = dataNodeResponseDataResponseDataItem["GmtCreate"].asString();
if(!dataNodeResponseDataResponseDataItem["GmtModified"].isNull())
responseDataItemObject.gmtModified = dataNodeResponseDataResponseDataItem["GmtModified"].asString();
if(!dataNodeResponseDataResponseDataItem["Aliuid"].isNull())
responseDataItemObject.aliuid = std::stol(dataNodeResponseDataResponseDataItem["Aliuid"].asString());
if(!dataNodeResponseDataResponseDataItem["SubAliuid"].isNull())
responseDataItemObject.subAliuid = std::stol(dataNodeResponseDataResponseDataItem["SubAliuid"].asString());
if(!dataNodeResponseDataResponseDataItem["AlertType"].isNull())
responseDataItemObject.alertType = dataNodeResponseDataResponseDataItem["AlertType"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertTypeId"].isNull())
responseDataItemObject.alertTypeId = dataNodeResponseDataResponseDataItem["AlertTypeId"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertName"].isNull())
responseDataItemObject.alertName = dataNodeResponseDataResponseDataItem["AlertName"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertNameId"].isNull())
responseDataItemObject.alertNameId = dataNodeResponseDataResponseDataItem["AlertNameId"].asString();
if(!dataNodeResponseDataResponseDataItem["Status"].isNull())
responseDataItemObject.status = std::stoi(dataNodeResponseDataResponseDataItem["Status"].asString());
if(!dataNodeResponseDataResponseDataItem["IncidentUuid"].isNull())
responseDataItemObject.incidentUuid = dataNodeResponseDataResponseDataItem["IncidentUuid"].asString();
if(!dataNodeResponseDataResponseDataItem["AlertUuid"].isNull())
responseDataItemObject.alertUuid = dataNodeResponseDataResponseDataItem["AlertUuid"].asString();
auto expressionNode = value["Expression"];
if(!expressionNode["Logic"].isNull())
responseDataItemObject.expression.logic = expressionNode["Logic"].asString();
auto allConditionsNode = expressionNode["Conditions"]["Condition"];
for (auto expressionNodeConditionsCondition : allConditionsNode)
{
Data::ResponseDataItem::Expression::Condition conditionObject;
if(!expressionNodeConditionsCondition["ItemId"].isNull())
conditionObject.itemId = std::stoi(expressionNodeConditionsCondition["ItemId"].asString());
if(!expressionNodeConditionsCondition["Operator"].isNull())
conditionObject._operator = expressionNodeConditionsCondition["Operator"].asString();
if(!expressionNodeConditionsCondition["IsNot"].isNull())
conditionObject.isNot = expressionNodeConditionsCondition["IsNot"].asString() == "true";
auto leftNode = value["Left"];
if(!leftNode["Value"].isNull())
conditionObject.left.value = leftNode["Value"].asString();
if(!leftNode["IsVar"].isNull())
conditionObject.left.isVar = leftNode["IsVar"].asString() == "true";
if(!leftNode["Type"].isNull())
conditionObject.left.type = leftNode["Type"].asString();
if(!leftNode["Modifier"].isNull())
conditionObject.left.modifier = leftNode["Modifier"].asString();
if(!leftNode["ModifierParam"].isNull())
conditionObject.left.modifierParam = leftNode["ModifierParam"].asString();
auto rightNode = value["Right"];
if(!rightNode["Value"].isNull())
conditionObject.right.value = rightNode["Value"].asString();
if(!rightNode["IsVar"].isNull())
conditionObject.right.isVar = rightNode["IsVar"].asString() == "true";
if(!rightNode["Type"].isNull())
conditionObject.right.type = rightNode["Type"].asString();
if(!rightNode["Modifier"].isNull())
conditionObject.right.modifier = rightNode["Modifier"].asString();
if(!rightNode["ModifierParam"].isNull())
conditionObject.right.modifierParam = rightNode["ModifierParam"].asString();
responseDataItemObject.expression.conditions.push_back(conditionObject);
}
data_.responseData.push_back(responseDataItemObject);
}
auto pageInfoNode = dataNode["PageInfo"];
if(!pageInfoNode["CurrentPage"].isNull())
data_.pageInfo.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
if(!pageInfoNode["PageSize"].isNull())
data_.pageInfo.pageSize = std::stoi(pageInfoNode["PageSize"].asString());
if(!pageInfoNode["TotalCount"].isNull())
data_.pageInfo.totalCount = std::stol(pageInfoNode["TotalCount"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DescribeWhiteRuleListResult::getMessage()const
{
return message_;
}
DescribeWhiteRuleListResult::Data DescribeWhiteRuleListResult::getData()const
{
return data_;
}
int DescribeWhiteRuleListResult::getCode()const
{
return code_;
}
bool DescribeWhiteRuleListResult::getSuccess()const
{
return success_;
}

View File

@@ -64,53 +64,11 @@ void DoQuickFieldResult::parse(const std::string &payload)
auto allLogs = dataNode["Logs"]["Log"];
for (auto value : allLogs)
data_.logs.push_back(value.asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["DyCode"].isNull())
dyCode_ = value["DyCode"].asString();
if(!value["DyMessage"].isNull())
dyMessage_ = value["DyMessage"].asString();
}
std::string DoQuickFieldResult::getDyCode()const
{
return dyCode_;
}
std::string DoQuickFieldResult::getMessage()const
{
return message_;
}
DoQuickFieldResult::Data DoQuickFieldResult::getData()const
{
return data_;
}
int DoQuickFieldResult::getCode()const
{
return code_;
}
std::string DoQuickFieldResult::getDyMessage()const
{
return dyMessage_;
}
bool DoQuickFieldResult::getSuccess()const
{
return success_;
}
std::string DoQuickFieldResult::getErrCode()const
{
return errCode_;
}

View File

@@ -41,53 +41,11 @@ void DoSelfDelegateResult::parse(const std::string &payload)
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["DyCode"].isNull())
dyCode_ = value["DyCode"].asString();
if(!value["DyMessage"].isNull())
dyMessage_ = value["DyMessage"].asString();
}
std::string DoSelfDelegateResult::getDyCode()const
{
return dyCode_;
}
std::string DoSelfDelegateResult::getMessage()const
{
return message_;
}
bool DoSelfDelegateResult::getData()const
{
return data_;
}
int DoSelfDelegateResult::getCode()const
{
return code_;
}
std::string DoSelfDelegateResult::getDyMessage()const
{
return dyMessage_;
}
bool DoSelfDelegateResult::getSuccess()const
{
return success_;
}
std::string DoSelfDelegateResult::getErrCode()const
{
return errCode_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/cloud-siem/model/EnableAccessForCloudSiemRequest.h>
using AlibabaCloud::Cloud_siem::Model::EnableAccessForCloudSiemRequest;
EnableAccessForCloudSiemRequest::EnableAccessForCloudSiemRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "EnableAccessForCloudSiem") {
setMethod(HttpRequest::Method::Post);
}
EnableAccessForCloudSiemRequest::~EnableAccessForCloudSiemRequest() {}
std::string EnableAccessForCloudSiemRequest::getRegionId() const {
return regionId_;
}
void EnableAccessForCloudSiemRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

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/cloud-siem/model/EnableAccessForCloudSiemResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
EnableAccessForCloudSiemResult::EnableAccessForCloudSiemResult() :
ServiceResult()
{}
EnableAccessForCloudSiemResult::EnableAccessForCloudSiemResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
EnableAccessForCloudSiemResult::~EnableAccessForCloudSiemResult()
{}
void EnableAccessForCloudSiemResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
bool EnableAccessForCloudSiemResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/cloud-siem/model/EnableServiceForCloudSiemRequest.h>
using AlibabaCloud::Cloud_siem::Model::EnableServiceForCloudSiemRequest;
EnableServiceForCloudSiemRequest::EnableServiceForCloudSiemRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "EnableServiceForCloudSiem") {
setMethod(HttpRequest::Method::Post);
}
EnableServiceForCloudSiemRequest::~EnableServiceForCloudSiemRequest() {}
std::string EnableServiceForCloudSiemRequest::getRegionId() const {
return regionId_;
}
void EnableServiceForCloudSiemRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

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/cloud-siem/model/EnableServiceForCloudSiemResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
EnableServiceForCloudSiemResult::EnableServiceForCloudSiemResult() :
ServiceResult()
{}
EnableServiceForCloudSiemResult::EnableServiceForCloudSiemResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
EnableServiceForCloudSiemResult::~EnableServiceForCloudSiemResult()
{}
void EnableServiceForCloudSiemResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
bool EnableServiceForCloudSiemResult::getData()const
{
return data_;
}

View File

@@ -46,53 +46,11 @@ void GetCapacityResult::parse(const std::string &payload)
data_.preservedCapacity = std::stol(dataNode["PreservedCapacity"].asString());
if(!dataNode["ExistLogStore"].isNull())
data_.existLogStore = dataNode["ExistLogStore"].asString() == "true";
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["DyCode"].isNull())
dyCode_ = value["DyCode"].asString();
if(!value["DyMessage"].isNull())
dyMessage_ = value["DyMessage"].asString();
}
std::string GetCapacityResult::getDyCode()const
{
return dyCode_;
}
std::string GetCapacityResult::getMessage()const
{
return message_;
}
GetCapacityResult::Data GetCapacityResult::getData()const
{
return data_;
}
int GetCapacityResult::getCode()const
{
return code_;
}
std::string GetCapacityResult::getDyMessage()const
{
return dyMessage_;
}
bool GetCapacityResult::getSuccess()const
{
return success_;
}
std::string GetCapacityResult::getErrCode()const
{
return errCode_;
}

View File

@@ -58,53 +58,11 @@ void GetHistogramsResult::parse(const std::string &payload)
histogramObject.completedOrNot = dataNodeHistogramsHistogram["CompletedOrNot"].asString() == "true";
data_.histograms.push_back(histogramObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["DyCode"].isNull())
dyCode_ = value["DyCode"].asString();
if(!value["DyMessage"].isNull())
dyMessage_ = value["DyMessage"].asString();
}
std::string GetHistogramsResult::getDyCode()const
{
return dyCode_;
}
std::string GetHistogramsResult::getMessage()const
{
return message_;
}
GetHistogramsResult::Data GetHistogramsResult::getData()const
{
return data_;
}
int GetHistogramsResult::getCode()const
{
return code_;
}
std::string GetHistogramsResult::getDyMessage()const
{
return dyMessage_;
}
bool GetHistogramsResult::getSuccess()const
{
return success_;
}
std::string GetHistogramsResult::getErrCode()const
{
return errCode_;
}

View File

@@ -41,53 +41,11 @@ void GetQuickQueryResult::parse(const std::string &payload)
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["DyCode"].isNull())
dyCode_ = value["DyCode"].asString();
if(!value["DyMessage"].isNull())
dyMessage_ = value["DyMessage"].asString();
}
std::string GetQuickQueryResult::getDyCode()const
{
return dyCode_;
}
std::string GetQuickQueryResult::getMessage()const
{
return message_;
}
std::string GetQuickQueryResult::getData()const
{
return data_;
}
int GetQuickQueryResult::getCode()const
{
return code_;
}
std::string GetQuickQueryResult::getDyMessage()const
{
return dyMessage_;
}
bool GetQuickQueryResult::getSuccess()const
{
return success_;
}
std::string GetQuickQueryResult::getErrCode()const
{
return errCode_;
}

View File

@@ -48,53 +48,11 @@ void GetStorageResult::parse(const std::string &payload)
data_.displayRegion = dataNode["DisplayRegion"].asString() == "true";
if(!dataNode["CanOperate"].isNull())
data_.canOperate = dataNode["CanOperate"].asString() == "true";
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["DyCode"].isNull())
dyCode_ = value["DyCode"].asString();
if(!value["DyMessage"].isNull())
dyMessage_ = value["DyMessage"].asString();
}
std::string GetStorageResult::getDyCode()const
{
return dyCode_;
}
std::string GetStorageResult::getMessage()const
{
return message_;
}
GetStorageResult::Data GetStorageResult::getData()const
{
return data_;
}
int GetStorageResult::getCode()const
{
return code_;
}
std::string GetStorageResult::getDyMessage()const
{
return dyMessage_;
}
bool GetStorageResult::getSuccess()const
{
return success_;
}
std::string GetStorageResult::getErrCode()const
{
return errCode_;
}

View File

@@ -0,0 +1,45 @@
/*
* 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/cloud-siem/model/ListAccountAccessIdRequest.h>
using AlibabaCloud::Cloud_siem::Model::ListAccountAccessIdRequest;
ListAccountAccessIdRequest::ListAccountAccessIdRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "ListAccountAccessId") {
setMethod(HttpRequest::Method::Post);
}
ListAccountAccessIdRequest::~ListAccountAccessIdRequest() {}
std::string ListAccountAccessIdRequest::getCloudCode() const {
return cloudCode_;
}
void ListAccountAccessIdRequest::setCloudCode(const std::string &cloudCode) {
cloudCode_ = cloudCode;
setBodyParameter(std::string("CloudCode"), cloudCode);
}
std::string ListAccountAccessIdRequest::getRegionId() const {
return regionId_;
}
void ListAccountAccessIdRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

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/cloud-siem/model/ListAccountAccessIdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
ListAccountAccessIdResult::ListAccountAccessIdResult() :
ServiceResult()
{}
ListAccountAccessIdResult::ListAccountAccessIdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAccountAccessIdResult::~ListAccountAccessIdResult()
{}
void ListAccountAccessIdResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["DataItem"];
for (auto valueDataDataItem : allDataNode)
{
DataItem dataObject;
if(!valueDataDataItem["SubUserId"].isNull())
dataObject.subUserId = std::stol(valueDataDataItem["SubUserId"].asString());
if(!valueDataDataItem["AccessIdMd5"].isNull())
dataObject.accessIdMd5 = valueDataDataItem["AccessIdMd5"].asString();
if(!valueDataDataItem["AccountStr"].isNull())
dataObject.accountStr = valueDataDataItem["AccountStr"].asString();
if(!valueDataDataItem["Bound"].isNull())
dataObject.bound = std::stoi(valueDataDataItem["Bound"].asString());
if(!valueDataDataItem["AccessId"].isNull())
dataObject.accessId = valueDataDataItem["AccessId"].asString();
if(!valueDataDataItem["AccountId"].isNull())
dataObject.accountId = valueDataDataItem["AccountId"].asString();
if(!valueDataDataItem["CloudCode"].isNull())
dataObject.cloudCode = valueDataDataItem["CloudCode"].asString();
data_.push_back(dataObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListAccountAccessIdResult::getMessage()const
{
return message_;
}
std::vector<ListAccountAccessIdResult::DataItem> ListAccountAccessIdResult::getData()const
{
return data_;
}
int ListAccountAccessIdResult::getCode()const
{
return code_;
}
bool ListAccountAccessIdResult::getSuccess()const
{
return success_;
}

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/cloud-siem/model/ListAccountsByLogRequest.h>
using AlibabaCloud::Cloud_siem::Model::ListAccountsByLogRequest;
ListAccountsByLogRequest::ListAccountsByLogRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "ListAccountsByLog") {
setMethod(HttpRequest::Method::Post);
}
ListAccountsByLogRequest::~ListAccountsByLogRequest() {}
std::string ListAccountsByLogRequest::getCloudCode() const {
return cloudCode_;
}
void ListAccountsByLogRequest::setCloudCode(const std::string &cloudCode) {
cloudCode_ = cloudCode;
setBodyParameter(std::string("CloudCode"), cloudCode);
}
std::string ListAccountsByLogRequest::getRegionId() const {
return regionId_;
}
void ListAccountsByLogRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::vector<std::string> ListAccountsByLogRequest::getLogCodes() const {
return logCodes_;
}
void ListAccountsByLogRequest::setLogCodes(const std::vector<std::string> &logCodes) {
logCodes_ = logCodes;
}
std::string ListAccountsByLogRequest::getProdCode() const {
return prodCode_;
}
void ListAccountsByLogRequest::setProdCode(const std::string &prodCode) {
prodCode_ = prodCode;
setBodyParameter(std::string("ProdCode"), prodCode);
}

View File

@@ -0,0 +1,69 @@
/*
* 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/cloud-siem/model/ListAccountsByLogResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
ListAccountsByLogResult::ListAccountsByLogResult() :
ServiceResult()
{}
ListAccountsByLogResult::ListAccountsByLogResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAccountsByLogResult::~ListAccountsByLogResult()
{}
void ListAccountsByLogResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["DataItem"];
for (auto valueDataDataItem : allDataNode)
{
DataItem dataObject;
if(!valueDataDataItem["SubUserId"].isNull())
dataObject.subUserId = std::stol(valueDataDataItem["SubUserId"].asString());
if(!valueDataDataItem["MainUserId"].isNull())
dataObject.mainUserId = std::stol(valueDataDataItem["MainUserId"].asString());
if(!valueDataDataItem["AccountId"].isNull())
dataObject.accountId = valueDataDataItem["AccountId"].asString();
if(!valueDataDataItem["AccountName"].isNull())
dataObject.accountName = valueDataDataItem["AccountName"].asString();
if(!valueDataDataItem["Imported"].isNull())
dataObject.imported = std::stoi(valueDataDataItem["Imported"].asString());
if(!valueDataDataItem["LogCode"].isNull())
dataObject.logCode = valueDataDataItem["LogCode"].asString();
if(!valueDataDataItem["ProdCode"].isNull())
dataObject.prodCode = valueDataDataItem["ProdCode"].asString();
data_.push_back(dataObject);
}
}
std::vector<ListAccountsByLogResult::DataItem> ListAccountsByLogResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/cloud-siem/model/ListAllProdsRequest.h>
using AlibabaCloud::Cloud_siem::Model::ListAllProdsRequest;
ListAllProdsRequest::ListAllProdsRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "ListAllProds") {
setMethod(HttpRequest::Method::Post);
}
ListAllProdsRequest::~ListAllProdsRequest() {}
std::string ListAllProdsRequest::getRegionId() const {
return regionId_;
}
void ListAllProdsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

View File

@@ -0,0 +1,72 @@
/*
* 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/cloud-siem/model/ListAllProdsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
ListAllProdsResult::ListAllProdsResult() :
ServiceResult()
{}
ListAllProdsResult::ListAllProdsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAllProdsResult::~ListAllProdsResult()
{}
void ListAllProdsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["TotalCount"].isNull())
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
if(!dataNode["CurrentPage"].isNull())
data_.currentPage = std::stoi(dataNode["CurrentPage"].asString());
auto allProdListNode = dataNode["ProdList"]["ProdListItem"];
for (auto dataNodeProdListProdListItem : allProdListNode)
{
Data::ProdListItem prodListItemObject;
if(!dataNodeProdListProdListItem["ProdCode"].isNull())
prodListItemObject.prodCode = dataNodeProdListProdListItem["ProdCode"].asString();
if(!dataNodeProdListProdListItem["TotalLogCount"].isNull())
prodListItemObject.totalLogCount = std::stoi(dataNodeProdListProdListItem["TotalLogCount"].asString());
if(!dataNodeProdListProdListItem["ImportedLogCount"].isNull())
prodListItemObject.importedLogCount = std::stoi(dataNodeProdListProdListItem["ImportedLogCount"].asString());
if(!dataNodeProdListProdListItem["ModifyTime"].isNull())
prodListItemObject.modifyTime = dataNodeProdListProdListItem["ModifyTime"].asString();
if(!dataNodeProdListProdListItem["CloudCode"].isNull())
prodListItemObject.cloudCode = dataNodeProdListProdListItem["CloudCode"].asString();
data_.prodList.push_back(prodListItemObject);
}
}
ListAllProdsResult::Data ListAllProdsResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,45 @@
/*
* 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/cloud-siem/model/ListBindAccountRequest.h>
using AlibabaCloud::Cloud_siem::Model::ListBindAccountRequest;
ListBindAccountRequest::ListBindAccountRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "ListBindAccount") {
setMethod(HttpRequest::Method::Post);
}
ListBindAccountRequest::~ListBindAccountRequest() {}
std::string ListBindAccountRequest::getCloudCode() const {
return cloudCode_;
}
void ListBindAccountRequest::setCloudCode(const std::string &cloudCode) {
cloudCode_ = cloudCode;
setBodyParameter(std::string("CloudCode"), cloudCode);
}
std::string ListBindAccountRequest::getRegionId() const {
return regionId_;
}
void ListBindAccountRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

View File

@@ -0,0 +1,71 @@
/*
* 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/cloud-siem/model/ListBindAccountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
ListBindAccountResult::ListBindAccountResult() :
ServiceResult()
{}
ListBindAccountResult::ListBindAccountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListBindAccountResult::~ListBindAccountResult()
{}
void ListBindAccountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["DataItem"];
for (auto valueDataDataItem : allDataNode)
{
DataItem dataObject;
if(!valueDataDataItem["AccountName"].isNull())
dataObject.accountName = valueDataDataItem["AccountName"].asString();
if(!valueDataDataItem["AccessId"].isNull())
dataObject.accessId = valueDataDataItem["AccessId"].asString();
if(!valueDataDataItem["DataSourceCount"].isNull())
dataObject.dataSourceCount = std::stol(valueDataDataItem["DataSourceCount"].asString());
if(!valueDataDataItem["ModifyTime"].isNull())
dataObject.modifyTime = valueDataDataItem["ModifyTime"].asString();
if(!valueDataDataItem["CreateUser"].isNull())
dataObject.createUser = valueDataDataItem["CreateUser"].asString();
if(!valueDataDataItem["BindId"].isNull())
dataObject.bindId = std::stol(valueDataDataItem["BindId"].asString());
if(!valueDataDataItem["AccountId"].isNull())
dataObject.accountId = valueDataDataItem["AccountId"].asString();
if(!valueDataDataItem["CloudCode"].isNull())
dataObject.cloudCode = valueDataDataItem["CloudCode"].asString();
data_.push_back(dataObject);
}
}
std::vector<ListBindAccountResult::DataItem> ListBindAccountResult::getData()const
{
return data_;
}

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.
*/
#include <alibabacloud/cloud-siem/model/ListBindDataSourcesRequest.h>
using AlibabaCloud::Cloud_siem::Model::ListBindDataSourcesRequest;
ListBindDataSourcesRequest::ListBindDataSourcesRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "ListBindDataSources") {
setMethod(HttpRequest::Method::Post);
}
ListBindDataSourcesRequest::~ListBindDataSourcesRequest() {}
std::string ListBindDataSourcesRequest::getCloudCode() const {
return cloudCode_;
}
void ListBindDataSourcesRequest::setCloudCode(const std::string &cloudCode) {
cloudCode_ = cloudCode;
setBodyParameter(std::string("CloudCode"), cloudCode);
}
std::string ListBindDataSourcesRequest::getAccountId() const {
return accountId_;
}
void ListBindDataSourcesRequest::setAccountId(const std::string &accountId) {
accountId_ = accountId;
setBodyParameter(std::string("AccountId"), accountId);
}
std::string ListBindDataSourcesRequest::getRegionId() const {
return regionId_;
}
void ListBindDataSourcesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

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.
*/
#include <alibabacloud/cloud-siem/model/ListBindDataSourcesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
ListBindDataSourcesResult::ListBindDataSourcesResult() :
ServiceResult()
{}
ListBindDataSourcesResult::ListBindDataSourcesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListBindDataSourcesResult::~ListBindDataSourcesResult()
{}
void ListBindDataSourcesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["DataItem"];
for (auto valueDataDataItem : allDataNode)
{
DataItem dataObject;
if(!valueDataDataItem["AccountName"].isNull())
dataObject.accountName = valueDataDataItem["AccountName"].asString();
if(!valueDataDataItem["DataSourceInstanceId"].isNull())
dataObject.dataSourceInstanceId = valueDataDataItem["DataSourceInstanceId"].asString();
if(!valueDataDataItem["DataSourceType"].isNull())
dataObject.dataSourceType = valueDataDataItem["DataSourceType"].asString();
if(!valueDataDataItem["DataSourceName"].isNull())
dataObject.dataSourceName = valueDataDataItem["DataSourceName"].asString();
if(!valueDataDataItem["DataSourceRemark"].isNull())
dataObject.dataSourceRemark = valueDataDataItem["DataSourceRemark"].asString();
if(!valueDataDataItem["LogCount"].isNull())
dataObject.logCount = std::stoi(valueDataDataItem["LogCount"].asString());
if(!valueDataDataItem["TaskCount"].isNull())
dataObject.taskCount = std::stoi(valueDataDataItem["TaskCount"].asString());
if(!valueDataDataItem["AccountId"].isNull())
dataObject.accountId = valueDataDataItem["AccountId"].asString();
if(!valueDataDataItem["CloudCode"].isNull())
dataObject.cloudCode = valueDataDataItem["CloudCode"].asString();
data_.push_back(dataObject);
}
}
std::vector<ListBindDataSourcesResult::DataItem> ListBindDataSourcesResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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/cloud-siem/model/ListDataSourceLogsRequest.h>
using AlibabaCloud::Cloud_siem::Model::ListDataSourceLogsRequest;
ListDataSourceLogsRequest::ListDataSourceLogsRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "ListDataSourceLogs") {
setMethod(HttpRequest::Method::Post);
}
ListDataSourceLogsRequest::~ListDataSourceLogsRequest() {}
std::string ListDataSourceLogsRequest::getCloudCode() const {
return cloudCode_;
}
void ListDataSourceLogsRequest::setCloudCode(const std::string &cloudCode) {
cloudCode_ = cloudCode;
setBodyParameter(std::string("CloudCode"), cloudCode);
}
std::string ListDataSourceLogsRequest::getAccountId() const {
return accountId_;
}
void ListDataSourceLogsRequest::setAccountId(const std::string &accountId) {
accountId_ = accountId;
setBodyParameter(std::string("AccountId"), accountId);
}
std::string ListDataSourceLogsRequest::getRegionId() const {
return regionId_;
}
void ListDataSourceLogsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string ListDataSourceLogsRequest::getDataSourceInstanceId() const {
return dataSourceInstanceId_;
}
void ListDataSourceLogsRequest::setDataSourceInstanceId(const std::string &dataSourceInstanceId) {
dataSourceInstanceId_ = dataSourceInstanceId;
setBodyParameter(std::string("DataSourceInstanceId"), dataSourceInstanceId);
}

View File

@@ -0,0 +1,86 @@
/*
* 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/cloud-siem/model/ListDataSourceLogsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
ListDataSourceLogsResult::ListDataSourceLogsResult() :
ServiceResult()
{}
ListDataSourceLogsResult::ListDataSourceLogsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDataSourceLogsResult::~ListDataSourceLogsResult()
{}
void ListDataSourceLogsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["SubUserId"].isNull())
data_.subUserId = std::stol(dataNode["SubUserId"].asString());
if(!dataNode["DataSourceInstanceId"].isNull())
data_.dataSourceInstanceId = dataNode["DataSourceInstanceId"].asString();
if(!dataNode["DataSourceInstanceName"].isNull())
data_.dataSourceInstanceName = dataNode["DataSourceInstanceName"].asString();
if(!dataNode["DataSourceInstanceRemark"].isNull())
data_.dataSourceInstanceRemark = dataNode["DataSourceInstanceRemark"].asString();
if(!dataNode["AccountId"].isNull())
data_.accountId = dataNode["AccountId"].asString();
if(!dataNode["CloudCode"].isNull())
data_.cloudCode = dataNode["CloudCode"].asString();
auto allDataSourceInstanceLogsNode = dataNode["DataSourceInstanceLogs"]["DataSourceInstanceLog"];
for (auto dataNodeDataSourceInstanceLogsDataSourceInstanceLog : allDataSourceInstanceLogsNode)
{
Data::DataSourceInstanceLog dataSourceInstanceLogObject;
if(!dataNodeDataSourceInstanceLogsDataSourceInstanceLog["LogInstanceId"].isNull())
dataSourceInstanceLogObject.logInstanceId = dataNodeDataSourceInstanceLogsDataSourceInstanceLog["LogInstanceId"].asString();
if(!dataNodeDataSourceInstanceLogsDataSourceInstanceLog["LogCode"].isNull())
dataSourceInstanceLogObject.logCode = dataNodeDataSourceInstanceLogsDataSourceInstanceLog["LogCode"].asString();
if(!dataNodeDataSourceInstanceLogsDataSourceInstanceLog["LogMdsCode"].isNull())
dataSourceInstanceLogObject.logMdsCode = dataNodeDataSourceInstanceLogsDataSourceInstanceLog["LogMdsCode"].asString();
if(!dataNodeDataSourceInstanceLogsDataSourceInstanceLog["TaskStatus"].isNull())
dataSourceInstanceLogObject.taskStatus = std::stoi(dataNodeDataSourceInstanceLogsDataSourceInstanceLog["TaskStatus"].asString());
auto allLogParamsNode = dataNodeDataSourceInstanceLogsDataSourceInstanceLog["LogParams"]["LogParam"];
for (auto dataNodeDataSourceInstanceLogsDataSourceInstanceLogLogParamsLogParam : allLogParamsNode)
{
Data::DataSourceInstanceLog::LogParam logParamsObject;
if(!dataNodeDataSourceInstanceLogsDataSourceInstanceLogLogParamsLogParam["ParaCode"].isNull())
logParamsObject.paraCode = dataNodeDataSourceInstanceLogsDataSourceInstanceLogLogParamsLogParam["ParaCode"].asString();
if(!dataNodeDataSourceInstanceLogsDataSourceInstanceLogLogParamsLogParam["ParaValue"].isNull())
logParamsObject.paraValue = dataNodeDataSourceInstanceLogsDataSourceInstanceLogLogParamsLogParam["ParaValue"].asString();
dataSourceInstanceLogObject.logParams.push_back(logParamsObject);
}
data_.dataSourceInstanceLogs.push_back(dataSourceInstanceLogObject);
}
}
ListDataSourceLogsResult::Data ListDataSourceLogsResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,45 @@
/*
* 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/cloud-siem/model/ListDataSourceTypesRequest.h>
using AlibabaCloud::Cloud_siem::Model::ListDataSourceTypesRequest;
ListDataSourceTypesRequest::ListDataSourceTypesRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "ListDataSourceTypes") {
setMethod(HttpRequest::Method::Post);
}
ListDataSourceTypesRequest::~ListDataSourceTypesRequest() {}
std::string ListDataSourceTypesRequest::getCloudCode() const {
return cloudCode_;
}
void ListDataSourceTypesRequest::setCloudCode(const std::string &cloudCode) {
cloudCode_ = cloudCode;
setBodyParameter(std::string("CloudCode"), cloudCode);
}
std::string ListDataSourceTypesRequest::getRegionId() const {
return regionId_;
}
void ListDataSourceTypesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

View File

@@ -0,0 +1,59 @@
/*
* 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/cloud-siem/model/ListDataSourceTypesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
ListDataSourceTypesResult::ListDataSourceTypesResult() :
ServiceResult()
{}
ListDataSourceTypesResult::ListDataSourceTypesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDataSourceTypesResult::~ListDataSourceTypesResult()
{}
void ListDataSourceTypesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["DataItem"];
for (auto valueDataDataItem : allDataNode)
{
DataItem dataObject;
if(!valueDataDataItem["DataSourceType"].isNull())
dataObject.dataSourceType = valueDataDataItem["DataSourceType"].asString();
if(!valueDataDataItem["CloudCode"].isNull())
dataObject.cloudCode = valueDataDataItem["CloudCode"].asString();
data_.push_back(dataObject);
}
}
std::vector<ListDataSourceTypesResult::DataItem> ListDataSourceTypesResult::getData()const
{
return data_;
}

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.
*/
#include <alibabacloud/cloud-siem/model/ListImportedLogsByProdRequest.h>
using AlibabaCloud::Cloud_siem::Model::ListImportedLogsByProdRequest;
ListImportedLogsByProdRequest::ListImportedLogsByProdRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "ListImportedLogsByProd") {
setMethod(HttpRequest::Method::Post);
}
ListImportedLogsByProdRequest::~ListImportedLogsByProdRequest() {}
std::string ListImportedLogsByProdRequest::getCloudCode() const {
return cloudCode_;
}
void ListImportedLogsByProdRequest::setCloudCode(const std::string &cloudCode) {
cloudCode_ = cloudCode;
setBodyParameter(std::string("CloudCode"), cloudCode);
}
std::string ListImportedLogsByProdRequest::getRegionId() const {
return regionId_;
}
void ListImportedLogsByProdRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string ListImportedLogsByProdRequest::getProdCode() const {
return prodCode_;
}
void ListImportedLogsByProdRequest::setProdCode(const std::string &prodCode) {
prodCode_ = prodCode;
setBodyParameter(std::string("ProdCode"), prodCode);
}

View File

@@ -0,0 +1,75 @@
/*
* 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/cloud-siem/model/ListImportedLogsByProdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
ListImportedLogsByProdResult::ListImportedLogsByProdResult() :
ServiceResult()
{}
ListImportedLogsByProdResult::ListImportedLogsByProdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListImportedLogsByProdResult::~ListImportedLogsByProdResult()
{}
void ListImportedLogsByProdResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["DataItem"];
for (auto valueDataDataItem : allDataNode)
{
DataItem dataObject;
if(!valueDataDataItem["ProdCode"].isNull())
dataObject.prodCode = valueDataDataItem["ProdCode"].asString();
if(!valueDataDataItem["LogCode"].isNull())
dataObject.logCode = valueDataDataItem["LogCode"].asString();
if(!valueDataDataItem["LogMdsCode"].isNull())
dataObject.logMdsCode = valueDataDataItem["LogMdsCode"].asString();
if(!valueDataDataItem["ImportedUserCount"].isNull())
dataObject.importedUserCount = std::stoi(valueDataDataItem["ImportedUserCount"].asString());
if(!valueDataDataItem["UnImportedUserCount"].isNull())
dataObject.unImportedUserCount = std::stoi(valueDataDataItem["UnImportedUserCount"].asString());
if(!valueDataDataItem["TotalUserCount"].isNull())
dataObject.totalUserCount = std::stoi(valueDataDataItem["TotalUserCount"].asString());
if(!valueDataDataItem["ModifyTime"].isNull())
dataObject.modifyTime = valueDataDataItem["ModifyTime"].asString();
if(!valueDataDataItem["Imported"].isNull())
dataObject.imported = std::stoi(valueDataDataItem["Imported"].asString());
if(!valueDataDataItem["AutoImported"].isNull())
dataObject.autoImported = std::stoi(valueDataDataItem["AutoImported"].asString());
if(!valueDataDataItem["CloudCode"].isNull())
dataObject.cloudCode = valueDataDataItem["CloudCode"].asString();
data_.push_back(dataObject);
}
}
std::vector<ListImportedLogsByProdResult::DataItem> ListImportedLogsByProdResult::getData()const
{
return data_;
}

View File

@@ -45,53 +45,11 @@ void ListOperationResult::parse(const std::string &payload)
auto allOperationList = dataNode["OperationList"]["OperationList"];
for (auto value : allOperationList)
data_.operationList.push_back(value.asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["DyCode"].isNull())
dyCode_ = value["DyCode"].asString();
if(!value["DyMessage"].isNull())
dyMessage_ = value["DyMessage"].asString();
}
std::string ListOperationResult::getDyCode()const
{
return dyCode_;
}
std::string ListOperationResult::getMessage()const
{
return message_;
}
ListOperationResult::Data ListOperationResult::getData()const
{
return data_;
}
int ListOperationResult::getCode()const
{
return code_;
}
std::string ListOperationResult::getDyMessage()const
{
return dyMessage_;
}
bool ListOperationResult::getSuccess()const
{
return success_;
}
std::string ListOperationResult::getErrCode()const
{
return errCode_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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/cloud-siem/model/ListProjectLogStoresRequest.h>
using AlibabaCloud::Cloud_siem::Model::ListProjectLogStoresRequest;
ListProjectLogStoresRequest::ListProjectLogStoresRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "ListProjectLogStores") {
setMethod(HttpRequest::Method::Post);
}
ListProjectLogStoresRequest::~ListProjectLogStoresRequest() {}
long ListProjectLogStoresRequest::getSubUserId() const {
return subUserId_;
}
void ListProjectLogStoresRequest::setSubUserId(long subUserId) {
subUserId_ = subUserId;
setBodyParameter(std::string("SubUserId"), std::to_string(subUserId));
}
std::string ListProjectLogStoresRequest::getRegionId() const {
return regionId_;
}
void ListProjectLogStoresRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string ListProjectLogStoresRequest::getSourceProdCode() const {
return sourceProdCode_;
}
void ListProjectLogStoresRequest::setSourceProdCode(const std::string &sourceProdCode) {
sourceProdCode_ = sourceProdCode;
setBodyParameter(std::string("SourceProdCode"), sourceProdCode);
}
std::string ListProjectLogStoresRequest::getSourceLogCode() const {
return sourceLogCode_;
}
void ListProjectLogStoresRequest::setSourceLogCode(const std::string &sourceLogCode) {
sourceLogCode_ = sourceLogCode;
setBodyParameter(std::string("SourceLogCode"), sourceLogCode);
}

View File

@@ -0,0 +1,71 @@
/*
* 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/cloud-siem/model/ListProjectLogStoresResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
ListProjectLogStoresResult::ListProjectLogStoresResult() :
ServiceResult()
{}
ListProjectLogStoresResult::ListProjectLogStoresResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListProjectLogStoresResult::~ListProjectLogStoresResult()
{}
void ListProjectLogStoresResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["DataItem"];
for (auto valueDataDataItem : allDataNode)
{
DataItem dataObject;
if(!valueDataDataItem["Project"].isNull())
dataObject.project = valueDataDataItem["Project"].asString();
if(!valueDataDataItem["LogStore"].isNull())
dataObject.logStore = valueDataDataItem["LogStore"].asString();
if(!valueDataDataItem["EndPoint"].isNull())
dataObject.endPoint = valueDataDataItem["EndPoint"].asString();
if(!valueDataDataItem["RegionId"].isNull())
dataObject.regionId = valueDataDataItem["RegionId"].asString();
if(!valueDataDataItem["LocalName"].isNull())
dataObject.localName = valueDataDataItem["LocalName"].asString();
if(!valueDataDataItem["MainUserId"].isNull())
dataObject.mainUserId = std::stol(valueDataDataItem["MainUserId"].asString());
if(!valueDataDataItem["SubUserId"].isNull())
dataObject.subUserId = std::stol(valueDataDataItem["SubUserId"].asString());
if(!valueDataDataItem["SubUserName"].isNull())
dataObject.subUserName = valueDataDataItem["SubUserName"].asString();
data_.push_back(dataObject);
}
}
std::vector<ListProjectLogStoresResult::DataItem> ListProjectLogStoresResult::getData()const
{
return data_;
}

View File

@@ -56,53 +56,11 @@ void ListQuickQueryResult::parse(const std::string &payload)
quickQueryListItemObject.displayName = dataNodeQuickQueryListQuickQueryListItem["DisplayName"].asString();
data_.quickQueryList.push_back(quickQueryListItemObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["DyCode"].isNull())
dyCode_ = value["DyCode"].asString();
if(!value["DyMessage"].isNull())
dyMessage_ = value["DyMessage"].asString();
}
std::string ListQuickQueryResult::getDyCode()const
{
return dyCode_;
}
std::string ListQuickQueryResult::getMessage()const
{
return message_;
}
ListQuickQueryResult::Data ListQuickQueryResult::getData()const
{
return data_;
}
int ListQuickQueryResult::getCode()const
{
return code_;
}
std::string ListQuickQueryResult::getDyMessage()const
{
return dyMessage_;
}
bool ListQuickQueryResult::getSuccess()const
{
return success_;
}
std::string ListQuickQueryResult::getErrCode()const
{
return errCode_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/cloud-siem/model/ListRdUsersRequest.h>
using AlibabaCloud::Cloud_siem::Model::ListRdUsersRequest;
ListRdUsersRequest::ListRdUsersRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "ListRdUsers") {
setMethod(HttpRequest::Method::Post);
}
ListRdUsersRequest::~ListRdUsersRequest() {}
std::string ListRdUsersRequest::getRegionId() const {
return regionId_;
}
void ListRdUsersRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}

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.
*/
#include <alibabacloud/cloud-siem/model/ListRdUsersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
ListRdUsersResult::ListRdUsersResult() :
ServiceResult()
{}
ListRdUsersResult::ListRdUsersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListRdUsersResult::~ListRdUsersResult()
{}
void ListRdUsersResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["DataItem"];
for (auto valueDataDataItem : allDataNode)
{
DataItem dataObject;
if(!valueDataDataItem["Joined"].isNull())
dataObject.joined = valueDataDataItem["Joined"].asString() == "true";
if(!valueDataDataItem["JoinedTime"].isNull())
dataObject.joinedTime = valueDataDataItem["JoinedTime"].asString();
if(!valueDataDataItem["DelegatedOrNot"].isNull())
dataObject.delegatedOrNot = valueDataDataItem["DelegatedOrNot"].asString() == "true";
if(!valueDataDataItem["MainUserId"].isNull())
dataObject.mainUserId = std::stol(valueDataDataItem["MainUserId"].asString());
if(!valueDataDataItem["SubUserId"].isNull())
dataObject.subUserId = std::stol(valueDataDataItem["SubUserId"].asString());
if(!valueDataDataItem["SubUserName"].isNull())
dataObject.subUserName = valueDataDataItem["SubUserName"].asString();
data_.push_back(dataObject);
}
}
std::vector<ListRdUsersResult::DataItem> ListRdUsersResult::getData()const
{
return data_;
}

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.
*/
#include <alibabacloud/cloud-siem/model/ListUserProdLogsRequest.h>
using AlibabaCloud::Cloud_siem::Model::ListUserProdLogsRequest;
ListUserProdLogsRequest::ListUserProdLogsRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "ListUserProdLogs") {
setMethod(HttpRequest::Method::Post);
}
ListUserProdLogsRequest::~ListUserProdLogsRequest() {}
std::string ListUserProdLogsRequest::getRegionId() const {
return regionId_;
}
void ListUserProdLogsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string ListUserProdLogsRequest::getSourceProdCode() const {
return sourceProdCode_;
}
void ListUserProdLogsRequest::setSourceProdCode(const std::string &sourceProdCode) {
sourceProdCode_ = sourceProdCode;
setBodyParameter(std::string("SourceProdCode"), sourceProdCode);
}
std::string ListUserProdLogsRequest::getSourceLogCode() const {
return sourceLogCode_;
}
void ListUserProdLogsRequest::setSourceLogCode(const std::string &sourceLogCode) {
sourceLogCode_ = sourceLogCode;
setBodyParameter(std::string("SourceLogCode"), sourceLogCode);
}

View File

@@ -0,0 +1,75 @@
/*
* 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/cloud-siem/model/ListUserProdLogsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
ListUserProdLogsResult::ListUserProdLogsResult() :
ServiceResult()
{}
ListUserProdLogsResult::ListUserProdLogsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListUserProdLogsResult::~ListUserProdLogsResult()
{}
void ListUserProdLogsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["DataItem"];
for (auto valueDataDataItem : allDataNode)
{
DataItem dataObject;
if(!valueDataDataItem["SourceLogCode"].isNull())
dataObject.sourceLogCode = valueDataDataItem["SourceLogCode"].asString();
if(!valueDataDataItem["SourceLogInfo"].isNull())
dataObject.sourceLogInfo = valueDataDataItem["SourceLogInfo"].asString();
if(!valueDataDataItem["DisplayLine"].isNull())
dataObject.displayLine = valueDataDataItem["DisplayLine"].asString();
if(!valueDataDataItem["SourceProdCode"].isNull())
dataObject.sourceProdCode = valueDataDataItem["SourceProdCode"].asString();
if(!valueDataDataItem["IsDeleted"].isNull())
dataObject.isDeleted = std::stoi(valueDataDataItem["IsDeleted"].asString());
if(!valueDataDataItem["Imported"].isNull())
dataObject.imported = valueDataDataItem["Imported"].asString() == "true";
if(!valueDataDataItem["Displayed"].isNull())
dataObject.displayed = valueDataDataItem["Displayed"].asString() == "true";
if(!valueDataDataItem["MainUserId"].isNull())
dataObject.mainUserId = std::stol(valueDataDataItem["MainUserId"].asString());
if(!valueDataDataItem["SubUserId"].isNull())
dataObject.subUserId = std::stol(valueDataDataItem["SubUserId"].asString());
if(!valueDataDataItem["SubUserName"].isNull())
dataObject.subUserName = valueDataDataItem["SubUserName"].asString();
data_.push_back(dataObject);
}
}
std::vector<ListUserProdLogsResult::DataItem> ListUserProdLogsResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,45 @@
/*
* 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/cloud-siem/model/ListUsersByProdRequest.h>
using AlibabaCloud::Cloud_siem::Model::ListUsersByProdRequest;
ListUsersByProdRequest::ListUsersByProdRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "ListUsersByProd") {
setMethod(HttpRequest::Method::Post);
}
ListUsersByProdRequest::~ListUsersByProdRequest() {}
std::string ListUsersByProdRequest::getRegionId() const {
return regionId_;
}
void ListUsersByProdRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string ListUsersByProdRequest::getSourceProdCode() const {
return sourceProdCode_;
}
void ListUsersByProdRequest::setSourceProdCode(const std::string &sourceProdCode) {
sourceProdCode_ = sourceProdCode;
setBodyParameter(std::string("SourceProdCode"), sourceProdCode);
}

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.
*/
#include <alibabacloud/cloud-siem/model/ListUsersByProdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
ListUsersByProdResult::ListUsersByProdResult() :
ServiceResult()
{}
ListUsersByProdResult::ListUsersByProdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListUsersByProdResult::~ListUsersByProdResult()
{}
void ListUsersByProdResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["DataItem"];
for (auto valueDataDataItem : allDataNode)
{
DataItem dataObject;
if(!valueDataDataItem["SourceProdCode"].isNull())
dataObject.sourceProdCode = valueDataDataItem["SourceProdCode"].asString();
if(!valueDataDataItem["SourceLogCode"].isNull())
dataObject.sourceLogCode = valueDataDataItem["SourceLogCode"].asString();
if(!valueDataDataItem["SourceLogName"].isNull())
dataObject.sourceLogName = valueDataDataItem["SourceLogName"].asString();
if(!valueDataDataItem["CloudCode"].isNull())
dataObject.cloudCode = valueDataDataItem["CloudCode"].asString();
if(!valueDataDataItem["Imported"].isNull())
dataObject.imported = valueDataDataItem["Imported"].asString() == "true";
if(!valueDataDataItem["LogMdsCode"].isNull())
dataObject.logMdsCode = valueDataDataItem["LogMdsCode"].asString();
if(!valueDataDataItem["MainUserId"].isNull())
dataObject.mainUserId = std::stol(valueDataDataItem["MainUserId"].asString());
if(!valueDataDataItem["SubUserId"].isNull())
dataObject.subUserId = std::stol(valueDataDataItem["SubUserId"].asString());
if(!valueDataDataItem["SubUserName"].isNull())
dataObject.subUserName = valueDataDataItem["SubUserName"].asString();
data_.push_back(dataObject);
}
}
std::vector<ListUsersByProdResult::DataItem> ListUsersByProdResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,81 @@
/*
* 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/cloud-siem/model/ModifyBindAccountRequest.h>
using AlibabaCloud::Cloud_siem::Model::ModifyBindAccountRequest;
ModifyBindAccountRequest::ModifyBindAccountRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "ModifyBindAccount") {
setMethod(HttpRequest::Method::Post);
}
ModifyBindAccountRequest::~ModifyBindAccountRequest() {}
std::string ModifyBindAccountRequest::getCloudCode() const {
return cloudCode_;
}
void ModifyBindAccountRequest::setCloudCode(const std::string &cloudCode) {
cloudCode_ = cloudCode;
setBodyParameter(std::string("CloudCode"), cloudCode);
}
std::string ModifyBindAccountRequest::getAccountId() const {
return accountId_;
}
void ModifyBindAccountRequest::setAccountId(const std::string &accountId) {
accountId_ = accountId;
setBodyParameter(std::string("AccountId"), accountId);
}
std::string ModifyBindAccountRequest::getAccountName() const {
return accountName_;
}
void ModifyBindAccountRequest::setAccountName(const std::string &accountName) {
accountName_ = accountName;
setBodyParameter(std::string("AccountName"), accountName);
}
std::string ModifyBindAccountRequest::getRegionId() const {
return regionId_;
}
void ModifyBindAccountRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
long ModifyBindAccountRequest::getBindId() const {
return bindId_;
}
void ModifyBindAccountRequest::setBindId(long bindId) {
bindId_ = bindId;
setBodyParameter(std::string("BindId"), std::to_string(bindId));
}
std::string ModifyBindAccountRequest::getAccessId() const {
return accessId_;
}
void ModifyBindAccountRequest::setAccessId(const std::string &accessId) {
accessId_ = accessId;
setBodyParameter(std::string("AccessId"), accessId);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/cloud-siem/model/ModifyBindAccountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
ModifyBindAccountResult::ModifyBindAccountResult() :
ServiceResult()
{}
ModifyBindAccountResult::ModifyBindAccountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyBindAccountResult::~ModifyBindAccountResult()
{}
void ModifyBindAccountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Count"].isNull())
data_.count = std::stoi(dataNode["Count"].asString());
}
ModifyBindAccountResult::Data ModifyBindAccountResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,99 @@
/*
* 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/cloud-siem/model/ModifyDataSourceLogRequest.h>
using AlibabaCloud::Cloud_siem::Model::ModifyDataSourceLogRequest;
ModifyDataSourceLogRequest::ModifyDataSourceLogRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "ModifyDataSourceLog") {
setMethod(HttpRequest::Method::Post);
}
ModifyDataSourceLogRequest::~ModifyDataSourceLogRequest() {}
std::string ModifyDataSourceLogRequest::getDataSourceType() const {
return dataSourceType_;
}
void ModifyDataSourceLogRequest::setDataSourceType(const std::string &dataSourceType) {
dataSourceType_ = dataSourceType;
setBodyParameter(std::string("DataSourceType"), dataSourceType);
}
std::string ModifyDataSourceLogRequest::getCloudCode() const {
return cloudCode_;
}
void ModifyDataSourceLogRequest::setCloudCode(const std::string &cloudCode) {
cloudCode_ = cloudCode;
setBodyParameter(std::string("CloudCode"), cloudCode);
}
std::string ModifyDataSourceLogRequest::getAccountId() const {
return accountId_;
}
void ModifyDataSourceLogRequest::setAccountId(const std::string &accountId) {
accountId_ = accountId;
setBodyParameter(std::string("AccountId"), accountId);
}
std::string ModifyDataSourceLogRequest::getLogCode() const {
return logCode_;
}
void ModifyDataSourceLogRequest::setLogCode(const std::string &logCode) {
logCode_ = logCode;
setBodyParameter(std::string("LogCode"), logCode);
}
std::string ModifyDataSourceLogRequest::getRegionId() const {
return regionId_;
}
void ModifyDataSourceLogRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string ModifyDataSourceLogRequest::getLogInstanceId() const {
return logInstanceId_;
}
void ModifyDataSourceLogRequest::setLogInstanceId(const std::string &logInstanceId) {
logInstanceId_ = logInstanceId;
setBodyParameter(std::string("LogInstanceId"), logInstanceId);
}
std::string ModifyDataSourceLogRequest::getDataSourceInstanceLogs() const {
return dataSourceInstanceLogs_;
}
void ModifyDataSourceLogRequest::setDataSourceInstanceLogs(const std::string &dataSourceInstanceLogs) {
dataSourceInstanceLogs_ = dataSourceInstanceLogs;
setBodyParameter(std::string("DataSourceInstanceLogs"), dataSourceInstanceLogs);
}
std::string ModifyDataSourceLogRequest::getDataSourceInstanceId() const {
return dataSourceInstanceId_;
}
void ModifyDataSourceLogRequest::setDataSourceInstanceId(const std::string &dataSourceInstanceId) {
dataSourceInstanceId_ = dataSourceInstanceId;
setBodyParameter(std::string("DataSourceInstanceId"), dataSourceInstanceId);
}

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.
*/
#include <alibabacloud/cloud-siem/model/ModifyDataSourceLogResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
ModifyDataSourceLogResult::ModifyDataSourceLogResult() :
ServiceResult()
{}
ModifyDataSourceLogResult::ModifyDataSourceLogResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyDataSourceLogResult::~ModifyDataSourceLogResult()
{}
void ModifyDataSourceLogResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Count"].isNull())
data_.count = std::stoi(dataNode["Count"].asString());
if(!dataNode["LogInstanceId"].isNull())
data_.logInstanceId = dataNode["LogInstanceId"].asString();
}
ModifyDataSourceLogResult::Data ModifyDataSourceLogResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,99 @@
/*
* 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/cloud-siem/model/ModifyDataSourceRequest.h>
using AlibabaCloud::Cloud_siem::Model::ModifyDataSourceRequest;
ModifyDataSourceRequest::ModifyDataSourceRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "ModifyDataSource") {
setMethod(HttpRequest::Method::Post);
}
ModifyDataSourceRequest::~ModifyDataSourceRequest() {}
std::string ModifyDataSourceRequest::getDataSourceType() const {
return dataSourceType_;
}
void ModifyDataSourceRequest::setDataSourceType(const std::string &dataSourceType) {
dataSourceType_ = dataSourceType;
setBodyParameter(std::string("DataSourceType"), dataSourceType);
}
std::string ModifyDataSourceRequest::getCloudCode() const {
return cloudCode_;
}
void ModifyDataSourceRequest::setCloudCode(const std::string &cloudCode) {
cloudCode_ = cloudCode;
setBodyParameter(std::string("CloudCode"), cloudCode);
}
std::string ModifyDataSourceRequest::getDataSourceInstanceName() const {
return dataSourceInstanceName_;
}
void ModifyDataSourceRequest::setDataSourceInstanceName(const std::string &dataSourceInstanceName) {
dataSourceInstanceName_ = dataSourceInstanceName;
setBodyParameter(std::string("DataSourceInstanceName"), dataSourceInstanceName);
}
std::string ModifyDataSourceRequest::getAccountId() const {
return accountId_;
}
void ModifyDataSourceRequest::setAccountId(const std::string &accountId) {
accountId_ = accountId;
setBodyParameter(std::string("AccountId"), accountId);
}
std::string ModifyDataSourceRequest::getRegionId() const {
return regionId_;
}
void ModifyDataSourceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string ModifyDataSourceRequest::getDataSourceInstanceRemark() const {
return dataSourceInstanceRemark_;
}
void ModifyDataSourceRequest::setDataSourceInstanceRemark(const std::string &dataSourceInstanceRemark) {
dataSourceInstanceRemark_ = dataSourceInstanceRemark;
setBodyParameter(std::string("DataSourceInstanceRemark"), dataSourceInstanceRemark);
}
std::string ModifyDataSourceRequest::getDataSourceInstanceParams() const {
return dataSourceInstanceParams_;
}
void ModifyDataSourceRequest::setDataSourceInstanceParams(const std::string &dataSourceInstanceParams) {
dataSourceInstanceParams_ = dataSourceInstanceParams;
setBodyParameter(std::string("DataSourceInstanceParams"), dataSourceInstanceParams);
}
std::string ModifyDataSourceRequest::getDataSourceInstanceId() const {
return dataSourceInstanceId_;
}
void ModifyDataSourceRequest::setDataSourceInstanceId(const std::string &dataSourceInstanceId) {
dataSourceInstanceId_ = dataSourceInstanceId;
setBodyParameter(std::string("DataSourceInstanceId"), dataSourceInstanceId);
}

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.
*/
#include <alibabacloud/cloud-siem/model/ModifyDataSourceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
ModifyDataSourceResult::ModifyDataSourceResult() :
ServiceResult()
{}
ModifyDataSourceResult::ModifyDataSourceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyDataSourceResult::~ModifyDataSourceResult()
{}
void ModifyDataSourceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Count"].isNull())
data_.count = std::stoi(dataNode["Count"].asString());
if(!dataNode["DataSourceInstanceId"].isNull())
data_.dataSourceInstanceId = dataNode["DataSourceInstanceId"].asString();
}
ModifyDataSourceResult::Data ModifyDataSourceResult::getData()const
{
return data_;
}

View File

@@ -41,53 +41,11 @@ void OpenDeliveryResult::parse(const std::string &payload)
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["DyCode"].isNull())
dyCode_ = value["DyCode"].asString();
if(!value["DyMessage"].isNull())
dyMessage_ = value["DyMessage"].asString();
}
std::string OpenDeliveryResult::getDyCode()const
{
return dyCode_;
}
std::string OpenDeliveryResult::getMessage()const
{
return message_;
}
bool OpenDeliveryResult::getData()const
{
return data_;
}
int OpenDeliveryResult::getCode()const
{
return code_;
}
std::string OpenDeliveryResult::getDyMessage()const
{
return dyMessage_;
}
bool OpenDeliveryResult::getSuccess()const
{
return success_;
}
std::string OpenDeliveryResult::getErrCode()const
{
return errCode_;
}

View File

@@ -41,53 +41,11 @@ void RestoreCapacityResult::parse(const std::string &payload)
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["DyCode"].isNull())
dyCode_ = value["DyCode"].asString();
if(!value["DyMessage"].isNull())
dyMessage_ = value["DyMessage"].asString();
}
std::string RestoreCapacityResult::getDyCode()const
{
return dyCode_;
}
std::string RestoreCapacityResult::getMessage()const
{
return message_;
}
bool RestoreCapacityResult::getData()const
{
return data_;
}
int RestoreCapacityResult::getCode()const
{
return code_;
}
std::string RestoreCapacityResult::getDyMessage()const
{
return dyMessage_;
}
bool RestoreCapacityResult::getSuccess()const
{
return success_;
}
std::string RestoreCapacityResult::getErrCode()const
{
return errCode_;
}

View File

@@ -41,53 +41,11 @@ void SaveQuickQueryResult::parse(const std::string &payload)
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["DyCode"].isNull())
dyCode_ = value["DyCode"].asString();
if(!value["DyMessage"].isNull())
dyMessage_ = value["DyMessage"].asString();
}
std::string SaveQuickQueryResult::getDyCode()const
{
return dyCode_;
}
std::string SaveQuickQueryResult::getMessage()const
{
return message_;
}
bool SaveQuickQueryResult::getData()const
{
return data_;
}
int SaveQuickQueryResult::getCode()const
{
return code_;
}
std::string SaveQuickQueryResult::getDyMessage()const
{
return dyMessage_;
}
bool SaveQuickQueryResult::getSuccess()const
{
return success_;
}
std::string SaveQuickQueryResult::getErrCode()const
{
return errCode_;
}

View File

@@ -41,53 +41,11 @@ void SetStorageResult::parse(const std::string &payload)
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["DyCode"].isNull())
dyCode_ = value["DyCode"].asString();
if(!value["DyMessage"].isNull())
dyMessage_ = value["DyMessage"].asString();
}
std::string SetStorageResult::getDyCode()const
{
return dyCode_;
}
std::string SetStorageResult::getMessage()const
{
return message_;
}
bool SetStorageResult::getData()const
{
return data_;
}
int SetStorageResult::getCode()const
{
return code_;
}
std::string SetStorageResult::getDyMessage()const
{
return dyMessage_;
}
bool SetStorageResult::getSuccess()const
{
return success_;
}
std::string SetStorageResult::getErrCode()const
{
return errCode_;
}

View File

@@ -43,53 +43,11 @@ void ShowQuickAnalysisResult::parse(const std::string &payload)
auto allIndexList = dataNode["IndexList"]["IndexList"];
for (auto value : allIndexList)
data_.indexList.push_back(value.asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["DyCode"].isNull())
dyCode_ = value["DyCode"].asString();
if(!value["DyMessage"].isNull())
dyMessage_ = value["DyMessage"].asString();
}
std::string ShowQuickAnalysisResult::getDyCode()const
{
return dyCode_;
}
std::string ShowQuickAnalysisResult::getMessage()const
{
return message_;
}
ShowQuickAnalysisResult::Data ShowQuickAnalysisResult::getData()const
{
return data_;
}
int ShowQuickAnalysisResult::getCode()const
{
return code_;
}
std::string ShowQuickAnalysisResult::getDyMessage()const
{
return dyMessage_;
}
bool ShowQuickAnalysisResult::getSuccess()const
{
return success_;
}
std::string ShowQuickAnalysisResult::getErrCode()const
{
return errCode_;
}

View File

@@ -0,0 +1,81 @@
/*
* 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/cloud-siem/model/SubmitImportLogTasksRequest.h>
using AlibabaCloud::Cloud_siem::Model::SubmitImportLogTasksRequest;
SubmitImportLogTasksRequest::SubmitImportLogTasksRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "SubmitImportLogTasks") {
setMethod(HttpRequest::Method::Post);
}
SubmitImportLogTasksRequest::~SubmitImportLogTasksRequest() {}
std::string SubmitImportLogTasksRequest::getCloudCode() const {
return cloudCode_;
}
void SubmitImportLogTasksRequest::setCloudCode(const std::string &cloudCode) {
cloudCode_ = cloudCode;
setBodyParameter(std::string("CloudCode"), cloudCode);
}
std::string SubmitImportLogTasksRequest::getRegionId() const {
return regionId_;
}
void SubmitImportLogTasksRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string SubmitImportLogTasksRequest::getLogCodes() const {
return logCodes_;
}
void SubmitImportLogTasksRequest::setLogCodes(const std::string &logCodes) {
logCodes_ = logCodes;
setBodyParameter(std::string("LogCodes"), logCodes);
}
std::string SubmitImportLogTasksRequest::getProdCode() const {
return prodCode_;
}
void SubmitImportLogTasksRequest::setProdCode(const std::string &prodCode) {
prodCode_ = prodCode;
setBodyParameter(std::string("ProdCode"), prodCode);
}
int SubmitImportLogTasksRequest::getAutoImported() const {
return autoImported_;
}
void SubmitImportLogTasksRequest::setAutoImported(int autoImported) {
autoImported_ = autoImported;
setBodyParameter(std::string("AutoImported"), std::to_string(autoImported));
}
std::string SubmitImportLogTasksRequest::getAccounts() const {
return accounts_;
}
void SubmitImportLogTasksRequest::setAccounts(const std::string &accounts) {
accounts_ = accounts;
setBodyParameter(std::string("Accounts"), accounts);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/cloud-siem/model/SubmitImportLogTasksResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
SubmitImportLogTasksResult::SubmitImportLogTasksResult() :
ServiceResult()
{}
SubmitImportLogTasksResult::SubmitImportLogTasksResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubmitImportLogTasksResult::~SubmitImportLogTasksResult()
{}
void SubmitImportLogTasksResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Count"].isNull())
data_.count = std::stoi(dataNode["Count"].asString());
}
SubmitImportLogTasksResult::Data SubmitImportLogTasksResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,45 @@
/*
* 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/cloud-siem/model/SubmitJobsRequest.h>
using AlibabaCloud::Cloud_siem::Model::SubmitJobsRequest;
SubmitJobsRequest::SubmitJobsRequest()
: RpcServiceRequest("cloud-siem", "2022-06-16", "SubmitJobs") {
setMethod(HttpRequest::Method::Post);
}
SubmitJobsRequest::~SubmitJobsRequest() {}
std::string SubmitJobsRequest::getRegionId() const {
return regionId_;
}
void SubmitJobsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string SubmitJobsRequest::getJsonParam() const {
return jsonParam_;
}
void SubmitJobsRequest::setJsonParam(const std::string &jsonParam) {
jsonParam_ = jsonParam;
setBodyParameter(std::string("JsonParam"), jsonParam);
}

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/cloud-siem/model/SubmitJobsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloud_siem;
using namespace AlibabaCloud::Cloud_siem::Model;
SubmitJobsResult::SubmitJobsResult() :
ServiceResult()
{}
SubmitJobsResult::SubmitJobsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubmitJobsResult::~SubmitJobsResult()
{}
void SubmitJobsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = std::stoi(value["Data"].asString());
}
int SubmitJobsResult::getData()const
{
return data_;
}