Update sdk.

This commit is contained in:
sdk-team
2023-06-25 09:43:37 +00:00
parent 34607b9120
commit e7391bcf60
113 changed files with 8695 additions and 1 deletions

1025
ddosbgp/src/DdosbgpClient.cc Normal file

File diff suppressed because it is too large Load Diff

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/ddosbgp/model/AddIpRequest.h>
using AlibabaCloud::Ddosbgp::Model::AddIpRequest;
AddIpRequest::AddIpRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "AddIp") {
setMethod(HttpRequest::Method::Post);
}
AddIpRequest::~AddIpRequest() {}
std::string AddIpRequest::getIpList() const {
return ipList_;
}
void AddIpRequest::setIpList(const std::string &ipList) {
ipList_ = ipList;
setParameter(std::string("IpList"), ipList);
}
std::string AddIpRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void AddIpRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string AddIpRequest::getInstanceId() const {
return instanceId_;
}
void AddIpRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string AddIpRequest::getSourceIp() const {
return sourceIp_;
}
void AddIpRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string AddIpRequest::getRegionId() const {
return regionId_;
}
void AddIpRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View File

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

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/ddosbgp/model/CheckAccessLogAuthRequest.h>
using AlibabaCloud::Ddosbgp::Model::CheckAccessLogAuthRequest;
CheckAccessLogAuthRequest::CheckAccessLogAuthRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "CheckAccessLogAuth") {
setMethod(HttpRequest::Method::Post);
}
CheckAccessLogAuthRequest::~CheckAccessLogAuthRequest() {}
std::string CheckAccessLogAuthRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void CheckAccessLogAuthRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string CheckAccessLogAuthRequest::getSourceIp() const {
return sourceIp_;
}
void CheckAccessLogAuthRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string CheckAccessLogAuthRequest::getRegionId() const {
return regionId_;
}
void CheckAccessLogAuthRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(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/ddosbgp/model/CheckAccessLogAuthResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddosbgp;
using namespace AlibabaCloud::Ddosbgp::Model;
CheckAccessLogAuthResult::CheckAccessLogAuthResult() :
ServiceResult()
{}
CheckAccessLogAuthResult::CheckAccessLogAuthResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CheckAccessLogAuthResult::~CheckAccessLogAuthResult()
{}
void CheckAccessLogAuthResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["AccessLogAuth"].isNull())
accessLogAuth_ = value["AccessLogAuth"].asString() == "true";
}
bool CheckAccessLogAuthResult::getAccessLogAuth()const
{
return accessLogAuth_;
}

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/ddosbgp/model/CheckGrantRequest.h>
using AlibabaCloud::Ddosbgp::Model::CheckGrantRequest;
CheckGrantRequest::CheckGrantRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "CheckGrant") {
setMethod(HttpRequest::Method::Get);
}
CheckGrantRequest::~CheckGrantRequest() {}
std::string CheckGrantRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void CheckGrantRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string CheckGrantRequest::getSourceIp() const {
return sourceIp_;
}
void CheckGrantRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string CheckGrantRequest::getRegionId() const {
return regionId_;
}
void CheckGrantRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(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/ddosbgp/model/CheckGrantResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddosbgp;
using namespace AlibabaCloud::Ddosbgp::Model;
CheckGrantResult::CheckGrantResult() :
ServiceResult()
{}
CheckGrantResult::CheckGrantResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CheckGrantResult::~CheckGrantResult()
{}
void CheckGrantResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Status"].isNull())
status_ = std::stoi(value["Status"].asString());
}
int CheckGrantResult::getStatus()const
{
return status_;
}

View File

@@ -0,0 +1,144 @@
/*
* 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/ddosbgp/model/ConfigSchedruleOnDemandRequest.h>
using AlibabaCloud::Ddosbgp::Model::ConfigSchedruleOnDemandRequest;
ConfigSchedruleOnDemandRequest::ConfigSchedruleOnDemandRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "ConfigSchedruleOnDemand") {
setMethod(HttpRequest::Method::Post);
}
ConfigSchedruleOnDemandRequest::~ConfigSchedruleOnDemandRequest() {}
std::string ConfigSchedruleOnDemandRequest::getTimeZone() const {
return timeZone_;
}
void ConfigSchedruleOnDemandRequest::setTimeZone(const std::string &timeZone) {
timeZone_ = timeZone;
setParameter(std::string("TimeZone"), timeZone);
}
std::string ConfigSchedruleOnDemandRequest::getRuleName() const {
return ruleName_;
}
void ConfigSchedruleOnDemandRequest::setRuleName(const std::string &ruleName) {
ruleName_ = ruleName;
setParameter(std::string("RuleName"), ruleName);
}
std::string ConfigSchedruleOnDemandRequest::getRuleConditionMbps() const {
return ruleConditionMbps_;
}
void ConfigSchedruleOnDemandRequest::setRuleConditionMbps(const std::string &ruleConditionMbps) {
ruleConditionMbps_ = ruleConditionMbps;
setParameter(std::string("RuleConditionMbps"), ruleConditionMbps);
}
std::string ConfigSchedruleOnDemandRequest::getRuleAction() const {
return ruleAction_;
}
void ConfigSchedruleOnDemandRequest::setRuleAction(const std::string &ruleAction) {
ruleAction_ = ruleAction;
setParameter(std::string("RuleAction"), ruleAction);
}
std::string ConfigSchedruleOnDemandRequest::getSourceIp() const {
return sourceIp_;
}
void ConfigSchedruleOnDemandRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string ConfigSchedruleOnDemandRequest::getRegionId() const {
return regionId_;
}
void ConfigSchedruleOnDemandRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string ConfigSchedruleOnDemandRequest::getRuleUndoMode() const {
return ruleUndoMode_;
}
void ConfigSchedruleOnDemandRequest::setRuleUndoMode(const std::string &ruleUndoMode) {
ruleUndoMode_ = ruleUndoMode;
setParameter(std::string("RuleUndoMode"), ruleUndoMode);
}
std::string ConfigSchedruleOnDemandRequest::getRuleUndoEndTime() const {
return ruleUndoEndTime_;
}
void ConfigSchedruleOnDemandRequest::setRuleUndoEndTime(const std::string &ruleUndoEndTime) {
ruleUndoEndTime_ = ruleUndoEndTime;
setParameter(std::string("RuleUndoEndTime"), ruleUndoEndTime);
}
std::string ConfigSchedruleOnDemandRequest::getInstanceId() const {
return instanceId_;
}
void ConfigSchedruleOnDemandRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string ConfigSchedruleOnDemandRequest::getRuleUndoBeginTime() const {
return ruleUndoBeginTime_;
}
void ConfigSchedruleOnDemandRequest::setRuleUndoBeginTime(const std::string &ruleUndoBeginTime) {
ruleUndoBeginTime_ = ruleUndoBeginTime;
setParameter(std::string("RuleUndoBeginTime"), ruleUndoBeginTime);
}
std::string ConfigSchedruleOnDemandRequest::getRuleConditionCnt() const {
return ruleConditionCnt_;
}
void ConfigSchedruleOnDemandRequest::setRuleConditionCnt(const std::string &ruleConditionCnt) {
ruleConditionCnt_ = ruleConditionCnt;
setParameter(std::string("RuleConditionCnt"), ruleConditionCnt);
}
std::string ConfigSchedruleOnDemandRequest::getRuleSwitch() const {
return ruleSwitch_;
}
void ConfigSchedruleOnDemandRequest::setRuleSwitch(const std::string &ruleSwitch) {
ruleSwitch_ = ruleSwitch;
setParameter(std::string("RuleSwitch"), ruleSwitch);
}
std::string ConfigSchedruleOnDemandRequest::getRuleConditionKpps() const {
return ruleConditionKpps_;
}
void ConfigSchedruleOnDemandRequest::setRuleConditionKpps(const std::string &ruleConditionKpps) {
ruleConditionKpps_ = ruleConditionKpps;
setParameter(std::string("RuleConditionKpps"), ruleConditionKpps);
}

View File

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

View File

@@ -0,0 +1,144 @@
/*
* 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/ddosbgp/model/CreateSchedruleOnDemandRequest.h>
using AlibabaCloud::Ddosbgp::Model::CreateSchedruleOnDemandRequest;
CreateSchedruleOnDemandRequest::CreateSchedruleOnDemandRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "CreateSchedruleOnDemand") {
setMethod(HttpRequest::Method::Post);
}
CreateSchedruleOnDemandRequest::~CreateSchedruleOnDemandRequest() {}
std::string CreateSchedruleOnDemandRequest::getTimeZone() const {
return timeZone_;
}
void CreateSchedruleOnDemandRequest::setTimeZone(const std::string &timeZone) {
timeZone_ = timeZone;
setParameter(std::string("TimeZone"), timeZone);
}
std::string CreateSchedruleOnDemandRequest::getRuleName() const {
return ruleName_;
}
void CreateSchedruleOnDemandRequest::setRuleName(const std::string &ruleName) {
ruleName_ = ruleName;
setParameter(std::string("RuleName"), ruleName);
}
std::string CreateSchedruleOnDemandRequest::getRuleConditionMbps() const {
return ruleConditionMbps_;
}
void CreateSchedruleOnDemandRequest::setRuleConditionMbps(const std::string &ruleConditionMbps) {
ruleConditionMbps_ = ruleConditionMbps;
setParameter(std::string("RuleConditionMbps"), ruleConditionMbps);
}
std::string CreateSchedruleOnDemandRequest::getRuleAction() const {
return ruleAction_;
}
void CreateSchedruleOnDemandRequest::setRuleAction(const std::string &ruleAction) {
ruleAction_ = ruleAction;
setParameter(std::string("RuleAction"), ruleAction);
}
std::string CreateSchedruleOnDemandRequest::getSourceIp() const {
return sourceIp_;
}
void CreateSchedruleOnDemandRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string CreateSchedruleOnDemandRequest::getRegionId() const {
return regionId_;
}
void CreateSchedruleOnDemandRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string CreateSchedruleOnDemandRequest::getRuleUndoMode() const {
return ruleUndoMode_;
}
void CreateSchedruleOnDemandRequest::setRuleUndoMode(const std::string &ruleUndoMode) {
ruleUndoMode_ = ruleUndoMode;
setParameter(std::string("RuleUndoMode"), ruleUndoMode);
}
std::string CreateSchedruleOnDemandRequest::getRuleUndoEndTime() const {
return ruleUndoEndTime_;
}
void CreateSchedruleOnDemandRequest::setRuleUndoEndTime(const std::string &ruleUndoEndTime) {
ruleUndoEndTime_ = ruleUndoEndTime;
setParameter(std::string("RuleUndoEndTime"), ruleUndoEndTime);
}
std::string CreateSchedruleOnDemandRequest::getInstanceId() const {
return instanceId_;
}
void CreateSchedruleOnDemandRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string CreateSchedruleOnDemandRequest::getRuleUndoBeginTime() const {
return ruleUndoBeginTime_;
}
void CreateSchedruleOnDemandRequest::setRuleUndoBeginTime(const std::string &ruleUndoBeginTime) {
ruleUndoBeginTime_ = ruleUndoBeginTime;
setParameter(std::string("RuleUndoBeginTime"), ruleUndoBeginTime);
}
std::string CreateSchedruleOnDemandRequest::getRuleConditionCnt() const {
return ruleConditionCnt_;
}
void CreateSchedruleOnDemandRequest::setRuleConditionCnt(const std::string &ruleConditionCnt) {
ruleConditionCnt_ = ruleConditionCnt;
setParameter(std::string("RuleConditionCnt"), ruleConditionCnt);
}
std::string CreateSchedruleOnDemandRequest::getRuleSwitch() const {
return ruleSwitch_;
}
void CreateSchedruleOnDemandRequest::setRuleSwitch(const std::string &ruleSwitch) {
ruleSwitch_ = ruleSwitch;
setParameter(std::string("RuleSwitch"), ruleSwitch);
}
std::string CreateSchedruleOnDemandRequest::getRuleConditionKpps() const {
return ruleConditionKpps_;
}
void CreateSchedruleOnDemandRequest::setRuleConditionKpps(const std::string &ruleConditionKpps) {
ruleConditionKpps_ = ruleConditionKpps;
setParameter(std::string("RuleConditionKpps"), ruleConditionKpps);
}

View File

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

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/ddosbgp/model/DeleteBlackholeRequest.h>
using AlibabaCloud::Ddosbgp::Model::DeleteBlackholeRequest;
DeleteBlackholeRequest::DeleteBlackholeRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "DeleteBlackhole") {
setMethod(HttpRequest::Method::Post);
}
DeleteBlackholeRequest::~DeleteBlackholeRequest() {}
std::string DeleteBlackholeRequest::getIp() const {
return ip_;
}
void DeleteBlackholeRequest::setIp(const std::string &ip) {
ip_ = ip;
setParameter(std::string("Ip"), ip);
}
std::string DeleteBlackholeRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void DeleteBlackholeRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string DeleteBlackholeRequest::getInstanceId() const {
return instanceId_;
}
void DeleteBlackholeRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string DeleteBlackholeRequest::getSourceIp() const {
return sourceIp_;
}
void DeleteBlackholeRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DeleteBlackholeRequest::getRegionId() const {
return regionId_;
}
void DeleteBlackholeRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View File

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

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/ddosbgp/model/DeleteIpRequest.h>
using AlibabaCloud::Ddosbgp::Model::DeleteIpRequest;
DeleteIpRequest::DeleteIpRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "DeleteIp") {
setMethod(HttpRequest::Method::Post);
}
DeleteIpRequest::~DeleteIpRequest() {}
std::string DeleteIpRequest::getIpList() const {
return ipList_;
}
void DeleteIpRequest::setIpList(const std::string &ipList) {
ipList_ = ipList;
setParameter(std::string("IpList"), ipList);
}
std::string DeleteIpRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void DeleteIpRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string DeleteIpRequest::getInstanceId() const {
return instanceId_;
}
void DeleteIpRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string DeleteIpRequest::getSourceIp() const {
return sourceIp_;
}
void DeleteIpRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DeleteIpRequest::getRegionId() const {
return regionId_;
}
void DeleteIpRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View File

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

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/ddosbgp/model/DeleteSchedruleOnDemandRequest.h>
using AlibabaCloud::Ddosbgp::Model::DeleteSchedruleOnDemandRequest;
DeleteSchedruleOnDemandRequest::DeleteSchedruleOnDemandRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "DeleteSchedruleOnDemand") {
setMethod(HttpRequest::Method::Post);
}
DeleteSchedruleOnDemandRequest::~DeleteSchedruleOnDemandRequest() {}
std::string DeleteSchedruleOnDemandRequest::getRuleName() const {
return ruleName_;
}
void DeleteSchedruleOnDemandRequest::setRuleName(const std::string &ruleName) {
ruleName_ = ruleName;
setParameter(std::string("RuleName"), ruleName);
}
std::string DeleteSchedruleOnDemandRequest::getInstanceId() const {
return instanceId_;
}
void DeleteSchedruleOnDemandRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string DeleteSchedruleOnDemandRequest::getSourceIp() const {
return sourceIp_;
}
void DeleteSchedruleOnDemandRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DeleteSchedruleOnDemandRequest::getRegionId() const {
return regionId_;
}
void DeleteSchedruleOnDemandRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View File

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

View File

@@ -0,0 +1,108 @@
/*
* 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/ddosbgp/model/DescribeDdosEventRequest.h>
using AlibabaCloud::Ddosbgp::Model::DescribeDdosEventRequest;
DescribeDdosEventRequest::DescribeDdosEventRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "DescribeDdosEvent") {
setMethod(HttpRequest::Method::Post);
}
DescribeDdosEventRequest::~DescribeDdosEventRequest() {}
int DescribeDdosEventRequest::getStartTime() const {
return startTime_;
}
void DescribeDdosEventRequest::setStartTime(int startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), std::to_string(startTime));
}
std::string DescribeDdosEventRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void DescribeDdosEventRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string DescribeDdosEventRequest::getSourceIp() const {
return sourceIp_;
}
void DescribeDdosEventRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DescribeDdosEventRequest::getRegionId() const {
return regionId_;
}
void DescribeDdosEventRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
int DescribeDdosEventRequest::getPageSize() const {
return pageSize_;
}
void DescribeDdosEventRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string DescribeDdosEventRequest::getIp() const {
return ip_;
}
void DescribeDdosEventRequest::setIp(const std::string &ip) {
ip_ = ip;
setParameter(std::string("Ip"), ip);
}
int DescribeDdosEventRequest::getEndTime() const {
return endTime_;
}
void DescribeDdosEventRequest::setEndTime(int endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), std::to_string(endTime));
}
std::string DescribeDdosEventRequest::getInstanceId() const {
return instanceId_;
}
void DescribeDdosEventRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
int DescribeDdosEventRequest::getPageNo() const {
return pageNo_;
}
void DescribeDdosEventRequest::setPageNo(int pageNo) {
pageNo_ = pageNo;
setParameter(std::string("PageNo"), std::to_string(pageNo));
}

View 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/ddosbgp/model/DescribeDdosEventResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddosbgp;
using namespace AlibabaCloud::Ddosbgp::Model;
DescribeDdosEventResult::DescribeDdosEventResult() :
ServiceResult()
{}
DescribeDdosEventResult::DescribeDdosEventResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDdosEventResult::~DescribeDdosEventResult()
{}
void DescribeDdosEventResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allEventsNode = value["Events"]["Event"];
for (auto valueEventsEvent : allEventsNode)
{
Event eventsObject;
if(!valueEventsEvent["EndTime"].isNull())
eventsObject.endTime = std::stoi(valueEventsEvent["EndTime"].asString());
if(!valueEventsEvent["Status"].isNull())
eventsObject.status = valueEventsEvent["Status"].asString();
if(!valueEventsEvent["StartTime"].isNull())
eventsObject.startTime = std::stoi(valueEventsEvent["StartTime"].asString());
if(!valueEventsEvent["Mbps"].isNull())
eventsObject.mbps = std::stoi(valueEventsEvent["Mbps"].asString());
if(!valueEventsEvent["Ip"].isNull())
eventsObject.ip = valueEventsEvent["Ip"].asString();
if(!valueEventsEvent["Pps"].isNull())
eventsObject.pps = std::stoi(valueEventsEvent["Pps"].asString());
events_.push_back(eventsObject);
}
if(!value["Total"].isNull())
total_ = std::stol(value["Total"].asString());
}
std::vector<DescribeDdosEventResult::Event> DescribeDdosEventResult::getEvents()const
{
return events_;
}
long DescribeDdosEventResult::getTotal()const
{
return total_;
}

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/ddosbgp/model/DescribeExcpetionCountRequest.h>
using AlibabaCloud::Ddosbgp::Model::DescribeExcpetionCountRequest;
DescribeExcpetionCountRequest::DescribeExcpetionCountRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "DescribeExcpetionCount") {
setMethod(HttpRequest::Method::Post);
}
DescribeExcpetionCountRequest::~DescribeExcpetionCountRequest() {}
std::string DescribeExcpetionCountRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void DescribeExcpetionCountRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string DescribeExcpetionCountRequest::getSourceIp() const {
return sourceIp_;
}
void DescribeExcpetionCountRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DescribeExcpetionCountRequest::getRegionId() const {
return regionId_;
}
void DescribeExcpetionCountRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/ddosbgp/model/DescribeExcpetionCountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddosbgp;
using namespace AlibabaCloud::Ddosbgp::Model;
DescribeExcpetionCountResult::DescribeExcpetionCountResult() :
ServiceResult()
{}
DescribeExcpetionCountResult::DescribeExcpetionCountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeExcpetionCountResult::~DescribeExcpetionCountResult()
{}
void DescribeExcpetionCountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ExceptionIpCount"].isNull())
exceptionIpCount_ = std::stoi(value["ExceptionIpCount"].asString());
if(!value["ExpireTimeCount"].isNull())
expireTimeCount_ = std::stoi(value["ExpireTimeCount"].asString());
}
int DescribeExcpetionCountResult::getExceptionIpCount()const
{
return exceptionIpCount_;
}
int DescribeExcpetionCountResult::getExpireTimeCount()const
{
return expireTimeCount_;
}

View File

@@ -0,0 +1,160 @@
/*
* 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/ddosbgp/model/DescribeInstanceListRequest.h>
using AlibabaCloud::Ddosbgp::Model::DescribeInstanceListRequest;
DescribeInstanceListRequest::DescribeInstanceListRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "DescribeInstanceList") {
setMethod(HttpRequest::Method::Post);
}
DescribeInstanceListRequest::~DescribeInstanceListRequest() {}
std::string DescribeInstanceListRequest::getRemark() const {
return remark_;
}
void DescribeInstanceListRequest::setRemark(const std::string &remark) {
remark_ = remark;
setParameter(std::string("Remark"), remark);
}
std::string DescribeInstanceListRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void DescribeInstanceListRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string DescribeInstanceListRequest::getSourceIp() const {
return sourceIp_;
}
void DescribeInstanceListRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DescribeInstanceListRequest::getRegionId() const {
return regionId_;
}
void DescribeInstanceListRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
int DescribeInstanceListRequest::getPageSize() const {
return pageSize_;
}
void DescribeInstanceListRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string DescribeInstanceListRequest::getInstanceType() const {
return instanceType_;
}
void DescribeInstanceListRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setParameter(std::string("InstanceType"), instanceType);
}
std::string DescribeInstanceListRequest::getIpVersion() const {
return ipVersion_;
}
void DescribeInstanceListRequest::setIpVersion(const std::string &ipVersion) {
ipVersion_ = ipVersion;
setParameter(std::string("IpVersion"), ipVersion);
}
std::vector<DescribeInstanceListRequest::Tag> DescribeInstanceListRequest::getTag() const {
return tag_;
}
void DescribeInstanceListRequest::setTag(const std::vector<DescribeInstanceListRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
}
std::string DescribeInstanceListRequest::getIp() const {
return ip_;
}
void DescribeInstanceListRequest::setIp(const std::string &ip) {
ip_ = ip;
setParameter(std::string("Ip"), ip);
}
std::string DescribeInstanceListRequest::getOrderby() const {
return orderby_;
}
void DescribeInstanceListRequest::setOrderby(const std::string &orderby) {
orderby_ = orderby;
setParameter(std::string("Orderby"), orderby);
}
std::string DescribeInstanceListRequest::getInstanceIdList() const {
return instanceIdList_;
}
void DescribeInstanceListRequest::setInstanceIdList(const std::string &instanceIdList) {
instanceIdList_ = instanceIdList;
setParameter(std::string("InstanceIdList"), instanceIdList);
}
int DescribeInstanceListRequest::getPageNo() const {
return pageNo_;
}
void DescribeInstanceListRequest::setPageNo(int pageNo) {
pageNo_ = pageNo;
setParameter(std::string("PageNo"), std::to_string(pageNo));
}
std::string DescribeInstanceListRequest::getOrderdire() const {
return orderdire_;
}
void DescribeInstanceListRequest::setOrderdire(const std::string &orderdire) {
orderdire_ = orderdire;
setParameter(std::string("Orderdire"), orderdire);
}
std::vector<DescribeInstanceListRequest::std::string> DescribeInstanceListRequest::getInstanceTypeList() const {
return instanceTypeList_;
}
void DescribeInstanceListRequest::setInstanceTypeList(const std::vector<DescribeInstanceListRequest::std::string> &instanceTypeList) {
instanceTypeList_ = instanceTypeList;
for(int dep1 = 0; dep1 != instanceTypeList.size(); dep1++) {
setParameter(std::string("InstanceTypeList") + "." + std::to_string(dep1 + 1), instanceTypeList[dep1]);
}
}

View File

@@ -0,0 +1,84 @@
/*
* 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/ddosbgp/model/DescribeInstanceListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddosbgp;
using namespace AlibabaCloud::Ddosbgp::Model;
DescribeInstanceListResult::DescribeInstanceListResult() :
ServiceResult()
{}
DescribeInstanceListResult::DescribeInstanceListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeInstanceListResult::~DescribeInstanceListResult()
{}
void DescribeInstanceListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allInstanceListNode = value["InstanceList"]["Instance"];
for (auto valueInstanceListInstance : allInstanceListNode)
{
Instance instanceListObject;
if(!valueInstanceListInstance["Status"].isNull())
instanceListObject.status = valueInstanceListInstance["Status"].asString();
if(!valueInstanceListInstance["IpType"].isNull())
instanceListObject.ipType = valueInstanceListInstance["IpType"].asString();
if(!valueInstanceListInstance["AutoRenewal"].isNull())
instanceListObject.autoRenewal = valueInstanceListInstance["AutoRenewal"].asString() == "true";
if(!valueInstanceListInstance["Remark"].isNull())
instanceListObject.remark = valueInstanceListInstance["Remark"].asString();
if(!valueInstanceListInstance["ExpireTime"].isNull())
instanceListObject.expireTime = std::stol(valueInstanceListInstance["ExpireTime"].asString());
if(!valueInstanceListInstance["Product"].isNull())
instanceListObject.product = valueInstanceListInstance["Product"].asString();
if(!valueInstanceListInstance["GmtCreate"].isNull())
instanceListObject.gmtCreate = std::stol(valueInstanceListInstance["GmtCreate"].asString());
if(!valueInstanceListInstance["InstanceId"].isNull())
instanceListObject.instanceId = valueInstanceListInstance["InstanceId"].asString();
if(!valueInstanceListInstance["InstanceType"].isNull())
instanceListObject.instanceType = valueInstanceListInstance["InstanceType"].asString();
if(!valueInstanceListInstance["BlackholdingCount"].isNull())
instanceListObject.blackholdingCount = valueInstanceListInstance["BlackholdingCount"].asString();
if(!valueInstanceListInstance["CoverageType"].isNull())
instanceListObject.coverageType = std::stoi(valueInstanceListInstance["CoverageType"].asString());
instanceList_.push_back(instanceListObject);
}
if(!value["Total"].isNull())
total_ = std::stol(value["Total"].asString());
}
long DescribeInstanceListResult::getTotal()const
{
return total_;
}
std::vector<DescribeInstanceListResult::Instance> DescribeInstanceListResult::getInstanceList()const
{
return instanceList_;
}

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/ddosbgp/model/DescribeInstanceSpecsRequest.h>
using AlibabaCloud::Ddosbgp::Model::DescribeInstanceSpecsRequest;
DescribeInstanceSpecsRequest::DescribeInstanceSpecsRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "DescribeInstanceSpecs") {
setMethod(HttpRequest::Method::Post);
}
DescribeInstanceSpecsRequest::~DescribeInstanceSpecsRequest() {}
std::string DescribeInstanceSpecsRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void DescribeInstanceSpecsRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string DescribeInstanceSpecsRequest::getSourceIp() const {
return sourceIp_;
}
void DescribeInstanceSpecsRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DescribeInstanceSpecsRequest::getRegionId() const {
return regionId_;
}
void DescribeInstanceSpecsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string DescribeInstanceSpecsRequest::getInstanceIdList() const {
return instanceIdList_;
}
void DescribeInstanceSpecsRequest::setInstanceIdList(const std::string &instanceIdList) {
instanceIdList_ = instanceIdList;
setParameter(std::string("InstanceIdList"), instanceIdList);
}
std::string DescribeInstanceSpecsRequest::getLang() const {
return lang_;
}
void DescribeInstanceSpecsRequest::setLang(const std::string &lang) {
lang_ = lang;
setParameter(std::string("Lang"), lang);
}

View File

@@ -0,0 +1,84 @@
/*
* 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/ddosbgp/model/DescribeInstanceSpecsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddosbgp;
using namespace AlibabaCloud::Ddosbgp::Model;
DescribeInstanceSpecsResult::DescribeInstanceSpecsResult() :
ServiceResult()
{}
DescribeInstanceSpecsResult::DescribeInstanceSpecsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeInstanceSpecsResult::~DescribeInstanceSpecsResult()
{}
void DescribeInstanceSpecsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allInstanceSpecsNode = value["InstanceSpecs"]["InstanceSpec"];
for (auto valueInstanceSpecsInstanceSpec : allInstanceSpecsNode)
{
InstanceSpec instanceSpecsObject;
if(!valueInstanceSpecsInstanceSpec["IsFullDefenseMode"].isNull())
instanceSpecsObject.isFullDefenseMode = std::stoi(valueInstanceSpecsInstanceSpec["IsFullDefenseMode"].asString());
if(!valueInstanceSpecsInstanceSpec["Region"].isNull())
instanceSpecsObject.region = valueInstanceSpecsInstanceSpec["Region"].asString();
if(!valueInstanceSpecsInstanceSpec["AvailableDefenseTimes"].isNull())
instanceSpecsObject.availableDefenseTimes = std::stoi(valueInstanceSpecsInstanceSpec["AvailableDefenseTimes"].asString());
if(!valueInstanceSpecsInstanceSpec["TotalDefenseTimes"].isNull())
instanceSpecsObject.totalDefenseTimes = std::stoi(valueInstanceSpecsInstanceSpec["TotalDefenseTimes"].asString());
if(!valueInstanceSpecsInstanceSpec["AvailableDeleteBlackholeCount"].isNull())
instanceSpecsObject.availableDeleteBlackholeCount = valueInstanceSpecsInstanceSpec["AvailableDeleteBlackholeCount"].asString();
if(!valueInstanceSpecsInstanceSpec["InstanceId"].isNull())
instanceSpecsObject.instanceId = valueInstanceSpecsInstanceSpec["InstanceId"].asString();
auto packConfigNode = value["PackConfig"];
if(!packConfigNode["PackBasicThre"].isNull())
instanceSpecsObject.packConfig.packBasicThre = std::stoi(packConfigNode["PackBasicThre"].asString());
if(!packConfigNode["BindIpCount"].isNull())
instanceSpecsObject.packConfig.bindIpCount = std::stoi(packConfigNode["BindIpCount"].asString());
if(!packConfigNode["PackAdvThre"].isNull())
instanceSpecsObject.packConfig.packAdvThre = std::stoi(packConfigNode["PackAdvThre"].asString());
if(!packConfigNode["NormalBandwidth"].isNull())
instanceSpecsObject.packConfig.normalBandwidth = std::stoi(packConfigNode["NormalBandwidth"].asString());
if(!packConfigNode["IpBasicThre"].isNull())
instanceSpecsObject.packConfig.ipBasicThre = std::stoi(packConfigNode["IpBasicThre"].asString());
if(!packConfigNode["IpAdvanceThre"].isNull())
instanceSpecsObject.packConfig.ipAdvanceThre = std::stoi(packConfigNode["IpAdvanceThre"].asString());
if(!packConfigNode["IpSpec"].isNull())
instanceSpecsObject.packConfig.ipSpec = std::stoi(packConfigNode["IpSpec"].asString());
if(!packConfigNode["Bandwidth"].isNull())
instanceSpecsObject.packConfig.bandwidth = std::stol(packConfigNode["Bandwidth"].asString());
instanceSpecs_.push_back(instanceSpecsObject);
}
}
std::vector<DescribeInstanceSpecsResult::InstanceSpec> DescribeInstanceSpecsResult::getInstanceSpecs()const
{
return instanceSpecs_;
}

View File

@@ -0,0 +1,108 @@
/*
* 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/ddosbgp/model/DescribeOnDemandDdosEventRequest.h>
using AlibabaCloud::Ddosbgp::Model::DescribeOnDemandDdosEventRequest;
DescribeOnDemandDdosEventRequest::DescribeOnDemandDdosEventRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "DescribeOnDemandDdosEvent") {
setMethod(HttpRequest::Method::Post);
}
DescribeOnDemandDdosEventRequest::~DescribeOnDemandDdosEventRequest() {}
int DescribeOnDemandDdosEventRequest::getStartTime() const {
return startTime_;
}
void DescribeOnDemandDdosEventRequest::setStartTime(int startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), std::to_string(startTime));
}
std::string DescribeOnDemandDdosEventRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void DescribeOnDemandDdosEventRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string DescribeOnDemandDdosEventRequest::getSourceIp() const {
return sourceIp_;
}
void DescribeOnDemandDdosEventRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DescribeOnDemandDdosEventRequest::getRegionId() const {
return regionId_;
}
void DescribeOnDemandDdosEventRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
int DescribeOnDemandDdosEventRequest::getPageSize() const {
return pageSize_;
}
void DescribeOnDemandDdosEventRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string DescribeOnDemandDdosEventRequest::getIp() const {
return ip_;
}
void DescribeOnDemandDdosEventRequest::setIp(const std::string &ip) {
ip_ = ip;
setParameter(std::string("Ip"), ip);
}
int DescribeOnDemandDdosEventRequest::getEndTime() const {
return endTime_;
}
void DescribeOnDemandDdosEventRequest::setEndTime(int endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), std::to_string(endTime));
}
std::string DescribeOnDemandDdosEventRequest::getInstanceId() const {
return instanceId_;
}
void DescribeOnDemandDdosEventRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
int DescribeOnDemandDdosEventRequest::getPageNo() const {
return pageNo_;
}
void DescribeOnDemandDdosEventRequest::setPageNo(int pageNo) {
pageNo_ = pageNo;
setParameter(std::string("PageNo"), std::to_string(pageNo));
}

View 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/ddosbgp/model/DescribeOnDemandDdosEventResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddosbgp;
using namespace AlibabaCloud::Ddosbgp::Model;
DescribeOnDemandDdosEventResult::DescribeOnDemandDdosEventResult() :
ServiceResult()
{}
DescribeOnDemandDdosEventResult::DescribeOnDemandDdosEventResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeOnDemandDdosEventResult::~DescribeOnDemandDdosEventResult()
{}
void DescribeOnDemandDdosEventResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allEventsNode = value["Events"]["Event"];
for (auto valueEventsEvent : allEventsNode)
{
Event eventsObject;
if(!valueEventsEvent["EndTime"].isNull())
eventsObject.endTime = std::stoi(valueEventsEvent["EndTime"].asString());
if(!valueEventsEvent["Status"].isNull())
eventsObject.status = valueEventsEvent["Status"].asString();
if(!valueEventsEvent["StartTime"].isNull())
eventsObject.startTime = std::stoi(valueEventsEvent["StartTime"].asString());
if(!valueEventsEvent["Mbps"].isNull())
eventsObject.mbps = std::stoi(valueEventsEvent["Mbps"].asString());
if(!valueEventsEvent["Ip"].isNull())
eventsObject.ip = valueEventsEvent["Ip"].asString();
if(!valueEventsEvent["Pps"].isNull())
eventsObject.pps = std::stoi(valueEventsEvent["Pps"].asString());
events_.push_back(eventsObject);
}
if(!value["Total"].isNull())
total_ = std::stol(value["Total"].asString());
}
std::vector<DescribeOnDemandDdosEventResult::Event> DescribeOnDemandDdosEventResult::getEvents()const
{
return events_;
}
long DescribeOnDemandDdosEventResult::getTotal()const
{
return total_;
}

View 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/ddosbgp/model/DescribeOnDemandInstanceStatusRequest.h>
using AlibabaCloud::Ddosbgp::Model::DescribeOnDemandInstanceStatusRequest;
DescribeOnDemandInstanceStatusRequest::DescribeOnDemandInstanceStatusRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "DescribeOnDemandInstanceStatus") {
setMethod(HttpRequest::Method::Post);
}
DescribeOnDemandInstanceStatusRequest::~DescribeOnDemandInstanceStatusRequest() {}
std::string DescribeOnDemandInstanceStatusRequest::getSourceIp() const {
return sourceIp_;
}
void DescribeOnDemandInstanceStatusRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DescribeOnDemandInstanceStatusRequest::getRegionId() const {
return regionId_;
}
void DescribeOnDemandInstanceStatusRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::vector<std::string> DescribeOnDemandInstanceStatusRequest::getInstanceIdList() const {
return instanceIdList_;
}
void DescribeOnDemandInstanceStatusRequest::setInstanceIdList(const std::vector<std::string> &instanceIdList) {
instanceIdList_ = instanceIdList;
}

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/ddosbgp/model/DescribeOnDemandInstanceStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddosbgp;
using namespace AlibabaCloud::Ddosbgp::Model;
DescribeOnDemandInstanceStatusResult::DescribeOnDemandInstanceStatusResult() :
ServiceResult()
{}
DescribeOnDemandInstanceStatusResult::DescribeOnDemandInstanceStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeOnDemandInstanceStatusResult::~DescribeOnDemandInstanceStatusResult()
{}
void DescribeOnDemandInstanceStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allInstancesNode = value["Instances"]["instance"];
for (auto valueInstancesinstance : allInstancesNode)
{
Instance instancesObject;
if(!valueInstancesinstance["UserId"].isNull())
instancesObject.userId = valueInstancesinstance["UserId"].asString();
if(!valueInstancesinstance["Mode"].isNull())
instancesObject.mode = valueInstancesinstance["Mode"].asString();
if(!valueInstancesinstance["InstanceId"].isNull())
instancesObject.instanceId = valueInstancesinstance["InstanceId"].asString();
if(!valueInstancesinstance["Declared"].isNull())
instancesObject.declared = valueInstancesinstance["Declared"].asString();
if(!valueInstancesinstance["RegistedAs"].isNull())
instancesObject.registedAs = valueInstancesinstance["RegistedAs"].asString();
if(!valueInstancesinstance["Net"].isNull())
instancesObject.net = valueInstancesinstance["Net"].asString();
if(!valueInstancesinstance["Desc"].isNull())
instancesObject.desc = valueInstancesinstance["Desc"].asString();
instances_.push_back(instancesObject);
}
}
std::vector<DescribeOnDemandInstanceStatusResult::Instance> DescribeOnDemandInstanceStatusResult::getInstances()const
{
return instances_;
}

View File

@@ -0,0 +1,126 @@
/*
* 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/ddosbgp/model/DescribeOpEntitiesRequest.h>
using AlibabaCloud::Ddosbgp::Model::DescribeOpEntitiesRequest;
DescribeOpEntitiesRequest::DescribeOpEntitiesRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "DescribeOpEntities") {
setMethod(HttpRequest::Method::Post);
}
DescribeOpEntitiesRequest::~DescribeOpEntitiesRequest() {}
long DescribeOpEntitiesRequest::getStartTime() const {
return startTime_;
}
void DescribeOpEntitiesRequest::setStartTime(long startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), std::to_string(startTime));
}
std::string DescribeOpEntitiesRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void DescribeOpEntitiesRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string DescribeOpEntitiesRequest::getSourceIp() const {
return sourceIp_;
}
void DescribeOpEntitiesRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DescribeOpEntitiesRequest::getRegionId() const {
return regionId_;
}
void DescribeOpEntitiesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
int DescribeOpEntitiesRequest::getPageSize() const {
return pageSize_;
}
void DescribeOpEntitiesRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string DescribeOpEntitiesRequest::getLang() const {
return lang_;
}
void DescribeOpEntitiesRequest::setLang(const std::string &lang) {
lang_ = lang;
setParameter(std::string("Lang"), lang);
}
long DescribeOpEntitiesRequest::getEndTime() const {
return endTime_;
}
void DescribeOpEntitiesRequest::setEndTime(long endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), std::to_string(endTime));
}
std::string DescribeOpEntitiesRequest::getOrderBy() const {
return orderBy_;
}
void DescribeOpEntitiesRequest::setOrderBy(const std::string &orderBy) {
orderBy_ = orderBy;
setParameter(std::string("OrderBy"), orderBy);
}
int DescribeOpEntitiesRequest::getCurrentPage() const {
return currentPage_;
}
void DescribeOpEntitiesRequest::setCurrentPage(int currentPage) {
currentPage_ = currentPage;
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
}
std::string DescribeOpEntitiesRequest::getOrderDir() const {
return orderDir_;
}
void DescribeOpEntitiesRequest::setOrderDir(const std::string &orderDir) {
orderDir_ = orderDir;
setParameter(std::string("OrderDir"), orderDir);
}
std::string DescribeOpEntitiesRequest::getInstanceId() const {
return instanceId_;
}
void DescribeOpEntitiesRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

View 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/ddosbgp/model/DescribeOpEntitiesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddosbgp;
using namespace AlibabaCloud::Ddosbgp::Model;
DescribeOpEntitiesResult::DescribeOpEntitiesResult() :
ServiceResult()
{}
DescribeOpEntitiesResult::DescribeOpEntitiesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeOpEntitiesResult::~DescribeOpEntitiesResult()
{}
void DescribeOpEntitiesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allOpEntitiesNode = value["OpEntities"]["OpEntity"];
for (auto valueOpEntitiesOpEntity : allOpEntitiesNode)
{
OpEntity opEntitiesObject;
if(!valueOpEntitiesOpEntity["EntityType"].isNull())
opEntitiesObject.entityType = std::stoi(valueOpEntitiesOpEntity["EntityType"].asString());
if(!valueOpEntitiesOpEntity["EntityObject"].isNull())
opEntitiesObject.entityObject = valueOpEntitiesOpEntity["EntityObject"].asString();
if(!valueOpEntitiesOpEntity["OpAction"].isNull())
opEntitiesObject.opAction = std::stoi(valueOpEntitiesOpEntity["OpAction"].asString());
if(!valueOpEntitiesOpEntity["GmtCreate"].isNull())
opEntitiesObject.gmtCreate = std::stol(valueOpEntitiesOpEntity["GmtCreate"].asString());
if(!valueOpEntitiesOpEntity["OpAccount"].isNull())
opEntitiesObject.opAccount = valueOpEntitiesOpEntity["OpAccount"].asString();
if(!valueOpEntitiesOpEntity["OpDesc"].isNull())
opEntitiesObject.opDesc = valueOpEntitiesOpEntity["OpDesc"].asString();
opEntities_.push_back(opEntitiesObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int DescribeOpEntitiesResult::getTotalCount()const
{
return totalCount_;
}
std::vector<DescribeOpEntitiesResult::OpEntity> DescribeOpEntitiesResult::getOpEntities()const
{
return opEntities_;
}

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/ddosbgp/model/DescribePackIpListRequest.h>
using AlibabaCloud::Ddosbgp::Model::DescribePackIpListRequest;
DescribePackIpListRequest::DescribePackIpListRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "DescribePackIpList") {
setMethod(HttpRequest::Method::Post);
}
DescribePackIpListRequest::~DescribePackIpListRequest() {}
std::string DescribePackIpListRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void DescribePackIpListRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string DescribePackIpListRequest::getSourceIp() const {
return sourceIp_;
}
void DescribePackIpListRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DescribePackIpListRequest::getRegionId() const {
return regionId_;
}
void DescribePackIpListRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
int DescribePackIpListRequest::getPageSize() const {
return pageSize_;
}
void DescribePackIpListRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string DescribePackIpListRequest::getProductName() const {
return productName_;
}
void DescribePackIpListRequest::setProductName(const std::string &productName) {
productName_ = productName;
setParameter(std::string("ProductName"), productName);
}
std::string DescribePackIpListRequest::getIp() const {
return ip_;
}
void DescribePackIpListRequest::setIp(const std::string &ip) {
ip_ = ip;
setParameter(std::string("Ip"), ip);
}
std::string DescribePackIpListRequest::getInstanceId() const {
return instanceId_;
}
void DescribePackIpListRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
int DescribePackIpListRequest::getPageNo() const {
return pageNo_;
}
void DescribePackIpListRequest::setPageNo(int pageNo) {
pageNo_ = pageNo;
setParameter(std::string("PageNo"), std::to_string(pageNo));
}

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/ddosbgp/model/DescribePackIpListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddosbgp;
using namespace AlibabaCloud::Ddosbgp::Model;
DescribePackIpListResult::DescribePackIpListResult() :
ServiceResult()
{}
DescribePackIpListResult::DescribePackIpListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribePackIpListResult::~DescribePackIpListResult()
{}
void DescribePackIpListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allIpListNode = value["IpList"]["Ipitem"];
for (auto valueIpListIpitem : allIpListNode)
{
Ipitem ipListObject;
if(!valueIpListIpitem["Status"].isNull())
ipListObject.status = valueIpListIpitem["Status"].asString();
if(!valueIpListIpitem["Ip"].isNull())
ipListObject.ip = valueIpListIpitem["Ip"].asString();
if(!valueIpListIpitem["Remark"].isNull())
ipListObject.remark = valueIpListIpitem["Remark"].asString();
if(!valueIpListIpitem["Product"].isNull())
ipListObject.product = valueIpListIpitem["Product"].asString();
if(!valueIpListIpitem["Region"].isNull())
ipListObject.region = valueIpListIpitem["Region"].asString();
ipList_.push_back(ipListObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Total"].isNull())
total_ = std::stoi(value["Total"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::vector<DescribePackIpListResult::Ipitem> DescribePackIpListResult::getIpList()const
{
return ipList_;
}
int DescribePackIpListResult::getTotal()const
{
return total_;
}
std::string DescribePackIpListResult::getCode()const
{
return code_;
}
bool DescribePackIpListResult::getSuccess()const
{
return success_;
}

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/ddosbgp/model/DescribeRegionsRequest.h>
using AlibabaCloud::Ddosbgp::Model::DescribeRegionsRequest;
DescribeRegionsRequest::DescribeRegionsRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "DescribeRegions") {
setMethod(HttpRequest::Method::Post);
}
DescribeRegionsRequest::~DescribeRegionsRequest() {}
std::string DescribeRegionsRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void DescribeRegionsRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string DescribeRegionsRequest::getSourceIp() const {
return sourceIp_;
}
void DescribeRegionsRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DescribeRegionsRequest::getRegionId() const {
return regionId_;
}
void DescribeRegionsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

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/ddosbgp/model/DescribeRegionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddosbgp;
using namespace AlibabaCloud::Ddosbgp::Model;
DescribeRegionsResult::DescribeRegionsResult() :
ServiceResult()
{}
DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRegionsResult::~DescribeRegionsResult()
{}
void DescribeRegionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRegionsNode = value["Regions"]["Region"];
for (auto valueRegionsRegion : allRegionsNode)
{
Region regionsObject;
if(!valueRegionsRegion["RegionEnName"].isNull())
regionsObject.regionEnName = valueRegionsRegion["RegionEnName"].asString();
if(!valueRegionsRegion["RegionName"].isNull())
regionsObject.regionName = valueRegionsRegion["RegionName"].asString();
if(!valueRegionsRegion["RegionId"].isNull())
regionsObject.regionId = valueRegionsRegion["RegionId"].asString();
regions_.push_back(regionsObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::vector<DescribeRegionsResult::Region> DescribeRegionsResult::getRegions()const
{
return regions_;
}
std::string DescribeRegionsResult::getCode()const
{
return code_;
}
bool DescribeRegionsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ddosbgp/model/DescribeTrafficRequest.h>
using AlibabaCloud::Ddosbgp::Model::DescribeTrafficRequest;
DescribeTrafficRequest::DescribeTrafficRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "DescribeTraffic") {
setMethod(HttpRequest::Method::Post);
}
DescribeTrafficRequest::~DescribeTrafficRequest() {}
int DescribeTrafficRequest::getStartTime() const {
return startTime_;
}
void DescribeTrafficRequest::setStartTime(int startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), std::to_string(startTime));
}
std::string DescribeTrafficRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void DescribeTrafficRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string DescribeTrafficRequest::getSourceIp() const {
return sourceIp_;
}
void DescribeTrafficRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DescribeTrafficRequest::getRegionId() const {
return regionId_;
}
void DescribeTrafficRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string DescribeTrafficRequest::getIp() const {
return ip_;
}
void DescribeTrafficRequest::setIp(const std::string &ip) {
ip_ = ip;
setParameter(std::string("Ip"), ip);
}
int DescribeTrafficRequest::getEndTime() const {
return endTime_;
}
void DescribeTrafficRequest::setEndTime(int endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), std::to_string(endTime));
}
std::string DescribeTrafficRequest::getIpnet() const {
return ipnet_;
}
void DescribeTrafficRequest::setIpnet(const std::string &ipnet) {
ipnet_ = ipnet;
setParameter(std::string("Ipnet"), ipnet);
}
std::string DescribeTrafficRequest::getFlowType() const {
return flowType_;
}
void DescribeTrafficRequest::setFlowType(const std::string &flowType) {
flowType_ = flowType;
setParameter(std::string("FlowType"), flowType);
}
std::string DescribeTrafficRequest::getInstanceId() const {
return instanceId_;
}
void DescribeTrafficRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
int DescribeTrafficRequest::getInterval() const {
return interval_;
}
void DescribeTrafficRequest::setInterval(int interval) {
interval_ = interval;
setParameter(std::string("Interval"), std::to_string(interval));
}

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/ddosbgp/model/DescribeTrafficResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddosbgp;
using namespace AlibabaCloud::Ddosbgp::Model;
DescribeTrafficResult::DescribeTrafficResult() :
ServiceResult()
{}
DescribeTrafficResult::DescribeTrafficResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeTrafficResult::~DescribeTrafficResult()
{}
void DescribeTrafficResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allFlowListNode = value["FlowList"]["Flow"];
for (auto valueFlowListFlow : allFlowListNode)
{
Flow flowListObject;
if(!valueFlowListFlow["Time"].isNull())
flowListObject.time = std::stoi(valueFlowListFlow["Time"].asString());
if(!valueFlowListFlow["FlowType"].isNull())
flowListObject.flowType = valueFlowListFlow["FlowType"].asString();
if(!valueFlowListFlow["AttackPps"].isNull())
flowListObject.attackPps = std::stol(valueFlowListFlow["AttackPps"].asString());
if(!valueFlowListFlow["Name"].isNull())
flowListObject.name = valueFlowListFlow["Name"].asString();
if(!valueFlowListFlow["Pps"].isNull())
flowListObject.pps = std::stoi(valueFlowListFlow["Pps"].asString());
if(!valueFlowListFlow["Kbps"].isNull())
flowListObject.kbps = std::stoi(valueFlowListFlow["Kbps"].asString());
if(!valueFlowListFlow["AttackBps"].isNull())
flowListObject.attackBps = std::stol(valueFlowListFlow["AttackBps"].asString());
flowList_.push_back(flowListObject);
}
}
std::vector<DescribeTrafficResult::Flow> DescribeTrafficResult::getFlowList()const
{
return flowList_;
}

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/ddosbgp/model/GetSlsOpenStatusRequest.h>
using AlibabaCloud::Ddosbgp::Model::GetSlsOpenStatusRequest;
GetSlsOpenStatusRequest::GetSlsOpenStatusRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "GetSlsOpenStatus") {
setMethod(HttpRequest::Method::Post);
}
GetSlsOpenStatusRequest::~GetSlsOpenStatusRequest() {}
std::string GetSlsOpenStatusRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void GetSlsOpenStatusRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string GetSlsOpenStatusRequest::getSourceIp() const {
return sourceIp_;
}
void GetSlsOpenStatusRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string GetSlsOpenStatusRequest::getRegionId() const {
return regionId_;
}
void GetSlsOpenStatusRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(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/ddosbgp/model/GetSlsOpenStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddosbgp;
using namespace AlibabaCloud::Ddosbgp::Model;
GetSlsOpenStatusResult::GetSlsOpenStatusResult() :
ServiceResult()
{}
GetSlsOpenStatusResult::GetSlsOpenStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetSlsOpenStatusResult::~GetSlsOpenStatusResult()
{}
void GetSlsOpenStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["SlsOpenStatus"].isNull())
slsOpenStatus_ = value["SlsOpenStatus"].asString() == "true";
}
bool GetSlsOpenStatusResult::getSlsOpenStatus()const
{
return slsOpenStatus_;
}

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/ddosbgp/model/ListOpenedAccessLogInstancesRequest.h>
using AlibabaCloud::Ddosbgp::Model::ListOpenedAccessLogInstancesRequest;
ListOpenedAccessLogInstancesRequest::ListOpenedAccessLogInstancesRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "ListOpenedAccessLogInstances") {
setMethod(HttpRequest::Method::Post);
}
ListOpenedAccessLogInstancesRequest::~ListOpenedAccessLogInstancesRequest() {}
int ListOpenedAccessLogInstancesRequest::getPageNumber() const {
return pageNumber_;
}
void ListOpenedAccessLogInstancesRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListOpenedAccessLogInstancesRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void ListOpenedAccessLogInstancesRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string ListOpenedAccessLogInstancesRequest::getSourceIp() const {
return sourceIp_;
}
void ListOpenedAccessLogInstancesRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
int ListOpenedAccessLogInstancesRequest::getPageSize() const {
return pageSize_;
}
void ListOpenedAccessLogInstancesRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}

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/ddosbgp/model/ListOpenedAccessLogInstancesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddosbgp;
using namespace AlibabaCloud::Ddosbgp::Model;
ListOpenedAccessLogInstancesResult::ListOpenedAccessLogInstancesResult() :
ServiceResult()
{}
ListOpenedAccessLogInstancesResult::ListOpenedAccessLogInstancesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListOpenedAccessLogInstancesResult::~ListOpenedAccessLogInstancesResult()
{}
void ListOpenedAccessLogInstancesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSlsConfigStatusNode = value["SlsConfigStatus"]["OpenedInstance"];
for (auto valueSlsConfigStatusOpenedInstance : allSlsConfigStatusNode)
{
OpenedInstance slsConfigStatusObject;
if(!valueSlsConfigStatusOpenedInstance["InstanceId"].isNull())
slsConfigStatusObject.instanceId = valueSlsConfigStatusOpenedInstance["InstanceId"].asString();
if(!valueSlsConfigStatusOpenedInstance["Enable"].isNull())
slsConfigStatusObject.enable = valueSlsConfigStatusOpenedInstance["Enable"].asString() == "true";
slsConfigStatus_.push_back(slsConfigStatusObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int ListOpenedAccessLogInstancesResult::getTotalCount()const
{
return totalCount_;
}
std::vector<ListOpenedAccessLogInstancesResult::OpenedInstance> ListOpenedAccessLogInstancesResult::getSlsConfigStatus()const
{
return slsConfigStatus_;
}

View File

@@ -0,0 +1,108 @@
/*
* 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/ddosbgp/model/ListTagKeysRequest.h>
using AlibabaCloud::Ddosbgp::Model::ListTagKeysRequest;
ListTagKeysRequest::ListTagKeysRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "ListTagKeys") {
setMethod(HttpRequest::Method::Post);
}
ListTagKeysRequest::~ListTagKeysRequest() {}
std::string ListTagKeysRequest::getTagOwnerUid() const {
return tagOwnerUid_;
}
void ListTagKeysRequest::setTagOwnerUid(const std::string &tagOwnerUid) {
tagOwnerUid_ = tagOwnerUid;
setParameter(std::string("TagOwnerUid"), tagOwnerUid);
}
std::string ListTagKeysRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void ListTagKeysRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string ListTagKeysRequest::getSourceIp() const {
return sourceIp_;
}
void ListTagKeysRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string ListTagKeysRequest::getRegionId() const {
return regionId_;
}
void ListTagKeysRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string ListTagKeysRequest::getScope() const {
return scope_;
}
void ListTagKeysRequest::setScope(const std::string &scope) {
scope_ = scope;
setParameter(std::string("Scope"), scope);
}
int ListTagKeysRequest::getPageSize() const {
return pageSize_;
}
void ListTagKeysRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListTagKeysRequest::getTagOwnerBid() const {
return tagOwnerBid_;
}
void ListTagKeysRequest::setTagOwnerBid(const std::string &tagOwnerBid) {
tagOwnerBid_ = tagOwnerBid;
setParameter(std::string("TagOwnerBid"), tagOwnerBid);
}
int ListTagKeysRequest::getCurrentPage() const {
return currentPage_;
}
void ListTagKeysRequest::setCurrentPage(int currentPage) {
currentPage_ = currentPage;
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
}
std::string ListTagKeysRequest::getResourceType() const {
return resourceType_;
}
void ListTagKeysRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}

View File

@@ -0,0 +1,80 @@
/*
* 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/ddosbgp/model/ListTagKeysResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddosbgp;
using namespace AlibabaCloud::Ddosbgp::Model;
ListTagKeysResult::ListTagKeysResult() :
ServiceResult()
{}
ListTagKeysResult::ListTagKeysResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListTagKeysResult::~ListTagKeysResult()
{}
void ListTagKeysResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTagKeysNode = value["TagKeys"]["TagKey"];
for (auto valueTagKeysTagKey : allTagKeysNode)
{
TagKey tagKeysObject;
if(!valueTagKeysTagKey["TagCount"].isNull())
tagKeysObject.tagCount = std::stoi(valueTagKeysTagKey["TagCount"].asString());
if(!valueTagKeysTagKey["TagKey"].isNull())
tagKeysObject.tagKey = valueTagKeysTagKey["TagKey"].asString();
tagKeys_.push_back(tagKeysObject);
}
if(!value["CurrentPage"].isNull())
currentPage_ = std::stoi(value["CurrentPage"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int ListTagKeysResult::getTotalCount()const
{
return totalCount_;
}
int ListTagKeysResult::getPageSize()const
{
return pageSize_;
}
int ListTagKeysResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<ListTagKeysResult::TagKey> ListTagKeysResult::getTagKeys()const
{
return tagKeys_;
}

View File

@@ -0,0 +1,121 @@
/*
* 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/ddosbgp/model/ListTagResourcesRequest.h>
using AlibabaCloud::Ddosbgp::Model::ListTagResourcesRequest;
ListTagResourcesRequest::ListTagResourcesRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "ListTagResources") {
setMethod(HttpRequest::Method::Post);
}
ListTagResourcesRequest::~ListTagResourcesRequest() {}
std::string ListTagResourcesRequest::getTagOwnerUid() const {
return tagOwnerUid_;
}
void ListTagResourcesRequest::setTagOwnerUid(const std::string &tagOwnerUid) {
tagOwnerUid_ = tagOwnerUid;
setParameter(std::string("TagOwnerUid"), tagOwnerUid);
}
std::string ListTagResourcesRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void ListTagResourcesRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string ListTagResourcesRequest::getSourceIp() const {
return sourceIp_;
}
void ListTagResourcesRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string ListTagResourcesRequest::getRegionId() const {
return regionId_;
}
void ListTagResourcesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string ListTagResourcesRequest::getNextToken() const {
return nextToken_;
}
void ListTagResourcesRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
std::string ListTagResourcesRequest::getScope() const {
return scope_;
}
void ListTagResourcesRequest::setScope(const std::string &scope) {
scope_ = scope;
setParameter(std::string("Scope"), scope);
}
std::string ListTagResourcesRequest::getTagOwnerBid() const {
return tagOwnerBid_;
}
void ListTagResourcesRequest::setTagOwnerBid(const std::string &tagOwnerBid) {
tagOwnerBid_ = tagOwnerBid;
setParameter(std::string("TagOwnerBid"), tagOwnerBid);
}
std::vector<ListTagResourcesRequest::Tag> ListTagResourcesRequest::getTag() const {
return tag_;
}
void ListTagResourcesRequest::setTag(const std::vector<ListTagResourcesRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
}
std::vector<std::string> ListTagResourcesRequest::getResourceId() const {
return resourceId_;
}
void ListTagResourcesRequest::setResourceId(const std::vector<std::string> &resourceId) {
resourceId_ = resourceId;
}
std::string ListTagResourcesRequest::getResourceType() const {
return resourceType_;
}
void ListTagResourcesRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}

View File

@@ -0,0 +1,70 @@
/*
* 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/ddosbgp/model/ListTagResourcesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddosbgp;
using namespace AlibabaCloud::Ddosbgp::Model;
ListTagResourcesResult::ListTagResourcesResult() :
ServiceResult()
{}
ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListTagResourcesResult::~ListTagResourcesResult()
{}
void ListTagResourcesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTagResourcesNode = value["TagResources"]["TagResource"];
for (auto valueTagResourcesTagResource : allTagResourcesNode)
{
TagResource tagResourcesObject;
if(!valueTagResourcesTagResource["TagValue"].isNull())
tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString();
if(!valueTagResourcesTagResource["ResourceType"].isNull())
tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString();
if(!valueTagResourcesTagResource["ResourceId"].isNull())
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
if(!valueTagResourcesTagResource["TagKey"].isNull())
tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString();
tagResources_.push_back(tagResourcesObject);
}
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
}
std::string ListTagResourcesResult::getNextToken()const
{
return nextToken_;
}
std::vector<ListTagResourcesResult::TagResource> ListTagResourcesResult::getTagResources()const
{
return tagResources_;
}

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/ddosbgp/model/ModifyRemarkRequest.h>
using AlibabaCloud::Ddosbgp::Model::ModifyRemarkRequest;
ModifyRemarkRequest::ModifyRemarkRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "ModifyRemark") {
setMethod(HttpRequest::Method::Post);
}
ModifyRemarkRequest::~ModifyRemarkRequest() {}
std::string ModifyRemarkRequest::getRemark() const {
return remark_;
}
void ModifyRemarkRequest::setRemark(const std::string &remark) {
remark_ = remark;
setParameter(std::string("Remark"), remark);
}
std::string ModifyRemarkRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void ModifyRemarkRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string ModifyRemarkRequest::getInstanceId() const {
return instanceId_;
}
void ModifyRemarkRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string ModifyRemarkRequest::getSourceIp() const {
return sourceIp_;
}
void ModifyRemarkRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string ModifyRemarkRequest::getRegionId() const {
return regionId_;
}
void ModifyRemarkRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string ModifyRemarkRequest::getLang() const {
return lang_;
}
void ModifyRemarkRequest::setLang(const std::string &lang) {
lang_ = lang;
setParameter(std::string("Lang"), lang);
}

View File

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

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/ddosbgp/model/QuerySchedruleOnDemandRequest.h>
using AlibabaCloud::Ddosbgp::Model::QuerySchedruleOnDemandRequest;
QuerySchedruleOnDemandRequest::QuerySchedruleOnDemandRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "QuerySchedruleOnDemand") {
setMethod(HttpRequest::Method::Post);
}
QuerySchedruleOnDemandRequest::~QuerySchedruleOnDemandRequest() {}
std::string QuerySchedruleOnDemandRequest::getInstanceId() const {
return instanceId_;
}
void QuerySchedruleOnDemandRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string QuerySchedruleOnDemandRequest::getSourceIp() const {
return sourceIp_;
}
void QuerySchedruleOnDemandRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string QuerySchedruleOnDemandRequest::getRegionId() const {
return regionId_;
}
void QuerySchedruleOnDemandRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View File

@@ -0,0 +1,104 @@
/*
* 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/ddosbgp/model/QuerySchedruleOnDemandResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddosbgp;
using namespace AlibabaCloud::Ddosbgp::Model;
QuerySchedruleOnDemandResult::QuerySchedruleOnDemandResult() :
ServiceResult()
{}
QuerySchedruleOnDemandResult::QuerySchedruleOnDemandResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QuerySchedruleOnDemandResult::~QuerySchedruleOnDemandResult()
{}
void QuerySchedruleOnDemandResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRuleConfigNode = value["RuleConfig"]["Config"];
for (auto valueRuleConfigConfig : allRuleConfigNode)
{
Config ruleConfigObject;
if(!valueRuleConfigConfig["RuleSwitch"].isNull())
ruleConfigObject.ruleSwitch = valueRuleConfigConfig["RuleSwitch"].asString();
if(!valueRuleConfigConfig["RuleConditionMbps"].isNull())
ruleConfigObject.ruleConditionMbps = valueRuleConfigConfig["RuleConditionMbps"].asString();
if(!valueRuleConfigConfig["TimeZone"].isNull())
ruleConfigObject.timeZone = valueRuleConfigConfig["TimeZone"].asString();
if(!valueRuleConfigConfig["RuleAction"].isNull())
ruleConfigObject.ruleAction = valueRuleConfigConfig["RuleAction"].asString();
if(!valueRuleConfigConfig["RuleConditionKpps"].isNull())
ruleConfigObject.ruleConditionKpps = valueRuleConfigConfig["RuleConditionKpps"].asString();
if(!valueRuleConfigConfig["RuleUndoMode"].isNull())
ruleConfigObject.ruleUndoMode = valueRuleConfigConfig["RuleUndoMode"].asString();
if(!valueRuleConfigConfig["RuleUndoBeginTime"].isNull())
ruleConfigObject.ruleUndoBeginTime = valueRuleConfigConfig["RuleUndoBeginTime"].asString();
if(!valueRuleConfigConfig["RuleConditionCnt"].isNull())
ruleConfigObject.ruleConditionCnt = valueRuleConfigConfig["RuleConditionCnt"].asString();
if(!valueRuleConfigConfig["RuleUndoEndTime"].isNull())
ruleConfigObject.ruleUndoEndTime = valueRuleConfigConfig["RuleUndoEndTime"].asString();
if(!valueRuleConfigConfig["RuleName"].isNull())
ruleConfigObject.ruleName = valueRuleConfigConfig["RuleName"].asString();
ruleConfig_.push_back(ruleConfigObject);
}
auto allRuleStatusNode = value["RuleStatus"]["Status"];
for (auto valueRuleStatusStatus : allRuleStatusNode)
{
Status ruleStatusObject;
if(!valueRuleStatusStatus["RuleSchedStatus"].isNull())
ruleStatusObject.ruleSchedStatus = valueRuleStatusStatus["RuleSchedStatus"].asString();
if(!valueRuleStatusStatus["Net"].isNull())
ruleStatusObject.net = valueRuleStatusStatus["Net"].asString();
ruleStatus_.push_back(ruleStatusObject);
}
if(!value["InstanceId"].isNull())
instanceId_ = value["InstanceId"].asString();
if(!value["UserId"].isNull())
userId_ = value["UserId"].asString();
}
std::string QuerySchedruleOnDemandResult::getInstanceId()const
{
return instanceId_;
}
std::string QuerySchedruleOnDemandResult::getUserId()const
{
return userId_;
}
std::vector<QuerySchedruleOnDemandResult::Status> QuerySchedruleOnDemandResult::getRuleStatus()const
{
return ruleStatus_;
}
std::vector<QuerySchedruleOnDemandResult::Config> QuerySchedruleOnDemandResult::getRuleConfig()const
{
return ruleConfig_;
}

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/ddosbgp/model/SetInstanceModeOnDemandRequest.h>
using AlibabaCloud::Ddosbgp::Model::SetInstanceModeOnDemandRequest;
SetInstanceModeOnDemandRequest::SetInstanceModeOnDemandRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "SetInstanceModeOnDemand") {
setMethod(HttpRequest::Method::Post);
}
SetInstanceModeOnDemandRequest::~SetInstanceModeOnDemandRequest() {}
std::string SetInstanceModeOnDemandRequest::getMode() const {
return mode_;
}
void SetInstanceModeOnDemandRequest::setMode(const std::string &mode) {
mode_ = mode;
setParameter(std::string("Mode"), mode);
}
std::string SetInstanceModeOnDemandRequest::getSourceIp() const {
return sourceIp_;
}
void SetInstanceModeOnDemandRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string SetInstanceModeOnDemandRequest::getRegionId() const {
return regionId_;
}
void SetInstanceModeOnDemandRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::vector<std::string> SetInstanceModeOnDemandRequest::getInstanceIdList() const {
return instanceIdList_;
}
void SetInstanceModeOnDemandRequest::setInstanceIdList(const std::vector<std::string> &instanceIdList) {
instanceIdList_ = instanceIdList;
}

View File

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

View File

@@ -0,0 +1,112 @@
/*
* 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/ddosbgp/model/TagResourcesRequest.h>
using AlibabaCloud::Ddosbgp::Model::TagResourcesRequest;
TagResourcesRequest::TagResourcesRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "TagResources") {
setMethod(HttpRequest::Method::Post);
}
TagResourcesRequest::~TagResourcesRequest() {}
std::string TagResourcesRequest::getTagOwnerUid() const {
return tagOwnerUid_;
}
void TagResourcesRequest::setTagOwnerUid(const std::string &tagOwnerUid) {
tagOwnerUid_ = tagOwnerUid;
setParameter(std::string("TagOwnerUid"), tagOwnerUid);
}
std::string TagResourcesRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void TagResourcesRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string TagResourcesRequest::getSourceIp() const {
return sourceIp_;
}
void TagResourcesRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string TagResourcesRequest::getRegionId() const {
return regionId_;
}
void TagResourcesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string TagResourcesRequest::getScope() const {
return scope_;
}
void TagResourcesRequest::setScope(const std::string &scope) {
scope_ = scope;
setParameter(std::string("Scope"), scope);
}
std::string TagResourcesRequest::getTagOwnerBid() const {
return tagOwnerBid_;
}
void TagResourcesRequest::setTagOwnerBid(const std::string &tagOwnerBid) {
tagOwnerBid_ = tagOwnerBid;
setParameter(std::string("TagOwnerBid"), tagOwnerBid);
}
std::vector<TagResourcesRequest::Tag> TagResourcesRequest::getTag() const {
return tag_;
}
void TagResourcesRequest::setTag(const std::vector<TagResourcesRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
}
std::vector<std::string> TagResourcesRequest::getResourceId() const {
return resourceId_;
}
void TagResourcesRequest::setResourceId(const std::vector<std::string> &resourceId) {
resourceId_ = resourceId;
}
std::string TagResourcesRequest::getResourceType() const {
return resourceType_;
}
void TagResourcesRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}

View File

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

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ddosbgp/model/UntagResourcesRequest.h>
using AlibabaCloud::Ddosbgp::Model::UntagResourcesRequest;
UntagResourcesRequest::UntagResourcesRequest()
: RpcServiceRequest("ddosbgp", "2018-07-20", "UntagResources") {
setMethod(HttpRequest::Method::Post);
}
UntagResourcesRequest::~UntagResourcesRequest() {}
std::string UntagResourcesRequest::getTagOwnerUid() const {
return tagOwnerUid_;
}
void UntagResourcesRequest::setTagOwnerUid(const std::string &tagOwnerUid) {
tagOwnerUid_ = tagOwnerUid;
setParameter(std::string("TagOwnerUid"), tagOwnerUid);
}
std::string UntagResourcesRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void UntagResourcesRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string UntagResourcesRequest::getSourceIp() const {
return sourceIp_;
}
void UntagResourcesRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string UntagResourcesRequest::getRegionId() const {
return regionId_;
}
void UntagResourcesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string UntagResourcesRequest::getTagOwnerBid() const {
return tagOwnerBid_;
}
void UntagResourcesRequest::setTagOwnerBid(const std::string &tagOwnerBid) {
tagOwnerBid_ = tagOwnerBid;
setParameter(std::string("TagOwnerBid"), tagOwnerBid);
}
bool UntagResourcesRequest::getAll() const {
return all_;
}
void UntagResourcesRequest::setAll(bool all) {
all_ = all;
setParameter(std::string("All"), all ? "true" : "false");
}
std::vector<std::string> UntagResourcesRequest::getResourceId() const {
return resourceId_;
}
void UntagResourcesRequest::setResourceId(const std::vector<std::string> &resourceId) {
resourceId_ = resourceId;
}
std::string UntagResourcesRequest::getResourceType() const {
return resourceType_;
}
void UntagResourcesRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
std::vector<std::string> UntagResourcesRequest::getTagKey() const {
return tagKey_;
}
void UntagResourcesRequest::setTagKey(const std::vector<std::string> &tagKey) {
tagKey_ = tagKey;
}

View File

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