Generated 2020-01-01 for ddoscoo.

This commit is contained in:
sdk-team
2020-11-24 02:37:32 +00:00
parent c2e912302d
commit 42b2b25562
569 changed files with 41867 additions and 0 deletions

5129
ddoscoo/src/DdoscooClient.cc Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ddoscoo/model/AddAutoCcBlacklistRequest.h>
using AlibabaCloud::Ddoscoo::Model::AddAutoCcBlacklistRequest;
AddAutoCcBlacklistRequest::AddAutoCcBlacklistRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "AddAutoCcBlacklist")
{
setMethod(HttpRequest::Method::Post);
}
AddAutoCcBlacklistRequest::~AddAutoCcBlacklistRequest()
{}
int AddAutoCcBlacklistRequest::getExpireTime()const
{
return expireTime_;
}
void AddAutoCcBlacklistRequest::setExpireTime(int expireTime)
{
expireTime_ = expireTime;
setParameter("ExpireTime", std::to_string(expireTime));
}
std::string AddAutoCcBlacklistRequest::getBlacklist()const
{
return blacklist_;
}
void AddAutoCcBlacklistRequest::setBlacklist(const std::string& blacklist)
{
blacklist_ = blacklist;
setParameter("Blacklist", blacklist);
}
std::string AddAutoCcBlacklistRequest::getInstanceId()const
{
return instanceId_;
}
void AddAutoCcBlacklistRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string AddAutoCcBlacklistRequest::getSourceIp()const
{
return sourceIp_;
}
void AddAutoCcBlacklistRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

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/ddoscoo/model/AddAutoCcBlacklistResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
AddAutoCcBlacklistResult::AddAutoCcBlacklistResult() :
ServiceResult()
{}
AddAutoCcBlacklistResult::AddAutoCcBlacklistResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddAutoCcBlacklistResult::~AddAutoCcBlacklistResult()
{}
void AddAutoCcBlacklistResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ddoscoo/model/AddAutoCcWhitelistRequest.h>
using AlibabaCloud::Ddoscoo::Model::AddAutoCcWhitelistRequest;
AddAutoCcWhitelistRequest::AddAutoCcWhitelistRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "AddAutoCcWhitelist")
{
setMethod(HttpRequest::Method::Post);
}
AddAutoCcWhitelistRequest::~AddAutoCcWhitelistRequest()
{}
int AddAutoCcWhitelistRequest::getExpireTime()const
{
return expireTime_;
}
void AddAutoCcWhitelistRequest::setExpireTime(int expireTime)
{
expireTime_ = expireTime;
setParameter("ExpireTime", std::to_string(expireTime));
}
std::string AddAutoCcWhitelistRequest::getWhitelist()const
{
return whitelist_;
}
void AddAutoCcWhitelistRequest::setWhitelist(const std::string& whitelist)
{
whitelist_ = whitelist;
setParameter("Whitelist", whitelist);
}
std::string AddAutoCcWhitelistRequest::getInstanceId()const
{
return instanceId_;
}
void AddAutoCcWhitelistRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string AddAutoCcWhitelistRequest::getSourceIp()const
{
return sourceIp_;
}
void AddAutoCcWhitelistRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

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/ddoscoo/model/AddAutoCcWhitelistResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
AddAutoCcWhitelistResult::AddAutoCcWhitelistResult() :
ServiceResult()
{}
AddAutoCcWhitelistResult::AddAutoCcWhitelistResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddAutoCcWhitelistResult::~AddAutoCcWhitelistResult()
{}
void AddAutoCcWhitelistResult::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/ddoscoo/model/AssociateWebCertRequest.h>
using AlibabaCloud::Ddoscoo::Model::AssociateWebCertRequest;
AssociateWebCertRequest::AssociateWebCertRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "AssociateWebCert")
{
setMethod(HttpRequest::Method::Post);
}
AssociateWebCertRequest::~AssociateWebCertRequest()
{}
std::string AssociateWebCertRequest::getCert()const
{
return cert_;
}
void AssociateWebCertRequest::setCert(const std::string& cert)
{
cert_ = cert;
setParameter("Cert", cert);
}
int AssociateWebCertRequest::getCertId()const
{
return certId_;
}
void AssociateWebCertRequest::setCertId(int certId)
{
certId_ = certId;
setParameter("CertId", std::to_string(certId));
}
std::string AssociateWebCertRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void AssociateWebCertRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string AssociateWebCertRequest::getSourceIp()const
{
return sourceIp_;
}
void AssociateWebCertRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string AssociateWebCertRequest::getKey()const
{
return key_;
}
void AssociateWebCertRequest::setKey(const std::string& key)
{
key_ = key;
setParameter("Key", key);
}
std::string AssociateWebCertRequest::getCertName()const
{
return certName_;
}
void AssociateWebCertRequest::setCertName(const std::string& certName)
{
certName_ = certName;
setParameter("CertName", certName);
}
std::string AssociateWebCertRequest::getDomain()const
{
return domain_;
}
void AssociateWebCertRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}

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/ddoscoo/model/AssociateWebCertResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
AssociateWebCertResult::AssociateWebCertResult() :
ServiceResult()
{}
AssociateWebCertResult::AssociateWebCertResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AssociateWebCertResult::~AssociateWebCertResult()
{}
void AssociateWebCertResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ddoscoo/model/AttachSceneDefenseObjectRequest.h>
using AlibabaCloud::Ddoscoo::Model::AttachSceneDefenseObjectRequest;
AttachSceneDefenseObjectRequest::AttachSceneDefenseObjectRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "AttachSceneDefenseObject")
{
setMethod(HttpRequest::Method::Post);
}
AttachSceneDefenseObjectRequest::~AttachSceneDefenseObjectRequest()
{}
std::string AttachSceneDefenseObjectRequest::getObjects()const
{
return objects_;
}
void AttachSceneDefenseObjectRequest::setObjects(const std::string& objects)
{
objects_ = objects;
setParameter("Objects", objects);
}
std::string AttachSceneDefenseObjectRequest::getSourceIp()const
{
return sourceIp_;
}
void AttachSceneDefenseObjectRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string AttachSceneDefenseObjectRequest::getPolicyId()const
{
return policyId_;
}
void AttachSceneDefenseObjectRequest::setPolicyId(const std::string& policyId)
{
policyId_ = policyId;
setParameter("PolicyId", policyId);
}
std::string AttachSceneDefenseObjectRequest::getObjectType()const
{
return objectType_;
}
void AttachSceneDefenseObjectRequest::setObjectType(const std::string& objectType)
{
objectType_ = objectType;
setParameter("ObjectType", objectType);
}

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

View File

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

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/ddoscoo/model/ConfigNetworkRegionBlockResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
ConfigNetworkRegionBlockResult::ConfigNetworkRegionBlockResult() :
ServiceResult()
{}
ConfigNetworkRegionBlockResult::ConfigNetworkRegionBlockResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ConfigNetworkRegionBlockResult::~ConfigNetworkRegionBlockResult()
{}
void ConfigNetworkRegionBlockResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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/ddoscoo/model/ConfigNetworkRulesRequest.h>
using AlibabaCloud::Ddoscoo::Model::ConfigNetworkRulesRequest;
ConfigNetworkRulesRequest::ConfigNetworkRulesRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "ConfigNetworkRules")
{
setMethod(HttpRequest::Method::Post);
}
ConfigNetworkRulesRequest::~ConfigNetworkRulesRequest()
{}
std::string ConfigNetworkRulesRequest::getNetworkRules()const
{
return networkRules_;
}
void ConfigNetworkRulesRequest::setNetworkRules(const std::string& networkRules)
{
networkRules_ = networkRules;
setParameter("NetworkRules", networkRules);
}
std::string ConfigNetworkRulesRequest::getSourceIp()const
{
return sourceIp_;
}
void ConfigNetworkRulesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

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/ddoscoo/model/ConfigNetworkRulesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
ConfigNetworkRulesResult::ConfigNetworkRulesResult() :
ServiceResult()
{}
ConfigNetworkRulesResult::ConfigNetworkRulesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ConfigNetworkRulesResult::~ConfigNetworkRulesResult()
{}
void ConfigNetworkRulesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ddoscoo/model/ConfigWebCCTemplateRequest.h>
using AlibabaCloud::Ddoscoo::Model::ConfigWebCCTemplateRequest;
ConfigWebCCTemplateRequest::ConfigWebCCTemplateRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "ConfigWebCCTemplate")
{
setMethod(HttpRequest::Method::Post);
}
ConfigWebCCTemplateRequest::~ConfigWebCCTemplateRequest()
{}
std::string ConfigWebCCTemplateRequest::get_Template()const
{
return _template_;
}
void ConfigWebCCTemplateRequest::set_Template(const std::string& _template)
{
_template_ = _template;
setParameter("_Template", _template);
}
std::string ConfigWebCCTemplateRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void ConfigWebCCTemplateRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string ConfigWebCCTemplateRequest::getSourceIp()const
{
return sourceIp_;
}
void ConfigWebCCTemplateRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string ConfigWebCCTemplateRequest::getDomain()const
{
return domain_;
}
void ConfigWebCCTemplateRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}

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/ddoscoo/model/ConfigWebCCTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
ConfigWebCCTemplateResult::ConfigWebCCTemplateResult() :
ServiceResult()
{}
ConfigWebCCTemplateResult::ConfigWebCCTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ConfigWebCCTemplateResult::~ConfigWebCCTemplateResult()
{}
void ConfigWebCCTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,88 @@
/*
* 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/ddoscoo/model/ConfigWebIpSetRequest.h>
using AlibabaCloud::Ddoscoo::Model::ConfigWebIpSetRequest;
ConfigWebIpSetRequest::ConfigWebIpSetRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "ConfigWebIpSet")
{
setMethod(HttpRequest::Method::Post);
}
ConfigWebIpSetRequest::~ConfigWebIpSetRequest()
{}
std::vector<std::string> ConfigWebIpSetRequest::getBlackList()const
{
return blackList_;
}
void ConfigWebIpSetRequest::setBlackList(const std::vector<std::string>& blackList)
{
blackList_ = blackList;
for(int dep1 = 0; dep1!= blackList.size(); dep1++) {
setParameter("BlackList."+ std::to_string(dep1), blackList.at(dep1));
}
}
std::vector<std::string> ConfigWebIpSetRequest::getWhiteList()const
{
return whiteList_;
}
void ConfigWebIpSetRequest::setWhiteList(const std::vector<std::string>& whiteList)
{
whiteList_ = whiteList;
for(int dep1 = 0; dep1!= whiteList.size(); dep1++) {
setParameter("WhiteList."+ std::to_string(dep1), whiteList.at(dep1));
}
}
std::string ConfigWebIpSetRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void ConfigWebIpSetRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string ConfigWebIpSetRequest::getSourceIp()const
{
return sourceIp_;
}
void ConfigWebIpSetRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string ConfigWebIpSetRequest::getDomain()const
{
return domain_;
}
void ConfigWebIpSetRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}

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/ddoscoo/model/ConfigWebIpSetResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
ConfigWebIpSetResult::ConfigWebIpSetResult() :
ServiceResult()
{}
ConfigWebIpSetResult::ConfigWebIpSetResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ConfigWebIpSetResult::~ConfigWebIpSetResult()
{}
void ConfigWebIpSetResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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/ddoscoo/model/CreateAsyncTaskRequest.h>
using AlibabaCloud::Ddoscoo::Model::CreateAsyncTaskRequest;
CreateAsyncTaskRequest::CreateAsyncTaskRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "CreateAsyncTask")
{
setMethod(HttpRequest::Method::Post);
}
CreateAsyncTaskRequest::~CreateAsyncTaskRequest()
{}
int CreateAsyncTaskRequest::getTaskType()const
{
return taskType_;
}
void CreateAsyncTaskRequest::setTaskType(int taskType)
{
taskType_ = taskType;
setParameter("TaskType", std::to_string(taskType));
}
std::string CreateAsyncTaskRequest::getTaskParams()const
{
return taskParams_;
}
void CreateAsyncTaskRequest::setTaskParams(const std::string& taskParams)
{
taskParams_ = taskParams;
setParameter("TaskParams", taskParams);
}
std::string CreateAsyncTaskRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateAsyncTaskRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateAsyncTaskRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateAsyncTaskRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string CreateAsyncTaskRequest::getLang()const
{
return lang_;
}
void CreateAsyncTaskRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("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/ddoscoo/model/CreateAsyncTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
CreateAsyncTaskResult::CreateAsyncTaskResult() :
ServiceResult()
{}
CreateAsyncTaskResult::CreateAsyncTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateAsyncTaskResult::~CreateAsyncTaskResult()
{}
void CreateAsyncTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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/ddoscoo/model/CreateNetworkRulesRequest.h>
using AlibabaCloud::Ddoscoo::Model::CreateNetworkRulesRequest;
CreateNetworkRulesRequest::CreateNetworkRulesRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "CreateNetworkRules")
{
setMethod(HttpRequest::Method::Post);
}
CreateNetworkRulesRequest::~CreateNetworkRulesRequest()
{}
std::string CreateNetworkRulesRequest::getNetworkRules()const
{
return networkRules_;
}
void CreateNetworkRulesRequest::setNetworkRules(const std::string& networkRules)
{
networkRules_ = networkRules;
setParameter("NetworkRules", networkRules);
}
std::string CreateNetworkRulesRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateNetworkRulesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

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/ddoscoo/model/CreateNetworkRulesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
CreateNetworkRulesResult::CreateNetworkRulesResult() :
ServiceResult()
{}
CreateNetworkRulesResult::CreateNetworkRulesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateNetworkRulesResult::~CreateNetworkRulesResult()
{}
void CreateNetworkRulesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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/ddoscoo/model/CreateSceneDefensePolicyRequest.h>
using AlibabaCloud::Ddoscoo::Model::CreateSceneDefensePolicyRequest;
CreateSceneDefensePolicyRequest::CreateSceneDefensePolicyRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "CreateSceneDefensePolicy")
{
setMethod(HttpRequest::Method::Post);
}
CreateSceneDefensePolicyRequest::~CreateSceneDefensePolicyRequest()
{}
std::string CreateSceneDefensePolicyRequest::get_Template()const
{
return _template_;
}
void CreateSceneDefensePolicyRequest::set_Template(const std::string& _template)
{
_template_ = _template;
setParameter("_Template", _template);
}
long CreateSceneDefensePolicyRequest::getEndTime()const
{
return endTime_;
}
void CreateSceneDefensePolicyRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
long CreateSceneDefensePolicyRequest::getStartTime()const
{
return startTime_;
}
void CreateSceneDefensePolicyRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
std::string CreateSceneDefensePolicyRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateSceneDefensePolicyRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string CreateSceneDefensePolicyRequest::getName()const
{
return name_;
}
void CreateSceneDefensePolicyRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

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

View File

@@ -0,0 +1,95 @@
/*
* 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/ddoscoo/model/CreateSchedulerRuleRequest.h>
using AlibabaCloud::Ddoscoo::Model::CreateSchedulerRuleRequest;
CreateSchedulerRuleRequest::CreateSchedulerRuleRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "CreateSchedulerRule")
{
setMethod(HttpRequest::Method::Post);
}
CreateSchedulerRuleRequest::~CreateSchedulerRuleRequest()
{}
std::string CreateSchedulerRuleRequest::getRules()const
{
return rules_;
}
void CreateSchedulerRuleRequest::setRules(const std::string& rules)
{
rules_ = rules;
setParameter("Rules", rules);
}
std::string CreateSchedulerRuleRequest::getRuleName()const
{
return ruleName_;
}
void CreateSchedulerRuleRequest::setRuleName(const std::string& ruleName)
{
ruleName_ = ruleName;
setParameter("RuleName", ruleName);
}
std::string CreateSchedulerRuleRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateSchedulerRuleRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateSchedulerRuleRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateSchedulerRuleRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string CreateSchedulerRuleRequest::getParam()const
{
return param_;
}
void CreateSchedulerRuleRequest::setParam(const std::string& param)
{
param_ = param;
setParameter("Param", param);
}
int CreateSchedulerRuleRequest::getRuleType()const
{
return ruleType_;
}
void CreateSchedulerRuleRequest::setRuleType(int ruleType)
{
ruleType_ = ruleType;
setParameter("RuleType", std::to_string(ruleType));
}

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/ddoscoo/model/CreateSchedulerRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
CreateSchedulerRuleResult::CreateSchedulerRuleResult() :
ServiceResult()
{}
CreateSchedulerRuleResult::CreateSchedulerRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSchedulerRuleResult::~CreateSchedulerRuleResult()
{}
void CreateSchedulerRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Cname"].isNull())
cname_ = value["Cname"].asString();
if(!value["RuleName"].isNull())
ruleName_ = value["RuleName"].asString();
}
std::string CreateSchedulerRuleResult::getCname()const
{
return cname_;
}
std::string CreateSchedulerRuleResult::getRuleName()const
{
return ruleName_;
}

View File

@@ -0,0 +1,102 @@
/*
* 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/ddoscoo/model/CreateTagResourcesRequest.h>
using AlibabaCloud::Ddoscoo::Model::CreateTagResourcesRequest;
CreateTagResourcesRequest::CreateTagResourcesRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "CreateTagResources")
{
setMethod(HttpRequest::Method::Post);
}
CreateTagResourcesRequest::~CreateTagResourcesRequest()
{}
std::string CreateTagResourcesRequest::getResourceType()const
{
return resourceType_;
}
void CreateTagResourcesRequest::setResourceType(const std::string& resourceType)
{
resourceType_ = resourceType;
setParameter("ResourceType", resourceType);
}
std::vector<CreateTagResourcesRequest::Tags> CreateTagResourcesRequest::getTags()const
{
return tags_;
}
void CreateTagResourcesRequest::setTags(const std::vector<Tags>& tags)
{
tags_ = tags;
for(int dep1 = 0; dep1!= tags.size(); dep1++) {
auto tagsObj = tags.at(dep1);
std::string tagsObjStr = "Tags." + std::to_string(dep1 + 1);
setParameter(tagsObjStr + ".Value", tagsObj.value);
setParameter(tagsObjStr + ".Key", tagsObj.key);
}
}
std::string CreateTagResourcesRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateTagResourcesRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateTagResourcesRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateTagResourcesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string CreateTagResourcesRequest::getRegionId()const
{
return regionId_;
}
void CreateTagResourcesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::vector<std::string> CreateTagResourcesRequest::getResourceIds()const
{
return resourceIds_;
}
void CreateTagResourcesRequest::setResourceIds(const std::vector<std::string>& resourceIds)
{
resourceIds_ = resourceIds;
for(int dep1 = 0; dep1!= resourceIds.size(); dep1++) {
setParameter("ResourceIds."+ std::to_string(dep1), resourceIds.at(dep1));
}
}

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/ddoscoo/model/CreateTagResourcesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
CreateTagResourcesResult::CreateTagResourcesResult() :
ServiceResult()
{}
CreateTagResourcesResult::CreateTagResourcesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateTagResourcesResult::~CreateTagResourcesResult()
{}
void CreateTagResourcesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,139 @@
/*
* 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/ddoscoo/model/CreateWebCCRuleRequest.h>
using AlibabaCloud::Ddoscoo::Model::CreateWebCCRuleRequest;
CreateWebCCRuleRequest::CreateWebCCRuleRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "CreateWebCCRule")
{
setMethod(HttpRequest::Method::Post);
}
CreateWebCCRuleRequest::~CreateWebCCRuleRequest()
{}
std::string CreateWebCCRuleRequest::getMode()const
{
return mode_;
}
void CreateWebCCRuleRequest::setMode(const std::string& mode)
{
mode_ = mode;
setParameter("Mode", mode);
}
std::string CreateWebCCRuleRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateWebCCRuleRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateWebCCRuleRequest::getAct()const
{
return act_;
}
void CreateWebCCRuleRequest::setAct(const std::string& act)
{
act_ = act;
setParameter("Act", act);
}
std::string CreateWebCCRuleRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateWebCCRuleRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int CreateWebCCRuleRequest::getCount()const
{
return count_;
}
void CreateWebCCRuleRequest::setCount(int count)
{
count_ = count;
setParameter("Count", std::to_string(count));
}
int CreateWebCCRuleRequest::getTtl()const
{
return ttl_;
}
void CreateWebCCRuleRequest::setTtl(int ttl)
{
ttl_ = ttl;
setParameter("Ttl", std::to_string(ttl));
}
std::string CreateWebCCRuleRequest::getUri()const
{
return uri_;
}
void CreateWebCCRuleRequest::setUri(const std::string& uri)
{
uri_ = uri;
setParameter("Uri", uri);
}
std::string CreateWebCCRuleRequest::getDomain()const
{
return domain_;
}
void CreateWebCCRuleRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string CreateWebCCRuleRequest::getName()const
{
return name_;
}
void CreateWebCCRuleRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
int CreateWebCCRuleRequest::getInterval()const
{
return interval_;
}
void CreateWebCCRuleRequest::setInterval(int interval)
{
interval_ = interval;
setParameter("Interval", std::to_string(interval));
}

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/ddoscoo/model/CreateWebCCRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
CreateWebCCRuleResult::CreateWebCCRuleResult() :
ServiceResult()
{}
CreateWebCCRuleResult::CreateWebCCRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateWebCCRuleResult::~CreateWebCCRuleResult()
{}
void CreateWebCCRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,97 @@
/*
* 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/ddoscoo/model/CreateWebRuleRequest.h>
using AlibabaCloud::Ddoscoo::Model::CreateWebRuleRequest;
CreateWebRuleRequest::CreateWebRuleRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "CreateWebRule")
{
setMethod(HttpRequest::Method::Post);
}
CreateWebRuleRequest::~CreateWebRuleRequest()
{}
std::string CreateWebRuleRequest::getRules()const
{
return rules_;
}
void CreateWebRuleRequest::setRules(const std::string& rules)
{
rules_ = rules;
setParameter("Rules", rules);
}
std::string CreateWebRuleRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateWebRuleRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateWebRuleRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateWebRuleRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int CreateWebRuleRequest::getRsType()const
{
return rsType_;
}
void CreateWebRuleRequest::setRsType(int rsType)
{
rsType_ = rsType;
setParameter("RsType", std::to_string(rsType));
}
std::vector<std::string> CreateWebRuleRequest::getInstanceIds()const
{
return instanceIds_;
}
void CreateWebRuleRequest::setInstanceIds(const std::vector<std::string>& instanceIds)
{
instanceIds_ = instanceIds;
for(int dep1 = 0; dep1!= instanceIds.size(); dep1++) {
setParameter("InstanceIds."+ std::to_string(dep1), instanceIds.at(dep1));
}
}
std::string CreateWebRuleRequest::getDomain()const
{
return domain_;
}
void CreateWebRuleRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}

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/ddoscoo/model/CreateWebRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
CreateWebRuleResult::CreateWebRuleResult() :
ServiceResult()
{}
CreateWebRuleResult::CreateWebRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateWebRuleResult::~CreateWebRuleResult()
{}
void CreateWebRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ddoscoo/model/DeleteAsyncTaskRequest.h>
using AlibabaCloud::Ddoscoo::Model::DeleteAsyncTaskRequest;
DeleteAsyncTaskRequest::DeleteAsyncTaskRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DeleteAsyncTask")
{
setMethod(HttpRequest::Method::Post);
}
DeleteAsyncTaskRequest::~DeleteAsyncTaskRequest()
{}
std::string DeleteAsyncTaskRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DeleteAsyncTaskRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DeleteAsyncTaskRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteAsyncTaskRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DeleteAsyncTaskRequest::getLang()const
{
return lang_;
}
void DeleteAsyncTaskRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
int DeleteAsyncTaskRequest::getTaskId()const
{
return taskId_;
}
void DeleteAsyncTaskRequest::setTaskId(int taskId)
{
taskId_ = taskId;
setParameter("TaskId", std::to_string(taskId));
}

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/ddoscoo/model/DeleteAsyncTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DeleteAsyncTaskResult::DeleteAsyncTaskResult() :
ServiceResult()
{}
DeleteAsyncTaskResult::DeleteAsyncTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteAsyncTaskResult::~DeleteAsyncTaskResult()
{}
void DeleteAsyncTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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/ddoscoo/model/DeleteAutoCcBlacklistRequest.h>
using AlibabaCloud::Ddoscoo::Model::DeleteAutoCcBlacklistRequest;
DeleteAutoCcBlacklistRequest::DeleteAutoCcBlacklistRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DeleteAutoCcBlacklist")
{
setMethod(HttpRequest::Method::Post);
}
DeleteAutoCcBlacklistRequest::~DeleteAutoCcBlacklistRequest()
{}
std::string DeleteAutoCcBlacklistRequest::getBlacklist()const
{
return blacklist_;
}
void DeleteAutoCcBlacklistRequest::setBlacklist(const std::string& blacklist)
{
blacklist_ = blacklist;
setParameter("Blacklist", blacklist);
}
std::string DeleteAutoCcBlacklistRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteAutoCcBlacklistRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DeleteAutoCcBlacklistRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteAutoCcBlacklistRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

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/ddoscoo/model/DeleteAutoCcBlacklistResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DeleteAutoCcBlacklistResult::DeleteAutoCcBlacklistResult() :
ServiceResult()
{}
DeleteAutoCcBlacklistResult::DeleteAutoCcBlacklistResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteAutoCcBlacklistResult::~DeleteAutoCcBlacklistResult()
{}
void DeleteAutoCcBlacklistResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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/ddoscoo/model/DeleteAutoCcWhitelistRequest.h>
using AlibabaCloud::Ddoscoo::Model::DeleteAutoCcWhitelistRequest;
DeleteAutoCcWhitelistRequest::DeleteAutoCcWhitelistRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DeleteAutoCcWhitelist")
{
setMethod(HttpRequest::Method::Post);
}
DeleteAutoCcWhitelistRequest::~DeleteAutoCcWhitelistRequest()
{}
std::string DeleteAutoCcWhitelistRequest::getWhitelist()const
{
return whitelist_;
}
void DeleteAutoCcWhitelistRequest::setWhitelist(const std::string& whitelist)
{
whitelist_ = whitelist;
setParameter("Whitelist", whitelist);
}
std::string DeleteAutoCcWhitelistRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteAutoCcWhitelistRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DeleteAutoCcWhitelistRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteAutoCcWhitelistRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

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/ddoscoo/model/DeleteAutoCcWhitelistResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DeleteAutoCcWhitelistResult::DeleteAutoCcWhitelistResult() :
ServiceResult()
{}
DeleteAutoCcWhitelistResult::DeleteAutoCcWhitelistResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteAutoCcWhitelistResult::~DeleteAutoCcWhitelistResult()
{}
void DeleteAutoCcWhitelistResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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/ddoscoo/model/DeleteNetworkRuleRequest.h>
using AlibabaCloud::Ddoscoo::Model::DeleteNetworkRuleRequest;
DeleteNetworkRuleRequest::DeleteNetworkRuleRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DeleteNetworkRule")
{
setMethod(HttpRequest::Method::Post);
}
DeleteNetworkRuleRequest::~DeleteNetworkRuleRequest()
{}
std::string DeleteNetworkRuleRequest::getNetworkRule()const
{
return networkRule_;
}
void DeleteNetworkRuleRequest::setNetworkRule(const std::string& networkRule)
{
networkRule_ = networkRule;
setParameter("NetworkRule", networkRule);
}
std::string DeleteNetworkRuleRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteNetworkRuleRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

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/ddoscoo/model/DeleteNetworkRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DeleteNetworkRuleResult::DeleteNetworkRuleResult() :
ServiceResult()
{}
DeleteNetworkRuleResult::DeleteNetworkRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteNetworkRuleResult::~DeleteNetworkRuleResult()
{}
void DeleteNetworkRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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/ddoscoo/model/DeleteSceneDefensePolicyRequest.h>
using AlibabaCloud::Ddoscoo::Model::DeleteSceneDefensePolicyRequest;
DeleteSceneDefensePolicyRequest::DeleteSceneDefensePolicyRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DeleteSceneDefensePolicy")
{
setMethod(HttpRequest::Method::Post);
}
DeleteSceneDefensePolicyRequest::~DeleteSceneDefensePolicyRequest()
{}
std::string DeleteSceneDefensePolicyRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteSceneDefensePolicyRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DeleteSceneDefensePolicyRequest::getPolicyId()const
{
return policyId_;
}
void DeleteSceneDefensePolicyRequest::setPolicyId(const std::string& policyId)
{
policyId_ = policyId;
setParameter("PolicyId", policyId);
}

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

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ddoscoo/model/DeleteSchedulerRuleRequest.h>
using AlibabaCloud::Ddoscoo::Model::DeleteSchedulerRuleRequest;
DeleteSchedulerRuleRequest::DeleteSchedulerRuleRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DeleteSchedulerRule")
{
setMethod(HttpRequest::Method::Post);
}
DeleteSchedulerRuleRequest::~DeleteSchedulerRuleRequest()
{}
std::string DeleteSchedulerRuleRequest::getRuleName()const
{
return ruleName_;
}
void DeleteSchedulerRuleRequest::setRuleName(const std::string& ruleName)
{
ruleName_ = ruleName;
setParameter("RuleName", ruleName);
}
std::string DeleteSchedulerRuleRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DeleteSchedulerRuleRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DeleteSchedulerRuleRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteSchedulerRuleRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

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/ddoscoo/model/DeleteSchedulerRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DeleteSchedulerRuleResult::DeleteSchedulerRuleResult() :
ServiceResult()
{}
DeleteSchedulerRuleResult::DeleteSchedulerRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteSchedulerRuleResult::~DeleteSchedulerRuleResult()
{}
void DeleteSchedulerRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,110 @@
/*
* 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/ddoscoo/model/DeleteTagResourcesRequest.h>
using AlibabaCloud::Ddoscoo::Model::DeleteTagResourcesRequest;
DeleteTagResourcesRequest::DeleteTagResourcesRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DeleteTagResources")
{
setMethod(HttpRequest::Method::Post);
}
DeleteTagResourcesRequest::~DeleteTagResourcesRequest()
{}
std::string DeleteTagResourcesRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DeleteTagResourcesRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DeleteTagResourcesRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteTagResourcesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DeleteTagResourcesRequest::getRegionId()const
{
return regionId_;
}
void DeleteTagResourcesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
bool DeleteTagResourcesRequest::getAll()const
{
return all_;
}
void DeleteTagResourcesRequest::setAll(bool all)
{
all_ = all;
setParameter("All", all ? "true" : "false");
}
std::string DeleteTagResourcesRequest::getResourceType()const
{
return resourceType_;
}
void DeleteTagResourcesRequest::setResourceType(const std::string& resourceType)
{
resourceType_ = resourceType;
setParameter("ResourceType", resourceType);
}
std::vector<std::string> DeleteTagResourcesRequest::getTagKey()const
{
return tagKey_;
}
void DeleteTagResourcesRequest::setTagKey(const std::vector<std::string>& tagKey)
{
tagKey_ = tagKey;
for(int dep1 = 0; dep1!= tagKey.size(); dep1++) {
setParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1));
}
}
std::vector<std::string> DeleteTagResourcesRequest::getResourceIds()const
{
return resourceIds_;
}
void DeleteTagResourcesRequest::setResourceIds(const std::vector<std::string>& resourceIds)
{
resourceIds_ = resourceIds;
for(int dep1 = 0; dep1!= resourceIds.size(); dep1++) {
setParameter("ResourceIds."+ std::to_string(dep1), resourceIds.at(dep1));
}
}

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/ddoscoo/model/DeleteTagResourcesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DeleteTagResourcesResult::DeleteTagResourcesResult() :
ServiceResult()
{}
DeleteTagResourcesResult::DeleteTagResourcesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteTagResourcesResult::~DeleteTagResourcesResult()
{}
void DeleteTagResourcesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ddoscoo/model/DeleteWebCCRuleRequest.h>
using AlibabaCloud::Ddoscoo::Model::DeleteWebCCRuleRequest;
DeleteWebCCRuleRequest::DeleteWebCCRuleRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DeleteWebCCRule")
{
setMethod(HttpRequest::Method::Post);
}
DeleteWebCCRuleRequest::~DeleteWebCCRuleRequest()
{}
std::string DeleteWebCCRuleRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DeleteWebCCRuleRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DeleteWebCCRuleRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteWebCCRuleRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DeleteWebCCRuleRequest::getDomain()const
{
return domain_;
}
void DeleteWebCCRuleRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string DeleteWebCCRuleRequest::getName()const
{
return name_;
}
void DeleteWebCCRuleRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

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/ddoscoo/model/DeleteWebCCRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DeleteWebCCRuleResult::DeleteWebCCRuleResult() :
ServiceResult()
{}
DeleteWebCCRuleResult::DeleteWebCCRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteWebCCRuleResult::~DeleteWebCCRuleResult()
{}
void DeleteWebCCRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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/ddoscoo/model/DeleteWebCacheCustomRuleRequest.h>
using AlibabaCloud::Ddoscoo::Model::DeleteWebCacheCustomRuleRequest;
DeleteWebCacheCustomRuleRequest::DeleteWebCacheCustomRuleRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DeleteWebCacheCustomRule")
{
setMethod(HttpRequest::Method::Post);
}
DeleteWebCacheCustomRuleRequest::~DeleteWebCacheCustomRuleRequest()
{}
std::string DeleteWebCacheCustomRuleRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DeleteWebCacheCustomRuleRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DeleteWebCacheCustomRuleRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteWebCacheCustomRuleRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::vector<std::string> DeleteWebCacheCustomRuleRequest::getRuleNames()const
{
return ruleNames_;
}
void DeleteWebCacheCustomRuleRequest::setRuleNames(const std::vector<std::string>& ruleNames)
{
ruleNames_ = ruleNames;
for(int dep1 = 0; dep1!= ruleNames.size(); dep1++) {
setParameter("RuleNames."+ std::to_string(dep1), ruleNames.at(dep1));
}
}
std::string DeleteWebCacheCustomRuleRequest::getDomain()const
{
return domain_;
}
void DeleteWebCacheCustomRuleRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}

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/ddoscoo/model/DeleteWebCacheCustomRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DeleteWebCacheCustomRuleResult::DeleteWebCacheCustomRuleResult() :
ServiceResult()
{}
DeleteWebCacheCustomRuleResult::DeleteWebCacheCustomRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteWebCacheCustomRuleResult::~DeleteWebCacheCustomRuleResult()
{}
void DeleteWebCacheCustomRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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/ddoscoo/model/DeleteWebPreciseAccessRuleRequest.h>
using AlibabaCloud::Ddoscoo::Model::DeleteWebPreciseAccessRuleRequest;
DeleteWebPreciseAccessRuleRequest::DeleteWebPreciseAccessRuleRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DeleteWebPreciseAccessRule")
{
setMethod(HttpRequest::Method::Post);
}
DeleteWebPreciseAccessRuleRequest::~DeleteWebPreciseAccessRuleRequest()
{}
std::string DeleteWebPreciseAccessRuleRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DeleteWebPreciseAccessRuleRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DeleteWebPreciseAccessRuleRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteWebPreciseAccessRuleRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::vector<std::string> DeleteWebPreciseAccessRuleRequest::getRuleNames()const
{
return ruleNames_;
}
void DeleteWebPreciseAccessRuleRequest::setRuleNames(const std::vector<std::string>& ruleNames)
{
ruleNames_ = ruleNames;
for(int dep1 = 0; dep1!= ruleNames.size(); dep1++) {
setParameter("RuleNames."+ std::to_string(dep1), ruleNames.at(dep1));
}
}
std::string DeleteWebPreciseAccessRuleRequest::getDomain()const
{
return domain_;
}
void DeleteWebPreciseAccessRuleRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}

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/ddoscoo/model/DeleteWebPreciseAccessRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DeleteWebPreciseAccessRuleResult::DeleteWebPreciseAccessRuleResult() :
ServiceResult()
{}
DeleteWebPreciseAccessRuleResult::DeleteWebPreciseAccessRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteWebPreciseAccessRuleResult::~DeleteWebPreciseAccessRuleResult()
{}
void DeleteWebPreciseAccessRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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/ddoscoo/model/DeleteWebRuleRequest.h>
using AlibabaCloud::Ddoscoo::Model::DeleteWebRuleRequest;
DeleteWebRuleRequest::DeleteWebRuleRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DeleteWebRule")
{
setMethod(HttpRequest::Method::Post);
}
DeleteWebRuleRequest::~DeleteWebRuleRequest()
{}
std::string DeleteWebRuleRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DeleteWebRuleRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DeleteWebRuleRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteWebRuleRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DeleteWebRuleRequest::getDomain()const
{
return domain_;
}
void DeleteWebRuleRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}

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/ddoscoo/model/DeleteWebRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DeleteWebRuleResult::DeleteWebRuleResult() :
ServiceResult()
{}
DeleteWebRuleResult::DeleteWebRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteWebRuleResult::~DeleteWebRuleResult()
{}
void DeleteWebRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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/ddoscoo/model/DescribeAsyncTasksRequest.h>
using AlibabaCloud::Ddoscoo::Model::DescribeAsyncTasksRequest;
DescribeAsyncTasksRequest::DescribeAsyncTasksRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeAsyncTasks")
{
setMethod(HttpRequest::Method::Post);
}
DescribeAsyncTasksRequest::~DescribeAsyncTasksRequest()
{}
int DescribeAsyncTasksRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeAsyncTasksRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeAsyncTasksRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeAsyncTasksRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeAsyncTasksRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAsyncTasksRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeAsyncTasksRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAsyncTasksRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeAsyncTasksRequest::getLang()const
{
return lang_;
}
void DescribeAsyncTasksRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,76 @@
/*
* 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/ddoscoo/model/DescribeAsyncTasksResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DescribeAsyncTasksResult::DescribeAsyncTasksResult() :
ServiceResult()
{}
DescribeAsyncTasksResult::DescribeAsyncTasksResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAsyncTasksResult::~DescribeAsyncTasksResult()
{}
void DescribeAsyncTasksResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAsyncTasksNode = value["AsyncTasks"]["AsyncTask"];
for (auto valueAsyncTasksAsyncTask : allAsyncTasksNode)
{
AsyncTask asyncTasksObject;
if(!valueAsyncTasksAsyncTask["TaskId"].isNull())
asyncTasksObject.taskId = std::stol(valueAsyncTasksAsyncTask["TaskId"].asString());
if(!valueAsyncTasksAsyncTask["EndTime"].isNull())
asyncTasksObject.endTime = std::stol(valueAsyncTasksAsyncTask["EndTime"].asString());
if(!valueAsyncTasksAsyncTask["StartTime"].isNull())
asyncTasksObject.startTime = std::stol(valueAsyncTasksAsyncTask["StartTime"].asString());
if(!valueAsyncTasksAsyncTask["TaskStatus"].isNull())
asyncTasksObject.taskStatus = std::stoi(valueAsyncTasksAsyncTask["TaskStatus"].asString());
if(!valueAsyncTasksAsyncTask["TaskResult"].isNull())
asyncTasksObject.taskResult = valueAsyncTasksAsyncTask["TaskResult"].asString();
if(!valueAsyncTasksAsyncTask["TaskParams"].isNull())
asyncTasksObject.taskParams = valueAsyncTasksAsyncTask["TaskParams"].asString();
if(!valueAsyncTasksAsyncTask["TaskType"].isNull())
asyncTasksObject.taskType = std::stoi(valueAsyncTasksAsyncTask["TaskType"].asString());
asyncTasks_.push_back(asyncTasksObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int DescribeAsyncTasksResult::getTotalCount()const
{
return totalCount_;
}
std::vector<DescribeAsyncTasksResult::AsyncTask> DescribeAsyncTasksResult::getAsyncTasks()const
{
return asyncTasks_;
}

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/ddoscoo/model/DescribeAutoCcBlacklistRequest.h>
using AlibabaCloud::Ddoscoo::Model::DescribeAutoCcBlacklistRequest;
DescribeAutoCcBlacklistRequest::DescribeAutoCcBlacklistRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeAutoCcBlacklist")
{
setMethod(HttpRequest::Method::Post);
}
DescribeAutoCcBlacklistRequest::~DescribeAutoCcBlacklistRequest()
{}
int DescribeAutoCcBlacklistRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeAutoCcBlacklistRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeAutoCcBlacklistRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeAutoCcBlacklistRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeAutoCcBlacklistRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAutoCcBlacklistRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeAutoCcBlacklistRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAutoCcBlacklistRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeAutoCcBlacklistRequest::getKeyWord()const
{
return keyWord_;
}
void DescribeAutoCcBlacklistRequest::setKeyWord(const std::string& keyWord)
{
keyWord_ = keyWord;
setParameter("KeyWord", keyWord);
}

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/ddoscoo/model/DescribeAutoCcBlacklistResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DescribeAutoCcBlacklistResult::DescribeAutoCcBlacklistResult() :
ServiceResult()
{}
DescribeAutoCcBlacklistResult::DescribeAutoCcBlacklistResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAutoCcBlacklistResult::~DescribeAutoCcBlacklistResult()
{}
void DescribeAutoCcBlacklistResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAutoCcBlacklistNode = value["AutoCcBlacklist"]["AutoCcBlacklistItem"];
for (auto valueAutoCcBlacklistAutoCcBlacklistItem : allAutoCcBlacklistNode)
{
AutoCcBlacklistItem autoCcBlacklistObject;
if(!valueAutoCcBlacklistAutoCcBlacklistItem["DestIp"].isNull())
autoCcBlacklistObject.destIp = valueAutoCcBlacklistAutoCcBlacklistItem["DestIp"].asString();
if(!valueAutoCcBlacklistAutoCcBlacklistItem["SourceIp"].isNull())
autoCcBlacklistObject.sourceIp = valueAutoCcBlacklistAutoCcBlacklistItem["SourceIp"].asString();
if(!valueAutoCcBlacklistAutoCcBlacklistItem["EndTime"].isNull())
autoCcBlacklistObject.endTime = std::stol(valueAutoCcBlacklistAutoCcBlacklistItem["EndTime"].asString());
if(!valueAutoCcBlacklistAutoCcBlacklistItem["Type"].isNull())
autoCcBlacklistObject.type = valueAutoCcBlacklistAutoCcBlacklistItem["Type"].asString();
autoCcBlacklist_.push_back(autoCcBlacklistObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
}
long DescribeAutoCcBlacklistResult::getTotalCount()const
{
return totalCount_;
}
std::vector<DescribeAutoCcBlacklistResult::AutoCcBlacklistItem> DescribeAutoCcBlacklistResult::getAutoCcBlacklist()const
{
return autoCcBlacklist_;
}

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/ddoscoo/model/DescribeAutoCcListCountRequest.h>
using AlibabaCloud::Ddoscoo::Model::DescribeAutoCcListCountRequest;
DescribeAutoCcListCountRequest::DescribeAutoCcListCountRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeAutoCcListCount")
{
setMethod(HttpRequest::Method::Post);
}
DescribeAutoCcListCountRequest::~DescribeAutoCcListCountRequest()
{}
std::string DescribeAutoCcListCountRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeAutoCcListCountRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeAutoCcListCountRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAutoCcListCountRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeAutoCcListCountRequest::getQueryType()const
{
return queryType_;
}
void DescribeAutoCcListCountRequest::setQueryType(const std::string& queryType)
{
queryType_ = queryType;
setParameter("QueryType", queryType);
}

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/ddoscoo/model/DescribeAutoCcListCountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DescribeAutoCcListCountResult::DescribeAutoCcListCountResult() :
ServiceResult()
{}
DescribeAutoCcListCountResult::DescribeAutoCcListCountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAutoCcListCountResult::~DescribeAutoCcListCountResult()
{}
void DescribeAutoCcListCountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["WhiteCount"].isNull())
whiteCount_ = std::stoi(value["WhiteCount"].asString());
if(!value["BlackCount"].isNull())
blackCount_ = std::stoi(value["BlackCount"].asString());
}
int DescribeAutoCcListCountResult::getBlackCount()const
{
return blackCount_;
}
int DescribeAutoCcListCountResult::getWhiteCount()const
{
return whiteCount_;
}

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/ddoscoo/model/DescribeAutoCcWhitelistRequest.h>
using AlibabaCloud::Ddoscoo::Model::DescribeAutoCcWhitelistRequest;
DescribeAutoCcWhitelistRequest::DescribeAutoCcWhitelistRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeAutoCcWhitelist")
{
setMethod(HttpRequest::Method::Post);
}
DescribeAutoCcWhitelistRequest::~DescribeAutoCcWhitelistRequest()
{}
int DescribeAutoCcWhitelistRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeAutoCcWhitelistRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeAutoCcWhitelistRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeAutoCcWhitelistRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeAutoCcWhitelistRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAutoCcWhitelistRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeAutoCcWhitelistRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAutoCcWhitelistRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeAutoCcWhitelistRequest::getKeyWord()const
{
return keyWord_;
}
void DescribeAutoCcWhitelistRequest::setKeyWord(const std::string& keyWord)
{
keyWord_ = keyWord;
setParameter("KeyWord", keyWord);
}

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/ddoscoo/model/DescribeAutoCcWhitelistResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DescribeAutoCcWhitelistResult::DescribeAutoCcWhitelistResult() :
ServiceResult()
{}
DescribeAutoCcWhitelistResult::DescribeAutoCcWhitelistResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAutoCcWhitelistResult::~DescribeAutoCcWhitelistResult()
{}
void DescribeAutoCcWhitelistResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAutoCcWhitelistNode = value["AutoCcWhitelist"]["AutoCcWhitelistItem"];
for (auto valueAutoCcWhitelistAutoCcWhitelistItem : allAutoCcWhitelistNode)
{
AutoCcWhitelistItem autoCcWhitelistObject;
if(!valueAutoCcWhitelistAutoCcWhitelistItem["DestIp"].isNull())
autoCcWhitelistObject.destIp = valueAutoCcWhitelistAutoCcWhitelistItem["DestIp"].asString();
if(!valueAutoCcWhitelistAutoCcWhitelistItem["SourceIp"].isNull())
autoCcWhitelistObject.sourceIp = valueAutoCcWhitelistAutoCcWhitelistItem["SourceIp"].asString();
if(!valueAutoCcWhitelistAutoCcWhitelistItem["EndTime"].isNull())
autoCcWhitelistObject.endTime = std::stol(valueAutoCcWhitelistAutoCcWhitelistItem["EndTime"].asString());
if(!valueAutoCcWhitelistAutoCcWhitelistItem["Type"].isNull())
autoCcWhitelistObject.type = valueAutoCcWhitelistAutoCcWhitelistItem["Type"].asString();
autoCcWhitelist_.push_back(autoCcWhitelistObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
}
std::vector<DescribeAutoCcWhitelistResult::AutoCcWhitelistItem> DescribeAutoCcWhitelistResult::getAutoCcWhitelist()const
{
return autoCcWhitelist_;
}
long DescribeAutoCcWhitelistResult::getTotalCount()const
{
return totalCount_;
}

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/ddoscoo/model/DescribeBackSourceCidrRequest.h>
using AlibabaCloud::Ddoscoo::Model::DescribeBackSourceCidrRequest;
DescribeBackSourceCidrRequest::DescribeBackSourceCidrRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeBackSourceCidr")
{
setMethod(HttpRequest::Method::Post);
}
DescribeBackSourceCidrRequest::~DescribeBackSourceCidrRequest()
{}
std::string DescribeBackSourceCidrRequest::getLine()const
{
return line_;
}
void DescribeBackSourceCidrRequest::setLine(const std::string& line)
{
line_ = line;
setParameter("Line", line);
}
std::string DescribeBackSourceCidrRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeBackSourceCidrRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeBackSourceCidrRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeBackSourceCidrRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View File

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

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/ddoscoo/model/DescribeBlackholeStatusRequest.h>
using AlibabaCloud::Ddoscoo::Model::DescribeBlackholeStatusRequest;
DescribeBlackholeStatusRequest::DescribeBlackholeStatusRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeBlackholeStatus")
{
setMethod(HttpRequest::Method::Post);
}
DescribeBlackholeStatusRequest::~DescribeBlackholeStatusRequest()
{}
std::string DescribeBlackholeStatusRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeBlackholeStatusRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::vector<std::string> DescribeBlackholeStatusRequest::getInstanceIds()const
{
return instanceIds_;
}
void DescribeBlackholeStatusRequest::setInstanceIds(const std::vector<std::string>& instanceIds)
{
instanceIds_ = instanceIds;
for(int dep1 = 0; dep1!= instanceIds.size(); dep1++) {
setParameter("InstanceIds."+ std::to_string(dep1), instanceIds.at(dep1));
}
}

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/ddoscoo/model/DescribeBlackholeStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DescribeBlackholeStatusResult::DescribeBlackholeStatusResult() :
ServiceResult()
{}
DescribeBlackholeStatusResult::DescribeBlackholeStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBlackholeStatusResult::~DescribeBlackholeStatusResult()
{}
void DescribeBlackholeStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBlackholeStatusNode = value["BlackholeStatus"]["BlackholeStatusItem"];
for (auto valueBlackholeStatusBlackholeStatusItem : allBlackholeStatusNode)
{
BlackholeStatusItem blackholeStatusObject;
if(!valueBlackholeStatusBlackholeStatusItem["StartTime"].isNull())
blackholeStatusObject.startTime = std::stol(valueBlackholeStatusBlackholeStatusItem["StartTime"].asString());
if(!valueBlackholeStatusBlackholeStatusItem["EndTime"].isNull())
blackholeStatusObject.endTime = std::stol(valueBlackholeStatusBlackholeStatusItem["EndTime"].asString());
if(!valueBlackholeStatusBlackholeStatusItem["Ip"].isNull())
blackholeStatusObject.ip = valueBlackholeStatusBlackholeStatusItem["Ip"].asString();
if(!valueBlackholeStatusBlackholeStatusItem["BlackStatus"].isNull())
blackholeStatusObject.blackStatus = valueBlackholeStatusBlackholeStatusItem["BlackStatus"].asString();
blackholeStatus_.push_back(blackholeStatusObject);
}
}
std::vector<DescribeBlackholeStatusResult::BlackholeStatusItem> DescribeBlackholeStatusResult::getBlackholeStatus()const
{
return blackholeStatus_;
}

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/ddoscoo/model/DescribeBlockStatusRequest.h>
using AlibabaCloud::Ddoscoo::Model::DescribeBlockStatusRequest;
DescribeBlockStatusRequest::DescribeBlockStatusRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeBlockStatus")
{
setMethod(HttpRequest::Method::Post);
}
DescribeBlockStatusRequest::~DescribeBlockStatusRequest()
{}
std::string DescribeBlockStatusRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeBlockStatusRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeBlockStatusRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeBlockStatusRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::vector<std::string> DescribeBlockStatusRequest::getInstanceIds()const
{
return instanceIds_;
}
void DescribeBlockStatusRequest::setInstanceIds(const std::vector<std::string>& instanceIds)
{
instanceIds_ = instanceIds;
for(int dep1 = 0; dep1!= instanceIds.size(); dep1++) {
setParameter("InstanceIds."+ std::to_string(dep1), instanceIds.at(dep1));
}
}
std::string DescribeBlockStatusRequest::getLang()const
{
return lang_;
}
void DescribeBlockStatusRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ddoscoo/model/DescribeBlockStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DescribeBlockStatusResult::DescribeBlockStatusResult() :
ServiceResult()
{}
DescribeBlockStatusResult::DescribeBlockStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBlockStatusResult::~DescribeBlockStatusResult()
{}
void DescribeBlockStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allStatusListNode = value["StatusList"]["StatusItem"];
for (auto valueStatusListStatusItem : allStatusListNode)
{
StatusItem statusListObject;
if(!valueStatusListStatusItem["Ip"].isNull())
statusListObject.ip = valueStatusListStatusItem["Ip"].asString();
auto allBlockStatusListNode = valueStatusListStatusItem["BlockStatusList"]["BlockStatusItem"];
for (auto valueStatusListStatusItemBlockStatusListBlockStatusItem : allBlockStatusListNode)
{
StatusItem::BlockStatusItem blockStatusListObject;
if(!valueStatusListStatusItemBlockStatusListBlockStatusItem["StartTime"].isNull())
blockStatusListObject.startTime = std::stol(valueStatusListStatusItemBlockStatusListBlockStatusItem["StartTime"].asString());
if(!valueStatusListStatusItemBlockStatusListBlockStatusItem["Line"].isNull())
blockStatusListObject.line = valueStatusListStatusItemBlockStatusListBlockStatusItem["Line"].asString();
if(!valueStatusListStatusItemBlockStatusListBlockStatusItem["EndTime"].isNull())
blockStatusListObject.endTime = std::stol(valueStatusListStatusItemBlockStatusListBlockStatusItem["EndTime"].asString());
if(!valueStatusListStatusItemBlockStatusListBlockStatusItem["BlockStatus"].isNull())
blockStatusListObject.blockStatus = valueStatusListStatusItemBlockStatusListBlockStatusItem["BlockStatus"].asString();
statusListObject.blockStatusList.push_back(blockStatusListObject);
}
statusList_.push_back(statusListObject);
}
}
std::vector<DescribeBlockStatusResult::StatusItem> DescribeBlockStatusResult::getStatusList()const
{
return statusList_;
}

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/ddoscoo/model/DescribeCertsRequest.h>
using AlibabaCloud::Ddoscoo::Model::DescribeCertsRequest;
DescribeCertsRequest::DescribeCertsRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeCerts")
{
setMethod(HttpRequest::Method::Post);
}
DescribeCertsRequest::~DescribeCertsRequest()
{}
std::string DescribeCertsRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeCertsRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeCertsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeCertsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeCertsRequest::getDomain()const
{
return domain_;
}
void DescribeCertsRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}

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/ddoscoo/model/DescribeCertsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DescribeCertsResult::DescribeCertsResult() :
ServiceResult()
{}
DescribeCertsResult::DescribeCertsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCertsResult::~DescribeCertsResult()
{}
void DescribeCertsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCertsNode = value["Certs"]["CertItem"];
for (auto valueCertsCertItem : allCertsNode)
{
CertItem certsObject;
if(!valueCertsCertItem["Id"].isNull())
certsObject.id = std::stoi(valueCertsCertItem["Id"].asString());
if(!valueCertsCertItem["Name"].isNull())
certsObject.name = valueCertsCertItem["Name"].asString();
if(!valueCertsCertItem["Common"].isNull())
certsObject.common = valueCertsCertItem["Common"].asString();
if(!valueCertsCertItem["Issuer"].isNull())
certsObject.issuer = valueCertsCertItem["Issuer"].asString();
if(!valueCertsCertItem["StartDate"].isNull())
certsObject.startDate = valueCertsCertItem["StartDate"].asString();
if(!valueCertsCertItem["EndDate"].isNull())
certsObject.endDate = valueCertsCertItem["EndDate"].asString();
if(!valueCertsCertItem["DomainRelated"].isNull())
certsObject.domainRelated = valueCertsCertItem["DomainRelated"].asString() == "true";
certs_.push_back(certsObject);
}
}
std::vector<DescribeCertsResult::CertItem> DescribeCertsResult::getCerts()const
{
return certs_;
}

View File

@@ -0,0 +1,64 @@
/*
* 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/ddoscoo/model/DescribeCnameReusesRequest.h>
using AlibabaCloud::Ddoscoo::Model::DescribeCnameReusesRequest;
DescribeCnameReusesRequest::DescribeCnameReusesRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeCnameReuses")
{
setMethod(HttpRequest::Method::Post);
}
DescribeCnameReusesRequest::~DescribeCnameReusesRequest()
{}
std::vector<std::string> DescribeCnameReusesRequest::getDomains()const
{
return domains_;
}
void DescribeCnameReusesRequest::setDomains(const std::vector<std::string>& domains)
{
domains_ = domains;
for(int dep1 = 0; dep1!= domains.size(); dep1++) {
setParameter("Domains."+ std::to_string(dep1), domains.at(dep1));
}
}
std::string DescribeCnameReusesRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeCnameReusesRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeCnameReusesRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeCnameReusesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View File

@@ -0,0 +1,61 @@
/*
* 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/ddoscoo/model/DescribeCnameReusesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DescribeCnameReusesResult::DescribeCnameReusesResult() :
ServiceResult()
{}
DescribeCnameReusesResult::DescribeCnameReusesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCnameReusesResult::~DescribeCnameReusesResult()
{}
void DescribeCnameReusesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCnameReusesNode = value["CnameReuses"]["CnameReuse"];
for (auto valueCnameReusesCnameReuse : allCnameReusesNode)
{
CnameReuse cnameReusesObject;
if(!valueCnameReusesCnameReuse["Domain"].isNull())
cnameReusesObject.domain = valueCnameReusesCnameReuse["Domain"].asString();
if(!valueCnameReusesCnameReuse["Enable"].isNull())
cnameReusesObject.enable = std::stoi(valueCnameReusesCnameReuse["Enable"].asString());
if(!valueCnameReusesCnameReuse["Cname"].isNull())
cnameReusesObject.cname = valueCnameReusesCnameReuse["Cname"].asString();
cnameReuses_.push_back(cnameReusesObject);
}
}
std::vector<DescribeCnameReusesResult::CnameReuse> DescribeCnameReusesResult::getCnameReuses()const
{
return cnameReuses_;
}

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/ddoscoo/model/DescribeDDoSEventsRequest.h>
using AlibabaCloud::Ddoscoo::Model::DescribeDDoSEventsRequest;
DescribeDDoSEventsRequest::DescribeDDoSEventsRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeDDoSEvents")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDDoSEventsRequest::~DescribeDDoSEventsRequest()
{}
long DescribeDDoSEventsRequest::getStartTime()const
{
return startTime_;
}
void DescribeDDoSEventsRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
int DescribeDDoSEventsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeDDoSEventsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeDDoSEventsRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeDDoSEventsRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeDDoSEventsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDDoSEventsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeDDoSEventsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDDoSEventsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
long DescribeDDoSEventsRequest::getEndTime()const
{
return endTime_;
}
void DescribeDDoSEventsRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
std::vector<std::string> DescribeDDoSEventsRequest::getInstanceIds()const
{
return instanceIds_;
}
void DescribeDDoSEventsRequest::setInstanceIds(const std::vector<std::string>& instanceIds)
{
instanceIds_ = instanceIds;
for(int dep1 = 0; dep1!= instanceIds.size(); dep1++) {
setParameter("InstanceIds."+ std::to_string(dep1), instanceIds.at(dep1));
}
}

View File

@@ -0,0 +1,78 @@
/*
* 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/ddoscoo/model/DescribeDDoSEventsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DescribeDDoSEventsResult::DescribeDDoSEventsResult() :
ServiceResult()
{}
DescribeDDoSEventsResult::DescribeDDoSEventsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDDoSEventsResult::~DescribeDDoSEventsResult()
{}
void DescribeDDoSEventsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDDoSEventsNode = value["DDoSEvents"]["Data"];
for (auto valueDDoSEventsData : allDDoSEventsNode)
{
Data dDoSEventsObject;
if(!valueDDoSEventsData["Bps"].isNull())
dDoSEventsObject.bps = std::stol(valueDDoSEventsData["Bps"].asString());
if(!valueDDoSEventsData["Pps"].isNull())
dDoSEventsObject.pps = std::stol(valueDDoSEventsData["Pps"].asString());
if(!valueDDoSEventsData["EventType"].isNull())
dDoSEventsObject.eventType = valueDDoSEventsData["EventType"].asString();
if(!valueDDoSEventsData["Ip"].isNull())
dDoSEventsObject.ip = valueDDoSEventsData["Ip"].asString();
if(!valueDDoSEventsData["StartTime"].isNull())
dDoSEventsObject.startTime = std::stol(valueDDoSEventsData["StartTime"].asString());
if(!valueDDoSEventsData["EndTime"].isNull())
dDoSEventsObject.endTime = std::stol(valueDDoSEventsData["EndTime"].asString());
if(!valueDDoSEventsData["Port"].isNull())
dDoSEventsObject.port = valueDDoSEventsData["Port"].asString();
if(!valueDDoSEventsData["Region"].isNull())
dDoSEventsObject.region = valueDDoSEventsData["Region"].asString();
dDoSEvents_.push_back(dDoSEventsObject);
}
if(!value["Total"].isNull())
total_ = std::stol(value["Total"].asString());
}
long DescribeDDoSEventsResult::getTotal()const
{
return total_;
}
std::vector<DescribeDDoSEventsResult::Data> DescribeDDoSEventsResult::getDDoSEvents()const
{
return dDoSEvents_;
}

View File

@@ -0,0 +1,95 @@
/*
* 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/ddoscoo/model/DescribeDDosAllEventListRequest.h>
using AlibabaCloud::Ddoscoo::Model::DescribeDDosAllEventListRequest;
DescribeDDosAllEventListRequest::DescribeDDosAllEventListRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeDDosAllEventList")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDDosAllEventListRequest::~DescribeDDosAllEventListRequest()
{}
long DescribeDDosAllEventListRequest::getEndTime()const
{
return endTime_;
}
void DescribeDDosAllEventListRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
long DescribeDDosAllEventListRequest::getStartTime()const
{
return startTime_;
}
void DescribeDDosAllEventListRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
int DescribeDDosAllEventListRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeDDosAllEventListRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeDDosAllEventListRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDDosAllEventListRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeDDosAllEventListRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDDosAllEventListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeDDosAllEventListRequest::getEventType()const
{
return eventType_;
}
void DescribeDDosAllEventListRequest::setEventType(const std::string& eventType)
{
eventType_ = eventType;
setParameter("EventType", eventType);
}

View File

@@ -0,0 +1,76 @@
/*
* 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/ddoscoo/model/DescribeDDosAllEventListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DescribeDDosAllEventListResult::DescribeDDosAllEventListResult() :
ServiceResult()
{}
DescribeDDosAllEventListResult::DescribeDDosAllEventListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDDosAllEventListResult::~DescribeDDosAllEventListResult()
{}
void DescribeDDosAllEventListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAttackEventsNode = value["AttackEvents"]["AttackEvent"];
for (auto valueAttackEventsAttackEvent : allAttackEventsNode)
{
AttackEvent attackEventsObject;
if(!valueAttackEventsAttackEvent["Pps"].isNull())
attackEventsObject.pps = std::stol(valueAttackEventsAttackEvent["Pps"].asString());
if(!valueAttackEventsAttackEvent["EventType"].isNull())
attackEventsObject.eventType = valueAttackEventsAttackEvent["EventType"].asString();
if(!valueAttackEventsAttackEvent["Port"].isNull())
attackEventsObject.port = valueAttackEventsAttackEvent["Port"].asString();
if(!valueAttackEventsAttackEvent["Ip"].isNull())
attackEventsObject.ip = valueAttackEventsAttackEvent["Ip"].asString();
if(!valueAttackEventsAttackEvent["StartTime"].isNull())
attackEventsObject.startTime = std::stol(valueAttackEventsAttackEvent["StartTime"].asString());
if(!valueAttackEventsAttackEvent["EndTime"].isNull())
attackEventsObject.endTime = std::stol(valueAttackEventsAttackEvent["EndTime"].asString());
if(!valueAttackEventsAttackEvent["Mbps"].isNull())
attackEventsObject.mbps = std::stol(valueAttackEventsAttackEvent["Mbps"].asString());
attackEvents_.push_back(attackEventsObject);
}
if(!value["Total"].isNull())
total_ = std::stol(value["Total"].asString());
}
long DescribeDDosAllEventListResult::getTotal()const
{
return total_;
}
std::vector<DescribeDDosAllEventListResult::AttackEvent> DescribeDDosAllEventListResult::getAttackEvents()const
{
return attackEvents_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ddoscoo/model/DescribeDDosEventAreaRequest.h>
using AlibabaCloud::Ddoscoo::Model::DescribeDDosEventAreaRequest;
DescribeDDosEventAreaRequest::DescribeDDosEventAreaRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeDDosEventArea")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDDosEventAreaRequest::~DescribeDDosEventAreaRequest()
{}
std::string DescribeDDosEventAreaRequest::getIp()const
{
return ip_;
}
void DescribeDDosEventAreaRequest::setIp(const std::string& ip)
{
ip_ = ip;
setParameter("Ip", ip);
}
long DescribeDDosEventAreaRequest::getStartTime()const
{
return startTime_;
}
void DescribeDDosEventAreaRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
std::string DescribeDDosEventAreaRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDDosEventAreaRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeDDosEventAreaRequest::getEventType()const
{
return eventType_;
}
void DescribeDDosEventAreaRequest::setEventType(const std::string& eventType)
{
eventType_ = eventType;
setParameter("EventType", eventType);
}

View File

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

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ddoscoo/model/DescribeDDosEventAttackTypeRequest.h>
using AlibabaCloud::Ddoscoo::Model::DescribeDDosEventAttackTypeRequest;
DescribeDDosEventAttackTypeRequest::DescribeDDosEventAttackTypeRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeDDosEventAttackType")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDDosEventAttackTypeRequest::~DescribeDDosEventAttackTypeRequest()
{}
std::string DescribeDDosEventAttackTypeRequest::getIp()const
{
return ip_;
}
void DescribeDDosEventAttackTypeRequest::setIp(const std::string& ip)
{
ip_ = ip;
setParameter("Ip", ip);
}
long DescribeDDosEventAttackTypeRequest::getStartTime()const
{
return startTime_;
}
void DescribeDDosEventAttackTypeRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
std::string DescribeDDosEventAttackTypeRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDDosEventAttackTypeRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeDDosEventAttackTypeRequest::getEventType()const
{
return eventType_;
}
void DescribeDDosEventAttackTypeRequest::setEventType(const std::string& eventType)
{
eventType_ = eventType;
setParameter("EventType", eventType);
}

View File

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

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ddoscoo/model/DescribeDDosEventIspRequest.h>
using AlibabaCloud::Ddoscoo::Model::DescribeDDosEventIspRequest;
DescribeDDosEventIspRequest::DescribeDDosEventIspRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeDDosEventIsp")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDDosEventIspRequest::~DescribeDDosEventIspRequest()
{}
std::string DescribeDDosEventIspRequest::getIp()const
{
return ip_;
}
void DescribeDDosEventIspRequest::setIp(const std::string& ip)
{
ip_ = ip;
setParameter("Ip", ip);
}
long DescribeDDosEventIspRequest::getStartTime()const
{
return startTime_;
}
void DescribeDDosEventIspRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
std::string DescribeDDosEventIspRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDDosEventIspRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeDDosEventIspRequest::getEventType()const
{
return eventType_;
}
void DescribeDDosEventIspRequest::setEventType(const std::string& eventType)
{
eventType_ = eventType;
setParameter("EventType", eventType);
}

View File

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

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/ddoscoo/model/DescribeDDosEventMaxRequest.h>
using AlibabaCloud::Ddoscoo::Model::DescribeDDosEventMaxRequest;
DescribeDDosEventMaxRequest::DescribeDDosEventMaxRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeDDosEventMax")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDDosEventMaxRequest::~DescribeDDosEventMaxRequest()
{}
long DescribeDDosEventMaxRequest::getEndTime()const
{
return endTime_;
}
void DescribeDDosEventMaxRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
long DescribeDDosEventMaxRequest::getStartTime()const
{
return startTime_;
}
void DescribeDDosEventMaxRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
std::string DescribeDDosEventMaxRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDDosEventMaxRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/ddoscoo/model/DescribeDDosEventMaxResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DescribeDDosEventMaxResult::DescribeDDosEventMaxResult() :
ServiceResult()
{}
DescribeDDosEventMaxResult::DescribeDDosEventMaxResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDDosEventMaxResult::~DescribeDDosEventMaxResult()
{}
void DescribeDDosEventMaxResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Mbps"].isNull())
mbps_ = std::stol(value["Mbps"].asString());
if(!value["Qps"].isNull())
qps_ = std::stol(value["Qps"].asString());
if(!value["Cps"].isNull())
cps_ = std::stol(value["Cps"].asString());
}
long DescribeDDosEventMaxResult::getQps()const
{
return qps_;
}
long DescribeDDosEventMaxResult::getCps()const
{
return cps_;
}
long DescribeDDosEventMaxResult::getMbps()const
{
return mbps_;
}

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/ddoscoo/model/DescribeDDosEventSrcIpRequest.h>
using AlibabaCloud::Ddoscoo::Model::DescribeDDosEventSrcIpRequest;
DescribeDDosEventSrcIpRequest::DescribeDDosEventSrcIpRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeDDosEventSrcIp")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDDosEventSrcIpRequest::~DescribeDDosEventSrcIpRequest()
{}
std::string DescribeDDosEventSrcIpRequest::getIp()const
{
return ip_;
}
void DescribeDDosEventSrcIpRequest::setIp(const std::string& ip)
{
ip_ = ip;
setParameter("Ip", ip);
}
long DescribeDDosEventSrcIpRequest::getRange()const
{
return range_;
}
void DescribeDDosEventSrcIpRequest::setRange(long range)
{
range_ = range;
setParameter("Range", std::to_string(range));
}
long DescribeDDosEventSrcIpRequest::getStartTime()const
{
return startTime_;
}
void DescribeDDosEventSrcIpRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
std::string DescribeDDosEventSrcIpRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDDosEventSrcIpRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeDDosEventSrcIpRequest::getEventType()const
{
return eventType_;
}
void DescribeDDosEventSrcIpRequest::setEventType(const std::string& eventType)
{
eventType_ = eventType;
setParameter("EventType", eventType);
}

View File

@@ -0,0 +1,61 @@
/*
* 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/ddoscoo/model/DescribeDDosEventSrcIpResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DescribeDDosEventSrcIpResult::DescribeDDosEventSrcIpResult() :
ServiceResult()
{}
DescribeDDosEventSrcIpResult::DescribeDDosEventSrcIpResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDDosEventSrcIpResult::~DescribeDDosEventSrcIpResult()
{}
void DescribeDDosEventSrcIpResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allIpsNode = value["Ips"]["EventSrcIp"];
for (auto valueIpsEventSrcIp : allIpsNode)
{
EventSrcIp ipsObject;
if(!valueIpsEventSrcIp["SrcIp"].isNull())
ipsObject.srcIp = valueIpsEventSrcIp["SrcIp"].asString();
if(!valueIpsEventSrcIp["AreaId"].isNull())
ipsObject.areaId = valueIpsEventSrcIp["AreaId"].asString();
if(!valueIpsEventSrcIp["Isp"].isNull())
ipsObject.isp = valueIpsEventSrcIp["Isp"].asString();
ips_.push_back(ipsObject);
}
}
std::vector<DescribeDDosEventSrcIpResult::EventSrcIp> DescribeDDosEventSrcIpResult::getIps()const
{
return ips_;
}

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/ddoscoo/model/DescribeDefenseCountStatisticsRequest.h>
using AlibabaCloud::Ddoscoo::Model::DescribeDefenseCountStatisticsRequest;
DescribeDefenseCountStatisticsRequest::DescribeDefenseCountStatisticsRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeDefenseCountStatistics")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDefenseCountStatisticsRequest::~DescribeDefenseCountStatisticsRequest()
{}
std::string DescribeDefenseCountStatisticsRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeDefenseCountStatisticsRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeDefenseCountStatisticsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDefenseCountStatisticsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View File

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

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/ddoscoo/model/DescribeDefenseRecordsRequest.h>
using AlibabaCloud::Ddoscoo::Model::DescribeDefenseRecordsRequest;
DescribeDefenseRecordsRequest::DescribeDefenseRecordsRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeDefenseRecords")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDefenseRecordsRequest::~DescribeDefenseRecordsRequest()
{}
long DescribeDefenseRecordsRequest::getStartTime()const
{
return startTime_;
}
void DescribeDefenseRecordsRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
int DescribeDefenseRecordsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeDefenseRecordsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeDefenseRecordsRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeDefenseRecordsRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeDefenseRecordsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDefenseRecordsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeDefenseRecordsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDefenseRecordsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeDefenseRecordsRequest::getLang()const
{
return lang_;
}
void DescribeDefenseRecordsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
long DescribeDefenseRecordsRequest::getEndTime()const
{
return endTime_;
}
void DescribeDefenseRecordsRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
std::string DescribeDefenseRecordsRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeDefenseRecordsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("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/ddoscoo/model/DescribeDefenseRecordsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DescribeDefenseRecordsResult::DescribeDefenseRecordsResult() :
ServiceResult()
{}
DescribeDefenseRecordsResult::DescribeDefenseRecordsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDefenseRecordsResult::~DescribeDefenseRecordsResult()
{}
void DescribeDefenseRecordsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDefenseRecordsNode = value["DefenseRecords"]["DefenseRecord"];
for (auto valueDefenseRecordsDefenseRecord : allDefenseRecordsNode)
{
DefenseRecord defenseRecordsObject;
if(!valueDefenseRecordsDefenseRecord["StartTime"].isNull())
defenseRecordsObject.startTime = std::stol(valueDefenseRecordsDefenseRecord["StartTime"].asString());
if(!valueDefenseRecordsDefenseRecord["EndTime"].isNull())
defenseRecordsObject.endTime = std::stol(valueDefenseRecordsDefenseRecord["EndTime"].asString());
if(!valueDefenseRecordsDefenseRecord["InstanceId"].isNull())
defenseRecordsObject.instanceId = valueDefenseRecordsDefenseRecord["InstanceId"].asString();
if(!valueDefenseRecordsDefenseRecord["Status"].isNull())
defenseRecordsObject.status = std::stoi(valueDefenseRecordsDefenseRecord["Status"].asString());
if(!valueDefenseRecordsDefenseRecord["AttackPeak"].isNull())
defenseRecordsObject.attackPeak = std::stol(valueDefenseRecordsDefenseRecord["AttackPeak"].asString());
if(!valueDefenseRecordsDefenseRecord["EventCount"].isNull())
defenseRecordsObject.eventCount = std::stoi(valueDefenseRecordsDefenseRecord["EventCount"].asString());
defenseRecords_.push_back(defenseRecordsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
}
std::vector<DescribeDefenseRecordsResult::DefenseRecord> DescribeDefenseRecordsResult::getDefenseRecords()const
{
return defenseRecords_;
}
long DescribeDefenseRecordsResult::getTotalCount()const
{
return totalCount_;
}

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/ddoscoo/model/DescribeDomainAttackEventsRequest.h>
using AlibabaCloud::Ddoscoo::Model::DescribeDomainAttackEventsRequest;
DescribeDomainAttackEventsRequest::DescribeDomainAttackEventsRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeDomainAttackEvents")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDomainAttackEventsRequest::~DescribeDomainAttackEventsRequest()
{}
long DescribeDomainAttackEventsRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainAttackEventsRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
int DescribeDomainAttackEventsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeDomainAttackEventsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeDomainAttackEventsRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeDomainAttackEventsRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeDomainAttackEventsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDomainAttackEventsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeDomainAttackEventsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDomainAttackEventsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
long DescribeDomainAttackEventsRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainAttackEventsRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
std::string DescribeDomainAttackEventsRequest::getDomain()const
{
return domain_;
}
void DescribeDomainAttackEventsRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}

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/ddoscoo/model/DescribeDomainAttackEventsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DescribeDomainAttackEventsResult::DescribeDomainAttackEventsResult() :
ServiceResult()
{}
DescribeDomainAttackEventsResult::DescribeDomainAttackEventsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainAttackEventsResult::~DescribeDomainAttackEventsResult()
{}
void DescribeDomainAttackEventsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDomainAttackEventsNode = value["DomainAttackEvents"]["Data"];
for (auto valueDomainAttackEventsData : allDomainAttackEventsNode)
{
Data domainAttackEventsObject;
if(!valueDomainAttackEventsData["Domain"].isNull())
domainAttackEventsObject.domain = valueDomainAttackEventsData["Domain"].asString();
if(!valueDomainAttackEventsData["StartTime"].isNull())
domainAttackEventsObject.startTime = std::stol(valueDomainAttackEventsData["StartTime"].asString());
if(!valueDomainAttackEventsData["EndTime"].isNull())
domainAttackEventsObject.endTime = std::stol(valueDomainAttackEventsData["EndTime"].asString());
if(!valueDomainAttackEventsData["MaxQps"].isNull())
domainAttackEventsObject.maxQps = std::stol(valueDomainAttackEventsData["MaxQps"].asString());
domainAttackEvents_.push_back(domainAttackEventsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
}
std::vector<DescribeDomainAttackEventsResult::Data> DescribeDomainAttackEventsResult::getDomainAttackEvents()const
{
return domainAttackEvents_;
}
long DescribeDomainAttackEventsResult::getTotalCount()const
{
return totalCount_;
}

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/ddoscoo/model/DescribeDomainOverviewRequest.h>
using AlibabaCloud::Ddoscoo::Model::DescribeDomainOverviewRequest;
DescribeDomainOverviewRequest::DescribeDomainOverviewRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeDomainOverview")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDomainOverviewRequest::~DescribeDomainOverviewRequest()
{}
long DescribeDomainOverviewRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainOverviewRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
long DescribeDomainOverviewRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainOverviewRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
std::string DescribeDomainOverviewRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeDomainOverviewRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeDomainOverviewRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDomainOverviewRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeDomainOverviewRequest::getDomain()const
{
return domain_;
}
void DescribeDomainOverviewRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}

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/ddoscoo/model/DescribeDomainOverviewResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DescribeDomainOverviewResult::DescribeDomainOverviewResult() :
ServiceResult()
{}
DescribeDomainOverviewResult::DescribeDomainOverviewResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainOverviewResult::~DescribeDomainOverviewResult()
{}
void DescribeDomainOverviewResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["MaxHttps"].isNull())
maxHttps_ = std::stol(value["MaxHttps"].asString());
if(!value["MaxHttp"].isNull())
maxHttp_ = std::stol(value["MaxHttp"].asString());
}
long DescribeDomainOverviewResult::getMaxHttps()const
{
return maxHttps_;
}
long DescribeDomainOverviewResult::getMaxHttp()const
{
return maxHttp_;
}

View File

@@ -0,0 +1,95 @@
/*
* 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/ddoscoo/model/DescribeDomainQPSListRequest.h>
using AlibabaCloud::Ddoscoo::Model::DescribeDomainQPSListRequest;
DescribeDomainQPSListRequest::DescribeDomainQPSListRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeDomainQPSList")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDomainQPSListRequest::~DescribeDomainQPSListRequest()
{}
long DescribeDomainQPSListRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainQPSListRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
std::string DescribeDomainQPSListRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeDomainQPSListRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeDomainQPSListRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDomainQPSListRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
long DescribeDomainQPSListRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainQPSListRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
std::string DescribeDomainQPSListRequest::getDomain()const
{
return domain_;
}
void DescribeDomainQPSListRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
long DescribeDomainQPSListRequest::getInterval()const
{
return interval_;
}
void DescribeDomainQPSListRequest::setInterval(long interval)
{
interval_ = interval;
setParameter("Interval", std::to_string(interval));
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ddoscoo/model/DescribeDomainQPSListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DescribeDomainQPSListResult::DescribeDomainQPSListResult() :
ServiceResult()
{}
DescribeDomainQPSListResult::DescribeDomainQPSListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainQPSListResult::~DescribeDomainQPSListResult()
{}
void DescribeDomainQPSListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDomainQPSListNode = value["DomainQPSList"]["DomainQPS"];
for (auto valueDomainQPSListDomainQPS : allDomainQPSListNode)
{
DomainQPS domainQPSListObject;
if(!valueDomainQPSListDomainQPS["MaxQps"].isNull())
domainQPSListObject.maxQps = std::stol(valueDomainQPSListDomainQPS["MaxQps"].asString());
if(!valueDomainQPSListDomainQPS["MaxAttackQps"].isNull())
domainQPSListObject.maxAttackQps = std::stol(valueDomainQPSListDomainQPS["MaxAttackQps"].asString());
if(!valueDomainQPSListDomainQPS["MaxNormalQps"].isNull())
domainQPSListObject.maxNormalQps = std::stol(valueDomainQPSListDomainQPS["MaxNormalQps"].asString());
if(!valueDomainQPSListDomainQPS["AttackQps"].isNull())
domainQPSListObject.attackQps = std::stol(valueDomainQPSListDomainQPS["AttackQps"].asString());
if(!valueDomainQPSListDomainQPS["TotalQps"].isNull())
domainQPSListObject.totalQps = std::stol(valueDomainQPSListDomainQPS["TotalQps"].asString());
if(!valueDomainQPSListDomainQPS["CacheHits"].isNull())
domainQPSListObject.cacheHits = std::stol(valueDomainQPSListDomainQPS["CacheHits"].asString());
if(!valueDomainQPSListDomainQPS["TotalCount"].isNull())
domainQPSListObject.totalCount = std::stol(valueDomainQPSListDomainQPS["TotalCount"].asString());
if(!valueDomainQPSListDomainQPS["Index"].isNull())
domainQPSListObject.index = std::stol(valueDomainQPSListDomainQPS["Index"].asString());
if(!valueDomainQPSListDomainQPS["Time"].isNull())
domainQPSListObject.time = std::stol(valueDomainQPSListDomainQPS["Time"].asString());
domainQPSList_.push_back(domainQPSListObject);
}
}
std::vector<DescribeDomainQPSListResult::DomainQPS> DescribeDomainQPSListResult::getDomainQPSList()const
{
return domainQPSList_;
}

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/ddoscoo/model/DescribeDomainQpsWithCacheRequest.h>
using AlibabaCloud::Ddoscoo::Model::DescribeDomainQpsWithCacheRequest;
DescribeDomainQpsWithCacheRequest::DescribeDomainQpsWithCacheRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeDomainQpsWithCache")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDomainQpsWithCacheRequest::~DescribeDomainQpsWithCacheRequest()
{}
long DescribeDomainQpsWithCacheRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainQpsWithCacheRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
long DescribeDomainQpsWithCacheRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainQpsWithCacheRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
std::string DescribeDomainQpsWithCacheRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeDomainQpsWithCacheRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeDomainQpsWithCacheRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDomainQpsWithCacheRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeDomainQpsWithCacheRequest::getDomain()const
{
return domain_;
}
void DescribeDomainQpsWithCacheRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}

View File

@@ -0,0 +1,130 @@
/*
* 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/ddoscoo/model/DescribeDomainQpsWithCacheResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DescribeDomainQpsWithCacheResult::DescribeDomainQpsWithCacheResult() :
ServiceResult()
{}
DescribeDomainQpsWithCacheResult::DescribeDomainQpsWithCacheResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainQpsWithCacheResult::~DescribeDomainQpsWithCacheResult()
{}
void DescribeDomainQpsWithCacheResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTotals = value["Totals"]["Total"];
for (const auto &item : allTotals)
totals_.push_back(item.asString());
auto allBlocks = value["Blocks"]["Block"];
for (const auto &item : allBlocks)
blocks_.push_back(item.asString());
auto allCacheHits = value["CacheHits"]["CacheHit"];
for (const auto &item : allCacheHits)
cacheHits_.push_back(item.asString());
auto allPreciseBlocks = value["PreciseBlocks"]["PreciseBlock"];
for (const auto &item : allPreciseBlocks)
preciseBlocks_.push_back(item.asString());
auto allRegionBlocks = value["RegionBlocks"]["RegionBlock"];
for (const auto &item : allRegionBlocks)
regionBlocks_.push_back(item.asString());
auto allIpBlockQps = value["IpBlockQps"]["IpBlock"];
for (const auto &item : allIpBlockQps)
ipBlockQps_.push_back(item.asString());
auto allCcJsQps = value["CcJsQps"]["CcJs"];
for (const auto &item : allCcJsQps)
ccJsQps_.push_back(item.asString());
auto allPreciseJsQps = value["PreciseJsQps"]["PreciseJs"];
for (const auto &item : allPreciseJsQps)
preciseJsQps_.push_back(item.asString());
auto allCcBlockQps = value["CcBlockQps"]["CcBlock"];
for (const auto &item : allCcBlockQps)
ccBlockQps_.push_back(item.asString());
if(!value["Interval"].isNull())
interval_ = std::stoi(value["Interval"].asString());
if(!value["StartTime"].isNull())
startTime_ = std::stol(value["StartTime"].asString());
}
std::vector<std::string> DescribeDomainQpsWithCacheResult::getIpBlockQps()const
{
return ipBlockQps_;
}
std::vector<std::string> DescribeDomainQpsWithCacheResult::getCcJsQps()const
{
return ccJsQps_;
}
std::vector<std::string> DescribeDomainQpsWithCacheResult::getBlocks()const
{
return blocks_;
}
std::vector<std::string> DescribeDomainQpsWithCacheResult::getPreciseBlocks()const
{
return preciseBlocks_;
}
std::vector<std::string> DescribeDomainQpsWithCacheResult::getPreciseJsQps()const
{
return preciseJsQps_;
}
std::vector<std::string> DescribeDomainQpsWithCacheResult::getTotals()const
{
return totals_;
}
long DescribeDomainQpsWithCacheResult::getStartTime()const
{
return startTime_;
}
std::vector<std::string> DescribeDomainQpsWithCacheResult::getCcBlockQps()const
{
return ccBlockQps_;
}
std::vector<std::string> DescribeDomainQpsWithCacheResult::getCacheHits()const
{
return cacheHits_;
}
std::vector<std::string> DescribeDomainQpsWithCacheResult::getRegionBlocks()const
{
return regionBlocks_;
}
int DescribeDomainQpsWithCacheResult::getInterval()const
{
return interval_;
}

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/ddoscoo/model/DescribeDomainStatusCodeCountRequest.h>
using AlibabaCloud::Ddoscoo::Model::DescribeDomainStatusCodeCountRequest;
DescribeDomainStatusCodeCountRequest::DescribeDomainStatusCodeCountRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeDomainStatusCodeCount")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDomainStatusCodeCountRequest::~DescribeDomainStatusCodeCountRequest()
{}
long DescribeDomainStatusCodeCountRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainStatusCodeCountRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
long DescribeDomainStatusCodeCountRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainStatusCodeCountRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
std::string DescribeDomainStatusCodeCountRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeDomainStatusCodeCountRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeDomainStatusCodeCountRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDomainStatusCodeCountRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeDomainStatusCodeCountRequest::getDomain()const
{
return domain_;
}
void DescribeDomainStatusCodeCountRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}

View File

@@ -0,0 +1,128 @@
/*
* 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/ddoscoo/model/DescribeDomainStatusCodeCountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ddoscoo;
using namespace AlibabaCloud::Ddoscoo::Model;
DescribeDomainStatusCodeCountResult::DescribeDomainStatusCodeCountResult() :
ServiceResult()
{}
DescribeDomainStatusCodeCountResult::DescribeDomainStatusCodeCountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainStatusCodeCountResult::~DescribeDomainStatusCodeCountResult()
{}
void DescribeDomainStatusCodeCountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Status2XX"].isNull())
status2XX_ = std::stol(value["Status2XX"].asString());
if(!value["Status501"].isNull())
status501_ = std::stol(value["Status501"].asString());
if(!value["Status502"].isNull())
status502_ = std::stol(value["Status502"].asString());
if(!value["Status503"].isNull())
status503_ = std::stol(value["Status503"].asString());
if(!value["Status504"].isNull())
status504_ = std::stol(value["Status504"].asString());
if(!value["Status200"].isNull())
status200_ = std::stol(value["Status200"].asString());
if(!value["Status405"].isNull())
status405_ = std::stol(value["Status405"].asString());
if(!value["Status5XX"].isNull())
status5XX_ = std::stol(value["Status5XX"].asString());
if(!value["Status4XX"].isNull())
status4XX_ = std::stol(value["Status4XX"].asString());
if(!value["Status403"].isNull())
status403_ = std::stol(value["Status403"].asString());
if(!value["Status404"].isNull())
status404_ = std::stol(value["Status404"].asString());
if(!value["Status3XX"].isNull())
status3XX_ = std::stol(value["Status3XX"].asString());
}
long DescribeDomainStatusCodeCountResult::getStatus501()const
{
return status501_;
}
long DescribeDomainStatusCodeCountResult::getStatus502()const
{
return status502_;
}
long DescribeDomainStatusCodeCountResult::getStatus403()const
{
return status403_;
}
long DescribeDomainStatusCodeCountResult::getStatus503()const
{
return status503_;
}
long DescribeDomainStatusCodeCountResult::getStatus404()const
{
return status404_;
}
long DescribeDomainStatusCodeCountResult::getStatus504()const
{
return status504_;
}
long DescribeDomainStatusCodeCountResult::getStatus405()const
{
return status405_;
}
long DescribeDomainStatusCodeCountResult::getStatus2XX()const
{
return status2XX_;
}
long DescribeDomainStatusCodeCountResult::getStatus200()const
{
return status200_;
}
long DescribeDomainStatusCodeCountResult::getStatus3XX()const
{
return status3XX_;
}
long DescribeDomainStatusCodeCountResult::getStatus4XX()const
{
return status4XX_;
}
long DescribeDomainStatusCodeCountResult::getStatus5XX()const
{
return status5XX_;
}

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/ddoscoo/model/DescribeDomainStatusCodeListRequest.h>
using AlibabaCloud::Ddoscoo::Model::DescribeDomainStatusCodeListRequest;
DescribeDomainStatusCodeListRequest::DescribeDomainStatusCodeListRequest() :
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeDomainStatusCodeList")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDomainStatusCodeListRequest::~DescribeDomainStatusCodeListRequest()
{}
long DescribeDomainStatusCodeListRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainStatusCodeListRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
std::string DescribeDomainStatusCodeListRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeDomainStatusCodeListRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeDomainStatusCodeListRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDomainStatusCodeListRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeDomainStatusCodeListRequest::getQueryType()const
{
return queryType_;
}
void DescribeDomainStatusCodeListRequest::setQueryType(const std::string& queryType)
{
queryType_ = queryType;
setParameter("QueryType", queryType);
}
long DescribeDomainStatusCodeListRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainStatusCodeListRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
std::string DescribeDomainStatusCodeListRequest::getDomain()const
{
return domain_;
}
void DescribeDomainStatusCodeListRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
long DescribeDomainStatusCodeListRequest::getInterval()const
{
return interval_;
}
void DescribeDomainStatusCodeListRequest::setInterval(long interval)
{
interval_ = interval;
setParameter("Interval", std::to_string(interval));
}

Some files were not shown because too many files have changed in this diff Show More