Generated 2017-12-28 for ddoscoo.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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());
|
||||
|
||||
}
|
||||
|
||||
@@ -14,124 +14,124 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/ModifyWebCCRuleRequest.h>
|
||||
#include <alibabacloud/ddoscoo/model/AddLayer7CCRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Ddoscoo::Model::ModifyWebCCRuleRequest;
|
||||
using AlibabaCloud::Ddoscoo::Model::AddLayer7CCRuleRequest;
|
||||
|
||||
ModifyWebCCRuleRequest::ModifyWebCCRuleRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2020-01-01", "ModifyWebCCRule")
|
||||
AddLayer7CCRuleRequest::AddLayer7CCRuleRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2017-12-28", "AddLayer7CCRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyWebCCRuleRequest::~ModifyWebCCRuleRequest()
|
||||
AddLayer7CCRuleRequest::~AddLayer7CCRuleRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyWebCCRuleRequest::getMode()const
|
||||
std::string AddLayer7CCRuleRequest::getMode()const
|
||||
{
|
||||
return mode_;
|
||||
}
|
||||
|
||||
void ModifyWebCCRuleRequest::setMode(const std::string& mode)
|
||||
void AddLayer7CCRuleRequest::setMode(const std::string& mode)
|
||||
{
|
||||
mode_ = mode;
|
||||
setParameter("Mode", mode);
|
||||
}
|
||||
|
||||
std::string ModifyWebCCRuleRequest::getResourceGroupId()const
|
||||
std::string AddLayer7CCRuleRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void ModifyWebCCRuleRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
void AddLayer7CCRuleRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string ModifyWebCCRuleRequest::getAct()const
|
||||
std::string AddLayer7CCRuleRequest::getAct()const
|
||||
{
|
||||
return act_;
|
||||
}
|
||||
|
||||
void ModifyWebCCRuleRequest::setAct(const std::string& act)
|
||||
void AddLayer7CCRuleRequest::setAct(const std::string& act)
|
||||
{
|
||||
act_ = act;
|
||||
setParameter("Act", act);
|
||||
}
|
||||
|
||||
std::string ModifyWebCCRuleRequest::getSourceIp()const
|
||||
std::string AddLayer7CCRuleRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ModifyWebCCRuleRequest::setSourceIp(const std::string& sourceIp)
|
||||
void AddLayer7CCRuleRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int ModifyWebCCRuleRequest::getCount()const
|
||||
int AddLayer7CCRuleRequest::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
void ModifyWebCCRuleRequest::setCount(int count)
|
||||
void AddLayer7CCRuleRequest::setCount(int count)
|
||||
{
|
||||
count_ = count;
|
||||
setParameter("Count", std::to_string(count));
|
||||
}
|
||||
|
||||
int ModifyWebCCRuleRequest::getTtl()const
|
||||
int AddLayer7CCRuleRequest::getTtl()const
|
||||
{
|
||||
return ttl_;
|
||||
}
|
||||
|
||||
void ModifyWebCCRuleRequest::setTtl(int ttl)
|
||||
void AddLayer7CCRuleRequest::setTtl(int ttl)
|
||||
{
|
||||
ttl_ = ttl;
|
||||
setParameter("Ttl", std::to_string(ttl));
|
||||
}
|
||||
|
||||
std::string ModifyWebCCRuleRequest::getUri()const
|
||||
std::string AddLayer7CCRuleRequest::getUri()const
|
||||
{
|
||||
return uri_;
|
||||
}
|
||||
|
||||
void ModifyWebCCRuleRequest::setUri(const std::string& uri)
|
||||
void AddLayer7CCRuleRequest::setUri(const std::string& uri)
|
||||
{
|
||||
uri_ = uri;
|
||||
setParameter("Uri", uri);
|
||||
}
|
||||
|
||||
std::string ModifyWebCCRuleRequest::getDomain()const
|
||||
std::string AddLayer7CCRuleRequest::getDomain()const
|
||||
{
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void ModifyWebCCRuleRequest::setDomain(const std::string& domain)
|
||||
void AddLayer7CCRuleRequest::setDomain(const std::string& domain)
|
||||
{
|
||||
domain_ = domain;
|
||||
setParameter("Domain", domain);
|
||||
}
|
||||
|
||||
std::string ModifyWebCCRuleRequest::getName()const
|
||||
std::string AddLayer7CCRuleRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ModifyWebCCRuleRequest::setName(const std::string& name)
|
||||
void AddLayer7CCRuleRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
int ModifyWebCCRuleRequest::getInterval()const
|
||||
int AddLayer7CCRuleRequest::getInterval()const
|
||||
{
|
||||
return interval_;
|
||||
}
|
||||
|
||||
void ModifyWebCCRuleRequest::setInterval(int interval)
|
||||
void AddLayer7CCRuleRequest::setInterval(int interval)
|
||||
{
|
||||
interval_ = interval;
|
||||
setParameter("Interval", std::to_string(interval));
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/DeleteWebCCRuleResult.h>
|
||||
#include <alibabacloud/ddoscoo/model/AddLayer7CCRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ddoscoo;
|
||||
using namespace AlibabaCloud::Ddoscoo::Model;
|
||||
|
||||
DeleteWebCCRuleResult::DeleteWebCCRuleResult() :
|
||||
AddLayer7CCRuleResult::AddLayer7CCRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteWebCCRuleResult::DeleteWebCCRuleResult(const std::string &payload) :
|
||||
AddLayer7CCRuleResult::AddLayer7CCRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteWebCCRuleResult::~DeleteWebCCRuleResult()
|
||||
AddLayer7CCRuleResult::~AddLayer7CCRuleResult()
|
||||
{}
|
||||
|
||||
void DeleteWebCCRuleResult::parse(const std::string &payload)
|
||||
void AddLayer7CCRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_;
|
||||
}
|
||||
|
||||
@@ -14,60 +14,60 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/ModifyWebCacheSwitchRequest.h>
|
||||
#include <alibabacloud/ddoscoo/model/CloseDomainSlsConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Ddoscoo::Model::ModifyWebCacheSwitchRequest;
|
||||
using AlibabaCloud::Ddoscoo::Model::CloseDomainSlsConfigRequest;
|
||||
|
||||
ModifyWebCacheSwitchRequest::ModifyWebCacheSwitchRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2020-01-01", "ModifyWebCacheSwitch")
|
||||
CloseDomainSlsConfigRequest::CloseDomainSlsConfigRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2017-12-28", "CloseDomainSlsConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyWebCacheSwitchRequest::~ModifyWebCacheSwitchRequest()
|
||||
CloseDomainSlsConfigRequest::~CloseDomainSlsConfigRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyWebCacheSwitchRequest::getResourceGroupId()const
|
||||
std::string CloseDomainSlsConfigRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void ModifyWebCacheSwitchRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
void CloseDomainSlsConfigRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string ModifyWebCacheSwitchRequest::getSourceIp()const
|
||||
std::string CloseDomainSlsConfigRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ModifyWebCacheSwitchRequest::setSourceIp(const std::string& sourceIp)
|
||||
void CloseDomainSlsConfigRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int ModifyWebCacheSwitchRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void ModifyWebCacheSwitchRequest::setEnable(int enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
}
|
||||
|
||||
std::string ModifyWebCacheSwitchRequest::getDomain()const
|
||||
std::string CloseDomainSlsConfigRequest::getDomain()const
|
||||
{
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void ModifyWebCacheSwitchRequest::setDomain(const std::string& domain)
|
||||
void CloseDomainSlsConfigRequest::setDomain(const std::string& domain)
|
||||
{
|
||||
domain_ = domain;
|
||||
setParameter("Domain", domain);
|
||||
}
|
||||
|
||||
std::string CloseDomainSlsConfigRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void CloseDomainSlsConfigRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/CreateDomainResourceResult.h>
|
||||
#include <alibabacloud/ddoscoo/model/CloseDomainSlsConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ddoscoo;
|
||||
using namespace AlibabaCloud::Ddoscoo::Model;
|
||||
|
||||
CreateDomainResourceResult::CreateDomainResourceResult() :
|
||||
CloseDomainSlsConfigResult::CloseDomainSlsConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDomainResourceResult::CreateDomainResourceResult(const std::string &payload) :
|
||||
CloseDomainSlsConfigResult::CloseDomainSlsConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDomainResourceResult::~CreateDomainResourceResult()
|
||||
CloseDomainSlsConfigResult::~CloseDomainSlsConfigResult()
|
||||
{}
|
||||
|
||||
void CreateDomainResourceResult::parse(const std::string &payload)
|
||||
void CloseDomainSlsConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -14,69 +14,69 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/ModifyHealthCheckConfigRequest.h>
|
||||
#include <alibabacloud/ddoscoo/model/ConfigHealthCheckRequest.h>
|
||||
|
||||
using AlibabaCloud::Ddoscoo::Model::ModifyHealthCheckConfigRequest;
|
||||
using AlibabaCloud::Ddoscoo::Model::ConfigHealthCheckRequest;
|
||||
|
||||
ModifyHealthCheckConfigRequest::ModifyHealthCheckConfigRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2020-01-01", "ModifyHealthCheckConfig")
|
||||
ConfigHealthCheckRequest::ConfigHealthCheckRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2017-12-28", "ConfigHealthCheck")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyHealthCheckConfigRequest::~ModifyHealthCheckConfigRequest()
|
||||
ConfigHealthCheckRequest::~ConfigHealthCheckRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyHealthCheckConfigRequest::getHealthCheck()const
|
||||
std::string ConfigHealthCheckRequest::getHealthCheck()const
|
||||
{
|
||||
return healthCheck_;
|
||||
}
|
||||
|
||||
void ModifyHealthCheckConfigRequest::setHealthCheck(const std::string& healthCheck)
|
||||
void ConfigHealthCheckRequest::setHealthCheck(const std::string& healthCheck)
|
||||
{
|
||||
healthCheck_ = healthCheck;
|
||||
setParameter("HealthCheck", healthCheck);
|
||||
}
|
||||
|
||||
std::string ModifyHealthCheckConfigRequest::getInstanceId()const
|
||||
std::string ConfigHealthCheckRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ModifyHealthCheckConfigRequest::setInstanceId(const std::string& instanceId)
|
||||
void ConfigHealthCheckRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ModifyHealthCheckConfigRequest::getSourceIp()const
|
||||
std::string ConfigHealthCheckRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ModifyHealthCheckConfigRequest::setSourceIp(const std::string& sourceIp)
|
||||
void ConfigHealthCheckRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int ModifyHealthCheckConfigRequest::getFrontendPort()const
|
||||
int ConfigHealthCheckRequest::getFrontendPort()const
|
||||
{
|
||||
return frontendPort_;
|
||||
}
|
||||
|
||||
void ModifyHealthCheckConfigRequest::setFrontendPort(int frontendPort)
|
||||
void ConfigHealthCheckRequest::setFrontendPort(int frontendPort)
|
||||
{
|
||||
frontendPort_ = frontendPort;
|
||||
setParameter("FrontendPort", std::to_string(frontendPort));
|
||||
}
|
||||
|
||||
std::string ModifyHealthCheckConfigRequest::getForwardProtocol()const
|
||||
std::string ConfigHealthCheckRequest::getForwardProtocol()const
|
||||
{
|
||||
return forwardProtocol_;
|
||||
}
|
||||
|
||||
void ModifyHealthCheckConfigRequest::setForwardProtocol(const std::string& forwardProtocol)
|
||||
void ConfigHealthCheckRequest::setForwardProtocol(const std::string& forwardProtocol)
|
||||
{
|
||||
forwardProtocol_ = forwardProtocol;
|
||||
setParameter("ForwardProtocol", forwardProtocol);
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/DeleteNetworkRuleResult.h>
|
||||
#include <alibabacloud/ddoscoo/model/ConfigHealthCheckResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ddoscoo;
|
||||
using namespace AlibabaCloud::Ddoscoo::Model;
|
||||
|
||||
DeleteNetworkRuleResult::DeleteNetworkRuleResult() :
|
||||
ConfigHealthCheckResult::ConfigHealthCheckResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteNetworkRuleResult::DeleteNetworkRuleResult(const std::string &payload) :
|
||||
ConfigHealthCheckResult::ConfigHealthCheckResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteNetworkRuleResult::~DeleteNetworkRuleResult()
|
||||
ConfigHealthCheckResult::~ConfigHealthCheckResult()
|
||||
{}
|
||||
|
||||
void DeleteNetworkRuleResult::parse(const std::string &payload)
|
||||
void ConfigHealthCheckResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/ConfigL7RsPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Ddoscoo::Model::ConfigL7RsPolicyRequest;
|
||||
|
||||
ConfigL7RsPolicyRequest::ConfigL7RsPolicyRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2020-01-01", "ConfigL7RsPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ConfigL7RsPolicyRequest::~ConfigL7RsPolicyRequest()
|
||||
{}
|
||||
|
||||
std::string ConfigL7RsPolicyRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void ConfigL7RsPolicyRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string ConfigL7RsPolicyRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ConfigL7RsPolicyRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string ConfigL7RsPolicyRequest::getDomain()const
|
||||
{
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void ConfigL7RsPolicyRequest::setDomain(const std::string& domain)
|
||||
{
|
||||
domain_ = domain;
|
||||
setParameter("Domain", domain);
|
||||
}
|
||||
|
||||
std::string ConfigL7RsPolicyRequest::getPolicy()const
|
||||
{
|
||||
return policy_;
|
||||
}
|
||||
|
||||
void ConfigL7RsPolicyRequest::setPolicy(const std::string& policy)
|
||||
{
|
||||
policy_ = policy;
|
||||
setParameter("Policy", policy);
|
||||
}
|
||||
|
||||
@@ -14,69 +14,69 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/ModifyNetworkRuleAttributeRequest.h>
|
||||
#include <alibabacloud/ddoscoo/model/ConfigLayer4RuleAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ddoscoo::Model::ModifyNetworkRuleAttributeRequest;
|
||||
using AlibabaCloud::Ddoscoo::Model::ConfigLayer4RuleAttributeRequest;
|
||||
|
||||
ModifyNetworkRuleAttributeRequest::ModifyNetworkRuleAttributeRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2020-01-01", "ModifyNetworkRuleAttribute")
|
||||
ConfigLayer4RuleAttributeRequest::ConfigLayer4RuleAttributeRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2017-12-28", "ConfigLayer4RuleAttribute")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyNetworkRuleAttributeRequest::~ModifyNetworkRuleAttributeRequest()
|
||||
ConfigLayer4RuleAttributeRequest::~ConfigLayer4RuleAttributeRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyNetworkRuleAttributeRequest::getInstanceId()const
|
||||
std::string ConfigLayer4RuleAttributeRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ModifyNetworkRuleAttributeRequest::setInstanceId(const std::string& instanceId)
|
||||
void ConfigLayer4RuleAttributeRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ModifyNetworkRuleAttributeRequest::getSourceIp()const
|
||||
std::string ConfigLayer4RuleAttributeRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ModifyNetworkRuleAttributeRequest::setSourceIp(const std::string& sourceIp)
|
||||
void ConfigLayer4RuleAttributeRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int ModifyNetworkRuleAttributeRequest::getFrontendPort()const
|
||||
int ConfigLayer4RuleAttributeRequest::getFrontendPort()const
|
||||
{
|
||||
return frontendPort_;
|
||||
}
|
||||
|
||||
void ModifyNetworkRuleAttributeRequest::setFrontendPort(int frontendPort)
|
||||
void ConfigLayer4RuleAttributeRequest::setFrontendPort(int frontendPort)
|
||||
{
|
||||
frontendPort_ = frontendPort;
|
||||
setParameter("FrontendPort", std::to_string(frontendPort));
|
||||
}
|
||||
|
||||
std::string ModifyNetworkRuleAttributeRequest::getForwardProtocol()const
|
||||
std::string ConfigLayer4RuleAttributeRequest::getForwardProtocol()const
|
||||
{
|
||||
return forwardProtocol_;
|
||||
}
|
||||
|
||||
void ModifyNetworkRuleAttributeRequest::setForwardProtocol(const std::string& forwardProtocol)
|
||||
void ConfigLayer4RuleAttributeRequest::setForwardProtocol(const std::string& forwardProtocol)
|
||||
{
|
||||
forwardProtocol_ = forwardProtocol;
|
||||
setParameter("ForwardProtocol", forwardProtocol);
|
||||
}
|
||||
|
||||
std::string ModifyNetworkRuleAttributeRequest::getConfig()const
|
||||
std::string ConfigLayer4RuleAttributeRequest::getConfig()const
|
||||
{
|
||||
return config_;
|
||||
}
|
||||
|
||||
void ModifyNetworkRuleAttributeRequest::setConfig(const std::string& config)
|
||||
void ConfigLayer4RuleAttributeRequest::setConfig(const std::string& config)
|
||||
{
|
||||
config_ = config;
|
||||
setParameter("Config", config);
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/DisableWebAccessLogConfigResult.h>
|
||||
#include <alibabacloud/ddoscoo/model/ConfigLayer4RuleAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ddoscoo;
|
||||
using namespace AlibabaCloud::Ddoscoo::Model;
|
||||
|
||||
DisableWebAccessLogConfigResult::DisableWebAccessLogConfigResult() :
|
||||
ConfigLayer4RuleAttributeResult::ConfigLayer4RuleAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DisableWebAccessLogConfigResult::DisableWebAccessLogConfigResult(const std::string &payload) :
|
||||
ConfigLayer4RuleAttributeResult::ConfigLayer4RuleAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DisableWebAccessLogConfigResult::~DisableWebAccessLogConfigResult()
|
||||
ConfigLayer4RuleAttributeResult::~ConfigLayer4RuleAttributeResult()
|
||||
{}
|
||||
|
||||
void DisableWebAccessLogConfigResult::parse(const std::string &payload)
|
||||
void ConfigLayer4RuleAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/ConfigLayer4RuleBakModeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ddoscoo::Model::ConfigLayer4RuleBakModeRequest;
|
||||
|
||||
ConfigLayer4RuleBakModeRequest::ConfigLayer4RuleBakModeRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2020-01-01", "ConfigLayer4RuleBakMode")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ConfigLayer4RuleBakModeRequest::~ConfigLayer4RuleBakModeRequest()
|
||||
{}
|
||||
|
||||
std::string ConfigLayer4RuleBakModeRequest::getBakMode()const
|
||||
{
|
||||
return bakMode_;
|
||||
}
|
||||
|
||||
void ConfigLayer4RuleBakModeRequest::setBakMode(const std::string& bakMode)
|
||||
{
|
||||
bakMode_ = bakMode;
|
||||
setParameter("BakMode", bakMode);
|
||||
}
|
||||
|
||||
std::string ConfigLayer4RuleBakModeRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ConfigLayer4RuleBakModeRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string ConfigLayer4RuleBakModeRequest::getListeners()const
|
||||
{
|
||||
return listeners_;
|
||||
}
|
||||
|
||||
void ConfigLayer4RuleBakModeRequest::setListeners(const std::string& listeners)
|
||||
{
|
||||
listeners_ = listeners;
|
||||
setParameter("Listeners", listeners);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/ConfigLayer4RuleBakModeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ddoscoo;
|
||||
using namespace AlibabaCloud::Ddoscoo::Model;
|
||||
|
||||
ConfigLayer4RuleBakModeResult::ConfigLayer4RuleBakModeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ConfigLayer4RuleBakModeResult::ConfigLayer4RuleBakModeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ConfigLayer4RuleBakModeResult::~ConfigLayer4RuleBakModeResult()
|
||||
{}
|
||||
|
||||
void ConfigLayer4RuleBakModeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -14,36 +14,36 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/ConfigLayer4RemarkRequest.h>
|
||||
#include <alibabacloud/ddoscoo/model/ConfigLayer4RuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Ddoscoo::Model::ConfigLayer4RemarkRequest;
|
||||
using AlibabaCloud::Ddoscoo::Model::ConfigLayer4RuleRequest;
|
||||
|
||||
ConfigLayer4RemarkRequest::ConfigLayer4RemarkRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2020-01-01", "ConfigLayer4Remark")
|
||||
ConfigLayer4RuleRequest::ConfigLayer4RuleRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2017-12-28", "ConfigLayer4Rule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ConfigLayer4RemarkRequest::~ConfigLayer4RemarkRequest()
|
||||
ConfigLayer4RuleRequest::~ConfigLayer4RuleRequest()
|
||||
{}
|
||||
|
||||
std::string ConfigLayer4RemarkRequest::getListeners()const
|
||||
std::string ConfigLayer4RuleRequest::getListeners()const
|
||||
{
|
||||
return listeners_;
|
||||
}
|
||||
|
||||
void ConfigLayer4RemarkRequest::setListeners(const std::string& listeners)
|
||||
void ConfigLayer4RuleRequest::setListeners(const std::string& listeners)
|
||||
{
|
||||
listeners_ = listeners;
|
||||
setParameter("Listeners", listeners);
|
||||
}
|
||||
|
||||
std::string ConfigLayer4RemarkRequest::getSourceIp()const
|
||||
std::string ConfigLayer4RuleRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ConfigLayer4RemarkRequest::setSourceIp(const std::string& sourceIp)
|
||||
void ConfigLayer4RuleRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/AssociateWebCertResult.h>
|
||||
#include <alibabacloud/ddoscoo/model/ConfigLayer4RuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ddoscoo;
|
||||
using namespace AlibabaCloud::Ddoscoo::Model;
|
||||
|
||||
AssociateWebCertResult::AssociateWebCertResult() :
|
||||
ConfigLayer4RuleResult::ConfigLayer4RuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AssociateWebCertResult::AssociateWebCertResult(const std::string &payload) :
|
||||
ConfigLayer4RuleResult::ConfigLayer4RuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AssociateWebCertResult::~AssociateWebCertResult()
|
||||
ConfigLayer4RuleResult::~ConfigLayer4RuleResult()
|
||||
{}
|
||||
|
||||
void AssociateWebCertResult::parse(const std::string &payload)
|
||||
void ConfigLayer4RuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -14,47 +14,25 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/ConfigWebIpSetRequest.h>
|
||||
#include <alibabacloud/ddoscoo/model/ConfigLayer7BlackWhiteListRequest.h>
|
||||
|
||||
using AlibabaCloud::Ddoscoo::Model::ConfigWebIpSetRequest;
|
||||
using AlibabaCloud::Ddoscoo::Model::ConfigLayer7BlackWhiteListRequest;
|
||||
|
||||
ConfigWebIpSetRequest::ConfigWebIpSetRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2020-01-01", "ConfigWebIpSet")
|
||||
ConfigLayer7BlackWhiteListRequest::ConfigLayer7BlackWhiteListRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2017-12-28", "ConfigLayer7BlackWhiteList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ConfigWebIpSetRequest::~ConfigWebIpSetRequest()
|
||||
ConfigLayer7BlackWhiteListRequest::~ConfigLayer7BlackWhiteListRequest()
|
||||
{}
|
||||
|
||||
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::vector<std::string> ConfigWebIpSetRequest::getBlackList()const
|
||||
std::vector<std::string> ConfigLayer7BlackWhiteListRequest::getBlackList()const
|
||||
{
|
||||
return blackList_;
|
||||
}
|
||||
|
||||
void ConfigWebIpSetRequest::setBlackList(const std::vector<std::string>& blackList)
|
||||
void ConfigLayer7BlackWhiteListRequest::setBlackList(const std::vector<std::string>& blackList)
|
||||
{
|
||||
blackList_ = blackList;
|
||||
for(int dep1 = 0; dep1!= blackList.size(); dep1++) {
|
||||
@@ -62,12 +40,12 @@ void ConfigWebIpSetRequest::setBlackList(const std::vector<std::string>& blackLi
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> ConfigWebIpSetRequest::getWhiteList()const
|
||||
std::vector<std::string> ConfigLayer7BlackWhiteListRequest::getWhiteList()const
|
||||
{
|
||||
return whiteList_;
|
||||
}
|
||||
|
||||
void ConfigWebIpSetRequest::setWhiteList(const std::vector<std::string>& whiteList)
|
||||
void ConfigLayer7BlackWhiteListRequest::setWhiteList(const std::vector<std::string>& whiteList)
|
||||
{
|
||||
whiteList_ = whiteList;
|
||||
for(int dep1 = 0; dep1!= whiteList.size(); dep1++) {
|
||||
@@ -75,12 +53,34 @@ void ConfigWebIpSetRequest::setWhiteList(const std::vector<std::string>& whiteLi
|
||||
}
|
||||
}
|
||||
|
||||
std::string ConfigWebIpSetRequest::getDomain()const
|
||||
std::string ConfigLayer7BlackWhiteListRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void ConfigLayer7BlackWhiteListRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string ConfigLayer7BlackWhiteListRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ConfigLayer7BlackWhiteListRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string ConfigLayer7BlackWhiteListRequest::getDomain()const
|
||||
{
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void ConfigWebIpSetRequest::setDomain(const std::string& domain)
|
||||
void ConfigLayer7BlackWhiteListRequest::setDomain(const std::string& domain)
|
||||
{
|
||||
domain_ = domain;
|
||||
setParameter("Domain", domain);
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/DeleteWebPreciseAccessRuleResult.h>
|
||||
#include <alibabacloud/ddoscoo/model/ConfigLayer7BlackWhiteListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ddoscoo;
|
||||
using namespace AlibabaCloud::Ddoscoo::Model;
|
||||
|
||||
DeleteWebPreciseAccessRuleResult::DeleteWebPreciseAccessRuleResult() :
|
||||
ConfigLayer7BlackWhiteListResult::ConfigLayer7BlackWhiteListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteWebPreciseAccessRuleResult::DeleteWebPreciseAccessRuleResult(const std::string &payload) :
|
||||
ConfigLayer7BlackWhiteListResult::ConfigLayer7BlackWhiteListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteWebPreciseAccessRuleResult::~DeleteWebPreciseAccessRuleResult()
|
||||
ConfigLayer7BlackWhiteListResult::~ConfigLayer7BlackWhiteListResult()
|
||||
{}
|
||||
|
||||
void DeleteWebPreciseAccessRuleResult::parse(const std::string &payload)
|
||||
void ConfigLayer7BlackWhiteListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
139
ddoscoo/src/model/ConfigLayer7CCRuleRequest.cc
Normal file
139
ddoscoo/src/model/ConfigLayer7CCRuleRequest.cc
Normal 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/ConfigLayer7CCRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Ddoscoo::Model::ConfigLayer7CCRuleRequest;
|
||||
|
||||
ConfigLayer7CCRuleRequest::ConfigLayer7CCRuleRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2017-12-28", "ConfigLayer7CCRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ConfigLayer7CCRuleRequest::~ConfigLayer7CCRuleRequest()
|
||||
{}
|
||||
|
||||
std::string ConfigLayer7CCRuleRequest::getMode()const
|
||||
{
|
||||
return mode_;
|
||||
}
|
||||
|
||||
void ConfigLayer7CCRuleRequest::setMode(const std::string& mode)
|
||||
{
|
||||
mode_ = mode;
|
||||
setParameter("Mode", mode);
|
||||
}
|
||||
|
||||
std::string ConfigLayer7CCRuleRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void ConfigLayer7CCRuleRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string ConfigLayer7CCRuleRequest::getAct()const
|
||||
{
|
||||
return act_;
|
||||
}
|
||||
|
||||
void ConfigLayer7CCRuleRequest::setAct(const std::string& act)
|
||||
{
|
||||
act_ = act;
|
||||
setParameter("Act", act);
|
||||
}
|
||||
|
||||
std::string ConfigLayer7CCRuleRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ConfigLayer7CCRuleRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int ConfigLayer7CCRuleRequest::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
void ConfigLayer7CCRuleRequest::setCount(int count)
|
||||
{
|
||||
count_ = count;
|
||||
setParameter("Count", std::to_string(count));
|
||||
}
|
||||
|
||||
int ConfigLayer7CCRuleRequest::getTtl()const
|
||||
{
|
||||
return ttl_;
|
||||
}
|
||||
|
||||
void ConfigLayer7CCRuleRequest::setTtl(int ttl)
|
||||
{
|
||||
ttl_ = ttl;
|
||||
setParameter("Ttl", std::to_string(ttl));
|
||||
}
|
||||
|
||||
std::string ConfigLayer7CCRuleRequest::getUri()const
|
||||
{
|
||||
return uri_;
|
||||
}
|
||||
|
||||
void ConfigLayer7CCRuleRequest::setUri(const std::string& uri)
|
||||
{
|
||||
uri_ = uri;
|
||||
setParameter("Uri", uri);
|
||||
}
|
||||
|
||||
std::string ConfigLayer7CCRuleRequest::getDomain()const
|
||||
{
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void ConfigLayer7CCRuleRequest::setDomain(const std::string& domain)
|
||||
{
|
||||
domain_ = domain;
|
||||
setParameter("Domain", domain);
|
||||
}
|
||||
|
||||
std::string ConfigLayer7CCRuleRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ConfigLayer7CCRuleRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
int ConfigLayer7CCRuleRequest::getInterval()const
|
||||
{
|
||||
return interval_;
|
||||
}
|
||||
|
||||
void ConfigLayer7CCRuleRequest::setInterval(int interval)
|
||||
{
|
||||
interval_ = interval;
|
||||
setParameter("Interval", std::to_string(interval));
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/ConfigLayer4RemarkResult.h>
|
||||
#include <alibabacloud/ddoscoo/model/ConfigLayer7CCRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ddoscoo;
|
||||
using namespace AlibabaCloud::Ddoscoo::Model;
|
||||
|
||||
ConfigLayer4RemarkResult::ConfigLayer4RemarkResult() :
|
||||
ConfigLayer7CCRuleResult::ConfigLayer7CCRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ConfigLayer4RemarkResult::ConfigLayer4RemarkResult(const std::string &payload) :
|
||||
ConfigLayer7CCRuleResult::ConfigLayer7CCRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ConfigLayer4RemarkResult::~ConfigLayer4RemarkResult()
|
||||
ConfigLayer7CCRuleResult::~ConfigLayer7CCRuleResult()
|
||||
{}
|
||||
|
||||
void ConfigLayer4RemarkResult::parse(const std::string &payload)
|
||||
void ConfigLayer7CCRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -14,58 +14,58 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/ConfigWebCCTemplateRequest.h>
|
||||
#include <alibabacloud/ddoscoo/model/ConfigLayer7CCTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Ddoscoo::Model::ConfigWebCCTemplateRequest;
|
||||
using AlibabaCloud::Ddoscoo::Model::ConfigLayer7CCTemplateRequest;
|
||||
|
||||
ConfigWebCCTemplateRequest::ConfigWebCCTemplateRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2020-01-01", "ConfigWebCCTemplate")
|
||||
ConfigLayer7CCTemplateRequest::ConfigLayer7CCTemplateRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2017-12-28", "ConfigLayer7CCTemplate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ConfigWebCCTemplateRequest::~ConfigWebCCTemplateRequest()
|
||||
ConfigLayer7CCTemplateRequest::~ConfigLayer7CCTemplateRequest()
|
||||
{}
|
||||
|
||||
std::string ConfigWebCCTemplateRequest::get_Template()const
|
||||
std::string ConfigLayer7CCTemplateRequest::get_Template()const
|
||||
{
|
||||
return _template_;
|
||||
}
|
||||
|
||||
void ConfigWebCCTemplateRequest::set_Template(const std::string& _template)
|
||||
void ConfigLayer7CCTemplateRequest::set_Template(const std::string& _template)
|
||||
{
|
||||
_template_ = _template;
|
||||
setParameter("_Template", _template);
|
||||
}
|
||||
|
||||
std::string ConfigWebCCTemplateRequest::getResourceGroupId()const
|
||||
std::string ConfigLayer7CCTemplateRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void ConfigWebCCTemplateRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
void ConfigLayer7CCTemplateRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string ConfigWebCCTemplateRequest::getSourceIp()const
|
||||
std::string ConfigLayer7CCTemplateRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ConfigWebCCTemplateRequest::setSourceIp(const std::string& sourceIp)
|
||||
void ConfigLayer7CCTemplateRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string ConfigWebCCTemplateRequest::getDomain()const
|
||||
std::string ConfigLayer7CCTemplateRequest::getDomain()const
|
||||
{
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void ConfigWebCCTemplateRequest::setDomain(const std::string& domain)
|
||||
void ConfigLayer7CCTemplateRequest::setDomain(const std::string& domain)
|
||||
{
|
||||
domain_ = domain;
|
||||
setParameter("Domain", domain);
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/ConfigLayer4RulePolicyResult.h>
|
||||
#include <alibabacloud/ddoscoo/model/ConfigLayer7CCTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ddoscoo;
|
||||
using namespace AlibabaCloud::Ddoscoo::Model;
|
||||
|
||||
ConfigLayer4RulePolicyResult::ConfigLayer4RulePolicyResult() :
|
||||
ConfigLayer7CCTemplateResult::ConfigLayer7CCTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ConfigLayer4RulePolicyResult::ConfigLayer4RulePolicyResult(const std::string &payload) :
|
||||
ConfigLayer7CCTemplateResult::ConfigLayer7CCTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ConfigLayer4RulePolicyResult::~ConfigLayer4RulePolicyResult()
|
||||
ConfigLayer7CCTemplateResult::~ConfigLayer7CCTemplateResult()
|
||||
{}
|
||||
|
||||
void ConfigLayer4RulePolicyResult::parse(const std::string &payload)
|
||||
void ConfigLayer7CCTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -14,91 +14,91 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/AssociateWebCertRequest.h>
|
||||
#include <alibabacloud/ddoscoo/model/ConfigLayer7CertRequest.h>
|
||||
|
||||
using AlibabaCloud::Ddoscoo::Model::AssociateWebCertRequest;
|
||||
using AlibabaCloud::Ddoscoo::Model::ConfigLayer7CertRequest;
|
||||
|
||||
AssociateWebCertRequest::AssociateWebCertRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2020-01-01", "AssociateWebCert")
|
||||
ConfigLayer7CertRequest::ConfigLayer7CertRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2017-12-28", "ConfigLayer7Cert")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AssociateWebCertRequest::~AssociateWebCertRequest()
|
||||
ConfigLayer7CertRequest::~ConfigLayer7CertRequest()
|
||||
{}
|
||||
|
||||
std::string AssociateWebCertRequest::getCert()const
|
||||
std::string ConfigLayer7CertRequest::getCert()const
|
||||
{
|
||||
return cert_;
|
||||
}
|
||||
|
||||
void AssociateWebCertRequest::setCert(const std::string& cert)
|
||||
void ConfigLayer7CertRequest::setCert(const std::string& cert)
|
||||
{
|
||||
cert_ = cert;
|
||||
setParameter("Cert", cert);
|
||||
}
|
||||
|
||||
int AssociateWebCertRequest::getCertId()const
|
||||
int ConfigLayer7CertRequest::getCertId()const
|
||||
{
|
||||
return certId_;
|
||||
}
|
||||
|
||||
void AssociateWebCertRequest::setCertId(int certId)
|
||||
void ConfigLayer7CertRequest::setCertId(int certId)
|
||||
{
|
||||
certId_ = certId;
|
||||
setParameter("CertId", std::to_string(certId));
|
||||
}
|
||||
|
||||
std::string AssociateWebCertRequest::getResourceGroupId()const
|
||||
std::string ConfigLayer7CertRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void AssociateWebCertRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
void ConfigLayer7CertRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string AssociateWebCertRequest::getSourceIp()const
|
||||
std::string ConfigLayer7CertRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void AssociateWebCertRequest::setSourceIp(const std::string& sourceIp)
|
||||
void ConfigLayer7CertRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string AssociateWebCertRequest::getKey()const
|
||||
std::string ConfigLayer7CertRequest::getKey()const
|
||||
{
|
||||
return key_;
|
||||
}
|
||||
|
||||
void AssociateWebCertRequest::setKey(const std::string& key)
|
||||
void ConfigLayer7CertRequest::setKey(const std::string& key)
|
||||
{
|
||||
key_ = key;
|
||||
setParameter("Key", key);
|
||||
}
|
||||
|
||||
std::string AssociateWebCertRequest::getCertName()const
|
||||
std::string ConfigLayer7CertRequest::getCertName()const
|
||||
{
|
||||
return certName_;
|
||||
}
|
||||
|
||||
void AssociateWebCertRequest::setCertName(const std::string& certName)
|
||||
void ConfigLayer7CertRequest::setCertName(const std::string& certName)
|
||||
{
|
||||
certName_ = certName;
|
||||
setParameter("CertName", certName);
|
||||
}
|
||||
|
||||
std::string AssociateWebCertRequest::getDomain()const
|
||||
std::string ConfigLayer7CertRequest::getDomain()const
|
||||
{
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void AssociateWebCertRequest::setDomain(const std::string& domain)
|
||||
void ConfigLayer7CertRequest::setDomain(const std::string& domain)
|
||||
{
|
||||
domain_ = domain;
|
||||
setParameter("Domain", domain);
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/ConfigUdpReflectResult.h>
|
||||
#include <alibabacloud/ddoscoo/model/ConfigLayer7CertResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ddoscoo;
|
||||
using namespace AlibabaCloud::Ddoscoo::Model;
|
||||
|
||||
ConfigUdpReflectResult::ConfigUdpReflectResult() :
|
||||
ConfigLayer7CertResult::ConfigLayer7CertResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ConfigUdpReflectResult::ConfigUdpReflectResult(const std::string &payload) :
|
||||
ConfigLayer7CertResult::ConfigLayer7CertResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ConfigUdpReflectResult::~ConfigUdpReflectResult()
|
||||
ConfigLayer7CertResult::~ConfigLayer7CertResult()
|
||||
{}
|
||||
|
||||
void ConfigUdpReflectResult::parse(const std::string &payload)
|
||||
void ConfigLayer7CertResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
123
ddoscoo/src/model/ConfigLayer7RuleRequest.cc
Normal file
123
ddoscoo/src/model/ConfigLayer7RuleRequest.cc
Normal file
@@ -0,0 +1,123 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/ConfigLayer7RuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Ddoscoo::Model::ConfigLayer7RuleRequest;
|
||||
|
||||
ConfigLayer7RuleRequest::ConfigLayer7RuleRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2017-12-28", "ConfigLayer7Rule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ConfigLayer7RuleRequest::~ConfigLayer7RuleRequest()
|
||||
{}
|
||||
|
||||
std::string ConfigLayer7RuleRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void ConfigLayer7RuleRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string ConfigLayer7RuleRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ConfigLayer7RuleRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string ConfigLayer7RuleRequest::getProxyTypeList()const
|
||||
{
|
||||
return proxyTypeList_;
|
||||
}
|
||||
|
||||
void ConfigLayer7RuleRequest::setProxyTypeList(const std::string& proxyTypeList)
|
||||
{
|
||||
proxyTypeList_ = proxyTypeList;
|
||||
setParameter("ProxyTypeList", proxyTypeList);
|
||||
}
|
||||
|
||||
int ConfigLayer7RuleRequest::getRsType()const
|
||||
{
|
||||
return rsType_;
|
||||
}
|
||||
|
||||
void ConfigLayer7RuleRequest::setRsType(int rsType)
|
||||
{
|
||||
rsType_ = rsType;
|
||||
setParameter("RsType", std::to_string(rsType));
|
||||
}
|
||||
|
||||
std::vector<std::string> ConfigLayer7RuleRequest::getRealServers()const
|
||||
{
|
||||
return realServers_;
|
||||
}
|
||||
|
||||
void ConfigLayer7RuleRequest::setRealServers(const std::vector<std::string>& realServers)
|
||||
{
|
||||
realServers_ = realServers;
|
||||
for(int dep1 = 0; dep1!= realServers.size(); dep1++) {
|
||||
setParameter("RealServers."+ std::to_string(dep1), realServers.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> ConfigLayer7RuleRequest::getProxyTypes()const
|
||||
{
|
||||
return proxyTypes_;
|
||||
}
|
||||
|
||||
void ConfigLayer7RuleRequest::setProxyTypes(const std::vector<std::string>& proxyTypes)
|
||||
{
|
||||
proxyTypes_ = proxyTypes;
|
||||
for(int dep1 = 0; dep1!= proxyTypes.size(); dep1++) {
|
||||
setParameter("ProxyTypes."+ std::to_string(dep1), proxyTypes.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> ConfigLayer7RuleRequest::getInstanceIds()const
|
||||
{
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
void ConfigLayer7RuleRequest::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 ConfigLayer7RuleRequest::getDomain()const
|
||||
{
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void ConfigLayer7RuleRequest::setDomain(const std::string& domain)
|
||||
{
|
||||
domain_ = domain;
|
||||
setParameter("Domain", domain);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/ConfigL7RsPolicyResult.h>
|
||||
#include <alibabacloud/ddoscoo/model/ConfigLayer7RuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ddoscoo;
|
||||
using namespace AlibabaCloud::Ddoscoo::Model;
|
||||
|
||||
ConfigL7RsPolicyResult::ConfigL7RsPolicyResult() :
|
||||
ConfigLayer7RuleResult::ConfigLayer7RuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ConfigL7RsPolicyResult::ConfigL7RsPolicyResult(const std::string &payload) :
|
||||
ConfigLayer7RuleResult::ConfigLayer7RuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ConfigL7RsPolicyResult::~ConfigL7RsPolicyResult()
|
||||
ConfigLayer7RuleResult::~ConfigLayer7RuleResult()
|
||||
{}
|
||||
|
||||
void ConfigL7RsPolicyResult::parse(const std::string &payload)
|
||||
void ConfigLayer7RuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/ConfigUdpReflectRequest.h>
|
||||
|
||||
using AlibabaCloud::Ddoscoo::Model::ConfigUdpReflectRequest;
|
||||
|
||||
ConfigUdpReflectRequest::ConfigUdpReflectRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2020-01-01", "ConfigUdpReflect")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ConfigUdpReflectRequest::~ConfigUdpReflectRequest()
|
||||
{}
|
||||
|
||||
std::string ConfigUdpReflectRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ConfigUdpReflectRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string ConfigUdpReflectRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ConfigUdpReflectRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ConfigUdpReflectRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ConfigUdpReflectRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ConfigUdpReflectRequest::getConfig()const
|
||||
{
|
||||
return config_;
|
||||
}
|
||||
|
||||
void ConfigUdpReflectRequest::setConfig(const std::string& config)
|
||||
{
|
||||
config_ = config;
|
||||
setParameter("Config", config);
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::Ddoscoo::Model::CreateAsyncTaskRequest;
|
||||
|
||||
CreateAsyncTaskRequest::CreateAsyncTaskRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2020-01-01", "CreateAsyncTask")
|
||||
RpcServiceRequest("ddoscoo", "2017-12-28", "CreateAsyncTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/CreateDomainResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Ddoscoo::Model::CreateDomainResourceRequest;
|
||||
|
||||
CreateDomainResourceRequest::CreateDomainResourceRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2020-01-01", "CreateDomainResource")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDomainResourceRequest::~CreateDomainResourceRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDomainResourceRequest::getHttpsExt()const
|
||||
{
|
||||
return httpsExt_;
|
||||
}
|
||||
|
||||
void CreateDomainResourceRequest::setHttpsExt(const std::string& httpsExt)
|
||||
{
|
||||
httpsExt_ = httpsExt;
|
||||
setParameter("HttpsExt", httpsExt);
|
||||
}
|
||||
|
||||
std::string CreateDomainResourceRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreateDomainResourceRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int CreateDomainResourceRequest::getRsType()const
|
||||
{
|
||||
return rsType_;
|
||||
}
|
||||
|
||||
void CreateDomainResourceRequest::setRsType(int rsType)
|
||||
{
|
||||
rsType_ = rsType;
|
||||
setParameter("RsType", std::to_string(rsType));
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateDomainResourceRequest::getRealServers()const
|
||||
{
|
||||
return realServers_;
|
||||
}
|
||||
|
||||
void CreateDomainResourceRequest::setRealServers(const std::vector<std::string>& realServers)
|
||||
{
|
||||
realServers_ = realServers;
|
||||
for(int dep1 = 0; dep1!= realServers.size(); dep1++) {
|
||||
setParameter("RealServers."+ std::to_string(dep1), realServers.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateDomainResourceRequest::getInstanceIds()const
|
||||
{
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
void CreateDomainResourceRequest::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::vector<CreateDomainResourceRequest::ProxyTypes> CreateDomainResourceRequest::getProxyTypes()const
|
||||
{
|
||||
return proxyTypes_;
|
||||
}
|
||||
|
||||
void CreateDomainResourceRequest::setProxyTypes(const std::vector<ProxyTypes>& proxyTypes)
|
||||
{
|
||||
proxyTypes_ = proxyTypes;
|
||||
for(int dep1 = 0; dep1!= proxyTypes.size(); dep1++) {
|
||||
auto proxyTypesObj = proxyTypes.at(dep1);
|
||||
std::string proxyTypesObjStr = "ProxyTypes." + std::to_string(dep1 + 1);
|
||||
for(int dep2 = 0; dep2!= proxyTypesObj.proxyPorts.size(); dep2++) {
|
||||
setParameter(proxyTypesObjStr + ".ProxyPorts."+ std::to_string(dep2), std::to_string(proxyTypesObj.proxyPorts.at(dep2)));
|
||||
}
|
||||
setParameter(proxyTypesObjStr + ".ProxyType", proxyTypesObj.proxyType);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateDomainResourceRequest::getDomain()const
|
||||
{
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void CreateDomainResourceRequest::setDomain(const std::string& domain)
|
||||
{
|
||||
domain_ = domain;
|
||||
setParameter("Domain", domain);
|
||||
}
|
||||
|
||||
@@ -14,36 +14,36 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/ConfigLayer4RulePolicyRequest.h>
|
||||
#include <alibabacloud/ddoscoo/model/CreateLayer4RuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Ddoscoo::Model::ConfigLayer4RulePolicyRequest;
|
||||
using AlibabaCloud::Ddoscoo::Model::CreateLayer4RuleRequest;
|
||||
|
||||
ConfigLayer4RulePolicyRequest::ConfigLayer4RulePolicyRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2020-01-01", "ConfigLayer4RulePolicy")
|
||||
CreateLayer4RuleRequest::CreateLayer4RuleRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2017-12-28", "CreateLayer4Rule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ConfigLayer4RulePolicyRequest::~ConfigLayer4RulePolicyRequest()
|
||||
CreateLayer4RuleRequest::~CreateLayer4RuleRequest()
|
||||
{}
|
||||
|
||||
std::string ConfigLayer4RulePolicyRequest::getListeners()const
|
||||
std::string CreateLayer4RuleRequest::getListeners()const
|
||||
{
|
||||
return listeners_;
|
||||
}
|
||||
|
||||
void ConfigLayer4RulePolicyRequest::setListeners(const std::string& listeners)
|
||||
void CreateLayer4RuleRequest::setListeners(const std::string& listeners)
|
||||
{
|
||||
listeners_ = listeners;
|
||||
setParameter("Listeners", listeners);
|
||||
}
|
||||
|
||||
std::string ConfigLayer4RulePolicyRequest::getSourceIp()const
|
||||
std::string CreateLayer4RuleRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ConfigLayer4RulePolicyRequest::setSourceIp(const std::string& sourceIp)
|
||||
void CreateLayer4RuleRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/DisableWebCCRuleResult.h>
|
||||
#include <alibabacloud/ddoscoo/model/CreateLayer4RuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ddoscoo;
|
||||
using namespace AlibabaCloud::Ddoscoo::Model;
|
||||
|
||||
DisableWebCCRuleResult::DisableWebCCRuleResult() :
|
||||
CreateLayer4RuleResult::CreateLayer4RuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DisableWebCCRuleResult::DisableWebCCRuleResult(const std::string &payload) :
|
||||
CreateLayer4RuleResult::CreateLayer4RuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DisableWebCCRuleResult::~DisableWebCCRuleResult()
|
||||
CreateLayer4RuleResult::~CreateLayer4RuleResult()
|
||||
{}
|
||||
|
||||
void DisableWebCCRuleResult::parse(const std::string &payload)
|
||||
void CreateLayer4RuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
97
ddoscoo/src/model/CreateLayer7RuleRequest.cc
Normal file
97
ddoscoo/src/model/CreateLayer7RuleRequest.cc
Normal 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/CreateLayer7RuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Ddoscoo::Model::CreateLayer7RuleRequest;
|
||||
|
||||
CreateLayer7RuleRequest::CreateLayer7RuleRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2017-12-28", "CreateLayer7Rule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateLayer7RuleRequest::~CreateLayer7RuleRequest()
|
||||
{}
|
||||
|
||||
std::string CreateLayer7RuleRequest::getRules()const
|
||||
{
|
||||
return rules_;
|
||||
}
|
||||
|
||||
void CreateLayer7RuleRequest::setRules(const std::string& rules)
|
||||
{
|
||||
rules_ = rules;
|
||||
setParameter("Rules", rules);
|
||||
}
|
||||
|
||||
std::string CreateLayer7RuleRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateLayer7RuleRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateLayer7RuleRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreateLayer7RuleRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int CreateLayer7RuleRequest::getRsType()const
|
||||
{
|
||||
return rsType_;
|
||||
}
|
||||
|
||||
void CreateLayer7RuleRequest::setRsType(int rsType)
|
||||
{
|
||||
rsType_ = rsType;
|
||||
setParameter("RsType", std::to_string(rsType));
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateLayer7RuleRequest::getInstanceIds()const
|
||||
{
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
void CreateLayer7RuleRequest::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 CreateLayer7RuleRequest::getDomain()const
|
||||
{
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void CreateLayer7RuleRequest::setDomain(const std::string& domain)
|
||||
{
|
||||
domain_ = domain;
|
||||
setParameter("Domain", domain);
|
||||
}
|
||||
|
||||
44
ddoscoo/src/model/CreateLayer7RuleResult.cc
Normal file
44
ddoscoo/src/model/CreateLayer7RuleResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/CreateLayer7RuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ddoscoo;
|
||||
using namespace AlibabaCloud::Ddoscoo::Model;
|
||||
|
||||
CreateLayer7RuleResult::CreateLayer7RuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateLayer7RuleResult::CreateLayer7RuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateLayer7RuleResult::~CreateLayer7RuleResult()
|
||||
{}
|
||||
|
||||
void CreateLayer7RuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,97 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/CreatePortRequest.h>
|
||||
|
||||
using AlibabaCloud::Ddoscoo::Model::CreatePortRequest;
|
||||
|
||||
CreatePortRequest::CreatePortRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2020-01-01", "CreatePort")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePortRequest::~CreatePortRequest()
|
||||
{}
|
||||
|
||||
std::string CreatePortRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreatePortRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string CreatePortRequest::getBackendPort()const
|
||||
{
|
||||
return backendPort_;
|
||||
}
|
||||
|
||||
void CreatePortRequest::setBackendPort(const std::string& backendPort)
|
||||
{
|
||||
backendPort_ = backendPort;
|
||||
setParameter("BackendPort", backendPort);
|
||||
}
|
||||
|
||||
std::string CreatePortRequest::getFrontendProtocol()const
|
||||
{
|
||||
return frontendProtocol_;
|
||||
}
|
||||
|
||||
void CreatePortRequest::setFrontendProtocol(const std::string& frontendProtocol)
|
||||
{
|
||||
frontendProtocol_ = frontendProtocol;
|
||||
setParameter("FrontendProtocol", frontendProtocol);
|
||||
}
|
||||
|
||||
std::string CreatePortRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreatePortRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreatePortRequest::getRealServers()const
|
||||
{
|
||||
return realServers_;
|
||||
}
|
||||
|
||||
void CreatePortRequest::setRealServers(const std::vector<std::string>& realServers)
|
||||
{
|
||||
realServers_ = realServers;
|
||||
for(int dep1 = 0; dep1!= realServers.size(); dep1++) {
|
||||
setParameter("RealServers."+ std::to_string(dep1), realServers.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreatePortRequest::getFrontendPort()const
|
||||
{
|
||||
return frontendPort_;
|
||||
}
|
||||
|
||||
void CreatePortRequest::setFrontendPort(const std::string& frontendPort)
|
||||
{
|
||||
frontendPort_ = frontendPort;
|
||||
setParameter("FrontendPort", frontendPort);
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_;
|
||||
}
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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));
|
||||
}
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_;
|
||||
}
|
||||
|
||||
@@ -1,102 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,139 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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));
|
||||
}
|
||||
|
||||
@@ -1,119 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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::getHttpsExt()const
|
||||
{
|
||||
return httpsExt_;
|
||||
}
|
||||
|
||||
void CreateWebRuleRequest::setHttpsExt(const std::string& httpsExt)
|
||||
{
|
||||
httpsExt_ = httpsExt;
|
||||
setParameter("HttpsExt", httpsExt);
|
||||
}
|
||||
|
||||
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::string CreateWebRuleRequest::getDefenseId()const
|
||||
{
|
||||
return defenseId_;
|
||||
}
|
||||
|
||||
void CreateWebRuleRequest::setDefenseId(const std::string& defenseId)
|
||||
{
|
||||
defenseId_ = defenseId;
|
||||
setParameter("DefenseId", defenseId);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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());
|
||||
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::Ddoscoo::Model::DeleteAsyncTaskRequest;
|
||||
|
||||
DeleteAsyncTaskRequest::DeleteAsyncTaskRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2020-01-01", "DeleteAsyncTask")
|
||||
RpcServiceRequest("ddoscoo", "2017-12-28", "DeleteAsyncTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/DeleteDomainResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Ddoscoo::Model::DeleteDomainResourceRequest;
|
||||
|
||||
DeleteDomainResourceRequest::DeleteDomainResourceRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2020-01-01", "DeleteDomainResource")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDomainResourceRequest::~DeleteDomainResourceRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDomainResourceRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DeleteDomainResourceRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DeleteDomainResourceRequest::getDomain()const
|
||||
{
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void DeleteDomainResourceRequest::setDomain(const std::string& domain)
|
||||
{
|
||||
domain_ = domain;
|
||||
setParameter("Domain", domain);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/DeleteDomainResourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ddoscoo;
|
||||
using namespace AlibabaCloud::Ddoscoo::Model;
|
||||
|
||||
DeleteDomainResourceResult::DeleteDomainResourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDomainResourceResult::DeleteDomainResourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDomainResourceResult::~DeleteDomainResourceResult()
|
||||
{}
|
||||
|
||||
void DeleteDomainResourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -14,36 +14,36 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/DescribeLayer4RulePolicyRequest.h>
|
||||
#include <alibabacloud/ddoscoo/model/DeleteLayer4RuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Ddoscoo::Model::DescribeLayer4RulePolicyRequest;
|
||||
using AlibabaCloud::Ddoscoo::Model::DeleteLayer4RuleRequest;
|
||||
|
||||
DescribeLayer4RulePolicyRequest::DescribeLayer4RulePolicyRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeLayer4RulePolicy")
|
||||
DeleteLayer4RuleRequest::DeleteLayer4RuleRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2017-12-28", "DeleteLayer4Rule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLayer4RulePolicyRequest::~DescribeLayer4RulePolicyRequest()
|
||||
DeleteLayer4RuleRequest::~DeleteLayer4RuleRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeLayer4RulePolicyRequest::getListeners()const
|
||||
std::string DeleteLayer4RuleRequest::getListeners()const
|
||||
{
|
||||
return listeners_;
|
||||
}
|
||||
|
||||
void DescribeLayer4RulePolicyRequest::setListeners(const std::string& listeners)
|
||||
void DeleteLayer4RuleRequest::setListeners(const std::string& listeners)
|
||||
{
|
||||
listeners_ = listeners;
|
||||
setParameter("Listeners", listeners);
|
||||
}
|
||||
|
||||
std::string DescribeLayer4RulePolicyRequest::getSourceIp()const
|
||||
std::string DeleteLayer4RuleRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeLayer4RulePolicyRequest::setSourceIp(const std::string& sourceIp)
|
||||
void DeleteLayer4RuleRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
44
ddoscoo/src/model/DeleteLayer4RuleResult.cc
Normal file
44
ddoscoo/src/model/DeleteLayer4RuleResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/DeleteLayer4RuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ddoscoo;
|
||||
using namespace AlibabaCloud::Ddoscoo::Model;
|
||||
|
||||
DeleteLayer4RuleResult::DeleteLayer4RuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteLayer4RuleResult::DeleteLayer4RuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteLayer4RuleResult::~DeleteLayer4RuleResult()
|
||||
{}
|
||||
|
||||
void DeleteLayer4RuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -14,58 +14,58 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/DeleteWebCCRuleRequest.h>
|
||||
#include <alibabacloud/ddoscoo/model/DeleteLayer7CCRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Ddoscoo::Model::DeleteWebCCRuleRequest;
|
||||
using AlibabaCloud::Ddoscoo::Model::DeleteLayer7CCRuleRequest;
|
||||
|
||||
DeleteWebCCRuleRequest::DeleteWebCCRuleRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2020-01-01", "DeleteWebCCRule")
|
||||
DeleteLayer7CCRuleRequest::DeleteLayer7CCRuleRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2017-12-28", "DeleteLayer7CCRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteWebCCRuleRequest::~DeleteWebCCRuleRequest()
|
||||
DeleteLayer7CCRuleRequest::~DeleteLayer7CCRuleRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteWebCCRuleRequest::getResourceGroupId()const
|
||||
std::string DeleteLayer7CCRuleRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DeleteWebCCRuleRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
void DeleteLayer7CCRuleRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DeleteWebCCRuleRequest::getSourceIp()const
|
||||
std::string DeleteLayer7CCRuleRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DeleteWebCCRuleRequest::setSourceIp(const std::string& sourceIp)
|
||||
void DeleteLayer7CCRuleRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DeleteWebCCRuleRequest::getDomain()const
|
||||
std::string DeleteLayer7CCRuleRequest::getDomain()const
|
||||
{
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void DeleteWebCCRuleRequest::setDomain(const std::string& domain)
|
||||
void DeleteLayer7CCRuleRequest::setDomain(const std::string& domain)
|
||||
{
|
||||
domain_ = domain;
|
||||
setParameter("Domain", domain);
|
||||
}
|
||||
|
||||
std::string DeleteWebCCRuleRequest::getName()const
|
||||
std::string DeleteLayer7CCRuleRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeleteWebCCRuleRequest::setName(const std::string& name)
|
||||
void DeleteLayer7CCRuleRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/AddAutoCcBlacklistResult.h>
|
||||
#include <alibabacloud/ddoscoo/model/DeleteLayer7CCRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ddoscoo;
|
||||
using namespace AlibabaCloud::Ddoscoo::Model;
|
||||
|
||||
AddAutoCcBlacklistResult::AddAutoCcBlacklistResult() :
|
||||
DeleteLayer7CCRuleResult::DeleteLayer7CCRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddAutoCcBlacklistResult::AddAutoCcBlacklistResult(const std::string &payload) :
|
||||
DeleteLayer7CCRuleResult::DeleteLayer7CCRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddAutoCcBlacklistResult::~AddAutoCcBlacklistResult()
|
||||
DeleteLayer7CCRuleResult::~DeleteLayer7CCRuleResult()
|
||||
{}
|
||||
|
||||
void AddAutoCcBlacklistResult::parse(const std::string &payload)
|
||||
void DeleteLayer7CCRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -14,47 +14,47 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/DisableWebCCRuleRequest.h>
|
||||
#include <alibabacloud/ddoscoo/model/DeleteLayer7RuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Ddoscoo::Model::DisableWebCCRuleRequest;
|
||||
using AlibabaCloud::Ddoscoo::Model::DeleteLayer7RuleRequest;
|
||||
|
||||
DisableWebCCRuleRequest::DisableWebCCRuleRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2020-01-01", "DisableWebCCRule")
|
||||
DeleteLayer7RuleRequest::DeleteLayer7RuleRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2017-12-28", "DeleteLayer7Rule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DisableWebCCRuleRequest::~DisableWebCCRuleRequest()
|
||||
DeleteLayer7RuleRequest::~DeleteLayer7RuleRequest()
|
||||
{}
|
||||
|
||||
std::string DisableWebCCRuleRequest::getResourceGroupId()const
|
||||
std::string DeleteLayer7RuleRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DisableWebCCRuleRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
void DeleteLayer7RuleRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DisableWebCCRuleRequest::getSourceIp()const
|
||||
std::string DeleteLayer7RuleRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DisableWebCCRuleRequest::setSourceIp(const std::string& sourceIp)
|
||||
void DeleteLayer7RuleRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DisableWebCCRuleRequest::getDomain()const
|
||||
std::string DeleteLayer7RuleRequest::getDomain()const
|
||||
{
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void DisableWebCCRuleRequest::setDomain(const std::string& domain)
|
||||
void DeleteLayer7RuleRequest::setDomain(const std::string& domain)
|
||||
{
|
||||
domain_ = domain;
|
||||
setParameter("Domain", domain);
|
||||
44
ddoscoo/src/model/DeleteLayer7RuleResult.cc
Normal file
44
ddoscoo/src/model/DeleteLayer7RuleResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/DeleteLayer7RuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ddoscoo;
|
||||
using namespace AlibabaCloud::Ddoscoo::Model;
|
||||
|
||||
DeleteLayer7RuleResult::DeleteLayer7RuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteLayer7RuleResult::DeleteLayer7RuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteLayer7RuleResult::~DeleteLayer7RuleResult()
|
||||
{}
|
||||
|
||||
void DeleteLayer7RuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
@@ -1,97 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/DeletePortRequest.h>
|
||||
|
||||
using AlibabaCloud::Ddoscoo::Model::DeletePortRequest;
|
||||
|
||||
DeletePortRequest::DeletePortRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2020-01-01", "DeletePort")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeletePortRequest::~DeletePortRequest()
|
||||
{}
|
||||
|
||||
std::string DeletePortRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DeletePortRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DeletePortRequest::getBackendPort()const
|
||||
{
|
||||
return backendPort_;
|
||||
}
|
||||
|
||||
void DeletePortRequest::setBackendPort(const std::string& backendPort)
|
||||
{
|
||||
backendPort_ = backendPort;
|
||||
setParameter("BackendPort", backendPort);
|
||||
}
|
||||
|
||||
std::string DeletePortRequest::getFrontendProtocol()const
|
||||
{
|
||||
return frontendProtocol_;
|
||||
}
|
||||
|
||||
void DeletePortRequest::setFrontendProtocol(const std::string& frontendProtocol)
|
||||
{
|
||||
frontendProtocol_ = frontendProtocol;
|
||||
setParameter("FrontendProtocol", frontendProtocol);
|
||||
}
|
||||
|
||||
std::string DeletePortRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeletePortRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::vector<std::string> DeletePortRequest::getRealServers()const
|
||||
{
|
||||
return realServers_;
|
||||
}
|
||||
|
||||
void DeletePortRequest::setRealServers(const std::vector<std::string>& realServers)
|
||||
{
|
||||
realServers_ = realServers;
|
||||
for(int dep1 = 0; dep1!= realServers.size(); dep1++) {
|
||||
setParameter("RealServers."+ std::to_string(dep1), realServers.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string DeletePortRequest::getFrontendPort()const
|
||||
{
|
||||
return frontendPort_;
|
||||
}
|
||||
|
||||
void DeletePortRequest::setFrontendPort(const std::string& frontendPort)
|
||||
{
|
||||
frontendPort_ = frontendPort;
|
||||
setParameter("FrontendPort", frontendPort);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/DeletePortResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ddoscoo;
|
||||
using namespace AlibabaCloud::Ddoscoo::Model;
|
||||
|
||||
DeletePortResult::DeletePortResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeletePortResult::DeletePortResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeletePortResult::~DeletePortResult()
|
||||
{}
|
||||
|
||||
void DeletePortResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_;
|
||||
}
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
@@ -1,110 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/DescribeAttackAnalysisMaxQpsRequest.h>
|
||||
|
||||
using AlibabaCloud::Ddoscoo::Model::DescribeAttackAnalysisMaxQpsRequest;
|
||||
|
||||
DescribeAttackAnalysisMaxQpsRequest::DescribeAttackAnalysisMaxQpsRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeAttackAnalysisMaxQps")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAttackAnalysisMaxQpsRequest::~DescribeAttackAnalysisMaxQpsRequest()
|
||||
{}
|
||||
|
||||
long DescribeAttackAnalysisMaxQpsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeAttackAnalysisMaxQpsRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
long DescribeAttackAnalysisMaxQpsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeAttackAnalysisMaxQpsRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string DescribeAttackAnalysisMaxQpsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeAttackAnalysisMaxQpsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/DescribeAttackAnalysisMaxQpsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ddoscoo;
|
||||
using namespace AlibabaCloud::Ddoscoo::Model;
|
||||
|
||||
DescribeAttackAnalysisMaxQpsResult::DescribeAttackAnalysisMaxQpsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAttackAnalysisMaxQpsResult::DescribeAttackAnalysisMaxQpsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAttackAnalysisMaxQpsResult::~DescribeAttackAnalysisMaxQpsResult()
|
||||
{}
|
||||
|
||||
void DescribeAttackAnalysisMaxQpsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Qps"].isNull())
|
||||
qps_ = std::stol(value["Qps"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeAttackAnalysisMaxQpsResult::getQps()const
|
||||
{
|
||||
return qps_;
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
@@ -1,70 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_;
|
||||
}
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_;
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
@@ -1,70 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::Ddoscoo::Model::DescribeBackSourceCidrRequest;
|
||||
|
||||
DescribeBackSourceCidrRequest::DescribeBackSourceCidrRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeBackSourceCidr")
|
||||
RpcServiceRequest("ddoscoo", "2017-12-28", "DescribeBackSourceCidr")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
@@ -39,14 +39,14 @@ void DescribeBackSourceCidrResult::parse(const std::string &payload)
|
||||
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());
|
||||
auto allCidrList = value["CidrList"]["Cidr"];
|
||||
for (const auto &item : allCidrList)
|
||||
cidrList_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeBackSourceCidrResult::getCidrs()const
|
||||
std::vector<std::string> DescribeBackSourceCidrResult::getCidrList()const
|
||||
{
|
||||
return cidrs_;
|
||||
return cidrList_;
|
||||
}
|
||||
|
||||
|
||||
84
ddoscoo/src/model/DescribeBatchSlsDispatchStatusRequest.cc
Normal file
84
ddoscoo/src/model/DescribeBatchSlsDispatchStatusRequest.cc
Normal 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/DescribeBatchSlsDispatchStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Ddoscoo::Model::DescribeBatchSlsDispatchStatusRequest;
|
||||
|
||||
DescribeBatchSlsDispatchStatusRequest::DescribeBatchSlsDispatchStatusRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2017-12-28", "DescribeBatchSlsDispatchStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeBatchSlsDispatchStatusRequest::~DescribeBatchSlsDispatchStatusRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBatchSlsDispatchStatusRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeBatchSlsDispatchStatusRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeBatchSlsDispatchStatusRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeBatchSlsDispatchStatusRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeBatchSlsDispatchStatusRequest::getPageNo()const
|
||||
{
|
||||
return pageNo_;
|
||||
}
|
||||
|
||||
void DescribeBatchSlsDispatchStatusRequest::setPageNo(int pageNo)
|
||||
{
|
||||
pageNo_ = pageNo;
|
||||
setParameter("PageNo", std::to_string(pageNo));
|
||||
}
|
||||
|
||||
int DescribeBatchSlsDispatchStatusRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeBatchSlsDispatchStatusRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeBatchSlsDispatchStatusRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeBatchSlsDispatchStatusRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
66
ddoscoo/src/model/DescribeBatchSlsDispatchStatusResult.cc
Normal file
66
ddoscoo/src/model/DescribeBatchSlsDispatchStatusResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ddoscoo/model/DescribeBatchSlsDispatchStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ddoscoo;
|
||||
using namespace AlibabaCloud::Ddoscoo::Model;
|
||||
|
||||
DescribeBatchSlsDispatchStatusResult::DescribeBatchSlsDispatchStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBatchSlsDispatchStatusResult::DescribeBatchSlsDispatchStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBatchSlsDispatchStatusResult::~DescribeBatchSlsDispatchStatusResult()
|
||||
{}
|
||||
|
||||
void DescribeBatchSlsDispatchStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSlsConfigStatusListNode = value["SlsConfigStatusList"]["SlsConfigStatus"];
|
||||
for (auto valueSlsConfigStatusListSlsConfigStatus : allSlsConfigStatusListNode)
|
||||
{
|
||||
SlsConfigStatus slsConfigStatusListObject;
|
||||
if(!valueSlsConfigStatusListSlsConfigStatus["Enable"].isNull())
|
||||
slsConfigStatusListObject.enable = valueSlsConfigStatusListSlsConfigStatus["Enable"].asString() == "true";
|
||||
if(!valueSlsConfigStatusListSlsConfigStatus["Domain"].isNull())
|
||||
slsConfigStatusListObject.domain = valueSlsConfigStatusListSlsConfigStatus["Domain"].asString();
|
||||
slsConfigStatusList_.push_back(slsConfigStatusListObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeBatchSlsDispatchStatusResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeBatchSlsDispatchStatusResult::SlsConfigStatus> DescribeBatchSlsDispatchStatusResult::getSlsConfigStatusList()const
|
||||
{
|
||||
return slsConfigStatusList_;
|
||||
}
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_;
|
||||
}
|
||||
|
||||
@@ -1,71 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_;
|
||||
}
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_;
|
||||
}
|
||||
|
||||
@@ -1,64 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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);
|
||||
}
|
||||
|
||||
@@ -1,61 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::Ddoscoo::Model::DescribeDDoSEventsRequest;
|
||||
|
||||
DescribeDDoSEventsRequest::DescribeDDoSEventsRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2020-01-01", "DescribeDDoSEvents")
|
||||
RpcServiceRequest("ddoscoo", "2017-12-28", "DescribeDDoSEvents")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
@@ -38,15 +38,15 @@ void DescribeDDoSEventsRequest::setStartTime(long startTime)
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
int DescribeDDoSEventsRequest::getPageNumber()const
|
||||
std::string DescribeDDoSEventsRequest::getEip()const
|
||||
{
|
||||
return pageNumber_;
|
||||
return eip_;
|
||||
}
|
||||
|
||||
void DescribeDDoSEventsRequest::setPageNumber(int pageNumber)
|
||||
void DescribeDDoSEventsRequest::setEip(const std::string& eip)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
eip_ = eip;
|
||||
setParameter("Eip", eip);
|
||||
}
|
||||
|
||||
std::string DescribeDDoSEventsRequest::getResourceGroupId()const
|
||||
@@ -71,15 +71,26 @@ void DescribeDDoSEventsRequest::setSourceIp(const std::string& sourceIp)
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeDDoSEventsRequest::getPageSize()const
|
||||
std::string DescribeDDoSEventsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeDDoSEventsRequest::setPageSize(int pageSize)
|
||||
void DescribeDDoSEventsRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
int DescribeDDoSEventsRequest::getOffset()const
|
||||
{
|
||||
return offset_;
|
||||
}
|
||||
|
||||
void DescribeDDoSEventsRequest::setOffset(int offset)
|
||||
{
|
||||
offset_ = offset;
|
||||
setParameter("Offset", std::to_string(offset));
|
||||
}
|
||||
|
||||
long DescribeDDoSEventsRequest::getEndTime()const
|
||||
@@ -93,16 +104,3 @@ void DescribeDDoSEventsRequest::setEndTime(long 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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -39,40 +39,32 @@ void DescribeDDoSEventsResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDDoSEventsNode = value["DDoSEvents"]["Data"];
|
||||
for (auto valueDDoSEventsData : allDDoSEventsNode)
|
||||
auto allEventsNode = value["Events"]["Event"];
|
||||
for (auto valueEventsEvent : allEventsNode)
|
||||
{
|
||||
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);
|
||||
Event eventsObject;
|
||||
if(!valueEventsEvent["StartTime"].isNull())
|
||||
eventsObject.startTime = std::stol(valueEventsEvent["StartTime"].asString());
|
||||
if(!valueEventsEvent["EndTime"].isNull())
|
||||
eventsObject.endTime = std::stol(valueEventsEvent["EndTime"].asString());
|
||||
if(!valueEventsEvent["Interval"].isNull())
|
||||
eventsObject.interval = std::stoi(valueEventsEvent["Interval"].asString());
|
||||
if(!valueEventsEvent["Status"].isNull())
|
||||
eventsObject.status = valueEventsEvent["Status"].asString();
|
||||
events_.push_back(eventsObject);
|
||||
}
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stol(value["Total"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDDoSEventsResult::Event> DescribeDDoSEventsResult::getEvents()const
|
||||
{
|
||||
return events_;
|
||||
}
|
||||
|
||||
long DescribeDDoSEventsResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDDoSEventsResult::Data> DescribeDDoSEventsResult::getDDoSEvents()const
|
||||
{
|
||||
return dDoSEvents_;
|
||||
}
|
||||
|
||||
|
||||
95
ddoscoo/src/model/DescribeDDoSTrafficRequest.cc
Normal file
95
ddoscoo/src/model/DescribeDDoSTrafficRequest.cc
Normal 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/DescribeDDoSTrafficRequest.h>
|
||||
|
||||
using AlibabaCloud::Ddoscoo::Model::DescribeDDoSTrafficRequest;
|
||||
|
||||
DescribeDDoSTrafficRequest::DescribeDDoSTrafficRequest() :
|
||||
RpcServiceRequest("ddoscoo", "2017-12-28", "DescribeDDoSTraffic")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDDoSTrafficRequest::~DescribeDDoSTrafficRequest()
|
||||
{}
|
||||
|
||||
long DescribeDDoSTrafficRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeDDoSTrafficRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string DescribeDDoSTrafficRequest::getEip()const
|
||||
{
|
||||
return eip_;
|
||||
}
|
||||
|
||||
void DescribeDDoSTrafficRequest::setEip(const std::string& eip)
|
||||
{
|
||||
eip_ = eip;
|
||||
setParameter("Eip", eip);
|
||||
}
|
||||
|
||||
std::string DescribeDDoSTrafficRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeDDoSTrafficRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeDDoSTrafficRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeDDoSTrafficRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
long DescribeDDoSTrafficRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeDDoSTrafficRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
int DescribeDDoSTrafficRequest::getInterval()const
|
||||
{
|
||||
return interval_;
|
||||
}
|
||||
|
||||
void DescribeDDoSTrafficRequest::setInterval(int interval)
|
||||
{
|
||||
interval_ = interval;
|
||||
setParameter("Interval", std::to_string(interval));
|
||||
}
|
||||
|
||||
75
ddoscoo/src/model/DescribeDDoSTrafficResult.cc
Normal file
75
ddoscoo/src/model/DescribeDDoSTrafficResult.cc
Normal 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/DescribeDDoSTrafficResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ddoscoo;
|
||||
using namespace AlibabaCloud::Ddoscoo::Model;
|
||||
|
||||
DescribeDDoSTrafficResult::DescribeDDoSTrafficResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDDoSTrafficResult::DescribeDDoSTrafficResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDDoSTrafficResult::~DescribeDDoSTrafficResult()
|
||||
{}
|
||||
|
||||
void DescribeDDoSTrafficResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDDoSTrafficPointsNode = value["DDoSTrafficPoints"]["DDoSTrafficPoint"];
|
||||
for (auto valueDDoSTrafficPointsDDoSTrafficPoint : allDDoSTrafficPointsNode)
|
||||
{
|
||||
DDoSTrafficPoint dDoSTrafficPointsObject;
|
||||
if(!valueDDoSTrafficPointsDDoSTrafficPoint["Time"].isNull())
|
||||
dDoSTrafficPointsObject.time = std::stol(valueDDoSTrafficPointsDDoSTrafficPoint["Time"].asString());
|
||||
if(!valueDDoSTrafficPointsDDoSTrafficPoint["DefenseMaxInBps"].isNull())
|
||||
dDoSTrafficPointsObject.defenseMaxInBps = std::stol(valueDDoSTrafficPointsDDoSTrafficPoint["DefenseMaxInBps"].asString());
|
||||
if(!valueDDoSTrafficPointsDDoSTrafficPoint["SourceMaxInBps"].isNull())
|
||||
dDoSTrafficPointsObject.sourceMaxInBps = std::stol(valueDDoSTrafficPointsDDoSTrafficPoint["SourceMaxInBps"].asString());
|
||||
dDoSTrafficPoints_.push_back(dDoSTrafficPointsObject);
|
||||
}
|
||||
if(!value["DefenseInBytes"].isNull())
|
||||
defenseInBytes_ = std::stol(value["DefenseInBytes"].asString());
|
||||
if(!value["SourceInBytes"].isNull())
|
||||
sourceInBytes_ = std::stol(value["SourceInBytes"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeDDoSTrafficResult::getDefenseInBytes()const
|
||||
{
|
||||
return defenseInBytes_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDDoSTrafficResult::DDoSTrafficPoint> DescribeDDoSTrafficResult::getDDoSTrafficPoints()const
|
||||
{
|
||||
return dDoSTrafficPoints_;
|
||||
}
|
||||
|
||||
long DescribeDDoSTrafficResult::getSourceInBytes()const
|
||||
{
|
||||
return sourceInBytes_;
|
||||
}
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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::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));
|
||||
}
|
||||
|
||||
long DescribeDDosAllEventListRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeDDosAllEventListRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string DescribeDDosAllEventListRequest::getEventType()const
|
||||
{
|
||||
return eventType_;
|
||||
}
|
||||
|
||||
void DescribeDDosAllEventListRequest::setEventType(const std::string& eventType)
|
||||
{
|
||||
eventType_ = eventType;
|
||||
setParameter("EventType", eventType);
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user