WAF OpenApi SDK Release.

This commit is contained in:
sdk-team
2020-04-09 11:10:33 +08:00
parent 2e465b8b77
commit 85daa7c446
142 changed files with 11349 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/CreateCertificateByCertificateIdRequest.h>
using AlibabaCloud::Waf_openapi::Model::CreateCertificateByCertificateIdRequest;
CreateCertificateByCertificateIdRequest::CreateCertificateByCertificateIdRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "CreateCertificateByCertificateId")
{
setMethod(HttpRequest::Method::Post);
}
CreateCertificateByCertificateIdRequest::~CreateCertificateByCertificateIdRequest()
{}
long CreateCertificateByCertificateIdRequest::getCertificateId()const
{
return certificateId_;
}
void CreateCertificateByCertificateIdRequest::setCertificateId(long certificateId)
{
certificateId_ = certificateId;
setParameter("CertificateId", std::to_string(certificateId));
}
std::string CreateCertificateByCertificateIdRequest::getInstanceId()const
{
return instanceId_;
}
void CreateCertificateByCertificateIdRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string CreateCertificateByCertificateIdRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateCertificateByCertificateIdRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string CreateCertificateByCertificateIdRequest::getDomain()const
{
return domain_;
}
void CreateCertificateByCertificateIdRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string CreateCertificateByCertificateIdRequest::getLang()const
{
return lang_;
}
void CreateCertificateByCertificateIdRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

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

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/CreateCertificateRequest.h>
using AlibabaCloud::Waf_openapi::Model::CreateCertificateRequest;
CreateCertificateRequest::CreateCertificateRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "CreateCertificate")
{
setMethod(HttpRequest::Method::Post);
}
CreateCertificateRequest::~CreateCertificateRequest()
{}
std::string CreateCertificateRequest::getCertificate()const
{
return certificate_;
}
void CreateCertificateRequest::setCertificate(const std::string& certificate)
{
certificate_ = certificate;
setParameter("Certificate", certificate);
}
std::string CreateCertificateRequest::getPrivateKey()const
{
return privateKey_;
}
void CreateCertificateRequest::setPrivateKey(const std::string& privateKey)
{
privateKey_ = privateKey;
setParameter("PrivateKey", privateKey);
}
std::string CreateCertificateRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateCertificateRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string CreateCertificateRequest::getLang()const
{
return lang_;
}
void CreateCertificateRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string CreateCertificateRequest::getInstanceId()const
{
return instanceId_;
}
void CreateCertificateRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string CreateCertificateRequest::getDomain()const
{
return domain_;
}
void CreateCertificateRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string CreateCertificateRequest::getCertificateName()const
{
return certificateName_;
}
void CreateCertificateRequest::setCertificateName(const std::string& certificateName)
{
certificateName_ = certificateName;
setParameter("CertificateName", certificateName);
}
long CreateCertificateRequest::getHttpsCertId()const
{
return httpsCertId_;
}
void CreateCertificateRequest::setHttpsCertId(long httpsCertId)
{
httpsCertId_ = httpsCertId;
setParameter("HttpsCertId", std::to_string(httpsCertId));
}

View File

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

View File

@@ -0,0 +1,227 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/CreateDomainRequest.h>
using AlibabaCloud::Waf_openapi::Model::CreateDomainRequest;
CreateDomainRequest::CreateDomainRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "CreateDomain")
{
setMethod(HttpRequest::Method::Post);
}
CreateDomainRequest::~CreateDomainRequest()
{}
std::string CreateDomainRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateDomainRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateDomainRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateDomainRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string CreateDomainRequest::getHttpPort()const
{
return httpPort_;
}
void CreateDomainRequest::setHttpPort(const std::string& httpPort)
{
httpPort_ = httpPort;
setParameter("HttpPort", httpPort);
}
std::string CreateDomainRequest::getHttp2Port()const
{
return http2Port_;
}
void CreateDomainRequest::setHttp2Port(const std::string& http2Port)
{
http2Port_ = http2Port;
setParameter("Http2Port", http2Port);
}
int CreateDomainRequest::getWriteTime()const
{
return writeTime_;
}
void CreateDomainRequest::setWriteTime(int writeTime)
{
writeTime_ = writeTime;
setParameter("WriteTime", std::to_string(writeTime));
}
std::string CreateDomainRequest::getLang()const
{
return lang_;
}
void CreateDomainRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string CreateDomainRequest::getLogHeaders()const
{
return logHeaders_;
}
void CreateDomainRequest::setLogHeaders(const std::string& logHeaders)
{
logHeaders_ = logHeaders;
setParameter("LogHeaders", logHeaders);
}
int CreateDomainRequest::getConnectionTime()const
{
return connectionTime_;
}
void CreateDomainRequest::setConnectionTime(int connectionTime)
{
connectionTime_ = connectionTime;
setParameter("ConnectionTime", std::to_string(connectionTime));
}
int CreateDomainRequest::getClusterType()const
{
return clusterType_;
}
void CreateDomainRequest::setClusterType(int clusterType)
{
clusterType_ = clusterType;
setParameter("ClusterType", std::to_string(clusterType));
}
int CreateDomainRequest::getHttpsRedirect()const
{
return httpsRedirect_;
}
void CreateDomainRequest::setHttpsRedirect(int httpsRedirect)
{
httpsRedirect_ = httpsRedirect;
setParameter("HttpsRedirect", std::to_string(httpsRedirect));
}
std::string CreateDomainRequest::getInstanceId()const
{
return instanceId_;
}
void CreateDomainRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string CreateDomainRequest::getSourceIps()const
{
return sourceIps_;
}
void CreateDomainRequest::setSourceIps(const std::string& sourceIps)
{
sourceIps_ = sourceIps;
setParameter("SourceIps", sourceIps);
}
std::string CreateDomainRequest::getDomain()const
{
return domain_;
}
void CreateDomainRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
int CreateDomainRequest::getIsAccessProduct()const
{
return isAccessProduct_;
}
void CreateDomainRequest::setIsAccessProduct(int isAccessProduct)
{
isAccessProduct_ = isAccessProduct;
setParameter("IsAccessProduct", std::to_string(isAccessProduct));
}
int CreateDomainRequest::getReadTime()const
{
return readTime_;
}
void CreateDomainRequest::setReadTime(int readTime)
{
readTime_ = readTime;
setParameter("ReadTime", std::to_string(readTime));
}
std::string CreateDomainRequest::getHttpsPort()const
{
return httpsPort_;
}
void CreateDomainRequest::setHttpsPort(const std::string& httpsPort)
{
httpsPort_ = httpsPort;
setParameter("HttpsPort", httpsPort);
}
int CreateDomainRequest::getLoadBalancing()const
{
return loadBalancing_;
}
void CreateDomainRequest::setLoadBalancing(int loadBalancing)
{
loadBalancing_ = loadBalancing;
setParameter("LoadBalancing", std::to_string(loadBalancing));
}
int CreateDomainRequest::getHttpToUserIp()const
{
return httpToUserIp_;
}
void CreateDomainRequest::setHttpToUserIp(int httpToUserIp)
{
httpToUserIp_ = httpToUserIp;
setParameter("HttpToUserIp", std::to_string(httpToUserIp));
}

View File

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

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/CreateIPBlockRequest.h>
using AlibabaCloud::Waf_openapi::Model::CreateIPBlockRequest;
CreateIPBlockRequest::CreateIPBlockRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "CreateIPBlock")
{
setMethod(HttpRequest::Method::Post);
}
CreateIPBlockRequest::~CreateIPBlockRequest()
{}
std::string CreateIPBlockRequest::getDomainList()const
{
return domainList_;
}
void CreateIPBlockRequest::setDomainList(const std::string& domainList)
{
domainList_ = domainList;
setParameter("DomainList", domainList);
}
std::string CreateIPBlockRequest::getIPList()const
{
return iPList_;
}
void CreateIPBlockRequest::setIPList(const std::string& iPList)
{
iPList_ = iPList;
setParameter("IPList", iPList);
}
std::string CreateIPBlockRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateIPBlockRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateIPBlockRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateIPBlockRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
long CreateIPBlockRequest::getBlockInterval()const
{
return blockInterval_;
}
void CreateIPBlockRequest::setBlockInterval(long blockInterval)
{
blockInterval_ = blockInterval;
setParameter("BlockInterval", std::to_string(blockInterval));
}
std::string CreateIPBlockRequest::getLang()const
{
return lang_;
}
void CreateIPBlockRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string CreateIPBlockRequest::getOperationType()const
{
return operationType_;
}
void CreateIPBlockRequest::setOperationType(const std::string& operationType)
{
operationType_ = operationType;
setParameter("OperationType", operationType);
}
std::string CreateIPBlockRequest::getInstanceId()const
{
return instanceId_;
}
void CreateIPBlockRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

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

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/CreateProtectionModuleRuleRequest.h>
using AlibabaCloud::Waf_openapi::Model::CreateProtectionModuleRuleRequest;
CreateProtectionModuleRuleRequest::CreateProtectionModuleRuleRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "CreateProtectionModuleRule")
{
setMethod(HttpRequest::Method::Post);
}
CreateProtectionModuleRuleRequest::~CreateProtectionModuleRuleRequest()
{}
std::string CreateProtectionModuleRuleRequest::getDefenseType()const
{
return defenseType_;
}
void CreateProtectionModuleRuleRequest::setDefenseType(const std::string& defenseType)
{
defenseType_ = defenseType;
setParameter("DefenseType", defenseType);
}
std::string CreateProtectionModuleRuleRequest::getRule()const
{
return rule_;
}
void CreateProtectionModuleRuleRequest::setRule(const std::string& rule)
{
rule_ = rule;
setParameter("Rule", rule);
}
std::string CreateProtectionModuleRuleRequest::getInstanceId()const
{
return instanceId_;
}
void CreateProtectionModuleRuleRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string CreateProtectionModuleRuleRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateProtectionModuleRuleRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string CreateProtectionModuleRuleRequest::getDomain()const
{
return domain_;
}
void CreateProtectionModuleRuleRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string CreateProtectionModuleRuleRequest::getLang()const
{
return lang_;
}
void CreateProtectionModuleRuleRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

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

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DeleteDomainRequest.h>
using AlibabaCloud::Waf_openapi::Model::DeleteDomainRequest;
DeleteDomainRequest::DeleteDomainRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "DeleteDomain")
{
setMethod(HttpRequest::Method::Post);
}
DeleteDomainRequest::~DeleteDomainRequest()
{}
std::string DeleteDomainRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteDomainRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DeleteDomainRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteDomainRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DeleteDomainRequest::getDomain()const
{
return domain_;
}
void DeleteDomainRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string DeleteDomainRequest::getLang()const
{
return lang_;
}
void DeleteDomainRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

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

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeCertMatchStatusRequest.h>
using AlibabaCloud::Waf_openapi::Model::DescribeCertMatchStatusRequest;
DescribeCertMatchStatusRequest::DescribeCertMatchStatusRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "DescribeCertMatchStatus")
{
setMethod(HttpRequest::Method::Post);
}
DescribeCertMatchStatusRequest::~DescribeCertMatchStatusRequest()
{}
std::string DescribeCertMatchStatusRequest::getCertificate()const
{
return certificate_;
}
void DescribeCertMatchStatusRequest::setCertificate(const std::string& certificate)
{
certificate_ = certificate;
setParameter("Certificate", certificate);
}
std::string DescribeCertMatchStatusRequest::getPrivateKey()const
{
return privateKey_;
}
void DescribeCertMatchStatusRequest::setPrivateKey(const std::string& privateKey)
{
privateKey_ = privateKey;
setParameter("PrivateKey", privateKey);
}
std::string DescribeCertMatchStatusRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeCertMatchStatusRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeCertMatchStatusRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeCertMatchStatusRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeCertMatchStatusRequest::getDomain()const
{
return domain_;
}
void DescribeCertMatchStatusRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string DescribeCertMatchStatusRequest::getLang()const
{
return lang_;
}
void DescribeCertMatchStatusRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

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

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeCertificatesRequest.h>
using AlibabaCloud::Waf_openapi::Model::DescribeCertificatesRequest;
DescribeCertificatesRequest::DescribeCertificatesRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "DescribeCertificates")
{
setMethod(HttpRequest::Method::Post);
}
DescribeCertificatesRequest::~DescribeCertificatesRequest()
{}
std::string DescribeCertificatesRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeCertificatesRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeCertificatesRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeCertificatesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeCertificatesRequest::getDomain()const
{
return domain_;
}
void DescribeCertificatesRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string DescribeCertificatesRequest::getLang()const
{
return lang_;
}
void DescribeCertificatesRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeCertificatesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Waf_openapi;
using namespace AlibabaCloud::Waf_openapi::Model;
DescribeCertificatesResult::DescribeCertificatesResult() :
ServiceResult()
{}
DescribeCertificatesResult::DescribeCertificatesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCertificatesResult::~DescribeCertificatesResult()
{}
void DescribeCertificatesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCertificatesNode = value["Certificates"]["Certificate"];
for (auto valueCertificatesCertificate : allCertificatesNode)
{
Certificate certificatesObject;
if(!valueCertificatesCertificate["CommonName"].isNull())
certificatesObject.commonName = valueCertificatesCertificate["CommonName"].asString();
if(!valueCertificatesCertificate["IsUsing"].isNull())
certificatesObject.isUsing = valueCertificatesCertificate["IsUsing"].asString() == "true";
if(!valueCertificatesCertificate["CertificateName"].isNull())
certificatesObject.certificateName = valueCertificatesCertificate["CertificateName"].asString();
if(!valueCertificatesCertificate["CertificateId"].isNull())
certificatesObject.certificateId = std::stol(valueCertificatesCertificate["CertificateId"].asString());
auto allSans = value["Sans"]["San"];
for (auto value : allSans)
certificatesObject.sans.push_back(value.asString());
certificates_.push_back(certificatesObject);
}
}
std::vector<DescribeCertificatesResult::Certificate> DescribeCertificatesResult::getCertificates()const
{
return certificates_;
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeDomainAdvanceConfigsRequest.h>
using AlibabaCloud::Waf_openapi::Model::DescribeDomainAdvanceConfigsRequest;
DescribeDomainAdvanceConfigsRequest::DescribeDomainAdvanceConfigsRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "DescribeDomainAdvanceConfigs")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDomainAdvanceConfigsRequest::~DescribeDomainAdvanceConfigsRequest()
{}
std::string DescribeDomainAdvanceConfigsRequest::getDomainList()const
{
return domainList_;
}
void DescribeDomainAdvanceConfigsRequest::setDomainList(const std::string& domainList)
{
domainList_ = domainList;
setParameter("DomainList", domainList);
}
std::string DescribeDomainAdvanceConfigsRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeDomainAdvanceConfigsRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeDomainAdvanceConfigsRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeDomainAdvanceConfigsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeDomainAdvanceConfigsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDomainAdvanceConfigsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeDomainAdvanceConfigsRequest::getLang()const
{
return lang_;
}
void DescribeDomainAdvanceConfigsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,82 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeDomainAdvanceConfigsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Waf_openapi;
using namespace AlibabaCloud::Waf_openapi::Model;
DescribeDomainAdvanceConfigsResult::DescribeDomainAdvanceConfigsResult() :
ServiceResult()
{}
DescribeDomainAdvanceConfigsResult::DescribeDomainAdvanceConfigsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainAdvanceConfigsResult::~DescribeDomainAdvanceConfigsResult()
{}
void DescribeDomainAdvanceConfigsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDomainConfigsNode = value["DomainConfigs"]["DomainConfig"];
for (auto valueDomainConfigsDomainConfig : allDomainConfigsNode)
{
DomainConfig domainConfigsObject;
if(!valueDomainConfigsDomainConfig["Domain"].isNull())
domainConfigsObject.domain = valueDomainConfigsDomainConfig["Domain"].asString();
auto profileNode = value["Profile"];
if(!profileNode["Cname"].isNull())
domainConfigsObject.profile.cname = profileNode["Cname"].asString();
if(!profileNode["ResolvedType"].isNull())
domainConfigsObject.profile.resolvedType = std::stoi(profileNode["ResolvedType"].asString());
if(!profileNode["VipServiceStatus"].isNull())
domainConfigsObject.profile.vipServiceStatus = std::stoi(profileNode["VipServiceStatus"].asString());
if(!profileNode["CertStatus"].isNull())
domainConfigsObject.profile.certStatus = std::stoi(profileNode["CertStatus"].asString());
if(!profileNode["ExclusiveVipStatus"].isNull())
domainConfigsObject.profile.exclusiveVipStatus = std::stoi(profileNode["ExclusiveVipStatus"].asString());
if(!profileNode["Ipv6Status"].isNull())
domainConfigsObject.profile.ipv6Status = std::stoi(profileNode["Ipv6Status"].asString());
if(!profileNode["HttpPort"].isNull())
domainConfigsObject.profile.httpPort = profileNode["HttpPort"].asString();
if(!profileNode["HttpsPort"].isNull())
domainConfigsObject.profile.httpsPort = profileNode["HttpsPort"].asString();
if(!profileNode["Http2Port"].isNull())
domainConfigsObject.profile.http2Port = profileNode["Http2Port"].asString();
if(!profileNode["Rs"].isNull())
domainConfigsObject.profile.rs = profileNode["Rs"].asString();
if(!profileNode["ClusterType"].isNull())
domainConfigsObject.profile.clusterType = std::stoi(profileNode["ClusterType"].asString());
if(!profileNode["GSLBStatus"].isNull())
domainConfigsObject.profile.gSLBStatus = std::stoi(profileNode["GSLBStatus"].asString());
domainConfigs_.push_back(domainConfigsObject);
}
}
std::vector<DescribeDomainAdvanceConfigsResult::DomainConfig> DescribeDomainAdvanceConfigsResult::getDomainConfigs()const
{
return domainConfigs_;
}

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeDomainBasicConfigsRequest.h>
using AlibabaCloud::Waf_openapi::Model::DescribeDomainBasicConfigsRequest;
DescribeDomainBasicConfigsRequest::DescribeDomainBasicConfigsRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "DescribeDomainBasicConfigs")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDomainBasicConfigsRequest::~DescribeDomainBasicConfigsRequest()
{}
int DescribeDomainBasicConfigsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeDomainBasicConfigsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeDomainBasicConfigsRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeDomainBasicConfigsRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeDomainBasicConfigsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDomainBasicConfigsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeDomainBasicConfigsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDomainBasicConfigsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeDomainBasicConfigsRequest::getLang()const
{
return lang_;
}
void DescribeDomainBasicConfigsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeDomainBasicConfigsRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeDomainBasicConfigsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeDomainBasicConfigsRequest::getDomainKey()const
{
return domainKey_;
}
void DescribeDomainBasicConfigsRequest::setDomainKey(const std::string& domainKey)
{
domainKey_ = domainKey;
setParameter("DomainKey", domainKey);
}

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeDomainBasicConfigsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Waf_openapi;
using namespace AlibabaCloud::Waf_openapi::Model;
DescribeDomainBasicConfigsResult::DescribeDomainBasicConfigsResult() :
ServiceResult()
{}
DescribeDomainBasicConfigsResult::DescribeDomainBasicConfigsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainBasicConfigsResult::~DescribeDomainBasicConfigsResult()
{}
void DescribeDomainBasicConfigsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDomainConfigsNode = value["DomainConfigs"]["DomainConfig"];
for (auto valueDomainConfigsDomainConfig : allDomainConfigsNode)
{
DomainConfig domainConfigsObject;
if(!valueDomainConfigsDomainConfig["Owner"].isNull())
domainConfigsObject.owner = valueDomainConfigsDomainConfig["Owner"].asString();
if(!valueDomainConfigsDomainConfig["WafStatus"].isNull())
domainConfigsObject.wafStatus = std::stoi(valueDomainConfigsDomainConfig["WafStatus"].asString());
if(!valueDomainConfigsDomainConfig["CcStatus"].isNull())
domainConfigsObject.ccStatus = std::stoi(valueDomainConfigsDomainConfig["CcStatus"].asString());
if(!valueDomainConfigsDomainConfig["CcMode"].isNull())
domainConfigsObject.ccMode = std::stoi(valueDomainConfigsDomainConfig["CcMode"].asString());
if(!valueDomainConfigsDomainConfig["AclStatus"].isNull())
domainConfigsObject.aclStatus = std::stoi(valueDomainConfigsDomainConfig["AclStatus"].asString());
if(!valueDomainConfigsDomainConfig["WafMode"].isNull())
domainConfigsObject.wafMode = std::stoi(valueDomainConfigsDomainConfig["WafMode"].asString());
if(!valueDomainConfigsDomainConfig["Version"].isNull())
domainConfigsObject.version = std::stol(valueDomainConfigsDomainConfig["Version"].asString());
if(!valueDomainConfigsDomainConfig["Domain"].isNull())
domainConfigsObject.domain = valueDomainConfigsDomainConfig["Domain"].asString();
if(!valueDomainConfigsDomainConfig["Status"].isNull())
domainConfigsObject.status = std::stoi(valueDomainConfigsDomainConfig["Status"].asString());
domainConfigs_.push_back(domainConfigsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int DescribeDomainBasicConfigsResult::getTotalCount()const
{
return totalCount_;
}
std::vector<DescribeDomainBasicConfigsResult::DomainConfig> DescribeDomainBasicConfigsResult::getDomainConfigs()const
{
return domainConfigs_;
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeDomainNamesRequest.h>
using AlibabaCloud::Waf_openapi::Model::DescribeDomainNamesRequest;
DescribeDomainNamesRequest::DescribeDomainNamesRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "DescribeDomainNames")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDomainNamesRequest::~DescribeDomainNamesRequest()
{}
std::string DescribeDomainNamesRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeDomainNamesRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeDomainNamesRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeDomainNamesRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeDomainNamesRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDomainNamesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeDomainNamesRequest::getLang()const
{
return lang_;
}
void DescribeDomainNamesRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeDomainNamesRequest::getCallSource()const
{
return callSource_;
}
void DescribeDomainNamesRequest::setCallSource(const std::string& callSource)
{
callSource_ = callSource;
setParameter("CallSource", callSource);
}

View File

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

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeDomainRequest.h>
using AlibabaCloud::Waf_openapi::Model::DescribeDomainRequest;
DescribeDomainRequest::DescribeDomainRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "DescribeDomain")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDomainRequest::~DescribeDomainRequest()
{}
std::string DescribeDomainRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeDomainRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeDomainRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDomainRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeDomainRequest::getDomain()const
{
return domain_;
}
void DescribeDomainRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string DescribeDomainRequest::getLang()const
{
return lang_;
}
void DescribeDomainRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeDomainResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Waf_openapi;
using namespace AlibabaCloud::Waf_openapi::Model;
DescribeDomainResult::DescribeDomainResult() :
ServiceResult()
{}
DescribeDomainResult::DescribeDomainResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainResult::~DescribeDomainResult()
{}
void DescribeDomainResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto domainNode = value["Domain"];
if(!domainNode["HttpToUserIp"].isNull())
domain_.httpToUserIp = std::stoi(domainNode["HttpToUserIp"].asString());
if(!domainNode["HttpsRedirect"].isNull())
domain_.httpsRedirect = std::stoi(domainNode["HttpsRedirect"].asString());
if(!domainNode["LoadBalancing"].isNull())
domain_.loadBalancing = std::stoi(domainNode["LoadBalancing"].asString());
if(!domainNode["Cname"].isNull())
domain_.cname = domainNode["Cname"].asString();
if(!domainNode["IsAccessProduct"].isNull())
domain_.isAccessProduct = std::stoi(domainNode["IsAccessProduct"].asString());
if(!domainNode["Version"].isNull())
domain_.version = std::stol(domainNode["Version"].asString());
if(!domainNode["LogHeaders"].isNull())
domain_.logHeaders = domainNode["LogHeaders"].asString();
if(!domainNode["ClusterType"].isNull())
domain_.clusterType = std::stoi(domainNode["ClusterType"].asString());
if(!domainNode["ConnectionTime"].isNull())
domain_.connectionTime = std::stoi(domainNode["ConnectionTime"].asString());
if(!domainNode["ReadTime"].isNull())
domain_.readTime = std::stoi(domainNode["ReadTime"].asString());
if(!domainNode["WriteTime"].isNull())
domain_.writeTime = std::stoi(domainNode["WriteTime"].asString());
auto allSourceIps = domainNode["SourceIps"]["SourceIp"];
for (auto value : allSourceIps)
domain_.sourceIps.push_back(value.asString());
auto allHttp2Port = domainNode["Http2Port"]["Http2Port"];
for (auto value : allHttp2Port)
domain_.http2Port.push_back(value.asString());
auto allHttpPort = domainNode["HttpPort"]["HttpPort"];
for (auto value : allHttpPort)
domain_.httpPort.push_back(value.asString());
auto allHttpsPort = domainNode["HttpsPort"]["HttpsPort"];
for (auto value : allHttpsPort)
domain_.httpsPort.push_back(value.asString());
}
DescribeDomainResult::Domain DescribeDomainResult::getDomain()const
{
return domain_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeDomainRuleGroupRequest.h>
using AlibabaCloud::Waf_openapi::Model::DescribeDomainRuleGroupRequest;
DescribeDomainRuleGroupRequest::DescribeDomainRuleGroupRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "DescribeDomainRuleGroup")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDomainRuleGroupRequest::~DescribeDomainRuleGroupRequest()
{}
std::string DescribeDomainRuleGroupRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeDomainRuleGroupRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeDomainRuleGroupRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeDomainRuleGroupRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeDomainRuleGroupRequest::getDomain()const
{
return domain_;
}
void DescribeDomainRuleGroupRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string DescribeDomainRuleGroupRequest::getLang()const
{
return lang_;
}
void DescribeDomainRuleGroupRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeInstanceInfoRequest.h>
using AlibabaCloud::Waf_openapi::Model::DescribeInstanceInfoRequest;
DescribeInstanceInfoRequest::DescribeInstanceInfoRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "DescribeInstanceInfo")
{
setMethod(HttpRequest::Method::Post);
}
DescribeInstanceInfoRequest::~DescribeInstanceInfoRequest()
{}
std::string DescribeInstanceInfoRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeInstanceInfoRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeInstanceInfoRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeInstanceInfoRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeInstanceInfoRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeInstanceInfoRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeInstanceInfoRequest::getInstanceSource()const
{
return instanceSource_;
}
void DescribeInstanceInfoRequest::setInstanceSource(const std::string& instanceSource)
{
instanceSource_ = instanceSource;
setParameter("InstanceSource", instanceSource);
}
std::string DescribeInstanceInfoRequest::getLang()const
{
return lang_;
}
void DescribeInstanceInfoRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,68 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeInstanceInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Waf_openapi;
using namespace AlibabaCloud::Waf_openapi::Model;
DescribeInstanceInfoResult::DescribeInstanceInfoResult() :
ServiceResult()
{}
DescribeInstanceInfoResult::DescribeInstanceInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeInstanceInfoResult::~DescribeInstanceInfoResult()
{}
void DescribeInstanceInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto instanceInfoNode = value["InstanceInfo"];
if(!instanceInfoNode["InDebt"].isNull())
instanceInfo_.inDebt = std::stoi(instanceInfoNode["InDebt"].asString());
if(!instanceInfoNode["InstanceId"].isNull())
instanceInfo_.instanceId = instanceInfoNode["InstanceId"].asString();
if(!instanceInfoNode["PayType"].isNull())
instanceInfo_.payType = std::stoi(instanceInfoNode["PayType"].asString());
if(!instanceInfoNode["EndDate"].isNull())
instanceInfo_.endDate = std::stol(instanceInfoNode["EndDate"].asString());
if(!instanceInfoNode["RemainDay"].isNull())
instanceInfo_.remainDay = std::stoi(instanceInfoNode["RemainDay"].asString());
if(!instanceInfoNode["Region"].isNull())
instanceInfo_.region = instanceInfoNode["Region"].asString();
if(!instanceInfoNode["Trial"].isNull())
instanceInfo_.trial = std::stoi(instanceInfoNode["Trial"].asString());
if(!instanceInfoNode["Status"].isNull())
instanceInfo_.status = std::stoi(instanceInfoNode["Status"].asString());
if(!instanceInfoNode["SubscriptionType"].isNull())
instanceInfo_.subscriptionType = instanceInfoNode["SubscriptionType"].asString();
}
DescribeInstanceInfoResult::InstanceInfo DescribeInstanceInfoResult::getInstanceInfo()const
{
return instanceInfo_;
}

View File

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

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeInstanceSpecInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Waf_openapi;
using namespace AlibabaCloud::Waf_openapi::Model;
DescribeInstanceSpecInfoResult::DescribeInstanceSpecInfoResult() :
ServiceResult()
{}
DescribeInstanceSpecInfoResult::DescribeInstanceSpecInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeInstanceSpecInfoResult::~DescribeInstanceSpecInfoResult()
{}
void DescribeInstanceSpecInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allInstanceSpecInfosNode = value["InstanceSpecInfos"]["InstanceSpecInfo"];
for (auto valueInstanceSpecInfosInstanceSpecInfo : allInstanceSpecInfosNode)
{
InstanceSpecInfo instanceSpecInfosObject;
if(!valueInstanceSpecInfosInstanceSpecInfo["Value"].isNull())
instanceSpecInfosObject.value = valueInstanceSpecInfosInstanceSpecInfo["Value"].asString();
if(!valueInstanceSpecInfosInstanceSpecInfo["Code"].isNull())
instanceSpecInfosObject.code = valueInstanceSpecInfosInstanceSpecInfo["Code"].asString();
instanceSpecInfos_.push_back(instanceSpecInfosObject);
}
if(!value["InstanceId"].isNull())
instanceId_ = value["InstanceId"].asString();
if(!value["Version"].isNull())
version_ = value["Version"].asString();
if(!value["ExpireTime"].isNull())
expireTime_ = std::stol(value["ExpireTime"].asString());
}
std::vector<DescribeInstanceSpecInfoResult::InstanceSpecInfo> DescribeInstanceSpecInfoResult::getInstanceSpecInfos()const
{
return instanceSpecInfos_;
}
std::string DescribeInstanceSpecInfoResult::getInstanceId()const
{
return instanceId_;
}
std::string DescribeInstanceSpecInfoResult::getVersion()const
{
return version_;
}
long DescribeInstanceSpecInfoResult::getExpireTime()const
{
return expireTime_;
}

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeProtectBlockSummaryRequest.h>
using AlibabaCloud::Waf_openapi::Model::DescribeProtectBlockSummaryRequest;
DescribeProtectBlockSummaryRequest::DescribeProtectBlockSummaryRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "DescribeProtectBlockSummary")
{
setMethod(HttpRequest::Method::Post);
}
DescribeProtectBlockSummaryRequest::~DescribeProtectBlockSummaryRequest()
{}
std::string DescribeProtectBlockSummaryRequest::getStartTimestamp()const
{
return startTimestamp_;
}
void DescribeProtectBlockSummaryRequest::setStartTimestamp(const std::string& startTimestamp)
{
startTimestamp_ = startTimestamp;
setParameter("StartTimestamp", startTimestamp);
}
std::string DescribeProtectBlockSummaryRequest::getEndTimestamp()const
{
return endTimestamp_;
}
void DescribeProtectBlockSummaryRequest::setEndTimestamp(const std::string& endTimestamp)
{
endTimestamp_ = endTimestamp;
setParameter("EndTimestamp", endTimestamp);
}
std::string DescribeProtectBlockSummaryRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeProtectBlockSummaryRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeProtectBlockSummaryRequest::getLang()const
{
return lang_;
}
void DescribeProtectBlockSummaryRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeProtectBlockSummaryRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeProtectBlockSummaryRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeProtectBlockSummaryRequest::getDomain()const
{
return domain_;
}
void DescribeProtectBlockSummaryRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string DescribeProtectBlockSummaryRequest::getStep()const
{
return step_;
}
void DescribeProtectBlockSummaryRequest::setStep(const std::string& step)
{
step_ = step;
setParameter("Step", step);
}
std::string DescribeProtectBlockSummaryRequest::getRegion()const
{
return region_;
}
void DescribeProtectBlockSummaryRequest::setRegion(const std::string& region)
{
region_ = region;
setParameter("Region", region);
}

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeProtectBlockSummaryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Waf_openapi;
using namespace AlibabaCloud::Waf_openapi::Model;
DescribeProtectBlockSummaryResult::DescribeProtectBlockSummaryResult() :
ServiceResult()
{}
DescribeProtectBlockSummaryResult::DescribeProtectBlockSummaryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeProtectBlockSummaryResult::~DescribeProtectBlockSummaryResult()
{}
void DescribeProtectBlockSummaryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allProtectBlockSummarysNode = value["ProtectBlockSummarys"]["Item"];
for (auto valueProtectBlockSummarysItem : allProtectBlockSummarysNode)
{
Item protectBlockSummarysObject;
if(!valueProtectBlockSummarysItem["BlockPv"].isNull())
protectBlockSummarysObject.blockPv = std::stol(valueProtectBlockSummarysItem["BlockPv"].asString());
if(!valueProtectBlockSummarysItem["Index"].isNull())
protectBlockSummarysObject.index = std::stol(valueProtectBlockSummarysItem["Index"].asString());
if(!valueProtectBlockSummarysItem["AllPv"].isNull())
protectBlockSummarysObject.allPv = std::stol(valueProtectBlockSummarysItem["AllPv"].asString());
protectBlockSummarys_.push_back(protectBlockSummarysObject);
}
}
std::vector<DescribeProtectBlockSummaryResult::Item> DescribeProtectBlockSummaryResult::getProtectBlockSummarys()const
{
return protectBlockSummarys_;
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeProtectionModuleModeRequest.h>
using AlibabaCloud::Waf_openapi::Model::DescribeProtectionModuleModeRequest;
DescribeProtectionModuleModeRequest::DescribeProtectionModuleModeRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "DescribeProtectionModuleMode")
{
setMethod(HttpRequest::Method::Post);
}
DescribeProtectionModuleModeRequest::~DescribeProtectionModuleModeRequest()
{}
std::string DescribeProtectionModuleModeRequest::getDefenseType()const
{
return defenseType_;
}
void DescribeProtectionModuleModeRequest::setDefenseType(const std::string& defenseType)
{
defenseType_ = defenseType;
setParameter("DefenseType", defenseType);
}
std::string DescribeProtectionModuleModeRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeProtectionModuleModeRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeProtectionModuleModeRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeProtectionModuleModeRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeProtectionModuleModeRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeProtectionModuleModeRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeProtectionModuleModeRequest::getDomain()const
{
return domain_;
}
void DescribeProtectionModuleModeRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string DescribeProtectionModuleModeRequest::getLang()const
{
return lang_;
}
void DescribeProtectionModuleModeRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

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

View File

@@ -0,0 +1,128 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeProtectionModuleRulesRequest.h>
using AlibabaCloud::Waf_openapi::Model::DescribeProtectionModuleRulesRequest;
DescribeProtectionModuleRulesRequest::DescribeProtectionModuleRulesRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "DescribeProtectionModuleRules")
{
setMethod(HttpRequest::Method::Post);
}
DescribeProtectionModuleRulesRequest::~DescribeProtectionModuleRulesRequest()
{}
int DescribeProtectionModuleRulesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeProtectionModuleRulesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeProtectionModuleRulesRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeProtectionModuleRulesRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeProtectionModuleRulesRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeProtectionModuleRulesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeProtectionModuleRulesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeProtectionModuleRulesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeProtectionModuleRulesRequest::getLang()const
{
return lang_;
}
void DescribeProtectionModuleRulesRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeProtectionModuleRulesRequest::getDefenseType()const
{
return defenseType_;
}
void DescribeProtectionModuleRulesRequest::setDefenseType(const std::string& defenseType)
{
defenseType_ = defenseType;
setParameter("DefenseType", defenseType);
}
std::string DescribeProtectionModuleRulesRequest::getQuery()const
{
return query_;
}
void DescribeProtectionModuleRulesRequest::setQuery(const std::string& query)
{
query_ = query;
setParameter("Query", query);
}
std::string DescribeProtectionModuleRulesRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeProtectionModuleRulesRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeProtectionModuleRulesRequest::getDomain()const
{
return domain_;
}
void DescribeProtectionModuleRulesRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeProtectionModuleRulesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Waf_openapi;
using namespace AlibabaCloud::Waf_openapi::Model;
DescribeProtectionModuleRulesResult::DescribeProtectionModuleRulesResult() :
ServiceResult()
{}
DescribeProtectionModuleRulesResult::DescribeProtectionModuleRulesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeProtectionModuleRulesResult::~DescribeProtectionModuleRulesResult()
{}
void DescribeProtectionModuleRulesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRulesNode = value["Rules"]["Rule"];
for (auto valueRulesRule : allRulesNode)
{
Rule rulesObject;
if(!valueRulesRule["RuleId"].isNull())
rulesObject.ruleId = std::stol(valueRulesRule["RuleId"].asString());
if(!valueRulesRule["Version"].isNull())
rulesObject.version = std::stol(valueRulesRule["Version"].asString());
if(!valueRulesRule["Content"].isNull())
rulesObject.content = valueRulesRule["Content"].asString();
if(!valueRulesRule["Time"].isNull())
rulesObject.time = std::stol(valueRulesRule["Time"].asString());
if(!valueRulesRule["Status"].isNull())
rulesObject.status = std::stol(valueRulesRule["Status"].asString());
rules_.push_back(rulesObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int DescribeProtectionModuleRulesResult::getTotalCount()const
{
return totalCount_;
}
std::vector<DescribeProtectionModuleRulesResult::Rule> DescribeProtectionModuleRulesResult::getRules()const
{
return rules_;
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeProtectionModuleStatusRequest.h>
using AlibabaCloud::Waf_openapi::Model::DescribeProtectionModuleStatusRequest;
DescribeProtectionModuleStatusRequest::DescribeProtectionModuleStatusRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "DescribeProtectionModuleStatus")
{
setMethod(HttpRequest::Method::Post);
}
DescribeProtectionModuleStatusRequest::~DescribeProtectionModuleStatusRequest()
{}
std::string DescribeProtectionModuleStatusRequest::getDefenseType()const
{
return defenseType_;
}
void DescribeProtectionModuleStatusRequest::setDefenseType(const std::string& defenseType)
{
defenseType_ = defenseType;
setParameter("DefenseType", defenseType);
}
std::string DescribeProtectionModuleStatusRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeProtectionModuleStatusRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeProtectionModuleStatusRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeProtectionModuleStatusRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeProtectionModuleStatusRequest::getDomain()const
{
return domain_;
}
void DescribeProtectionModuleStatusRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string DescribeProtectionModuleStatusRequest::getLang()const
{
return lang_;
}
void DescribeProtectionModuleStatusRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

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

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeRealProtectSummaryRequest.h>
using AlibabaCloud::Waf_openapi::Model::DescribeRealProtectSummaryRequest;
DescribeRealProtectSummaryRequest::DescribeRealProtectSummaryRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "DescribeRealProtectSummary")
{
setMethod(HttpRequest::Method::Post);
}
DescribeRealProtectSummaryRequest::~DescribeRealProtectSummaryRequest()
{}
std::string DescribeRealProtectSummaryRequest::getStartTimestamp()const
{
return startTimestamp_;
}
void DescribeRealProtectSummaryRequest::setStartTimestamp(const std::string& startTimestamp)
{
startTimestamp_ = startTimestamp;
setParameter("StartTimestamp", startTimestamp);
}
std::string DescribeRealProtectSummaryRequest::getEndTimestamp()const
{
return endTimestamp_;
}
void DescribeRealProtectSummaryRequest::setEndTimestamp(const std::string& endTimestamp)
{
endTimestamp_ = endTimestamp;
setParameter("EndTimestamp", endTimestamp);
}
std::string DescribeRealProtectSummaryRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeRealProtectSummaryRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeRealProtectSummaryRequest::getLang()const
{
return lang_;
}
void DescribeRealProtectSummaryRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeRealProtectSummaryRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeRealProtectSummaryRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeRealProtectSummaryRequest::getDomain()const
{
return domain_;
}
void DescribeRealProtectSummaryRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string DescribeRealProtectSummaryRequest::getStep()const
{
return step_;
}
void DescribeRealProtectSummaryRequest::setStep(const std::string& step)
{
step_ = step;
setParameter("Step", step);
}
std::string DescribeRealProtectSummaryRequest::getRegion()const
{
return region_;
}
void DescribeRealProtectSummaryRequest::setRegion(const std::string& region)
{
region_ = region;
setParameter("Region", region);
}

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeRealProtectSummaryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Waf_openapi;
using namespace AlibabaCloud::Waf_openapi::Model;
DescribeRealProtectSummaryResult::DescribeRealProtectSummaryResult() :
ServiceResult()
{}
DescribeRealProtectSummaryResult::DescribeRealProtectSummaryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRealProtectSummaryResult::~DescribeRealProtectSummaryResult()
{}
void DescribeRealProtectSummaryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRealProtectSummarysNode = value["RealProtectSummarys"]["Item"];
for (auto valueRealProtectSummarysItem : allRealProtectSummarysNode)
{
Item realProtectSummarysObject;
if(!valueRealProtectSummarysItem["AlgorithmPv"].isNull())
realProtectSummarysObject.algorithmPv = std::stol(valueRealProtectSummarysItem["AlgorithmPv"].asString());
if(!valueRealProtectSummarysItem["JsinjectPv"].isNull())
realProtectSummarysObject.jsinjectPv = std::stol(valueRealProtectSummarysItem["JsinjectPv"].asString());
if(!valueRealProtectSummarysItem["IntelligencePv"].isNull())
realProtectSummarysObject.intelligencePv = std::stol(valueRealProtectSummarysItem["IntelligencePv"].asString());
if(!valueRealProtectSummarysItem["SdkPv"].isNull())
realProtectSummarysObject.sdkPv = std::stol(valueRealProtectSummarysItem["SdkPv"].asString());
if(!valueRealProtectSummarysItem["Index"].isNull())
realProtectSummarysObject.index = std::stol(valueRealProtectSummarysItem["Index"].asString());
if(!valueRealProtectSummarysItem["Qps"].isNull())
realProtectSummarysObject.qps = std::stol(valueRealProtectSummarysItem["Qps"].asString());
realProtectSummarys_.push_back(realProtectSummarysObject);
}
}
std::vector<DescribeRealProtectSummaryResult::Item> DescribeRealProtectSummaryResult::getRealProtectSummarys()const
{
return realProtectSummarys_;
}

View File

@@ -0,0 +1,128 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeRuleMonitorRequest.h>
using AlibabaCloud::Waf_openapi::Model::DescribeRuleMonitorRequest;
DescribeRuleMonitorRequest::DescribeRuleMonitorRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "DescribeRuleMonitor")
{
setMethod(HttpRequest::Method::Post);
}
DescribeRuleMonitorRequest::~DescribeRuleMonitorRequest()
{}
std::string DescribeRuleMonitorRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeRuleMonitorRequest::setPageNumber(const std::string& pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", pageNumber);
}
std::string DescribeRuleMonitorRequest::getEndTimestamp()const
{
return endTimestamp_;
}
void DescribeRuleMonitorRequest::setEndTimestamp(const std::string& endTimestamp)
{
endTimestamp_ = endTimestamp;
setParameter("EndTimestamp", endTimestamp);
}
std::string DescribeRuleMonitorRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeRuleMonitorRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeRuleMonitorRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeRuleMonitorRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeRuleMonitorRequest::getPageSize()const
{
return pageSize_;
}
void DescribeRuleMonitorRequest::setPageSize(const std::string& pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", pageSize);
}
std::string DescribeRuleMonitorRequest::getLang()const
{
return lang_;
}
void DescribeRuleMonitorRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeRuleMonitorRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeRuleMonitorRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeRuleMonitorRequest::getDomain()const
{
return domain_;
}
void DescribeRuleMonitorRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string DescribeRuleMonitorRequest::getRegion()const
{
return region_;
}
void DescribeRuleMonitorRequest::setRegion(const std::string& region)
{
region_ = region;
setParameter("Region", region);
}

View File

@@ -0,0 +1,74 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeRuleMonitorResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Waf_openapi;
using namespace AlibabaCloud::Waf_openapi::Model;
DescribeRuleMonitorResult::DescribeRuleMonitorResult() :
ServiceResult()
{}
DescribeRuleMonitorResult::DescribeRuleMonitorResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRuleMonitorResult::~DescribeRuleMonitorResult()
{}
void DescribeRuleMonitorResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRuleMonitorsNode = value["RuleMonitors"]["Item"];
for (auto valueRuleMonitorsItem : allRuleMonitorsNode)
{
Item ruleMonitorsObject;
if(!valueRuleMonitorsItem["AntibotType"].isNull())
ruleMonitorsObject.antibotType = valueRuleMonitorsItem["AntibotType"].asString();
if(!valueRuleMonitorsItem["Pv"].isNull())
ruleMonitorsObject.pv = std::stol(valueRuleMonitorsItem["Pv"].asString());
if(!valueRuleMonitorsItem["RuleId"].isNull())
ruleMonitorsObject.ruleId = valueRuleMonitorsItem["RuleId"].asString();
if(!valueRuleMonitorsItem["Index"].isNull())
ruleMonitorsObject.index = std::stol(valueRuleMonitorsItem["Index"].asString());
if(!valueRuleMonitorsItem["Domain"].isNull())
ruleMonitorsObject.domain = valueRuleMonitorsItem["Domain"].asString();
if(!valueRuleMonitorsItem["AntibotWatch"].isNull())
ruleMonitorsObject.antibotWatch = valueRuleMonitorsItem["AntibotWatch"].asString();
ruleMonitors_.push_back(ruleMonitorsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int DescribeRuleMonitorResult::getTotalCount()const
{
return totalCount_;
}
std::vector<DescribeRuleMonitorResult::Item> DescribeRuleMonitorResult::getRuleMonitors()const
{
return ruleMonitors_;
}

View File

@@ -0,0 +1,128 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/DescribeRuleSummaryRequest.h>
using AlibabaCloud::Waf_openapi::Model::DescribeRuleSummaryRequest;
DescribeRuleSummaryRequest::DescribeRuleSummaryRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "DescribeRuleSummary")
{
setMethod(HttpRequest::Method::Post);
}
DescribeRuleSummaryRequest::~DescribeRuleSummaryRequest()
{}
std::string DescribeRuleSummaryRequest::getEndTimestamp()const
{
return endTimestamp_;
}
void DescribeRuleSummaryRequest::setEndTimestamp(const std::string& endTimestamp)
{
endTimestamp_ = endTimestamp;
setParameter("EndTimestamp", endTimestamp);
}
std::string DescribeRuleSummaryRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeRuleSummaryRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeRuleSummaryRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeRuleSummaryRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeRuleSummaryRequest::getLang()const
{
return lang_;
}
void DescribeRuleSummaryRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeRuleSummaryRequest::getAntibotType()const
{
return antibotType_;
}
void DescribeRuleSummaryRequest::setAntibotType(const std::string& antibotType)
{
antibotType_ = antibotType;
setParameter("AntibotType", antibotType);
}
std::string DescribeRuleSummaryRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeRuleSummaryRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeRuleSummaryRequest::getDomain()const
{
return domain_;
}
void DescribeRuleSummaryRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string DescribeRuleSummaryRequest::getRegion()const
{
return region_;
}
void DescribeRuleSummaryRequest::setRegion(const std::string& region)
{
region_ = region;
setParameter("Region", region);
}
std::string DescribeRuleSummaryRequest::getRuleId()const
{
return ruleId_;
}
void DescribeRuleSummaryRequest::setRuleId(const std::string& ruleId)
{
ruleId_ = ruleId;
setParameter("RuleId", ruleId);
}

View File

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

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/ModifyDomainClusterTypeRequest.h>
using AlibabaCloud::Waf_openapi::Model::ModifyDomainClusterTypeRequest;
ModifyDomainClusterTypeRequest::ModifyDomainClusterTypeRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "ModifyDomainClusterType")
{
setMethod(HttpRequest::Method::Post);
}
ModifyDomainClusterTypeRequest::~ModifyDomainClusterTypeRequest()
{}
int ModifyDomainClusterTypeRequest::getClusterType()const
{
return clusterType_;
}
void ModifyDomainClusterTypeRequest::setClusterType(int clusterType)
{
clusterType_ = clusterType;
setParameter("ClusterType", std::to_string(clusterType));
}
std::string ModifyDomainClusterTypeRequest::getInstanceId()const
{
return instanceId_;
}
void ModifyDomainClusterTypeRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ModifyDomainClusterTypeRequest::getSourceIp()const
{
return sourceIp_;
}
void ModifyDomainClusterTypeRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string ModifyDomainClusterTypeRequest::getDomain()const
{
return domain_;
}
void ModifyDomainClusterTypeRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string ModifyDomainClusterTypeRequest::getRegion()const
{
return region_;
}
void ModifyDomainClusterTypeRequest::setRegion(const std::string& region)
{
region_ = region;
setParameter("Region", region);
}

View File

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

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/ModifyDomainIpv6StatusRequest.h>
using AlibabaCloud::Waf_openapi::Model::ModifyDomainIpv6StatusRequest;
ModifyDomainIpv6StatusRequest::ModifyDomainIpv6StatusRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "ModifyDomainIpv6Status")
{
setMethod(HttpRequest::Method::Post);
}
ModifyDomainIpv6StatusRequest::~ModifyDomainIpv6StatusRequest()
{}
std::string ModifyDomainIpv6StatusRequest::getWafVersion()const
{
return wafVersion_;
}
void ModifyDomainIpv6StatusRequest::setWafVersion(const std::string& wafVersion)
{
wafVersion_ = wafVersion;
setParameter("WafVersion", wafVersion);
}
std::string ModifyDomainIpv6StatusRequest::getEnabled()const
{
return enabled_;
}
void ModifyDomainIpv6StatusRequest::setEnabled(const std::string& enabled)
{
enabled_ = enabled;
setParameter("Enabled", enabled);
}
std::string ModifyDomainIpv6StatusRequest::getInstanceId()const
{
return instanceId_;
}
void ModifyDomainIpv6StatusRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ModifyDomainIpv6StatusRequest::getSourceIp()const
{
return sourceIp_;
}
void ModifyDomainIpv6StatusRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string ModifyDomainIpv6StatusRequest::getDomain()const
{
return domain_;
}
void ModifyDomainIpv6StatusRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string ModifyDomainIpv6StatusRequest::getLang()const
{
return lang_;
}
void ModifyDomainIpv6StatusRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

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

View File

@@ -0,0 +1,249 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/ModifyDomainRequest.h>
using AlibabaCloud::Waf_openapi::Model::ModifyDomainRequest;
ModifyDomainRequest::ModifyDomainRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "ModifyDomain")
{
setMethod(HttpRequest::Method::Post);
}
ModifyDomainRequest::~ModifyDomainRequest()
{}
std::string ModifyDomainRequest::getSourceIp()const
{
return sourceIp_;
}
void ModifyDomainRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int ModifyDomainRequest::getXffHeaderMode()const
{
return xffHeaderMode_;
}
void ModifyDomainRequest::setXffHeaderMode(int xffHeaderMode)
{
xffHeaderMode_ = xffHeaderMode;
setParameter("XffHeaderMode", std::to_string(xffHeaderMode));
}
std::string ModifyDomainRequest::getHttpPort()const
{
return httpPort_;
}
void ModifyDomainRequest::setHttpPort(const std::string& httpPort)
{
httpPort_ = httpPort;
setParameter("HttpPort", httpPort);
}
std::string ModifyDomainRequest::getHttp2Port()const
{
return http2Port_;
}
void ModifyDomainRequest::setHttp2Port(const std::string& http2Port)
{
http2Port_ = http2Port;
setParameter("Http2Port", http2Port);
}
int ModifyDomainRequest::getWriteTime()const
{
return writeTime_;
}
void ModifyDomainRequest::setWriteTime(int writeTime)
{
writeTime_ = writeTime;
setParameter("WriteTime", std::to_string(writeTime));
}
std::string ModifyDomainRequest::getLang()const
{
return lang_;
}
void ModifyDomainRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string ModifyDomainRequest::getXffHeaders()const
{
return xffHeaders_;
}
void ModifyDomainRequest::setXffHeaders(const std::string& xffHeaders)
{
xffHeaders_ = xffHeaders;
setParameter("XffHeaders", xffHeaders);
}
int ModifyDomainRequest::getBindingIpv6()const
{
return bindingIpv6_;
}
void ModifyDomainRequest::setBindingIpv6(int bindingIpv6)
{
bindingIpv6_ = bindingIpv6;
setParameter("BindingIpv6", std::to_string(bindingIpv6));
}
std::string ModifyDomainRequest::getLogHeaders()const
{
return logHeaders_;
}
void ModifyDomainRequest::setLogHeaders(const std::string& logHeaders)
{
logHeaders_ = logHeaders;
setParameter("LogHeaders", logHeaders);
}
int ModifyDomainRequest::getConnectionTime()const
{
return connectionTime_;
}
void ModifyDomainRequest::setConnectionTime(int connectionTime)
{
connectionTime_ = connectionTime;
setParameter("ConnectionTime", std::to_string(connectionTime));
}
int ModifyDomainRequest::getClusterType()const
{
return clusterType_;
}
void ModifyDomainRequest::setClusterType(int clusterType)
{
clusterType_ = clusterType;
setParameter("ClusterType", std::to_string(clusterType));
}
int ModifyDomainRequest::getHttpsRedirect()const
{
return httpsRedirect_;
}
void ModifyDomainRequest::setHttpsRedirect(int httpsRedirect)
{
httpsRedirect_ = httpsRedirect;
setParameter("HttpsRedirect", std::to_string(httpsRedirect));
}
std::string ModifyDomainRequest::getInstanceId()const
{
return instanceId_;
}
void ModifyDomainRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ModifyDomainRequest::getSourceIps()const
{
return sourceIps_;
}
void ModifyDomainRequest::setSourceIps(const std::string& sourceIps)
{
sourceIps_ = sourceIps;
setParameter("SourceIps", sourceIps);
}
std::string ModifyDomainRequest::getDomain()const
{
return domain_;
}
void ModifyDomainRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
int ModifyDomainRequest::getIsAccessProduct()const
{
return isAccessProduct_;
}
void ModifyDomainRequest::setIsAccessProduct(int isAccessProduct)
{
isAccessProduct_ = isAccessProduct;
setParameter("IsAccessProduct", std::to_string(isAccessProduct));
}
int ModifyDomainRequest::getReadTime()const
{
return readTime_;
}
void ModifyDomainRequest::setReadTime(int readTime)
{
readTime_ = readTime;
setParameter("ReadTime", std::to_string(readTime));
}
std::string ModifyDomainRequest::getHttpsPort()const
{
return httpsPort_;
}
void ModifyDomainRequest::setHttpsPort(const std::string& httpsPort)
{
httpsPort_ = httpsPort;
setParameter("HttpsPort", httpsPort);
}
int ModifyDomainRequest::getLoadBalancing()const
{
return loadBalancing_;
}
void ModifyDomainRequest::setLoadBalancing(int loadBalancing)
{
loadBalancing_ = loadBalancing;
setParameter("LoadBalancing", std::to_string(loadBalancing));
}
int ModifyDomainRequest::getHttpToUserIp()const
{
return httpToUserIp_;
}
void ModifyDomainRequest::setHttpToUserIp(int httpToUserIp)
{
httpToUserIp_ = httpToUserIp;
setParameter("HttpToUserIp", std::to_string(httpToUserIp));
}

View File

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

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/ModifyLogRetrievalStatusRequest.h>
using AlibabaCloud::Waf_openapi::Model::ModifyLogRetrievalStatusRequest;
ModifyLogRetrievalStatusRequest::ModifyLogRetrievalStatusRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "ModifyLogRetrievalStatus")
{
setMethod(HttpRequest::Method::Post);
}
ModifyLogRetrievalStatusRequest::~ModifyLogRetrievalStatusRequest()
{}
int ModifyLogRetrievalStatusRequest::getEnabled()const
{
return enabled_;
}
void ModifyLogRetrievalStatusRequest::setEnabled(int enabled)
{
enabled_ = enabled;
setParameter("Enabled", std::to_string(enabled));
}
std::string ModifyLogRetrievalStatusRequest::getInstanceId()const
{
return instanceId_;
}
void ModifyLogRetrievalStatusRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ModifyLogRetrievalStatusRequest::getSourceIp()const
{
return sourceIp_;
}
void ModifyLogRetrievalStatusRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string ModifyLogRetrievalStatusRequest::getDomain()const
{
return domain_;
}
void ModifyLogRetrievalStatusRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string ModifyLogRetrievalStatusRequest::getLang()const
{
return lang_;
}
void ModifyLogRetrievalStatusRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

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

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/ModifyLogServiceStatusRequest.h>
using AlibabaCloud::Waf_openapi::Model::ModifyLogServiceStatusRequest;
ModifyLogServiceStatusRequest::ModifyLogServiceStatusRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "ModifyLogServiceStatus")
{
setMethod(HttpRequest::Method::Post);
}
ModifyLogServiceStatusRequest::~ModifyLogServiceStatusRequest()
{}
int ModifyLogServiceStatusRequest::getEnabled()const
{
return enabled_;
}
void ModifyLogServiceStatusRequest::setEnabled(int enabled)
{
enabled_ = enabled;
setParameter("Enabled", std::to_string(enabled));
}
std::string ModifyLogServiceStatusRequest::getInstanceId()const
{
return instanceId_;
}
void ModifyLogServiceStatusRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ModifyLogServiceStatusRequest::getSourceIp()const
{
return sourceIp_;
}
void ModifyLogServiceStatusRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string ModifyLogServiceStatusRequest::getDomain()const
{
return domain_;
}
void ModifyLogServiceStatusRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string ModifyLogServiceStatusRequest::getLang()const
{
return lang_;
}
void ModifyLogServiceStatusRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

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

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/ModifyProtectionModuleModeRequest.h>
using AlibabaCloud::Waf_openapi::Model::ModifyProtectionModuleModeRequest;
ModifyProtectionModuleModeRequest::ModifyProtectionModuleModeRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "ModifyProtectionModuleMode")
{
setMethod(HttpRequest::Method::Post);
}
ModifyProtectionModuleModeRequest::~ModifyProtectionModuleModeRequest()
{}
std::string ModifyProtectionModuleModeRequest::getDefenseType()const
{
return defenseType_;
}
void ModifyProtectionModuleModeRequest::setDefenseType(const std::string& defenseType)
{
defenseType_ = defenseType;
setParameter("DefenseType", defenseType);
}
int ModifyProtectionModuleModeRequest::getMode()const
{
return mode_;
}
void ModifyProtectionModuleModeRequest::setMode(int mode)
{
mode_ = mode;
setParameter("Mode", std::to_string(mode));
}
std::string ModifyProtectionModuleModeRequest::getInstanceId()const
{
return instanceId_;
}
void ModifyProtectionModuleModeRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ModifyProtectionModuleModeRequest::getSourceIp()const
{
return sourceIp_;
}
void ModifyProtectionModuleModeRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string ModifyProtectionModuleModeRequest::getDomain()const
{
return domain_;
}
void ModifyProtectionModuleModeRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string ModifyProtectionModuleModeRequest::getLang()const
{
return lang_;
}
void ModifyProtectionModuleModeRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

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

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/ModifyProtectionModuleRuleRequest.h>
using AlibabaCloud::Waf_openapi::Model::ModifyProtectionModuleRuleRequest;
ModifyProtectionModuleRuleRequest::ModifyProtectionModuleRuleRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "ModifyProtectionModuleRule")
{
setMethod(HttpRequest::Method::Post);
}
ModifyProtectionModuleRuleRequest::~ModifyProtectionModuleRuleRequest()
{}
std::string ModifyProtectionModuleRuleRequest::getRule()const
{
return rule_;
}
void ModifyProtectionModuleRuleRequest::setRule(const std::string& rule)
{
rule_ = rule;
setParameter("Rule", rule);
}
long ModifyProtectionModuleRuleRequest::getLockVersion()const
{
return lockVersion_;
}
void ModifyProtectionModuleRuleRequest::setLockVersion(long lockVersion)
{
lockVersion_ = lockVersion;
setParameter("LockVersion", std::to_string(lockVersion));
}
std::string ModifyProtectionModuleRuleRequest::getSourceIp()const
{
return sourceIp_;
}
void ModifyProtectionModuleRuleRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string ModifyProtectionModuleRuleRequest::getLang()const
{
return lang_;
}
void ModifyProtectionModuleRuleRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string ModifyProtectionModuleRuleRequest::getDefenseType()const
{
return defenseType_;
}
void ModifyProtectionModuleRuleRequest::setDefenseType(const std::string& defenseType)
{
defenseType_ = defenseType;
setParameter("DefenseType", defenseType);
}
std::string ModifyProtectionModuleRuleRequest::getInstanceId()const
{
return instanceId_;
}
void ModifyProtectionModuleRuleRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ModifyProtectionModuleRuleRequest::getDomain()const
{
return domain_;
}
void ModifyProtectionModuleRuleRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
long ModifyProtectionModuleRuleRequest::getRuleId()const
{
return ruleId_;
}
void ModifyProtectionModuleRuleRequest::setRuleId(long ruleId)
{
ruleId_ = ruleId;
setParameter("RuleId", std::to_string(ruleId));
}

View File

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

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/ModifyProtectionModuleStatusRequest.h>
using AlibabaCloud::Waf_openapi::Model::ModifyProtectionModuleStatusRequest;
ModifyProtectionModuleStatusRequest::ModifyProtectionModuleStatusRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "ModifyProtectionModuleStatus")
{
setMethod(HttpRequest::Method::Post);
}
ModifyProtectionModuleStatusRequest::~ModifyProtectionModuleStatusRequest()
{}
std::string ModifyProtectionModuleStatusRequest::getDefenseType()const
{
return defenseType_;
}
void ModifyProtectionModuleStatusRequest::setDefenseType(const std::string& defenseType)
{
defenseType_ = defenseType;
setParameter("DefenseType", defenseType);
}
std::string ModifyProtectionModuleStatusRequest::getInstanceId()const
{
return instanceId_;
}
void ModifyProtectionModuleStatusRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ModifyProtectionModuleStatusRequest::getSourceIp()const
{
return sourceIp_;
}
void ModifyProtectionModuleStatusRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string ModifyProtectionModuleStatusRequest::getDomain()const
{
return domain_;
}
void ModifyProtectionModuleStatusRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
int ModifyProtectionModuleStatusRequest::getModuleStatus()const
{
return moduleStatus_;
}
void ModifyProtectionModuleStatusRequest::setModuleStatus(int moduleStatus)
{
moduleStatus_ = moduleStatus;
setParameter("ModuleStatus", std::to_string(moduleStatus));
}
std::string ModifyProtectionModuleStatusRequest::getLang()const
{
return lang_;
}
void ModifyProtectionModuleStatusRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

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

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/ModifyProtectionRuleCacheStatusRequest.h>
using AlibabaCloud::Waf_openapi::Model::ModifyProtectionRuleCacheStatusRequest;
ModifyProtectionRuleCacheStatusRequest::ModifyProtectionRuleCacheStatusRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "ModifyProtectionRuleCacheStatus")
{
setMethod(HttpRequest::Method::Post);
}
ModifyProtectionRuleCacheStatusRequest::~ModifyProtectionRuleCacheStatusRequest()
{}
std::string ModifyProtectionRuleCacheStatusRequest::getDefenseType()const
{
return defenseType_;
}
void ModifyProtectionRuleCacheStatusRequest::setDefenseType(const std::string& defenseType)
{
defenseType_ = defenseType;
setParameter("DefenseType", defenseType);
}
std::string ModifyProtectionRuleCacheStatusRequest::getInstanceId()const
{
return instanceId_;
}
void ModifyProtectionRuleCacheStatusRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ModifyProtectionRuleCacheStatusRequest::getSourceIp()const
{
return sourceIp_;
}
void ModifyProtectionRuleCacheStatusRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string ModifyProtectionRuleCacheStatusRequest::getDomain()const
{
return domain_;
}
void ModifyProtectionRuleCacheStatusRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string ModifyProtectionRuleCacheStatusRequest::getLang()const
{
return lang_;
}
void ModifyProtectionRuleCacheStatusRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
long ModifyProtectionRuleCacheStatusRequest::getRuleId()const
{
return ruleId_;
}
void ModifyProtectionRuleCacheStatusRequest::setRuleId(long ruleId)
{
ruleId_ = ruleId;
setParameter("RuleId", std::to_string(ruleId));
}

View File

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

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/ModifyProtectionRuleStatusRequest.h>
using AlibabaCloud::Waf_openapi::Model::ModifyProtectionRuleStatusRequest;
ModifyProtectionRuleStatusRequest::ModifyProtectionRuleStatusRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "ModifyProtectionRuleStatus")
{
setMethod(HttpRequest::Method::Post);
}
ModifyProtectionRuleStatusRequest::~ModifyProtectionRuleStatusRequest()
{}
long ModifyProtectionRuleStatusRequest::getLockVersion()const
{
return lockVersion_;
}
void ModifyProtectionRuleStatusRequest::setLockVersion(long lockVersion)
{
lockVersion_ = lockVersion;
setParameter("LockVersion", std::to_string(lockVersion));
}
std::string ModifyProtectionRuleStatusRequest::getSourceIp()const
{
return sourceIp_;
}
void ModifyProtectionRuleStatusRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string ModifyProtectionRuleStatusRequest::getLang()const
{
return lang_;
}
void ModifyProtectionRuleStatusRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string ModifyProtectionRuleStatusRequest::getDefenseType()const
{
return defenseType_;
}
void ModifyProtectionRuleStatusRequest::setDefenseType(const std::string& defenseType)
{
defenseType_ = defenseType;
setParameter("DefenseType", defenseType);
}
int ModifyProtectionRuleStatusRequest::getRuleStatus()const
{
return ruleStatus_;
}
void ModifyProtectionRuleStatusRequest::setRuleStatus(int ruleStatus)
{
ruleStatus_ = ruleStatus;
setParameter("RuleStatus", std::to_string(ruleStatus));
}
std::string ModifyProtectionRuleStatusRequest::getInstanceId()const
{
return instanceId_;
}
void ModifyProtectionRuleStatusRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ModifyProtectionRuleStatusRequest::getDomain()const
{
return domain_;
}
void ModifyProtectionRuleStatusRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
long ModifyProtectionRuleStatusRequest::getRuleId()const
{
return ruleId_;
}
void ModifyProtectionRuleStatusRequest::setRuleId(long ruleId)
{
ruleId_ = ruleId;
setParameter("RuleId", std::to_string(ruleId));
}

View File

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

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/waf-openapi/model/SetDomainRuleGroupRequest.h>
using AlibabaCloud::Waf_openapi::Model::SetDomainRuleGroupRequest;
SetDomainRuleGroupRequest::SetDomainRuleGroupRequest() :
RpcServiceRequest("waf-openapi", "2019-09-10", "SetDomainRuleGroup")
{
setMethod(HttpRequest::Method::Post);
}
SetDomainRuleGroupRequest::~SetDomainRuleGroupRequest()
{}
long SetDomainRuleGroupRequest::getWafVersion()const
{
return wafVersion_;
}
void SetDomainRuleGroupRequest::setWafVersion(long wafVersion)
{
wafVersion_ = wafVersion;
setParameter("WafVersion", std::to_string(wafVersion));
}
long SetDomainRuleGroupRequest::getRuleGroupId()const
{
return ruleGroupId_;
}
void SetDomainRuleGroupRequest::setRuleGroupId(long ruleGroupId)
{
ruleGroupId_ = ruleGroupId;
setParameter("RuleGroupId", std::to_string(ruleGroupId));
}
std::string SetDomainRuleGroupRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void SetDomainRuleGroupRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string SetDomainRuleGroupRequest::getSourceIp()const
{
return sourceIp_;
}
void SetDomainRuleGroupRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string SetDomainRuleGroupRequest::getLang()const
{
return lang_;
}
void SetDomainRuleGroupRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string SetDomainRuleGroupRequest::getDomains()const
{
return domains_;
}
void SetDomainRuleGroupRequest::setDomains(const std::string& domains)
{
domains_ = domains;
setParameter("Domains", domains);
}
std::string SetDomainRuleGroupRequest::getInstanceId()const
{
return instanceId_;
}
void SetDomainRuleGroupRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

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