Add open file detect api.
This commit is contained in:
@@ -231,6 +231,78 @@ SasClient::CreateBackupPolicyOutcomeCallable SasClient::createBackupPolicyCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::CreateFileDetectOutcome SasClient::createFileDetect(const CreateFileDetectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateFileDetectOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateFileDetectOutcome(CreateFileDetectResult(outcome.result()));
|
||||
else
|
||||
return CreateFileDetectOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::createFileDetectAsync(const CreateFileDetectRequest& request, const CreateFileDetectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createFileDetect(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::CreateFileDetectOutcomeCallable SasClient::createFileDetectCallable(const CreateFileDetectRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateFileDetectOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createFileDetect(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::CreateFileDetectUploadUrlOutcome SasClient::createFileDetectUploadUrl(const CreateFileDetectUploadUrlRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateFileDetectUploadUrlOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateFileDetectUploadUrlOutcome(CreateFileDetectUploadUrlResult(outcome.result()));
|
||||
else
|
||||
return CreateFileDetectUploadUrlOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::createFileDetectUploadUrlAsync(const CreateFileDetectUploadUrlRequest& request, const CreateFileDetectUploadUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createFileDetectUploadUrl(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::CreateFileDetectUploadUrlOutcomeCallable SasClient::createFileDetectUploadUrlCallable(const CreateFileDetectUploadUrlRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateFileDetectUploadUrlOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createFileDetectUploadUrl(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::CreateOrUpdateAssetGroupOutcome SasClient::createOrUpdateAssetGroup(const CreateOrUpdateAssetGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4803,6 +4875,42 @@ SasClient::DescribeVulWhitelistOutcomeCallable SasClient::describeVulWhitelistCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeWarningExportInfoOutcome SasClient::describeWarningExportInfo(const DescribeWarningExportInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeWarningExportInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeWarningExportInfoOutcome(DescribeWarningExportInfoResult(outcome.result()));
|
||||
else
|
||||
return DescribeWarningExportInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeWarningExportInfoAsync(const DescribeWarningExportInfoRequest& request, const DescribeWarningExportInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeWarningExportInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeWarningExportInfoOutcomeCallable SasClient::describeWarningExportInfoCallable(const DescribeWarningExportInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeWarningExportInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeWarningExportInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeWarningMachinesOutcome SasClient::describeWarningMachines(const DescribeWarningMachinesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5091,6 +5199,42 @@ SasClient::GetBackupStorageCountOutcomeCallable SasClient::getBackupStorageCount
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::GetFileDetectResultOutcome SasClient::getFileDetectResult(const GetFileDetectResultRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetFileDetectResultOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetFileDetectResultOutcome(GetFileDetectResultResult(outcome.result()));
|
||||
else
|
||||
return GetFileDetectResultOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::getFileDetectResultAsync(const GetFileDetectResultRequest& request, const GetFileDetectResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getFileDetectResult(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::GetFileDetectResultOutcomeCallable SasClient::getFileDetectResultCallable(const GetFileDetectResultRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetFileDetectResultOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getFileDetectResult(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::GetSuspiciousStatisticsOutcome SasClient::getSuspiciousStatistics(const GetSuspiciousStatisticsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
63
sas/src/model/CreateFileDetectRequest.cc
Normal file
63
sas/src/model/CreateFileDetectRequest.cc
Normal 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/sas/model/CreateFileDetectRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::CreateFileDetectRequest;
|
||||
|
||||
CreateFileDetectRequest::CreateFileDetectRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "CreateFileDetect") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateFileDetectRequest::~CreateFileDetectRequest() {}
|
||||
|
||||
std::string CreateFileDetectRequest::getHashKey() const {
|
||||
return hashKey_;
|
||||
}
|
||||
|
||||
void CreateFileDetectRequest::setHashKey(const std::string &hashKey) {
|
||||
hashKey_ = hashKey;
|
||||
setParameter(std::string("HashKey"), hashKey);
|
||||
}
|
||||
|
||||
std::string CreateFileDetectRequest::getOssKey() const {
|
||||
return ossKey_;
|
||||
}
|
||||
|
||||
void CreateFileDetectRequest::setOssKey(const std::string &ossKey) {
|
||||
ossKey_ = ossKey;
|
||||
setParameter(std::string("OssKey"), ossKey);
|
||||
}
|
||||
|
||||
int CreateFileDetectRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateFileDetectRequest::setType(int type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), std::to_string(type));
|
||||
}
|
||||
|
||||
std::string CreateFileDetectRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreateFileDetectRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
51
sas/src/model/CreateFileDetectResult.cc
Normal file
51
sas/src/model/CreateFileDetectResult.cc
Normal 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/sas/model/CreateFileDetectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
CreateFileDetectResult::CreateFileDetectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateFileDetectResult::CreateFileDetectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateFileDetectResult::~CreateFileDetectResult()
|
||||
{}
|
||||
|
||||
void CreateFileDetectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HashKey"].isNull())
|
||||
hashKey_ = value["HashKey"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateFileDetectResult::getHashKey()const
|
||||
{
|
||||
return hashKey_;
|
||||
}
|
||||
|
||||
44
sas/src/model/CreateFileDetectUploadUrlRequest.cc
Normal file
44
sas/src/model/CreateFileDetectUploadUrlRequest.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/CreateFileDetectUploadUrlRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::CreateFileDetectUploadUrlRequest;
|
||||
|
||||
CreateFileDetectUploadUrlRequest::CreateFileDetectUploadUrlRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "CreateFileDetectUploadUrl") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateFileDetectUploadUrlRequest::~CreateFileDetectUploadUrlRequest() {}
|
||||
|
||||
std::vector<std::string> CreateFileDetectUploadUrlRequest::getHashKeyList() const {
|
||||
return hashKeyList_;
|
||||
}
|
||||
|
||||
void CreateFileDetectUploadUrlRequest::setHashKeyList(const std::vector<std::string> &hashKeyList) {
|
||||
hashKeyList_ = hashKeyList;
|
||||
}
|
||||
|
||||
int CreateFileDetectUploadUrlRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateFileDetectUploadUrlRequest::setType(int type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), std::to_string(type));
|
||||
}
|
||||
|
||||
74
sas/src/model/CreateFileDetectUploadUrlResult.cc
Normal file
74
sas/src/model/CreateFileDetectUploadUrlResult.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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/sas/model/CreateFileDetectUploadUrlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
CreateFileDetectUploadUrlResult::CreateFileDetectUploadUrlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateFileDetectUploadUrlResult::CreateFileDetectUploadUrlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateFileDetectUploadUrlResult::~CreateFileDetectUploadUrlResult()
|
||||
{}
|
||||
|
||||
void CreateFileDetectUploadUrlResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allUploadUrlListNode = value["UploadUrlList"]["UploadUrList"];
|
||||
for (auto valueUploadUrlListUploadUrList : allUploadUrlListNode)
|
||||
{
|
||||
UploadUrList uploadUrlListObject;
|
||||
if(!valueUploadUrlListUploadUrList["PublicUrl"].isNull())
|
||||
uploadUrlListObject.publicUrl = valueUploadUrlListUploadUrList["PublicUrl"].asString();
|
||||
if(!valueUploadUrlListUploadUrList["InternalUrl"].isNull())
|
||||
uploadUrlListObject.internalUrl = valueUploadUrlListUploadUrList["InternalUrl"].asString();
|
||||
if(!valueUploadUrlListUploadUrList["Expire"].isNull())
|
||||
uploadUrlListObject.expire = valueUploadUrlListUploadUrList["Expire"].asString();
|
||||
if(!valueUploadUrlListUploadUrList["FileExist"].isNull())
|
||||
uploadUrlListObject.fileExist = valueUploadUrlListUploadUrList["FileExist"].asString() == "true";
|
||||
if(!valueUploadUrlListUploadUrList["HashKey"].isNull())
|
||||
uploadUrlListObject.hashKey = valueUploadUrlListUploadUrList["HashKey"].asString();
|
||||
auto contextNode = value["Context"];
|
||||
if(!contextNode["AccessId"].isNull())
|
||||
uploadUrlListObject.context.accessId = contextNode["AccessId"].asString();
|
||||
if(!contextNode["Policy"].isNull())
|
||||
uploadUrlListObject.context.policy = contextNode["Policy"].asString();
|
||||
if(!contextNode["Signature"].isNull())
|
||||
uploadUrlListObject.context.signature = contextNode["Signature"].asString();
|
||||
if(!contextNode["OssKey"].isNull())
|
||||
uploadUrlListObject.context.ossKey = contextNode["OssKey"].asString();
|
||||
uploadUrlList_.push_back(uploadUrlListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<CreateFileDetectUploadUrlResult::UploadUrList> CreateFileDetectUploadUrlResult::getUploadUrlList()const
|
||||
{
|
||||
return uploadUrlList_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeAlarmEventListRequest::DescribeAlarmEventListRequest()
|
||||
|
||||
DescribeAlarmEventListRequest::~DescribeAlarmEventListRequest() {}
|
||||
|
||||
std::string DescribeAlarmEventListRequest::getTimeEnd() const {
|
||||
return timeEnd_;
|
||||
}
|
||||
|
||||
void DescribeAlarmEventListRequest::setTimeEnd(const std::string &timeEnd) {
|
||||
timeEnd_ = timeEnd;
|
||||
setParameter(std::string("TimeEnd"), timeEnd);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventListRequest::getTargetType() const {
|
||||
return targetType_;
|
||||
}
|
||||
@@ -178,6 +187,15 @@ void DescribeAlarmEventListRequest::setClusterId(const std::string &clusterId) {
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventListRequest::getOperateTimeEnd() const {
|
||||
return operateTimeEnd_;
|
||||
}
|
||||
|
||||
void DescribeAlarmEventListRequest::setOperateTimeEnd(const std::string &operateTimeEnd) {
|
||||
operateTimeEnd_ = operateTimeEnd;
|
||||
setParameter(std::string("OperateTimeEnd"), operateTimeEnd);
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeAlarmEventListRequest::getOperateErrorCodeList() const {
|
||||
return operateErrorCodeList_;
|
||||
}
|
||||
@@ -186,6 +204,24 @@ void DescribeAlarmEventListRequest::setOperateErrorCodeList(const std::vector<st
|
||||
operateErrorCodeList_ = operateErrorCodeList;
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventListRequest::getOperateTimeStart() const {
|
||||
return operateTimeStart_;
|
||||
}
|
||||
|
||||
void DescribeAlarmEventListRequest::setOperateTimeStart(const std::string &operateTimeStart) {
|
||||
operateTimeStart_ = operateTimeStart;
|
||||
setParameter(std::string("OperateTimeStart"), operateTimeStart);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventListRequest::getTimeStart() const {
|
||||
return timeStart_;
|
||||
}
|
||||
|
||||
void DescribeAlarmEventListRequest::setTimeStart(const std::string &timeStart) {
|
||||
timeStart_ = timeStart;
|
||||
setParameter(std::string("TimeStart"), timeStart);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventListRequest::getLevels() const {
|
||||
return levels_;
|
||||
}
|
||||
@@ -195,3 +231,12 @@ void DescribeAlarmEventListRequest::setLevels(const std::string &levels) {
|
||||
setParameter(std::string("Levels"), levels);
|
||||
}
|
||||
|
||||
std::string DescribeAlarmEventListRequest::getUuids() const {
|
||||
return uuids_;
|
||||
}
|
||||
|
||||
void DescribeAlarmEventListRequest::setUuids(const std::string &uuids) {
|
||||
uuids_ = uuids;
|
||||
setParameter(std::string("Uuids"), uuids);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,6 +42,10 @@ void DescribeAssetSummaryResult::parse(const std::string &payload)
|
||||
auto assetsSummaryNode = value["AssetsSummary"];
|
||||
if(!assetsSummaryNode["TotalCoreNum"].isNull())
|
||||
assetsSummary_.totalCoreNum = std::stoi(assetsSummaryNode["TotalCoreNum"].asString());
|
||||
if(!assetsSummaryNode["TotalAssetAllRegion"].isNull())
|
||||
assetsSummary_.totalAssetAllRegion = std::stoi(assetsSummaryNode["TotalAssetAllRegion"].asString());
|
||||
if(!assetsSummaryNode["TotalCoreAllRegion"].isNull())
|
||||
assetsSummary_.totalCoreAllRegion = std::stoi(assetsSummaryNode["TotalCoreAllRegion"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -25,24 +25,6 @@ DescribeSuspEventsRequest::DescribeSuspEventsRequest()
|
||||
|
||||
DescribeSuspEventsRequest::~DescribeSuspEventsRequest() {}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getTargetType() const {
|
||||
return targetType_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setTargetType(const std::string &targetType) {
|
||||
targetType_ = targetType;
|
||||
setParameter(std::string("TargetType"), targetType);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getRemark() const {
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setRemark(const std::string &remark) {
|
||||
remark_ = remark;
|
||||
setParameter(std::string("Remark"), remark);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getSource() const {
|
||||
return source_;
|
||||
}
|
||||
@@ -70,15 +52,6 @@ void DescribeSuspEventsRequest::setSourceIp(const std::string &sourceIp) {
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getContainerFieldValue() const {
|
||||
return containerFieldValue_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setContainerFieldValue(const std::string &containerFieldValue) {
|
||||
containerFieldValue_ = containerFieldValue;
|
||||
setParameter(std::string("ContainerFieldValue"), containerFieldValue);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getEventNames() const {
|
||||
return eventNames_;
|
||||
}
|
||||
@@ -88,15 +61,6 @@ void DescribeSuspEventsRequest::setEventNames(const std::string &eventNames) {
|
||||
setParameter(std::string("EventNames"), eventNames);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setPageSize(const std::string &pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), pageSize);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getFrom() const {
|
||||
return from_;
|
||||
}
|
||||
@@ -124,15 +88,6 @@ void DescribeSuspEventsRequest::setTacticId(const std::string &tacticId) {
|
||||
setBodyParameter(std::string("TacticId"), tacticId);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setLang(const std::string &lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getAlarmUniqueInfo() const {
|
||||
return alarmUniqueInfo_;
|
||||
}
|
||||
@@ -160,6 +115,96 @@ void DescribeSuspEventsRequest::setGroupId(long groupId) {
|
||||
setParameter(std::string("GroupId"), std::to_string(groupId));
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getOperateTimeEnd() const {
|
||||
return operateTimeEnd_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setOperateTimeEnd(const std::string &operateTimeEnd) {
|
||||
operateTimeEnd_ = operateTimeEnd;
|
||||
setParameter(std::string("OperateTimeEnd"), operateTimeEnd);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getUuids() const {
|
||||
return uuids_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setUuids(const std::string &uuids) {
|
||||
uuids_ = uuids;
|
||||
setParameter(std::string("Uuids"), uuids);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getTimeEnd() const {
|
||||
return timeEnd_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setTimeEnd(const std::string &timeEnd) {
|
||||
timeEnd_ = timeEnd;
|
||||
setParameter(std::string("TimeEnd"), timeEnd);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getTargetType() const {
|
||||
return targetType_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setTargetType(const std::string &targetType) {
|
||||
targetType_ = targetType;
|
||||
setParameter(std::string("TargetType"), targetType);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getRemark() const {
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setRemark(const std::string &remark) {
|
||||
remark_ = remark;
|
||||
setParameter(std::string("Remark"), remark);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getContainerFieldValue() const {
|
||||
return containerFieldValue_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setContainerFieldValue(const std::string &containerFieldValue) {
|
||||
containerFieldValue_ = containerFieldValue;
|
||||
setParameter(std::string("ContainerFieldValue"), containerFieldValue);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setPageSize(const std::string &pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), pageSize);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setLang(const std::string &lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getDealed() const {
|
||||
return dealed_;
|
||||
}
|
||||
@@ -195,13 +240,22 @@ void DescribeSuspEventsRequest::setOperateErrorCodeList(const std::vector<std::s
|
||||
operateErrorCodeList_ = operateErrorCodeList;
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getName() const {
|
||||
return name_;
|
||||
std::string DescribeSuspEventsRequest::getOperateTimeStart() const {
|
||||
return operateTimeStart_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
void DescribeSuspEventsRequest::setOperateTimeStart(const std::string &operateTimeStart) {
|
||||
operateTimeStart_ = operateTimeStart;
|
||||
setParameter(std::string("OperateTimeStart"), operateTimeStart);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getTimeStart() const {
|
||||
return timeStart_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setTimeStart(const std::string &timeStart) {
|
||||
timeStart_ = timeStart;
|
||||
setParameter(std::string("TimeStart"), timeStart);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getLevels() const {
|
||||
@@ -222,21 +276,3 @@ void DescribeSuspEventsRequest::setParentEventTypes(const std::string &parentEve
|
||||
setParameter(std::string("ParentEventTypes"), parentEventTypes);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventsRequest::getUuids() const {
|
||||
return uuids_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventsRequest::setUuids(const std::string &uuids) {
|
||||
uuids_ = uuids;
|
||||
setParameter(std::string("Uuids"), uuids);
|
||||
}
|
||||
|
||||
|
||||
@@ -101,6 +101,10 @@ void DescribeVersionConfigResult::parse(const std::string &payload)
|
||||
isTrialVersion_ = std::stoi(value["IsTrialVersion"].asString());
|
||||
if(!value["UserDefinedAlarms"].isNull())
|
||||
userDefinedAlarms_ = std::stoi(value["UserDefinedAlarms"].asString());
|
||||
if(!value["OpenTime"].isNull())
|
||||
openTime_ = std::stol(value["OpenTime"].asString());
|
||||
if(!value["IsNewContainerVersion"].isNull())
|
||||
isNewContainerVersion_ = value["IsNewContainerVersion"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
@@ -129,6 +133,11 @@ int DescribeVersionConfigResult::getSasLog()const
|
||||
return sasLog_;
|
||||
}
|
||||
|
||||
long DescribeVersionConfigResult::getOpenTime()const
|
||||
{
|
||||
return openTime_;
|
||||
}
|
||||
|
||||
int DescribeVersionConfigResult::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
@@ -244,6 +253,11 @@ long DescribeVersionConfigResult::getReleaseTime()const
|
||||
return releaseTime_;
|
||||
}
|
||||
|
||||
bool DescribeVersionConfigResult::getIsNewContainerVersion()const
|
||||
{
|
||||
return isNewContainerVersion_;
|
||||
}
|
||||
|
||||
int DescribeVersionConfigResult::getMVUnusedAuthCount()const
|
||||
{
|
||||
return mVUnusedAuthCount_;
|
||||
|
||||
@@ -79,6 +79,8 @@ void DescribeVulDetailsResult::parse(const std::string &payload)
|
||||
cvesObject.content = valueCvesCve["Content"].asString();
|
||||
if(!valueCvesCve["Poc"].isNull())
|
||||
cvesObject.poc = valueCvesCve["Poc"].asString();
|
||||
if(!valueCvesCve["OtherId"].isNull())
|
||||
cvesObject.otherId = valueCvesCve["OtherId"].asString();
|
||||
auto allClassifysNode = valueCvesCve["Classifys"]["Classify"];
|
||||
for (auto valueCvesCveClassifysClassify : allClassifysNode)
|
||||
{
|
||||
|
||||
45
sas/src/model/DescribeWarningExportInfoRequest.cc
Normal file
45
sas/src/model/DescribeWarningExportInfoRequest.cc
Normal 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/sas/model/DescribeWarningExportInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeWarningExportInfoRequest;
|
||||
|
||||
DescribeWarningExportInfoRequest::DescribeWarningExportInfoRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "DescribeWarningExportInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeWarningExportInfoRequest::~DescribeWarningExportInfoRequest() {}
|
||||
|
||||
std::string DescribeWarningExportInfoRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeWarningExportInfoRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
long DescribeWarningExportInfoRequest::getExportId() const {
|
||||
return exportId_;
|
||||
}
|
||||
|
||||
void DescribeWarningExportInfoRequest::setExportId(long exportId) {
|
||||
exportId_ = exportId;
|
||||
setParameter(std::string("ExportId"), std::to_string(exportId));
|
||||
}
|
||||
|
||||
100
sas/src/model/DescribeWarningExportInfoResult.cc
Normal file
100
sas/src/model/DescribeWarningExportInfoResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* 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/sas/model/DescribeWarningExportInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeWarningExportInfoResult::DescribeWarningExportInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeWarningExportInfoResult::DescribeWarningExportInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeWarningExportInfoResult::~DescribeWarningExportInfoResult()
|
||||
{}
|
||||
|
||||
void DescribeWarningExportInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Link"].isNull())
|
||||
link_ = value["Link"].asString();
|
||||
if(!value["Progress"].isNull())
|
||||
progress_ = std::stoi(value["Progress"].asString());
|
||||
if(!value["CurrentCount"].isNull())
|
||||
currentCount_ = std::stoi(value["CurrentCount"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["FileName"].isNull())
|
||||
fileName_ = value["FileName"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["ExportStatus"].isNull())
|
||||
exportStatus_ = value["ExportStatus"].asString();
|
||||
if(!value["Id"].isNull())
|
||||
id_ = std::stol(value["Id"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeWarningExportInfoResult::getProgress()const
|
||||
{
|
||||
return progress_;
|
||||
}
|
||||
|
||||
int DescribeWarningExportInfoResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string DescribeWarningExportInfoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeWarningExportInfoResult::getFileName()const
|
||||
{
|
||||
return fileName_;
|
||||
}
|
||||
|
||||
std::string DescribeWarningExportInfoResult::getExportStatus()const
|
||||
{
|
||||
return exportStatus_;
|
||||
}
|
||||
|
||||
int DescribeWarningExportInfoResult::getCurrentCount()const
|
||||
{
|
||||
return currentCount_;
|
||||
}
|
||||
|
||||
long DescribeWarningExportInfoResult::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
std::string DescribeWarningExportInfoResult::getLink()const
|
||||
{
|
||||
return link_;
|
||||
}
|
||||
|
||||
53
sas/src/model/GetFileDetectResultRequest.cc
Normal file
53
sas/src/model/GetFileDetectResultRequest.cc
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* 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/sas/model/GetFileDetectResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::GetFileDetectResultRequest;
|
||||
|
||||
GetFileDetectResultRequest::GetFileDetectResultRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "GetFileDetectResult") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetFileDetectResultRequest::~GetFileDetectResultRequest() {}
|
||||
|
||||
std::vector<std::string> GetFileDetectResultRequest::getHashKeyList() const {
|
||||
return hashKeyList_;
|
||||
}
|
||||
|
||||
void GetFileDetectResultRequest::setHashKeyList(const std::vector<std::string> &hashKeyList) {
|
||||
hashKeyList_ = hashKeyList;
|
||||
}
|
||||
|
||||
int GetFileDetectResultRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void GetFileDetectResultRequest::setType(int type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), std::to_string(type));
|
||||
}
|
||||
|
||||
std::string GetFileDetectResultRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void GetFileDetectResultRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
62
sas/src/model/GetFileDetectResultResult.cc
Normal file
62
sas/src/model/GetFileDetectResultResult.cc
Normal 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/sas/model/GetFileDetectResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
GetFileDetectResultResult::GetFileDetectResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetFileDetectResultResult::GetFileDetectResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetFileDetectResultResult::~GetFileDetectResultResult()
|
||||
{}
|
||||
|
||||
void GetFileDetectResultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResultListNode = value["ResultList"]["Result"];
|
||||
for (auto valueResultListResult : allResultListNode)
|
||||
{
|
||||
Result resultListObject;
|
||||
if(!valueResultListResult["Result"].isNull())
|
||||
resultListObject.result = std::stoi(valueResultListResult["Result"].asString());
|
||||
if(!valueResultListResult["HashKey"].isNull())
|
||||
resultListObject.hashKey = valueResultListResult["HashKey"].asString();
|
||||
auto extNode = value["Ext"];
|
||||
if(!extNode["VirusName"].isNull())
|
||||
resultListObject.ext.virusName = extNode["VirusName"].asString();
|
||||
resultList_.push_back(resultListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetFileDetectResultResult::Result> GetFileDetectResultResult::getResultList()const
|
||||
{
|
||||
return resultList_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,31 @@ ModifyOpenLogShipperRequest::ModifyOpenLogShipperRequest()
|
||||
|
||||
ModifyOpenLogShipperRequest::~ModifyOpenLogShipperRequest() {}
|
||||
|
||||
std::vector<ModifyOpenLogShipperRequest::LogMetaList> ModifyOpenLogShipperRequest::getLogMetaList() const {
|
||||
return logMetaList_;
|
||||
}
|
||||
|
||||
void ModifyOpenLogShipperRequest::setLogMetaList(const std::vector<ModifyOpenLogShipperRequest::LogMetaList> &logMetaList) {
|
||||
logMetaList_ = logMetaList;
|
||||
for(int dep1 = 0; dep1 != logMetaList.size(); dep1++) {
|
||||
auto logMetaListObj = logMetaList.at(dep1);
|
||||
std::string logMetaListObjStr = std::string("LogMetaList") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(logMetaListObjStr + ".HotTtl", std::to_string(logMetaListObj.hotTtl));
|
||||
setParameter(logMetaListObjStr + ".Ttl", std::to_string(logMetaListObj.ttl));
|
||||
setParameter(logMetaListObjStr + ".ConfigLogStore", logMetaListObj.configLogStore);
|
||||
setParameter(logMetaListObjStr + ".Status", logMetaListObj.status);
|
||||
}
|
||||
}
|
||||
|
||||
int ModifyOpenLogShipperRequest::getTtl() const {
|
||||
return ttl_;
|
||||
}
|
||||
|
||||
void ModifyOpenLogShipperRequest::setTtl(int ttl) {
|
||||
ttl_ = ttl;
|
||||
setParameter(std::string("Ttl"), std::to_string(ttl));
|
||||
}
|
||||
|
||||
std::string ModifyOpenLogShipperRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
@@ -34,6 +59,15 @@ void ModifyOpenLogShipperRequest::setSourceIp(const std::string &sourceIp) {
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
int ModifyOpenLogShipperRequest::getHotTtl() const {
|
||||
return hotTtl_;
|
||||
}
|
||||
|
||||
void ModifyOpenLogShipperRequest::setHotTtl(int hotTtl) {
|
||||
hotTtl_ = hotTtl;
|
||||
setParameter(std::string("HotTtl"), std::to_string(hotTtl));
|
||||
}
|
||||
|
||||
std::string ModifyOpenLogShipperRequest::getFrom() const {
|
||||
return from_;
|
||||
}
|
||||
@@ -43,3 +77,12 @@ void ModifyOpenLogShipperRequest::setFrom(const std::string &from) {
|
||||
setParameter(std::string("From"), from);
|
||||
}
|
||||
|
||||
std::string ModifyOpenLogShipperRequest::getTargetRegionId() const {
|
||||
return targetRegionId_;
|
||||
}
|
||||
|
||||
void ModifyOpenLogShipperRequest::setTargetRegionId(const std::string &targetRegionId) {
|
||||
targetRegionId_ = targetRegionId;
|
||||
setParameter(std::string("TargetRegionId"), targetRegionId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user