Supported batch delete for contact template.
This commit is contained in:
@@ -31,21 +31,21 @@ DomainClient::DomainClient(const Credentials &credentials, const ClientConfigura
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "domain");
|
||||
}
|
||||
|
||||
DomainClient::DomainClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "domain");
|
||||
}
|
||||
|
||||
DomainClient::DomainClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "domain");
|
||||
}
|
||||
|
||||
DomainClient::~DomainClient()
|
||||
@@ -591,6 +591,42 @@ DomainClient::ConfirmTransferInEmailOutcomeCallable DomainClient::confirmTransfe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DomainClient::DeleteContactTemplatesOutcome DomainClient::deleteContactTemplates(const DeleteContactTemplatesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteContactTemplatesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteContactTemplatesOutcome(DeleteContactTemplatesResult(outcome.result()));
|
||||
else
|
||||
return DeleteContactTemplatesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DomainClient::deleteContactTemplatesAsync(const DeleteContactTemplatesRequest& request, const DeleteContactTemplatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteContactTemplates(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DomainClient::DeleteContactTemplatesOutcomeCallable DomainClient::deleteContactTemplatesCallable(const DeleteContactTemplatesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteContactTemplatesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteContactTemplates(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DomainClient::DeleteDomainGroupOutcome DomainClient::deleteDomainGroup(const DeleteDomainGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3255,6 +3291,42 @@ DomainClient::SaveRegistrantProfileOutcomeCallable DomainClient::saveRegistrantP
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DomainClient::SaveRegistrantProfileRealNameVerificationOutcome DomainClient::saveRegistrantProfileRealNameVerification(const SaveRegistrantProfileRealNameVerificationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SaveRegistrantProfileRealNameVerificationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SaveRegistrantProfileRealNameVerificationOutcome(SaveRegistrantProfileRealNameVerificationResult(outcome.result()));
|
||||
else
|
||||
return SaveRegistrantProfileRealNameVerificationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DomainClient::saveRegistrantProfileRealNameVerificationAsync(const SaveRegistrantProfileRealNameVerificationRequest& request, const SaveRegistrantProfileRealNameVerificationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, saveRegistrantProfileRealNameVerification(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DomainClient::SaveRegistrantProfileRealNameVerificationOutcomeCallable DomainClient::saveRegistrantProfileRealNameVerificationCallable(const SaveRegistrantProfileRealNameVerificationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SaveRegistrantProfileRealNameVerificationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->saveRegistrantProfileRealNameVerification(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DomainClient::SaveSingleTaskForAddingDSRecordOutcome DomainClient::saveSingleTaskForAddingDSRecord(const SaveSingleTaskForAddingDSRecordRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4299,6 +4371,42 @@ DomainClient::ScrollDomainListOutcomeCallable DomainClient::scrollDomainListCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DomainClient::SetDefaultRegistrantProfileOutcome DomainClient::setDefaultRegistrantProfile(const SetDefaultRegistrantProfileRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetDefaultRegistrantProfileOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SetDefaultRegistrantProfileOutcome(SetDefaultRegistrantProfileResult(outcome.result()));
|
||||
else
|
||||
return SetDefaultRegistrantProfileOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DomainClient::setDefaultRegistrantProfileAsync(const SetDefaultRegistrantProfileRequest& request, const SetDefaultRegistrantProfileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, setDefaultRegistrantProfile(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DomainClient::SetDefaultRegistrantProfileOutcomeCallable DomainClient::setDefaultRegistrantProfileCallable(const SetDefaultRegistrantProfileRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SetDefaultRegistrantProfileOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->setDefaultRegistrantProfile(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DomainClient::SubmitEmailVerificationOutcome DomainClient::submitEmailVerification(const SubmitEmailVerificationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
51
domain/src/model/DeleteContactTemplatesRequest.cc
Normal file
51
domain/src/model/DeleteContactTemplatesRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/domain/model/DeleteContactTemplatesRequest.h>
|
||||
|
||||
using AlibabaCloud::Domain::Model::DeleteContactTemplatesRequest;
|
||||
|
||||
DeleteContactTemplatesRequest::DeleteContactTemplatesRequest() :
|
||||
RpcServiceRequest("domain", "2018-01-29", "DeleteContactTemplates")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteContactTemplatesRequest::~DeleteContactTemplatesRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteContactTemplatesRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
}
|
||||
|
||||
void DeleteContactTemplatesRequest::setUserClientIp(const std::string& userClientIp)
|
||||
{
|
||||
userClientIp_ = userClientIp;
|
||||
setParameter("UserClientIp", userClientIp);
|
||||
}
|
||||
|
||||
std::string DeleteContactTemplatesRequest::getRegistrantProfileIds()const
|
||||
{
|
||||
return registrantProfileIds_;
|
||||
}
|
||||
|
||||
void DeleteContactTemplatesRequest::setRegistrantProfileIds(const std::string& registrantProfileIds)
|
||||
{
|
||||
registrantProfileIds_ = registrantProfileIds;
|
||||
setParameter("RegistrantProfileIds", registrantProfileIds);
|
||||
}
|
||||
|
||||
44
domain/src/model/DeleteContactTemplatesResult.cc
Normal file
44
domain/src/model/DeleteContactTemplatesResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/domain/model/DeleteContactTemplatesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Domain;
|
||||
using namespace AlibabaCloud::Domain::Model;
|
||||
|
||||
DeleteContactTemplatesResult::DeleteContactTemplatesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteContactTemplatesResult::DeleteContactTemplatesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteContactTemplatesResult::~DeleteContactTemplatesResult()
|
||||
{}
|
||||
|
||||
void DeleteContactTemplatesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,293 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/domain/model/SaveRegistrantProfileRealNameVerificationRequest.h>
|
||||
|
||||
using AlibabaCloud::Domain::Model::SaveRegistrantProfileRealNameVerificationRequest;
|
||||
|
||||
SaveRegistrantProfileRealNameVerificationRequest::SaveRegistrantProfileRealNameVerificationRequest() :
|
||||
RpcServiceRequest("domain", "2018-01-29", "SaveRegistrantProfileRealNameVerification")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SaveRegistrantProfileRealNameVerificationRequest::~SaveRegistrantProfileRealNameVerificationRequest()
|
||||
{}
|
||||
|
||||
std::string SaveRegistrantProfileRealNameVerificationRequest::getCountry()const
|
||||
{
|
||||
return country_;
|
||||
}
|
||||
|
||||
void SaveRegistrantProfileRealNameVerificationRequest::setCountry(const std::string& country)
|
||||
{
|
||||
country_ = country;
|
||||
setParameter("Country", country);
|
||||
}
|
||||
|
||||
std::string SaveRegistrantProfileRealNameVerificationRequest::getIdentityCredentialType()const
|
||||
{
|
||||
return identityCredentialType_;
|
||||
}
|
||||
|
||||
void SaveRegistrantProfileRealNameVerificationRequest::setIdentityCredentialType(const std::string& identityCredentialType)
|
||||
{
|
||||
identityCredentialType_ = identityCredentialType;
|
||||
setParameter("IdentityCredentialType", identityCredentialType);
|
||||
}
|
||||
|
||||
std::string SaveRegistrantProfileRealNameVerificationRequest::getCity()const
|
||||
{
|
||||
return city_;
|
||||
}
|
||||
|
||||
void SaveRegistrantProfileRealNameVerificationRequest::setCity(const std::string& city)
|
||||
{
|
||||
city_ = city;
|
||||
setParameter("City", city);
|
||||
}
|
||||
|
||||
long SaveRegistrantProfileRealNameVerificationRequest::getRegistrantProfileId()const
|
||||
{
|
||||
return registrantProfileId_;
|
||||
}
|
||||
|
||||
void SaveRegistrantProfileRealNameVerificationRequest::setRegistrantProfileId(long registrantProfileId)
|
||||
{
|
||||
registrantProfileId_ = registrantProfileId;
|
||||
setParameter("RegistrantProfileId", std::to_string(registrantProfileId));
|
||||
}
|
||||
|
||||
std::string SaveRegistrantProfileRealNameVerificationRequest::getIdentityCredential()const
|
||||
{
|
||||
return identityCredential_;
|
||||
}
|
||||
|
||||
void SaveRegistrantProfileRealNameVerificationRequest::setIdentityCredential(const std::string& identityCredential)
|
||||
{
|
||||
identityCredential_ = identityCredential;
|
||||
setParameter("IdentityCredential", identityCredential);
|
||||
}
|
||||
|
||||
std::string SaveRegistrantProfileRealNameVerificationRequest::getZhCity()const
|
||||
{
|
||||
return zhCity_;
|
||||
}
|
||||
|
||||
void SaveRegistrantProfileRealNameVerificationRequest::setZhCity(const std::string& zhCity)
|
||||
{
|
||||
zhCity_ = zhCity;
|
||||
setParameter("ZhCity", zhCity);
|
||||
}
|
||||
|
||||
std::string SaveRegistrantProfileRealNameVerificationRequest::getTelExt()const
|
||||
{
|
||||
return telExt_;
|
||||
}
|
||||
|
||||
void SaveRegistrantProfileRealNameVerificationRequest::setTelExt(const std::string& telExt)
|
||||
{
|
||||
telExt_ = telExt;
|
||||
setParameter("TelExt", telExt);
|
||||
}
|
||||
|
||||
std::string SaveRegistrantProfileRealNameVerificationRequest::getProvince()const
|
||||
{
|
||||
return province_;
|
||||
}
|
||||
|
||||
void SaveRegistrantProfileRealNameVerificationRequest::setProvince(const std::string& province)
|
||||
{
|
||||
province_ = province;
|
||||
setParameter("Province", province);
|
||||
}
|
||||
|
||||
std::string SaveRegistrantProfileRealNameVerificationRequest::getZhRegistrantName()const
|
||||
{
|
||||
return zhRegistrantName_;
|
||||
}
|
||||
|
||||
void SaveRegistrantProfileRealNameVerificationRequest::setZhRegistrantName(const std::string& zhRegistrantName)
|
||||
{
|
||||
zhRegistrantName_ = zhRegistrantName;
|
||||
setParameter("ZhRegistrantName", zhRegistrantName);
|
||||
}
|
||||
|
||||
std::string SaveRegistrantProfileRealNameVerificationRequest::getPostalCode()const
|
||||
{
|
||||
return postalCode_;
|
||||
}
|
||||
|
||||
void SaveRegistrantProfileRealNameVerificationRequest::setPostalCode(const std::string& postalCode)
|
||||
{
|
||||
postalCode_ = postalCode;
|
||||
setParameter("PostalCode", postalCode);
|
||||
}
|
||||
|
||||
std::string SaveRegistrantProfileRealNameVerificationRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void SaveRegistrantProfileRealNameVerificationRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string SaveRegistrantProfileRealNameVerificationRequest::getEmail()const
|
||||
{
|
||||
return email_;
|
||||
}
|
||||
|
||||
void SaveRegistrantProfileRealNameVerificationRequest::setEmail(const std::string& email)
|
||||
{
|
||||
email_ = email;
|
||||
setParameter("Email", email);
|
||||
}
|
||||
|
||||
std::string SaveRegistrantProfileRealNameVerificationRequest::getZhRegistrantOrganization()const
|
||||
{
|
||||
return zhRegistrantOrganization_;
|
||||
}
|
||||
|
||||
void SaveRegistrantProfileRealNameVerificationRequest::setZhRegistrantOrganization(const std::string& zhRegistrantOrganization)
|
||||
{
|
||||
zhRegistrantOrganization_ = zhRegistrantOrganization;
|
||||
setParameter("ZhRegistrantOrganization", zhRegistrantOrganization);
|
||||
}
|
||||
|
||||
std::string SaveRegistrantProfileRealNameVerificationRequest::getAddress()const
|
||||
{
|
||||
return address_;
|
||||
}
|
||||
|
||||
void SaveRegistrantProfileRealNameVerificationRequest::setAddress(const std::string& address)
|
||||
{
|
||||
address_ = address;
|
||||
setParameter("Address", address);
|
||||
}
|
||||
|
||||
std::string SaveRegistrantProfileRealNameVerificationRequest::getTelArea()const
|
||||
{
|
||||
return telArea_;
|
||||
}
|
||||
|
||||
void SaveRegistrantProfileRealNameVerificationRequest::setTelArea(const std::string& telArea)
|
||||
{
|
||||
telArea_ = telArea;
|
||||
setParameter("TelArea", telArea);
|
||||
}
|
||||
|
||||
std::string SaveRegistrantProfileRealNameVerificationRequest::getZhAddress()const
|
||||
{
|
||||
return zhAddress_;
|
||||
}
|
||||
|
||||
void SaveRegistrantProfileRealNameVerificationRequest::setZhAddress(const std::string& zhAddress)
|
||||
{
|
||||
zhAddress_ = zhAddress;
|
||||
setParameter("ZhAddress", zhAddress);
|
||||
}
|
||||
|
||||
std::string SaveRegistrantProfileRealNameVerificationRequest::getRegistrantType()const
|
||||
{
|
||||
return registrantType_;
|
||||
}
|
||||
|
||||
void SaveRegistrantProfileRealNameVerificationRequest::setRegistrantType(const std::string& registrantType)
|
||||
{
|
||||
registrantType_ = registrantType;
|
||||
setParameter("RegistrantType", registrantType);
|
||||
}
|
||||
|
||||
std::string SaveRegistrantProfileRealNameVerificationRequest::getRegistrantProfileType()const
|
||||
{
|
||||
return registrantProfileType_;
|
||||
}
|
||||
|
||||
void SaveRegistrantProfileRealNameVerificationRequest::setRegistrantProfileType(const std::string& registrantProfileType)
|
||||
{
|
||||
registrantProfileType_ = registrantProfileType;
|
||||
setParameter("RegistrantProfileType", registrantProfileType);
|
||||
}
|
||||
|
||||
std::string SaveRegistrantProfileRealNameVerificationRequest::getTelephone()const
|
||||
{
|
||||
return telephone_;
|
||||
}
|
||||
|
||||
void SaveRegistrantProfileRealNameVerificationRequest::setTelephone(const std::string& telephone)
|
||||
{
|
||||
telephone_ = telephone;
|
||||
setParameter("Telephone", telephone);
|
||||
}
|
||||
|
||||
std::string SaveRegistrantProfileRealNameVerificationRequest::getZhProvince()const
|
||||
{
|
||||
return zhProvince_;
|
||||
}
|
||||
|
||||
void SaveRegistrantProfileRealNameVerificationRequest::setZhProvince(const std::string& zhProvince)
|
||||
{
|
||||
zhProvince_ = zhProvince;
|
||||
setParameter("ZhProvince", zhProvince);
|
||||
}
|
||||
|
||||
std::string SaveRegistrantProfileRealNameVerificationRequest::getRegistrantOrganization()const
|
||||
{
|
||||
return registrantOrganization_;
|
||||
}
|
||||
|
||||
void SaveRegistrantProfileRealNameVerificationRequest::setRegistrantOrganization(const std::string& registrantOrganization)
|
||||
{
|
||||
registrantOrganization_ = registrantOrganization;
|
||||
setParameter("RegistrantOrganization", registrantOrganization);
|
||||
}
|
||||
|
||||
std::string SaveRegistrantProfileRealNameVerificationRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
}
|
||||
|
||||
void SaveRegistrantProfileRealNameVerificationRequest::setUserClientIp(const std::string& userClientIp)
|
||||
{
|
||||
userClientIp_ = userClientIp;
|
||||
setParameter("UserClientIp", userClientIp);
|
||||
}
|
||||
|
||||
std::string SaveRegistrantProfileRealNameVerificationRequest::getIdentityCredentialNo()const
|
||||
{
|
||||
return identityCredentialNo_;
|
||||
}
|
||||
|
||||
void SaveRegistrantProfileRealNameVerificationRequest::setIdentityCredentialNo(const std::string& identityCredentialNo)
|
||||
{
|
||||
identityCredentialNo_ = identityCredentialNo;
|
||||
setParameter("IdentityCredentialNo", identityCredentialNo);
|
||||
}
|
||||
|
||||
std::string SaveRegistrantProfileRealNameVerificationRequest::getRegistrantName()const
|
||||
{
|
||||
return registrantName_;
|
||||
}
|
||||
|
||||
void SaveRegistrantProfileRealNameVerificationRequest::setRegistrantName(const std::string& registrantName)
|
||||
{
|
||||
registrantName_ = registrantName;
|
||||
setParameter("RegistrantName", registrantName);
|
||||
}
|
||||
|
||||
@@ -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/domain/model/SaveRegistrantProfileRealNameVerificationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Domain;
|
||||
using namespace AlibabaCloud::Domain::Model;
|
||||
|
||||
SaveRegistrantProfileRealNameVerificationResult::SaveRegistrantProfileRealNameVerificationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SaveRegistrantProfileRealNameVerificationResult::SaveRegistrantProfileRealNameVerificationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SaveRegistrantProfileRealNameVerificationResult::~SaveRegistrantProfileRealNameVerificationResult()
|
||||
{}
|
||||
|
||||
void SaveRegistrantProfileRealNameVerificationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegistrantProfileId"].isNull())
|
||||
registrantProfileId_ = std::stol(value["RegistrantProfileId"].asString());
|
||||
|
||||
}
|
||||
|
||||
long SaveRegistrantProfileRealNameVerificationResult::getRegistrantProfileId()const
|
||||
{
|
||||
return registrantProfileId_;
|
||||
}
|
||||
|
||||
51
domain/src/model/SetDefaultRegistrantProfileRequest.cc
Normal file
51
domain/src/model/SetDefaultRegistrantProfileRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/domain/model/SetDefaultRegistrantProfileRequest.h>
|
||||
|
||||
using AlibabaCloud::Domain::Model::SetDefaultRegistrantProfileRequest;
|
||||
|
||||
SetDefaultRegistrantProfileRequest::SetDefaultRegistrantProfileRequest() :
|
||||
RpcServiceRequest("domain", "2018-01-29", "SetDefaultRegistrantProfile")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetDefaultRegistrantProfileRequest::~SetDefaultRegistrantProfileRequest()
|
||||
{}
|
||||
|
||||
long SetDefaultRegistrantProfileRequest::getRegistrantProfileId()const
|
||||
{
|
||||
return registrantProfileId_;
|
||||
}
|
||||
|
||||
void SetDefaultRegistrantProfileRequest::setRegistrantProfileId(long registrantProfileId)
|
||||
{
|
||||
registrantProfileId_ = registrantProfileId;
|
||||
setParameter("RegistrantProfileId", std::to_string(registrantProfileId));
|
||||
}
|
||||
|
||||
std::string SetDefaultRegistrantProfileRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
}
|
||||
|
||||
void SetDefaultRegistrantProfileRequest::setUserClientIp(const std::string& userClientIp)
|
||||
{
|
||||
userClientIp_ = userClientIp;
|
||||
setParameter("UserClientIp", userClientIp);
|
||||
}
|
||||
|
||||
44
domain/src/model/SetDefaultRegistrantProfileResult.cc
Normal file
44
domain/src/model/SetDefaultRegistrantProfileResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/domain/model/SetDefaultRegistrantProfileResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Domain;
|
||||
using namespace AlibabaCloud::Domain::Model;
|
||||
|
||||
SetDefaultRegistrantProfileResult::SetDefaultRegistrantProfileResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetDefaultRegistrantProfileResult::SetDefaultRegistrantProfileResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetDefaultRegistrantProfileResult::~SetDefaultRegistrantProfileResult()
|
||||
{}
|
||||
|
||||
void SetDefaultRegistrantProfileResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user