diff --git a/CHANGELOG b/CHANGELOG index 85759eea2..aaddabc63 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +2021-03-12 Version: patch +- Supported batch delete for contact template. +- Supported save for contact template. +- Supported set default for contact template. + 2021-03-11 Version: patch - Update DetectIPCPedestrian. diff --git a/domain/CMakeLists.txt b/domain/CMakeLists.txt index b98f728ae..e36b1a96d 100644 --- a/domain/CMakeLists.txt +++ b/domain/CMakeLists.txt @@ -51,6 +51,8 @@ set(domain_public_header_model include/alibabacloud/domain/model/CheckTransferInFeasibilityResult.h include/alibabacloud/domain/model/ConfirmTransferInEmailRequest.h include/alibabacloud/domain/model/ConfirmTransferInEmailResult.h + include/alibabacloud/domain/model/DeleteContactTemplatesRequest.h + include/alibabacloud/domain/model/DeleteContactTemplatesResult.h include/alibabacloud/domain/model/DeleteDomainGroupRequest.h include/alibabacloud/domain/model/DeleteDomainGroupResult.h include/alibabacloud/domain/model/DeleteEmailVerificationRequest.h @@ -199,6 +201,8 @@ set(domain_public_header_model include/alibabacloud/domain/model/SaveDomainGroupResult.h include/alibabacloud/domain/model/SaveRegistrantProfileRequest.h include/alibabacloud/domain/model/SaveRegistrantProfileResult.h + include/alibabacloud/domain/model/SaveRegistrantProfileRealNameVerificationRequest.h + include/alibabacloud/domain/model/SaveRegistrantProfileRealNameVerificationResult.h include/alibabacloud/domain/model/SaveSingleTaskForAddingDSRecordRequest.h include/alibabacloud/domain/model/SaveSingleTaskForAddingDSRecordResult.h include/alibabacloud/domain/model/SaveSingleTaskForApprovingTransferOutRequest.h @@ -257,6 +261,8 @@ set(domain_public_header_model include/alibabacloud/domain/model/SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResult.h include/alibabacloud/domain/model/ScrollDomainListRequest.h include/alibabacloud/domain/model/ScrollDomainListResult.h + include/alibabacloud/domain/model/SetDefaultRegistrantProfileRequest.h + include/alibabacloud/domain/model/SetDefaultRegistrantProfileResult.h include/alibabacloud/domain/model/SubmitEmailVerificationRequest.h include/alibabacloud/domain/model/SubmitEmailVerificationResult.h include/alibabacloud/domain/model/SubmitOperationAuditInfoRequest.h @@ -310,6 +316,8 @@ set(domain_src src/model/CheckTransferInFeasibilityResult.cc src/model/ConfirmTransferInEmailRequest.cc src/model/ConfirmTransferInEmailResult.cc + src/model/DeleteContactTemplatesRequest.cc + src/model/DeleteContactTemplatesResult.cc src/model/DeleteDomainGroupRequest.cc src/model/DeleteDomainGroupResult.cc src/model/DeleteEmailVerificationRequest.cc @@ -458,6 +466,8 @@ set(domain_src src/model/SaveDomainGroupResult.cc src/model/SaveRegistrantProfileRequest.cc src/model/SaveRegistrantProfileResult.cc + src/model/SaveRegistrantProfileRealNameVerificationRequest.cc + src/model/SaveRegistrantProfileRealNameVerificationResult.cc src/model/SaveSingleTaskForAddingDSRecordRequest.cc src/model/SaveSingleTaskForAddingDSRecordResult.cc src/model/SaveSingleTaskForApprovingTransferOutRequest.cc @@ -516,6 +526,8 @@ set(domain_src src/model/SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResult.cc src/model/ScrollDomainListRequest.cc src/model/ScrollDomainListResult.cc + src/model/SetDefaultRegistrantProfileRequest.cc + src/model/SetDefaultRegistrantProfileResult.cc src/model/SubmitEmailVerificationRequest.cc src/model/SubmitEmailVerificationResult.cc src/model/SubmitOperationAuditInfoRequest.cc diff --git a/domain/include/alibabacloud/domain/DomainClient.h b/domain/include/alibabacloud/domain/DomainClient.h index 874df78a6..de944704c 100644 --- a/domain/include/alibabacloud/domain/DomainClient.h +++ b/domain/include/alibabacloud/domain/DomainClient.h @@ -52,6 +52,8 @@ #include "model/CheckTransferInFeasibilityResult.h" #include "model/ConfirmTransferInEmailRequest.h" #include "model/ConfirmTransferInEmailResult.h" +#include "model/DeleteContactTemplatesRequest.h" +#include "model/DeleteContactTemplatesResult.h" #include "model/DeleteDomainGroupRequest.h" #include "model/DeleteDomainGroupResult.h" #include "model/DeleteEmailVerificationRequest.h" @@ -200,6 +202,8 @@ #include "model/SaveDomainGroupResult.h" #include "model/SaveRegistrantProfileRequest.h" #include "model/SaveRegistrantProfileResult.h" +#include "model/SaveRegistrantProfileRealNameVerificationRequest.h" +#include "model/SaveRegistrantProfileRealNameVerificationResult.h" #include "model/SaveSingleTaskForAddingDSRecordRequest.h" #include "model/SaveSingleTaskForAddingDSRecordResult.h" #include "model/SaveSingleTaskForApprovingTransferOutRequest.h" @@ -258,6 +262,8 @@ #include "model/SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResult.h" #include "model/ScrollDomainListRequest.h" #include "model/ScrollDomainListResult.h" +#include "model/SetDefaultRegistrantProfileRequest.h" +#include "model/SetDefaultRegistrantProfileResult.h" #include "model/SubmitEmailVerificationRequest.h" #include "model/SubmitEmailVerificationResult.h" #include "model/SubmitOperationAuditInfoRequest.h" @@ -332,6 +338,9 @@ namespace AlibabaCloud typedef Outcome ConfirmTransferInEmailOutcome; typedef std::future ConfirmTransferInEmailOutcomeCallable; typedef std::function&)> ConfirmTransferInEmailAsyncHandler; + typedef Outcome DeleteContactTemplatesOutcome; + typedef std::future DeleteContactTemplatesOutcomeCallable; + typedef std::function&)> DeleteContactTemplatesAsyncHandler; typedef Outcome DeleteDomainGroupOutcome; typedef std::future DeleteDomainGroupOutcomeCallable; typedef std::function&)> DeleteDomainGroupAsyncHandler; @@ -554,6 +563,9 @@ namespace AlibabaCloud typedef Outcome SaveRegistrantProfileOutcome; typedef std::future SaveRegistrantProfileOutcomeCallable; typedef std::function&)> SaveRegistrantProfileAsyncHandler; + typedef Outcome SaveRegistrantProfileRealNameVerificationOutcome; + typedef std::future SaveRegistrantProfileRealNameVerificationOutcomeCallable; + typedef std::function&)> SaveRegistrantProfileRealNameVerificationAsyncHandler; typedef Outcome SaveSingleTaskForAddingDSRecordOutcome; typedef std::future SaveSingleTaskForAddingDSRecordOutcomeCallable; typedef std::function&)> SaveSingleTaskForAddingDSRecordAsyncHandler; @@ -641,6 +653,9 @@ namespace AlibabaCloud typedef Outcome ScrollDomainListOutcome; typedef std::future ScrollDomainListOutcomeCallable; typedef std::function&)> ScrollDomainListAsyncHandler; + typedef Outcome SetDefaultRegistrantProfileOutcome; + typedef std::future SetDefaultRegistrantProfileOutcomeCallable; + typedef std::function&)> SetDefaultRegistrantProfileAsyncHandler; typedef Outcome SubmitEmailVerificationOutcome; typedef std::future SubmitEmailVerificationOutcomeCallable; typedef std::function&)> SubmitEmailVerificationAsyncHandler; @@ -721,6 +736,9 @@ namespace AlibabaCloud ConfirmTransferInEmailOutcome confirmTransferInEmail(const Model::ConfirmTransferInEmailRequest &request)const; void confirmTransferInEmailAsync(const Model::ConfirmTransferInEmailRequest& request, const ConfirmTransferInEmailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ConfirmTransferInEmailOutcomeCallable confirmTransferInEmailCallable(const Model::ConfirmTransferInEmailRequest& request) const; + DeleteContactTemplatesOutcome deleteContactTemplates(const Model::DeleteContactTemplatesRequest &request)const; + void deleteContactTemplatesAsync(const Model::DeleteContactTemplatesRequest& request, const DeleteContactTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteContactTemplatesOutcomeCallable deleteContactTemplatesCallable(const Model::DeleteContactTemplatesRequest& request) const; DeleteDomainGroupOutcome deleteDomainGroup(const Model::DeleteDomainGroupRequest &request)const; void deleteDomainGroupAsync(const Model::DeleteDomainGroupRequest& request, const DeleteDomainGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDomainGroupOutcomeCallable deleteDomainGroupCallable(const Model::DeleteDomainGroupRequest& request) const; @@ -943,6 +961,9 @@ namespace AlibabaCloud SaveRegistrantProfileOutcome saveRegistrantProfile(const Model::SaveRegistrantProfileRequest &request)const; void saveRegistrantProfileAsync(const Model::SaveRegistrantProfileRequest& request, const SaveRegistrantProfileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveRegistrantProfileOutcomeCallable saveRegistrantProfileCallable(const Model::SaveRegistrantProfileRequest& request) const; + SaveRegistrantProfileRealNameVerificationOutcome saveRegistrantProfileRealNameVerification(const Model::SaveRegistrantProfileRealNameVerificationRequest &request)const; + void saveRegistrantProfileRealNameVerificationAsync(const Model::SaveRegistrantProfileRealNameVerificationRequest& request, const SaveRegistrantProfileRealNameVerificationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveRegistrantProfileRealNameVerificationOutcomeCallable saveRegistrantProfileRealNameVerificationCallable(const Model::SaveRegistrantProfileRealNameVerificationRequest& request) const; SaveSingleTaskForAddingDSRecordOutcome saveSingleTaskForAddingDSRecord(const Model::SaveSingleTaskForAddingDSRecordRequest &request)const; void saveSingleTaskForAddingDSRecordAsync(const Model::SaveSingleTaskForAddingDSRecordRequest& request, const SaveSingleTaskForAddingDSRecordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveSingleTaskForAddingDSRecordOutcomeCallable saveSingleTaskForAddingDSRecordCallable(const Model::SaveSingleTaskForAddingDSRecordRequest& request) const; @@ -1030,6 +1051,9 @@ namespace AlibabaCloud ScrollDomainListOutcome scrollDomainList(const Model::ScrollDomainListRequest &request)const; void scrollDomainListAsync(const Model::ScrollDomainListRequest& request, const ScrollDomainListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ScrollDomainListOutcomeCallable scrollDomainListCallable(const Model::ScrollDomainListRequest& request) const; + SetDefaultRegistrantProfileOutcome setDefaultRegistrantProfile(const Model::SetDefaultRegistrantProfileRequest &request)const; + void setDefaultRegistrantProfileAsync(const Model::SetDefaultRegistrantProfileRequest& request, const SetDefaultRegistrantProfileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetDefaultRegistrantProfileOutcomeCallable setDefaultRegistrantProfileCallable(const Model::SetDefaultRegistrantProfileRequest& request) const; SubmitEmailVerificationOutcome submitEmailVerification(const Model::SubmitEmailVerificationRequest &request)const; void submitEmailVerificationAsync(const Model::SubmitEmailVerificationRequest& request, const SubmitEmailVerificationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitEmailVerificationOutcomeCallable submitEmailVerificationCallable(const Model::SubmitEmailVerificationRequest& request) const; diff --git a/domain/include/alibabacloud/domain/model/DeleteContactTemplatesRequest.h b/domain/include/alibabacloud/domain/model/DeleteContactTemplatesRequest.h new file mode 100644 index 000000000..77a13f5ce --- /dev/null +++ b/domain/include/alibabacloud/domain/model/DeleteContactTemplatesRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DOMAIN_MODEL_DELETECONTACTTEMPLATESREQUEST_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_DELETECONTACTTEMPLATESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT DeleteContactTemplatesRequest : public RpcServiceRequest + { + + public: + DeleteContactTemplatesRequest(); + ~DeleteContactTemplatesRequest(); + + std::string getUserClientIp()const; + void setUserClientIp(const std::string& userClientIp); + std::string getRegistrantProfileIds()const; + void setRegistrantProfileIds(const std::string& registrantProfileIds); + + private: + std::string userClientIp_; + std::string registrantProfileIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_DELETECONTACTTEMPLATESREQUEST_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/DeleteContactTemplatesResult.h b/domain/include/alibabacloud/domain/model/DeleteContactTemplatesResult.h new file mode 100644 index 000000000..462fc13f5 --- /dev/null +++ b/domain/include/alibabacloud/domain/model/DeleteContactTemplatesResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DOMAIN_MODEL_DELETECONTACTTEMPLATESRESULT_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_DELETECONTACTTEMPLATESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT DeleteContactTemplatesResult : public ServiceResult + { + public: + + + DeleteContactTemplatesResult(); + explicit DeleteContactTemplatesResult(const std::string &payload); + ~DeleteContactTemplatesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_DELETECONTACTTEMPLATESRESULT_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/SaveRegistrantProfileRealNameVerificationRequest.h b/domain/include/alibabacloud/domain/model/SaveRegistrantProfileRealNameVerificationRequest.h new file mode 100644 index 000000000..b83823e47 --- /dev/null +++ b/domain/include/alibabacloud/domain/model/SaveRegistrantProfileRealNameVerificationRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DOMAIN_MODEL_SAVEREGISTRANTPROFILEREALNAMEVERIFICATIONREQUEST_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_SAVEREGISTRANTPROFILEREALNAMEVERIFICATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT SaveRegistrantProfileRealNameVerificationRequest : public RpcServiceRequest + { + + public: + SaveRegistrantProfileRealNameVerificationRequest(); + ~SaveRegistrantProfileRealNameVerificationRequest(); + + std::string getCountry()const; + void setCountry(const std::string& country); + std::string getIdentityCredentialType()const; + void setIdentityCredentialType(const std::string& identityCredentialType); + std::string getCity()const; + void setCity(const std::string& city); + long getRegistrantProfileId()const; + void setRegistrantProfileId(long registrantProfileId); + std::string getIdentityCredential()const; + void setIdentityCredential(const std::string& identityCredential); + std::string getZhCity()const; + void setZhCity(const std::string& zhCity); + std::string getTelExt()const; + void setTelExt(const std::string& telExt); + std::string getProvince()const; + void setProvince(const std::string& province); + std::string getZhRegistrantName()const; + void setZhRegistrantName(const std::string& zhRegistrantName); + std::string getPostalCode()const; + void setPostalCode(const std::string& postalCode); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getEmail()const; + void setEmail(const std::string& email); + std::string getZhRegistrantOrganization()const; + void setZhRegistrantOrganization(const std::string& zhRegistrantOrganization); + std::string getAddress()const; + void setAddress(const std::string& address); + std::string getTelArea()const; + void setTelArea(const std::string& telArea); + std::string getZhAddress()const; + void setZhAddress(const std::string& zhAddress); + std::string getRegistrantType()const; + void setRegistrantType(const std::string& registrantType); + std::string getRegistrantProfileType()const; + void setRegistrantProfileType(const std::string& registrantProfileType); + std::string getTelephone()const; + void setTelephone(const std::string& telephone); + std::string getZhProvince()const; + void setZhProvince(const std::string& zhProvince); + std::string getRegistrantOrganization()const; + void setRegistrantOrganization(const std::string& registrantOrganization); + std::string getUserClientIp()const; + void setUserClientIp(const std::string& userClientIp); + std::string getIdentityCredentialNo()const; + void setIdentityCredentialNo(const std::string& identityCredentialNo); + std::string getRegistrantName()const; + void setRegistrantName(const std::string& registrantName); + + private: + std::string country_; + std::string identityCredentialType_; + std::string city_; + long registrantProfileId_; + std::string identityCredential_; + std::string zhCity_; + std::string telExt_; + std::string province_; + std::string zhRegistrantName_; + std::string postalCode_; + std::string lang_; + std::string email_; + std::string zhRegistrantOrganization_; + std::string address_; + std::string telArea_; + std::string zhAddress_; + std::string registrantType_; + std::string registrantProfileType_; + std::string telephone_; + std::string zhProvince_; + std::string registrantOrganization_; + std::string userClientIp_; + std::string identityCredentialNo_; + std::string registrantName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_SAVEREGISTRANTPROFILEREALNAMEVERIFICATIONREQUEST_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/SaveRegistrantProfileRealNameVerificationResult.h b/domain/include/alibabacloud/domain/model/SaveRegistrantProfileRealNameVerificationResult.h new file mode 100644 index 000000000..d976291ad --- /dev/null +++ b/domain/include/alibabacloud/domain/model/SaveRegistrantProfileRealNameVerificationResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DOMAIN_MODEL_SAVEREGISTRANTPROFILEREALNAMEVERIFICATIONRESULT_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_SAVEREGISTRANTPROFILEREALNAMEVERIFICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT SaveRegistrantProfileRealNameVerificationResult : public ServiceResult + { + public: + + + SaveRegistrantProfileRealNameVerificationResult(); + explicit SaveRegistrantProfileRealNameVerificationResult(const std::string &payload); + ~SaveRegistrantProfileRealNameVerificationResult(); + long getRegistrantProfileId()const; + + protected: + void parse(const std::string &payload); + private: + long registrantProfileId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_SAVEREGISTRANTPROFILEREALNAMEVERIFICATIONRESULT_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/SetDefaultRegistrantProfileRequest.h b/domain/include/alibabacloud/domain/model/SetDefaultRegistrantProfileRequest.h new file mode 100644 index 000000000..03c148f9e --- /dev/null +++ b/domain/include/alibabacloud/domain/model/SetDefaultRegistrantProfileRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DOMAIN_MODEL_SETDEFAULTREGISTRANTPROFILEREQUEST_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_SETDEFAULTREGISTRANTPROFILEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT SetDefaultRegistrantProfileRequest : public RpcServiceRequest + { + + public: + SetDefaultRegistrantProfileRequest(); + ~SetDefaultRegistrantProfileRequest(); + + long getRegistrantProfileId()const; + void setRegistrantProfileId(long registrantProfileId); + std::string getUserClientIp()const; + void setUserClientIp(const std::string& userClientIp); + + private: + long registrantProfileId_; + std::string userClientIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_SETDEFAULTREGISTRANTPROFILEREQUEST_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/SetDefaultRegistrantProfileResult.h b/domain/include/alibabacloud/domain/model/SetDefaultRegistrantProfileResult.h new file mode 100644 index 000000000..5c491ec02 --- /dev/null +++ b/domain/include/alibabacloud/domain/model/SetDefaultRegistrantProfileResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DOMAIN_MODEL_SETDEFAULTREGISTRANTPROFILERESULT_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_SETDEFAULTREGISTRANTPROFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT SetDefaultRegistrantProfileResult : public ServiceResult + { + public: + + + SetDefaultRegistrantProfileResult(); + explicit SetDefaultRegistrantProfileResult(const std::string &payload); + ~SetDefaultRegistrantProfileResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_SETDEFAULTREGISTRANTPROFILERESULT_H_ \ No newline at end of file diff --git a/domain/src/DomainClient.cc b/domain/src/DomainClient.cc index 7e03d797d..031589e17 100644 --- a/domain/src/DomainClient.cc +++ b/domain/src/DomainClient.cc @@ -31,21 +31,21 @@ DomainClient::DomainClient(const Credentials &credentials, const ClientConfigura RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "domain"); } DomainClient::DomainClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(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(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(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& 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>( + [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& 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>( + [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& 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>( + [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(); diff --git a/domain/src/model/DeleteContactTemplatesRequest.cc b/domain/src/model/DeleteContactTemplatesRequest.cc new file mode 100644 index 000000000..6b5b8aaa9 --- /dev/null +++ b/domain/src/model/DeleteContactTemplatesRequest.cc @@ -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 + +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); +} + diff --git a/domain/src/model/DeleteContactTemplatesResult.cc b/domain/src/model/DeleteContactTemplatesResult.cc new file mode 100644 index 000000000..2e45f55d8 --- /dev/null +++ b/domain/src/model/DeleteContactTemplatesResult.cc @@ -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 +#include + +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()); + +} + diff --git a/domain/src/model/SaveRegistrantProfileRealNameVerificationRequest.cc b/domain/src/model/SaveRegistrantProfileRealNameVerificationRequest.cc new file mode 100644 index 000000000..cc56c8987 --- /dev/null +++ b/domain/src/model/SaveRegistrantProfileRealNameVerificationRequest.cc @@ -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 + +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); +} + diff --git a/domain/src/model/SaveRegistrantProfileRealNameVerificationResult.cc b/domain/src/model/SaveRegistrantProfileRealNameVerificationResult.cc new file mode 100644 index 000000000..39369111a --- /dev/null +++ b/domain/src/model/SaveRegistrantProfileRealNameVerificationResult.cc @@ -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 +#include + +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_; +} + diff --git a/domain/src/model/SetDefaultRegistrantProfileRequest.cc b/domain/src/model/SetDefaultRegistrantProfileRequest.cc new file mode 100644 index 000000000..b81c1af8f --- /dev/null +++ b/domain/src/model/SetDefaultRegistrantProfileRequest.cc @@ -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 + +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); +} + diff --git a/domain/src/model/SetDefaultRegistrantProfileResult.cc b/domain/src/model/SetDefaultRegistrantProfileResult.cc new file mode 100644 index 000000000..21f363852 --- /dev/null +++ b/domain/src/model/SetDefaultRegistrantProfileResult.cc @@ -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 +#include + +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()); + +} +