Supported RingConfig for BindAxb,BindAxn,BindAxg,BindAxnExtension.

This commit is contained in:
sdk-team
2019-09-26 10:55:03 +08:00
parent 0a74578464
commit e5ca2d25d5
66 changed files with 6091 additions and 1 deletions

View File

@@ -0,0 +1,593 @@
/*
* 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/dyplsapi/DyplsapiClient.h>
#include <alibabacloud/core/SimpleCredentialsProvider.h>
using namespace AlibabaCloud;
using namespace AlibabaCloud::Location;
using namespace AlibabaCloud::Dyplsapi;
using namespace AlibabaCloud::Dyplsapi::Model;
namespace
{
const std::string SERVICE_NAME = "Dyplsapi";
}
DyplsapiClient::DyplsapiClient(const Credentials &credentials, const ClientConfiguration &configuration) :
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, "dypls");
}
DyplsapiClient::DyplsapiClient(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, "dypls");
}
DyplsapiClient::DyplsapiClient(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, "dypls");
}
DyplsapiClient::~DyplsapiClient()
{}
DyplsapiClient::BindAxbOutcome DyplsapiClient::bindAxb(const BindAxbRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return BindAxbOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return BindAxbOutcome(BindAxbResult(outcome.result()));
else
return BindAxbOutcome(outcome.error());
}
void DyplsapiClient::bindAxbAsync(const BindAxbRequest& request, const BindAxbAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, bindAxb(request), context);
};
asyncExecute(new Runnable(fn));
}
DyplsapiClient::BindAxbOutcomeCallable DyplsapiClient::bindAxbCallable(const BindAxbRequest &request) const
{
auto task = std::make_shared<std::packaged_task<BindAxbOutcome()>>(
[this, request]()
{
return this->bindAxb(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyplsapiClient::BindAxgOutcome DyplsapiClient::bindAxg(const BindAxgRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return BindAxgOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return BindAxgOutcome(BindAxgResult(outcome.result()));
else
return BindAxgOutcome(outcome.error());
}
void DyplsapiClient::bindAxgAsync(const BindAxgRequest& request, const BindAxgAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, bindAxg(request), context);
};
asyncExecute(new Runnable(fn));
}
DyplsapiClient::BindAxgOutcomeCallable DyplsapiClient::bindAxgCallable(const BindAxgRequest &request) const
{
auto task = std::make_shared<std::packaged_task<BindAxgOutcome()>>(
[this, request]()
{
return this->bindAxg(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyplsapiClient::BindAxnOutcome DyplsapiClient::bindAxn(const BindAxnRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return BindAxnOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return BindAxnOutcome(BindAxnResult(outcome.result()));
else
return BindAxnOutcome(outcome.error());
}
void DyplsapiClient::bindAxnAsync(const BindAxnRequest& request, const BindAxnAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, bindAxn(request), context);
};
asyncExecute(new Runnable(fn));
}
DyplsapiClient::BindAxnOutcomeCallable DyplsapiClient::bindAxnCallable(const BindAxnRequest &request) const
{
auto task = std::make_shared<std::packaged_task<BindAxnOutcome()>>(
[this, request]()
{
return this->bindAxn(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyplsapiClient::BindAxnExtensionOutcome DyplsapiClient::bindAxnExtension(const BindAxnExtensionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return BindAxnExtensionOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return BindAxnExtensionOutcome(BindAxnExtensionResult(outcome.result()));
else
return BindAxnExtensionOutcome(outcome.error());
}
void DyplsapiClient::bindAxnExtensionAsync(const BindAxnExtensionRequest& request, const BindAxnExtensionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, bindAxnExtension(request), context);
};
asyncExecute(new Runnable(fn));
}
DyplsapiClient::BindAxnExtensionOutcomeCallable DyplsapiClient::bindAxnExtensionCallable(const BindAxnExtensionRequest &request) const
{
auto task = std::make_shared<std::packaged_task<BindAxnExtensionOutcome()>>(
[this, request]()
{
return this->bindAxnExtension(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyplsapiClient::BuySecretNoOutcome DyplsapiClient::buySecretNo(const BuySecretNoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return BuySecretNoOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return BuySecretNoOutcome(BuySecretNoResult(outcome.result()));
else
return BuySecretNoOutcome(outcome.error());
}
void DyplsapiClient::buySecretNoAsync(const BuySecretNoRequest& request, const BuySecretNoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, buySecretNo(request), context);
};
asyncExecute(new Runnable(fn));
}
DyplsapiClient::BuySecretNoOutcomeCallable DyplsapiClient::buySecretNoCallable(const BuySecretNoRequest &request) const
{
auto task = std::make_shared<std::packaged_task<BuySecretNoOutcome()>>(
[this, request]()
{
return this->buySecretNo(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyplsapiClient::CreateAxgGroupOutcome DyplsapiClient::createAxgGroup(const CreateAxgGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateAxgGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateAxgGroupOutcome(CreateAxgGroupResult(outcome.result()));
else
return CreateAxgGroupOutcome(outcome.error());
}
void DyplsapiClient::createAxgGroupAsync(const CreateAxgGroupRequest& request, const CreateAxgGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createAxgGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
DyplsapiClient::CreateAxgGroupOutcomeCallable DyplsapiClient::createAxgGroupCallable(const CreateAxgGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateAxgGroupOutcome()>>(
[this, request]()
{
return this->createAxgGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyplsapiClient::OperateAxgGroupOutcome DyplsapiClient::operateAxgGroup(const OperateAxgGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return OperateAxgGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return OperateAxgGroupOutcome(OperateAxgGroupResult(outcome.result()));
else
return OperateAxgGroupOutcome(outcome.error());
}
void DyplsapiClient::operateAxgGroupAsync(const OperateAxgGroupRequest& request, const OperateAxgGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, operateAxgGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
DyplsapiClient::OperateAxgGroupOutcomeCallable DyplsapiClient::operateAxgGroupCallable(const OperateAxgGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<OperateAxgGroupOutcome()>>(
[this, request]()
{
return this->operateAxgGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyplsapiClient::QueryCallStatusOutcome DyplsapiClient::queryCallStatus(const QueryCallStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryCallStatusOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryCallStatusOutcome(QueryCallStatusResult(outcome.result()));
else
return QueryCallStatusOutcome(outcome.error());
}
void DyplsapiClient::queryCallStatusAsync(const QueryCallStatusRequest& request, const QueryCallStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryCallStatus(request), context);
};
asyncExecute(new Runnable(fn));
}
DyplsapiClient::QueryCallStatusOutcomeCallable DyplsapiClient::queryCallStatusCallable(const QueryCallStatusRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryCallStatusOutcome()>>(
[this, request]()
{
return this->queryCallStatus(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyplsapiClient::QueryRecordFileDownloadUrlOutcome DyplsapiClient::queryRecordFileDownloadUrl(const QueryRecordFileDownloadUrlRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryRecordFileDownloadUrlOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryRecordFileDownloadUrlOutcome(QueryRecordFileDownloadUrlResult(outcome.result()));
else
return QueryRecordFileDownloadUrlOutcome(outcome.error());
}
void DyplsapiClient::queryRecordFileDownloadUrlAsync(const QueryRecordFileDownloadUrlRequest& request, const QueryRecordFileDownloadUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryRecordFileDownloadUrl(request), context);
};
asyncExecute(new Runnable(fn));
}
DyplsapiClient::QueryRecordFileDownloadUrlOutcomeCallable DyplsapiClient::queryRecordFileDownloadUrlCallable(const QueryRecordFileDownloadUrlRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryRecordFileDownloadUrlOutcome()>>(
[this, request]()
{
return this->queryRecordFileDownloadUrl(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyplsapiClient::QuerySecretNoRemainOutcome DyplsapiClient::querySecretNoRemain(const QuerySecretNoRemainRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QuerySecretNoRemainOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QuerySecretNoRemainOutcome(QuerySecretNoRemainResult(outcome.result()));
else
return QuerySecretNoRemainOutcome(outcome.error());
}
void DyplsapiClient::querySecretNoRemainAsync(const QuerySecretNoRemainRequest& request, const QuerySecretNoRemainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, querySecretNoRemain(request), context);
};
asyncExecute(new Runnable(fn));
}
DyplsapiClient::QuerySecretNoRemainOutcomeCallable DyplsapiClient::querySecretNoRemainCallable(const QuerySecretNoRemainRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QuerySecretNoRemainOutcome()>>(
[this, request]()
{
return this->querySecretNoRemain(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyplsapiClient::QuerySubsIdOutcome DyplsapiClient::querySubsId(const QuerySubsIdRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QuerySubsIdOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QuerySubsIdOutcome(QuerySubsIdResult(outcome.result()));
else
return QuerySubsIdOutcome(outcome.error());
}
void DyplsapiClient::querySubsIdAsync(const QuerySubsIdRequest& request, const QuerySubsIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, querySubsId(request), context);
};
asyncExecute(new Runnable(fn));
}
DyplsapiClient::QuerySubsIdOutcomeCallable DyplsapiClient::querySubsIdCallable(const QuerySubsIdRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QuerySubsIdOutcome()>>(
[this, request]()
{
return this->querySubsId(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyplsapiClient::QuerySubscriptionDetailOutcome DyplsapiClient::querySubscriptionDetail(const QuerySubscriptionDetailRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QuerySubscriptionDetailOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QuerySubscriptionDetailOutcome(QuerySubscriptionDetailResult(outcome.result()));
else
return QuerySubscriptionDetailOutcome(outcome.error());
}
void DyplsapiClient::querySubscriptionDetailAsync(const QuerySubscriptionDetailRequest& request, const QuerySubscriptionDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, querySubscriptionDetail(request), context);
};
asyncExecute(new Runnable(fn));
}
DyplsapiClient::QuerySubscriptionDetailOutcomeCallable DyplsapiClient::querySubscriptionDetailCallable(const QuerySubscriptionDetailRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QuerySubscriptionDetailOutcome()>>(
[this, request]()
{
return this->querySubscriptionDetail(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyplsapiClient::ReleaseSecretNoOutcome DyplsapiClient::releaseSecretNo(const ReleaseSecretNoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ReleaseSecretNoOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ReleaseSecretNoOutcome(ReleaseSecretNoResult(outcome.result()));
else
return ReleaseSecretNoOutcome(outcome.error());
}
void DyplsapiClient::releaseSecretNoAsync(const ReleaseSecretNoRequest& request, const ReleaseSecretNoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, releaseSecretNo(request), context);
};
asyncExecute(new Runnable(fn));
}
DyplsapiClient::ReleaseSecretNoOutcomeCallable DyplsapiClient::releaseSecretNoCallable(const ReleaseSecretNoRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ReleaseSecretNoOutcome()>>(
[this, request]()
{
return this->releaseSecretNo(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyplsapiClient::UnbindSubscriptionOutcome DyplsapiClient::unbindSubscription(const UnbindSubscriptionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UnbindSubscriptionOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UnbindSubscriptionOutcome(UnbindSubscriptionResult(outcome.result()));
else
return UnbindSubscriptionOutcome(outcome.error());
}
void DyplsapiClient::unbindSubscriptionAsync(const UnbindSubscriptionRequest& request, const UnbindSubscriptionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, unbindSubscription(request), context);
};
asyncExecute(new Runnable(fn));
}
DyplsapiClient::UnbindSubscriptionOutcomeCallable DyplsapiClient::unbindSubscriptionCallable(const UnbindSubscriptionRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UnbindSubscriptionOutcome()>>(
[this, request]()
{
return this->unbindSubscription(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyplsapiClient::UpdateSubscriptionOutcome DyplsapiClient::updateSubscription(const UpdateSubscriptionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateSubscriptionOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateSubscriptionOutcome(UpdateSubscriptionResult(outcome.result()));
else
return UpdateSubscriptionOutcome(outcome.error());
}
void DyplsapiClient::updateSubscriptionAsync(const UpdateSubscriptionRequest& request, const UpdateSubscriptionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateSubscription(request), context);
};
asyncExecute(new Runnable(fn));
}
DyplsapiClient::UpdateSubscriptionOutcomeCallable DyplsapiClient::updateSubscriptionCallable(const UpdateSubscriptionRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateSubscriptionOutcome()>>(
[this, request]()
{
return this->updateSubscription(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -0,0 +1,192 @@
/*
* 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/dyplsapi/model/BindAxbRequest.h>
using AlibabaCloud::Dyplsapi::Model::BindAxbRequest;
BindAxbRequest::BindAxbRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "BindAxb")
{}
BindAxbRequest::~BindAxbRequest()
{}
long BindAxbRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void BindAxbRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int BindAxbRequest::getCallDisplayType()const
{
return callDisplayType_;
}
void BindAxbRequest::setCallDisplayType(int callDisplayType)
{
callDisplayType_ = callDisplayType;
setCoreParameter("CallDisplayType", std::to_string(callDisplayType));
}
std::string BindAxbRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void BindAxbRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string BindAxbRequest::getPhoneNoX()const
{
return phoneNoX_;
}
void BindAxbRequest::setPhoneNoX(const std::string& phoneNoX)
{
phoneNoX_ = phoneNoX;
setCoreParameter("PhoneNoX", phoneNoX);
}
std::string BindAxbRequest::getRingConfig()const
{
return ringConfig_;
}
void BindAxbRequest::setRingConfig(const std::string& ringConfig)
{
ringConfig_ = ringConfig;
setCoreParameter("RingConfig", ringConfig);
}
std::string BindAxbRequest::getPhoneNoB()const
{
return phoneNoB_;
}
void BindAxbRequest::setPhoneNoB(const std::string& phoneNoB)
{
phoneNoB_ = phoneNoB;
setCoreParameter("PhoneNoB", phoneNoB);
}
std::string BindAxbRequest::getPhoneNoA()const
{
return phoneNoA_;
}
void BindAxbRequest::setPhoneNoA(const std::string& phoneNoA)
{
phoneNoA_ = phoneNoA;
setCoreParameter("PhoneNoA", phoneNoA);
}
std::string BindAxbRequest::getExpectCity()const
{
return expectCity_;
}
void BindAxbRequest::setExpectCity(const std::string& expectCity)
{
expectCity_ = expectCity;
setCoreParameter("ExpectCity", expectCity);
}
std::string BindAxbRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void BindAxbRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long BindAxbRequest::getOwnerId()const
{
return ownerId_;
}
void BindAxbRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string BindAxbRequest::getOutOrderId()const
{
return outOrderId_;
}
void BindAxbRequest::setOutOrderId(const std::string& outOrderId)
{
outOrderId_ = outOrderId;
setCoreParameter("OutOrderId", outOrderId);
}
std::string BindAxbRequest::getPoolKey()const
{
return poolKey_;
}
void BindAxbRequest::setPoolKey(const std::string& poolKey)
{
poolKey_ = poolKey;
setCoreParameter("PoolKey", poolKey);
}
std::string BindAxbRequest::getExpiration()const
{
return expiration_;
}
void BindAxbRequest::setExpiration(const std::string& expiration)
{
expiration_ = expiration;
setCoreParameter("Expiration", expiration);
}
bool BindAxbRequest::getIsRecordingEnabled()const
{
return isRecordingEnabled_;
}
void BindAxbRequest::setIsRecordingEnabled(bool isRecordingEnabled)
{
isRecordingEnabled_ = isRecordingEnabled;
setCoreParameter("IsRecordingEnabled", isRecordingEnabled ? "true" : "false");
}
std::string BindAxbRequest::getOutId()const
{
return outId_;
}
void BindAxbRequest::setOutId(const std::string& outId)
{
outId_ = outId;
setCoreParameter("OutId", outId);
}

View File

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

View File

@@ -0,0 +1,203 @@
/*
* 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/dyplsapi/model/BindAxgRequest.h>
using AlibabaCloud::Dyplsapi::Model::BindAxgRequest;
BindAxgRequest::BindAxgRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "BindAxg")
{}
BindAxgRequest::~BindAxgRequest()
{}
long BindAxgRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void BindAxgRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int BindAxgRequest::getCallDisplayType()const
{
return callDisplayType_;
}
void BindAxgRequest::setCallDisplayType(int callDisplayType)
{
callDisplayType_ = callDisplayType;
setCoreParameter("CallDisplayType", std::to_string(callDisplayType));
}
std::string BindAxgRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void BindAxgRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string BindAxgRequest::getPhoneNoX()const
{
return phoneNoX_;
}
void BindAxgRequest::setPhoneNoX(const std::string& phoneNoX)
{
phoneNoX_ = phoneNoX;
setCoreParameter("PhoneNoX", phoneNoX);
}
std::string BindAxgRequest::getRingConfig()const
{
return ringConfig_;
}
void BindAxgRequest::setRingConfig(const std::string& ringConfig)
{
ringConfig_ = ringConfig;
setCoreParameter("RingConfig", ringConfig);
}
std::string BindAxgRequest::getPhoneNoB()const
{
return phoneNoB_;
}
void BindAxgRequest::setPhoneNoB(const std::string& phoneNoB)
{
phoneNoB_ = phoneNoB;
setCoreParameter("PhoneNoB", phoneNoB);
}
std::string BindAxgRequest::getPhoneNoA()const
{
return phoneNoA_;
}
void BindAxgRequest::setPhoneNoA(const std::string& phoneNoA)
{
phoneNoA_ = phoneNoA;
setCoreParameter("PhoneNoA", phoneNoA);
}
std::string BindAxgRequest::getExpectCity()const
{
return expectCity_;
}
void BindAxgRequest::setExpectCity(const std::string& expectCity)
{
expectCity_ = expectCity;
setCoreParameter("ExpectCity", expectCity);
}
std::string BindAxgRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void BindAxgRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string BindAxgRequest::getGroupId()const
{
return groupId_;
}
void BindAxgRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
long BindAxgRequest::getOwnerId()const
{
return ownerId_;
}
void BindAxgRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string BindAxgRequest::getOutOrderId()const
{
return outOrderId_;
}
void BindAxgRequest::setOutOrderId(const std::string& outOrderId)
{
outOrderId_ = outOrderId;
setCoreParameter("OutOrderId", outOrderId);
}
std::string BindAxgRequest::getPoolKey()const
{
return poolKey_;
}
void BindAxgRequest::setPoolKey(const std::string& poolKey)
{
poolKey_ = poolKey;
setCoreParameter("PoolKey", poolKey);
}
std::string BindAxgRequest::getExpiration()const
{
return expiration_;
}
void BindAxgRequest::setExpiration(const std::string& expiration)
{
expiration_ = expiration;
setCoreParameter("Expiration", expiration);
}
bool BindAxgRequest::getIsRecordingEnabled()const
{
return isRecordingEnabled_;
}
void BindAxgRequest::setIsRecordingEnabled(bool isRecordingEnabled)
{
isRecordingEnabled_ = isRecordingEnabled;
setCoreParameter("IsRecordingEnabled", isRecordingEnabled ? "true" : "false");
}
std::string BindAxgRequest::getOutId()const
{
return outId_;
}
void BindAxgRequest::setOutId(const std::string& outId)
{
outId_ = outId;
setCoreParameter("OutId", outId);
}

View File

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

View File

@@ -0,0 +1,203 @@
/*
* 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/dyplsapi/model/BindAxnExtensionRequest.h>
using AlibabaCloud::Dyplsapi::Model::BindAxnExtensionRequest;
BindAxnExtensionRequest::BindAxnExtensionRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "BindAxnExtension")
{}
BindAxnExtensionRequest::~BindAxnExtensionRequest()
{}
long BindAxnExtensionRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void BindAxnExtensionRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string BindAxnExtensionRequest::getExtension()const
{
return extension_;
}
void BindAxnExtensionRequest::setExtension(const std::string& extension)
{
extension_ = extension;
setCoreParameter("Extension", extension);
}
int BindAxnExtensionRequest::getCallDisplayType()const
{
return callDisplayType_;
}
void BindAxnExtensionRequest::setCallDisplayType(int callDisplayType)
{
callDisplayType_ = callDisplayType;
setCoreParameter("CallDisplayType", std::to_string(callDisplayType));
}
std::string BindAxnExtensionRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void BindAxnExtensionRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string BindAxnExtensionRequest::getPhoneNoX()const
{
return phoneNoX_;
}
void BindAxnExtensionRequest::setPhoneNoX(const std::string& phoneNoX)
{
phoneNoX_ = phoneNoX;
setCoreParameter("PhoneNoX", phoneNoX);
}
std::string BindAxnExtensionRequest::getRingConfig()const
{
return ringConfig_;
}
void BindAxnExtensionRequest::setRingConfig(const std::string& ringConfig)
{
ringConfig_ = ringConfig;
setCoreParameter("RingConfig", ringConfig);
}
std::string BindAxnExtensionRequest::getPhoneNoB()const
{
return phoneNoB_;
}
void BindAxnExtensionRequest::setPhoneNoB(const std::string& phoneNoB)
{
phoneNoB_ = phoneNoB;
setCoreParameter("PhoneNoB", phoneNoB);
}
std::string BindAxnExtensionRequest::getPhoneNoA()const
{
return phoneNoA_;
}
void BindAxnExtensionRequest::setPhoneNoA(const std::string& phoneNoA)
{
phoneNoA_ = phoneNoA;
setCoreParameter("PhoneNoA", phoneNoA);
}
std::string BindAxnExtensionRequest::getExpectCity()const
{
return expectCity_;
}
void BindAxnExtensionRequest::setExpectCity(const std::string& expectCity)
{
expectCity_ = expectCity;
setCoreParameter("ExpectCity", expectCity);
}
std::string BindAxnExtensionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void BindAxnExtensionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long BindAxnExtensionRequest::getOwnerId()const
{
return ownerId_;
}
void BindAxnExtensionRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string BindAxnExtensionRequest::getOutOrderId()const
{
return outOrderId_;
}
void BindAxnExtensionRequest::setOutOrderId(const std::string& outOrderId)
{
outOrderId_ = outOrderId;
setCoreParameter("OutOrderId", outOrderId);
}
std::string BindAxnExtensionRequest::getPoolKey()const
{
return poolKey_;
}
void BindAxnExtensionRequest::setPoolKey(const std::string& poolKey)
{
poolKey_ = poolKey;
setCoreParameter("PoolKey", poolKey);
}
std::string BindAxnExtensionRequest::getExpiration()const
{
return expiration_;
}
void BindAxnExtensionRequest::setExpiration(const std::string& expiration)
{
expiration_ = expiration;
setCoreParameter("Expiration", expiration);
}
bool BindAxnExtensionRequest::getIsRecordingEnabled()const
{
return isRecordingEnabled_;
}
void BindAxnExtensionRequest::setIsRecordingEnabled(bool isRecordingEnabled)
{
isRecordingEnabled_ = isRecordingEnabled;
setCoreParameter("IsRecordingEnabled", isRecordingEnabled ? "true" : "false");
}
std::string BindAxnExtensionRequest::getOutId()const
{
return outId_;
}
void BindAxnExtensionRequest::setOutId(const std::string& outId)
{
outId_ = outId;
setCoreParameter("OutId", outId);
}

View File

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

View File

@@ -0,0 +1,203 @@
/*
* 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/dyplsapi/model/BindAxnRequest.h>
using AlibabaCloud::Dyplsapi::Model::BindAxnRequest;
BindAxnRequest::BindAxnRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "BindAxn")
{}
BindAxnRequest::~BindAxnRequest()
{}
long BindAxnRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void BindAxnRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int BindAxnRequest::getCallDisplayType()const
{
return callDisplayType_;
}
void BindAxnRequest::setCallDisplayType(int callDisplayType)
{
callDisplayType_ = callDisplayType;
setCoreParameter("CallDisplayType", std::to_string(callDisplayType));
}
std::string BindAxnRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void BindAxnRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string BindAxnRequest::getPhoneNoX()const
{
return phoneNoX_;
}
void BindAxnRequest::setPhoneNoX(const std::string& phoneNoX)
{
phoneNoX_ = phoneNoX;
setCoreParameter("PhoneNoX", phoneNoX);
}
std::string BindAxnRequest::getRingConfig()const
{
return ringConfig_;
}
void BindAxnRequest::setRingConfig(const std::string& ringConfig)
{
ringConfig_ = ringConfig;
setCoreParameter("RingConfig", ringConfig);
}
std::string BindAxnRequest::getPhoneNoB()const
{
return phoneNoB_;
}
void BindAxnRequest::setPhoneNoB(const std::string& phoneNoB)
{
phoneNoB_ = phoneNoB;
setCoreParameter("PhoneNoB", phoneNoB);
}
std::string BindAxnRequest::getPhoneNoA()const
{
return phoneNoA_;
}
void BindAxnRequest::setPhoneNoA(const std::string& phoneNoA)
{
phoneNoA_ = phoneNoA;
setCoreParameter("PhoneNoA", phoneNoA);
}
std::string BindAxnRequest::getExpectCity()const
{
return expectCity_;
}
void BindAxnRequest::setExpectCity(const std::string& expectCity)
{
expectCity_ = expectCity;
setCoreParameter("ExpectCity", expectCity);
}
std::string BindAxnRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void BindAxnRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long BindAxnRequest::getOwnerId()const
{
return ownerId_;
}
void BindAxnRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string BindAxnRequest::getOutOrderId()const
{
return outOrderId_;
}
void BindAxnRequest::setOutOrderId(const std::string& outOrderId)
{
outOrderId_ = outOrderId;
setCoreParameter("OutOrderId", outOrderId);
}
std::string BindAxnRequest::getPoolKey()const
{
return poolKey_;
}
void BindAxnRequest::setPoolKey(const std::string& poolKey)
{
poolKey_ = poolKey;
setCoreParameter("PoolKey", poolKey);
}
std::string BindAxnRequest::getExpiration()const
{
return expiration_;
}
void BindAxnRequest::setExpiration(const std::string& expiration)
{
expiration_ = expiration;
setCoreParameter("Expiration", expiration);
}
bool BindAxnRequest::getIsRecordingEnabled()const
{
return isRecordingEnabled_;
}
void BindAxnRequest::setIsRecordingEnabled(bool isRecordingEnabled)
{
isRecordingEnabled_ = isRecordingEnabled;
setCoreParameter("IsRecordingEnabled", isRecordingEnabled ? "true" : "false");
}
std::string BindAxnRequest::getOutId()const
{
return outId_;
}
void BindAxnRequest::setOutId(const std::string& outId)
{
outId_ = outId;
setCoreParameter("OutId", outId);
}
std::string BindAxnRequest::getNoType()const
{
return noType_;
}
void BindAxnRequest::setNoType(const std::string& noType)
{
noType_ = noType;
setCoreParameter("NoType", noType);
}

View File

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

View File

@@ -0,0 +1,126 @@
/*
* 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/dyplsapi/model/BuySecretNoRequest.h>
using AlibabaCloud::Dyplsapi::Model::BuySecretNoRequest;
BuySecretNoRequest::BuySecretNoRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "BuySecretNo")
{}
BuySecretNoRequest::~BuySecretNoRequest()
{}
long BuySecretNoRequest::getSpecId()const
{
return specId_;
}
void BuySecretNoRequest::setSpecId(long specId)
{
specId_ = specId;
setCoreParameter("SpecId", std::to_string(specId));
}
long BuySecretNoRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void BuySecretNoRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string BuySecretNoRequest::getCity()const
{
return city_;
}
void BuySecretNoRequest::setCity(const std::string& city)
{
city_ = city;
setCoreParameter("City", city);
}
std::string BuySecretNoRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void BuySecretNoRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string BuySecretNoRequest::getSecretNo()const
{
return secretNo_;
}
void BuySecretNoRequest::setSecretNo(const std::string& secretNo)
{
secretNo_ = secretNo;
setCoreParameter("SecretNo", secretNo);
}
std::string BuySecretNoRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void BuySecretNoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
bool BuySecretNoRequest::getDisplayPool()const
{
return displayPool_;
}
void BuySecretNoRequest::setDisplayPool(bool displayPool)
{
displayPool_ = displayPool;
setCoreParameter("DisplayPool", displayPool ? "true" : "false");
}
long BuySecretNoRequest::getOwnerId()const
{
return ownerId_;
}
void BuySecretNoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string BuySecretNoRequest::getPoolKey()const
{
return poolKey_;
}
void BuySecretNoRequest::setPoolKey(const std::string& poolKey)
{
poolKey_ = poolKey;
setCoreParameter("PoolKey", poolKey);
}

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/dyplsapi/model/BuySecretNoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyplsapi;
using namespace AlibabaCloud::Dyplsapi::Model;
BuySecretNoResult::BuySecretNoResult() :
ServiceResult()
{}
BuySecretNoResult::BuySecretNoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BuySecretNoResult::~BuySecretNoResult()
{}
void BuySecretNoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto secretBuyInfoDTONode = value["SecretBuyInfoDTO"];
if(!secretBuyInfoDTONode["SecretNo"].isNull())
secretBuyInfoDTO_.secretNo = secretBuyInfoDTONode["SecretNo"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string BuySecretNoResult::getMessage()const
{
return message_;
}
BuySecretNoResult::SecretBuyInfoDTO BuySecretNoResult::getSecretBuyInfoDTO()const
{
return secretBuyInfoDTO_;
}
std::string BuySecretNoResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,115 @@
/*
* 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/dyplsapi/model/CreateAxgGroupRequest.h>
using AlibabaCloud::Dyplsapi::Model::CreateAxgGroupRequest;
CreateAxgGroupRequest::CreateAxgGroupRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "CreateAxgGroup")
{}
CreateAxgGroupRequest::~CreateAxgGroupRequest()
{}
long CreateAxgGroupRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateAxgGroupRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateAxgGroupRequest::getNumbers()const
{
return numbers_;
}
void CreateAxgGroupRequest::setNumbers(const std::string& numbers)
{
numbers_ = numbers;
setCoreParameter("Numbers", numbers);
}
std::string CreateAxgGroupRequest::getRemark()const
{
return remark_;
}
void CreateAxgGroupRequest::setRemark(const std::string& remark)
{
remark_ = remark;
setCoreParameter("Remark", remark);
}
std::string CreateAxgGroupRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateAxgGroupRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string CreateAxgGroupRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateAxgGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long CreateAxgGroupRequest::getOwnerId()const
{
return ownerId_;
}
void CreateAxgGroupRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateAxgGroupRequest::getPoolKey()const
{
return poolKey_;
}
void CreateAxgGroupRequest::setPoolKey(const std::string& poolKey)
{
poolKey_ = poolKey;
setCoreParameter("PoolKey", poolKey);
}
std::string CreateAxgGroupRequest::getName()const
{
return name_;
}
void CreateAxgGroupRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
}

View File

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

View File

@@ -0,0 +1,115 @@
/*
* 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/dyplsapi/model/OperateAxgGroupRequest.h>
using AlibabaCloud::Dyplsapi::Model::OperateAxgGroupRequest;
OperateAxgGroupRequest::OperateAxgGroupRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "OperateAxgGroup")
{}
OperateAxgGroupRequest::~OperateAxgGroupRequest()
{}
long OperateAxgGroupRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void OperateAxgGroupRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string OperateAxgGroupRequest::getNumbers()const
{
return numbers_;
}
void OperateAxgGroupRequest::setNumbers(const std::string& numbers)
{
numbers_ = numbers;
setCoreParameter("Numbers", numbers);
}
std::string OperateAxgGroupRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void OperateAxgGroupRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string OperateAxgGroupRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void OperateAxgGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long OperateAxgGroupRequest::getGroupId()const
{
return groupId_;
}
void OperateAxgGroupRequest::setGroupId(long groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", std::to_string(groupId));
}
long OperateAxgGroupRequest::getOwnerId()const
{
return ownerId_;
}
void OperateAxgGroupRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string OperateAxgGroupRequest::getPoolKey()const
{
return poolKey_;
}
void OperateAxgGroupRequest::setPoolKey(const std::string& poolKey)
{
poolKey_ = poolKey;
setCoreParameter("PoolKey", poolKey);
}
std::string OperateAxgGroupRequest::getOperateType()const
{
return operateType_;
}
void OperateAxgGroupRequest::setOperateType(const std::string& operateType)
{
operateType_ = operateType;
setCoreParameter("OperateType", operateType);
}

View File

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

View File

@@ -0,0 +1,104 @@
/*
* 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/dyplsapi/model/QueryCallStatusRequest.h>
using AlibabaCloud::Dyplsapi::Model::QueryCallStatusRequest;
QueryCallStatusRequest::QueryCallStatusRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "QueryCallStatus")
{}
QueryCallStatusRequest::~QueryCallStatusRequest()
{}
long QueryCallStatusRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QueryCallStatusRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QueryCallStatusRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryCallStatusRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string QueryCallStatusRequest::getSubsId()const
{
return subsId_;
}
void QueryCallStatusRequest::setSubsId(const std::string& subsId)
{
subsId_ = subsId;
setCoreParameter("SubsId", subsId);
}
std::string QueryCallStatusRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QueryCallStatusRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string QueryCallStatusRequest::getCallNo()const
{
return callNo_;
}
void QueryCallStatusRequest::setCallNo(const std::string& callNo)
{
callNo_ = callNo;
setCoreParameter("CallNo", callNo);
}
long QueryCallStatusRequest::getOwnerId()const
{
return ownerId_;
}
void QueryCallStatusRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string QueryCallStatusRequest::getPoolKey()const
{
return poolKey_;
}
void QueryCallStatusRequest::setPoolKey(const std::string& poolKey)
{
poolKey_ = poolKey;
setCoreParameter("PoolKey", poolKey);
}

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/dyplsapi/model/QueryCallStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyplsapi;
using namespace AlibabaCloud::Dyplsapi::Model;
QueryCallStatusResult::QueryCallStatusResult() :
ServiceResult()
{}
QueryCallStatusResult::QueryCallStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryCallStatusResult::~QueryCallStatusResult()
{}
void QueryCallStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto secretCallStatusDTONode = value["SecretCallStatusDTO"];
if(!secretCallStatusDTONode["Status"].isNull())
secretCallStatusDTO_.status = std::stoi(secretCallStatusDTONode["Status"].asString());
if(!secretCallStatusDTONode["CalledNo"].isNull())
secretCallStatusDTO_.calledNo = secretCallStatusDTONode["CalledNo"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string QueryCallStatusResult::getMessage()const
{
return message_;
}
std::string QueryCallStatusResult::getCode()const
{
return code_;
}
QueryCallStatusResult::SecretCallStatusDTO QueryCallStatusResult::getSecretCallStatusDTO()const
{
return secretCallStatusDTO_;
}

View File

@@ -0,0 +1,115 @@
/*
* 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/dyplsapi/model/QueryRecordFileDownloadUrlRequest.h>
using AlibabaCloud::Dyplsapi::Model::QueryRecordFileDownloadUrlRequest;
QueryRecordFileDownloadUrlRequest::QueryRecordFileDownloadUrlRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "QueryRecordFileDownloadUrl")
{}
QueryRecordFileDownloadUrlRequest::~QueryRecordFileDownloadUrlRequest()
{}
std::string QueryRecordFileDownloadUrlRequest::getCallId()const
{
return callId_;
}
void QueryRecordFileDownloadUrlRequest::setCallId(const std::string& callId)
{
callId_ = callId;
setCoreParameter("CallId", callId);
}
long QueryRecordFileDownloadUrlRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QueryRecordFileDownloadUrlRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QueryRecordFileDownloadUrlRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryRecordFileDownloadUrlRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string QueryRecordFileDownloadUrlRequest::getProductType()const
{
return productType_;
}
void QueryRecordFileDownloadUrlRequest::setProductType(const std::string& productType)
{
productType_ = productType;
setCoreParameter("ProductType", productType);
}
std::string QueryRecordFileDownloadUrlRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QueryRecordFileDownloadUrlRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long QueryRecordFileDownloadUrlRequest::getOwnerId()const
{
return ownerId_;
}
void QueryRecordFileDownloadUrlRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string QueryRecordFileDownloadUrlRequest::getCallTime()const
{
return callTime_;
}
void QueryRecordFileDownloadUrlRequest::setCallTime(const std::string& callTime)
{
callTime_ = callTime;
setCoreParameter("CallTime", callTime);
}
std::string QueryRecordFileDownloadUrlRequest::getPoolKey()const
{
return poolKey_;
}
void QueryRecordFileDownloadUrlRequest::setPoolKey(const std::string& poolKey)
{
poolKey_ = poolKey;
setCoreParameter("PoolKey", poolKey);
}

View File

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

View File

@@ -0,0 +1,104 @@
/*
* 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/dyplsapi/model/QuerySecretNoRemainRequest.h>
using AlibabaCloud::Dyplsapi::Model::QuerySecretNoRemainRequest;
QuerySecretNoRemainRequest::QuerySecretNoRemainRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "QuerySecretNoRemain")
{}
QuerySecretNoRemainRequest::~QuerySecretNoRemainRequest()
{}
long QuerySecretNoRemainRequest::getSpecId()const
{
return specId_;
}
void QuerySecretNoRemainRequest::setSpecId(long specId)
{
specId_ = specId;
setCoreParameter("SpecId", std::to_string(specId));
}
long QuerySecretNoRemainRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QuerySecretNoRemainRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QuerySecretNoRemainRequest::getCity()const
{
return city_;
}
void QuerySecretNoRemainRequest::setCity(const std::string& city)
{
city_ = city;
setCoreParameter("City", city);
}
std::string QuerySecretNoRemainRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QuerySecretNoRemainRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string QuerySecretNoRemainRequest::getSecretNo()const
{
return secretNo_;
}
void QuerySecretNoRemainRequest::setSecretNo(const std::string& secretNo)
{
secretNo_ = secretNo;
setCoreParameter("SecretNo", secretNo);
}
std::string QuerySecretNoRemainRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QuerySecretNoRemainRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long QuerySecretNoRemainRequest::getOwnerId()const
{
return ownerId_;
}
void QuerySecretNoRemainRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,78 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dyplsapi/model/QuerySecretNoRemainResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyplsapi;
using namespace AlibabaCloud::Dyplsapi::Model;
QuerySecretNoRemainResult::QuerySecretNoRemainResult() :
ServiceResult()
{}
QuerySecretNoRemainResult::QuerySecretNoRemainResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QuerySecretNoRemainResult::~QuerySecretNoRemainResult()
{}
void QuerySecretNoRemainResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto secretRemainDTONode = value["SecretRemainDTO"];
if(!secretRemainDTONode["City"].isNull())
secretRemainDTO_.city = secretRemainDTONode["City"].asString();
if(!secretRemainDTONode["Amount"].isNull())
secretRemainDTO_.amount = std::stol(secretRemainDTONode["Amount"].asString());
auto allRemainDTOListNode = secretRemainDTONode["RemainDTOList"]["remainDTO"];
for (auto secretRemainDTONodeRemainDTOListremainDTO : allRemainDTOListNode)
{
SecretRemainDTO::RemainDTO remainDTOObject;
if(!secretRemainDTONodeRemainDTOListremainDTO["City"].isNull())
remainDTOObject.city = secretRemainDTONodeRemainDTOListremainDTO["City"].asString();
if(!secretRemainDTONodeRemainDTOListremainDTO["Amount"].isNull())
remainDTOObject.amount = std::stol(secretRemainDTONodeRemainDTOListremainDTO["Amount"].asString());
secretRemainDTO_.remainDTOList.push_back(remainDTOObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
QuerySecretNoRemainResult::SecretRemainDTO QuerySecretNoRemainResult::getSecretRemainDTO()const
{
return secretRemainDTO_;
}
std::string QuerySecretNoRemainResult::getMessage()const
{
return message_;
}
std::string QuerySecretNoRemainResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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/dyplsapi/model/QuerySubsIdRequest.h>
using AlibabaCloud::Dyplsapi::Model::QuerySubsIdRequest;
QuerySubsIdRequest::QuerySubsIdRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "QuerySubsId")
{}
QuerySubsIdRequest::~QuerySubsIdRequest()
{}
long QuerySubsIdRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QuerySubsIdRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QuerySubsIdRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QuerySubsIdRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long QuerySubsIdRequest::getOwnerId()const
{
return ownerId_;
}
void QuerySubsIdRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string QuerySubsIdRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QuerySubsIdRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string QuerySubsIdRequest::getPoolKey()const
{
return poolKey_;
}
void QuerySubsIdRequest::setPoolKey(const std::string& poolKey)
{
poolKey_ = poolKey;
setCoreParameter("PoolKey", poolKey);
}
std::string QuerySubsIdRequest::getPhoneNoX()const
{
return phoneNoX_;
}
void QuerySubsIdRequest::setPhoneNoX(const std::string& phoneNoX)
{
phoneNoX_ = phoneNoX;
setCoreParameter("PhoneNoX", phoneNoX);
}

View File

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

View File

@@ -0,0 +1,115 @@
/*
* 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/dyplsapi/model/QuerySubscriptionDetailRequest.h>
using AlibabaCloud::Dyplsapi::Model::QuerySubscriptionDetailRequest;
QuerySubscriptionDetailRequest::QuerySubscriptionDetailRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "QuerySubscriptionDetail")
{}
QuerySubscriptionDetailRequest::~QuerySubscriptionDetailRequest()
{}
long QuerySubscriptionDetailRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QuerySubscriptionDetailRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QuerySubscriptionDetailRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QuerySubscriptionDetailRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string QuerySubscriptionDetailRequest::getProductType()const
{
return productType_;
}
void QuerySubscriptionDetailRequest::setProductType(const std::string& productType)
{
productType_ = productType;
setCoreParameter("ProductType", productType);
}
std::string QuerySubscriptionDetailRequest::getSubsId()const
{
return subsId_;
}
void QuerySubscriptionDetailRequest::setSubsId(const std::string& subsId)
{
subsId_ = subsId;
setCoreParameter("SubsId", subsId);
}
std::string QuerySubscriptionDetailRequest::getPhoneNoX()const
{
return phoneNoX_;
}
void QuerySubscriptionDetailRequest::setPhoneNoX(const std::string& phoneNoX)
{
phoneNoX_ = phoneNoX;
setCoreParameter("PhoneNoX", phoneNoX);
}
std::string QuerySubscriptionDetailRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QuerySubscriptionDetailRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long QuerySubscriptionDetailRequest::getOwnerId()const
{
return ownerId_;
}
void QuerySubscriptionDetailRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string QuerySubscriptionDetailRequest::getPoolKey()const
{
return poolKey_;
}
void QuerySubscriptionDetailRequest::setPoolKey(const std::string& poolKey)
{
poolKey_ = poolKey;
setCoreParameter("PoolKey", poolKey);
}

View File

@@ -0,0 +1,86 @@
/*
* 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/dyplsapi/model/QuerySubscriptionDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyplsapi;
using namespace AlibabaCloud::Dyplsapi::Model;
QuerySubscriptionDetailResult::QuerySubscriptionDetailResult() :
ServiceResult()
{}
QuerySubscriptionDetailResult::QuerySubscriptionDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QuerySubscriptionDetailResult::~QuerySubscriptionDetailResult()
{}
void QuerySubscriptionDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto secretBindDetailDTONode = value["SecretBindDetailDTO"];
if(!secretBindDetailDTONode["SubsId"].isNull())
secretBindDetailDTO_.subsId = secretBindDetailDTONode["SubsId"].asString();
if(!secretBindDetailDTONode["PhoneNoA"].isNull())
secretBindDetailDTO_.phoneNoA = secretBindDetailDTONode["PhoneNoA"].asString();
if(!secretBindDetailDTONode["PhoneNoX"].isNull())
secretBindDetailDTO_.phoneNoX = secretBindDetailDTONode["PhoneNoX"].asString();
if(!secretBindDetailDTONode["PhoneNoB"].isNull())
secretBindDetailDTO_.phoneNoB = secretBindDetailDTONode["PhoneNoB"].asString();
if(!secretBindDetailDTONode["Extension"].isNull())
secretBindDetailDTO_.extension = secretBindDetailDTONode["Extension"].asString();
if(!secretBindDetailDTONode["GroupId"].isNull())
secretBindDetailDTO_.groupId = std::stol(secretBindDetailDTONode["GroupId"].asString());
if(!secretBindDetailDTONode["GmtCreate"].isNull())
secretBindDetailDTO_.gmtCreate = secretBindDetailDTONode["GmtCreate"].asString();
if(!secretBindDetailDTONode["ExpireDate"].isNull())
secretBindDetailDTO_.expireDate = secretBindDetailDTONode["ExpireDate"].asString();
if(!secretBindDetailDTONode["NeedRecord"].isNull())
secretBindDetailDTO_.needRecord = secretBindDetailDTONode["NeedRecord"].asString() == "true";
if(!secretBindDetailDTONode["CallRestrict"].isNull())
secretBindDetailDTO_.callRestrict = secretBindDetailDTONode["CallRestrict"].asString();
if(!secretBindDetailDTONode["Status"].isNull())
secretBindDetailDTO_.status = std::stol(secretBindDetailDTONode["Status"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
QuerySubscriptionDetailResult::SecretBindDetailDTO QuerySubscriptionDetailResult::getSecretBindDetailDTO()const
{
return secretBindDetailDTO_;
}
std::string QuerySubscriptionDetailResult::getMessage()const
{
return message_;
}
std::string QuerySubscriptionDetailResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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/dyplsapi/model/ReleaseSecretNoRequest.h>
using AlibabaCloud::Dyplsapi::Model::ReleaseSecretNoRequest;
ReleaseSecretNoRequest::ReleaseSecretNoRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "ReleaseSecretNo")
{}
ReleaseSecretNoRequest::~ReleaseSecretNoRequest()
{}
long ReleaseSecretNoRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ReleaseSecretNoRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ReleaseSecretNoRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ReleaseSecretNoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long ReleaseSecretNoRequest::getOwnerId()const
{
return ownerId_;
}
void ReleaseSecretNoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string ReleaseSecretNoRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ReleaseSecretNoRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string ReleaseSecretNoRequest::getPoolKey()const
{
return poolKey_;
}
void ReleaseSecretNoRequest::setPoolKey(const std::string& poolKey)
{
poolKey_ = poolKey;
setCoreParameter("PoolKey", poolKey);
}
std::string ReleaseSecretNoRequest::getSecretNo()const
{
return secretNo_;
}
void ReleaseSecretNoRequest::setSecretNo(const std::string& secretNo)
{
secretNo_ = secretNo;
setCoreParameter("SecretNo", secretNo);
}

View File

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

View File

@@ -0,0 +1,115 @@
/*
* 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/dyplsapi/model/UnbindSubscriptionRequest.h>
using AlibabaCloud::Dyplsapi::Model::UnbindSubscriptionRequest;
UnbindSubscriptionRequest::UnbindSubscriptionRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "UnbindSubscription")
{}
UnbindSubscriptionRequest::~UnbindSubscriptionRequest()
{}
long UnbindSubscriptionRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void UnbindSubscriptionRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string UnbindSubscriptionRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void UnbindSubscriptionRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string UnbindSubscriptionRequest::getProductType()const
{
return productType_;
}
void UnbindSubscriptionRequest::setProductType(const std::string& productType)
{
productType_ = productType;
setCoreParameter("ProductType", productType);
}
std::string UnbindSubscriptionRequest::getSubsId()const
{
return subsId_;
}
void UnbindSubscriptionRequest::setSubsId(const std::string& subsId)
{
subsId_ = subsId;
setCoreParameter("SubsId", subsId);
}
std::string UnbindSubscriptionRequest::getSecretNo()const
{
return secretNo_;
}
void UnbindSubscriptionRequest::setSecretNo(const std::string& secretNo)
{
secretNo_ = secretNo;
setCoreParameter("SecretNo", secretNo);
}
std::string UnbindSubscriptionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void UnbindSubscriptionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long UnbindSubscriptionRequest::getOwnerId()const
{
return ownerId_;
}
void UnbindSubscriptionRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string UnbindSubscriptionRequest::getPoolKey()const
{
return poolKey_;
}
void UnbindSubscriptionRequest::setPoolKey(const std::string& poolKey)
{
poolKey_ = poolKey;
setCoreParameter("PoolKey", poolKey);
}

View File

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

View File

@@ -0,0 +1,225 @@
/*
* 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/dyplsapi/model/UpdateSubscriptionRequest.h>
using AlibabaCloud::Dyplsapi::Model::UpdateSubscriptionRequest;
UpdateSubscriptionRequest::UpdateSubscriptionRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "UpdateSubscription")
{}
UpdateSubscriptionRequest::~UpdateSubscriptionRequest()
{}
long UpdateSubscriptionRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void UpdateSubscriptionRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int UpdateSubscriptionRequest::getCallDisplayType()const
{
return callDisplayType_;
}
void UpdateSubscriptionRequest::setCallDisplayType(int callDisplayType)
{
callDisplayType_ = callDisplayType;
setCoreParameter("CallDisplayType", std::to_string(callDisplayType));
}
std::string UpdateSubscriptionRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void UpdateSubscriptionRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string UpdateSubscriptionRequest::getProductType()const
{
return productType_;
}
void UpdateSubscriptionRequest::setProductType(const std::string& productType)
{
productType_ = productType;
setCoreParameter("ProductType", productType);
}
std::string UpdateSubscriptionRequest::getSubsId()const
{
return subsId_;
}
void UpdateSubscriptionRequest::setSubsId(const std::string& subsId)
{
subsId_ = subsId;
setCoreParameter("SubsId", subsId);
}
std::string UpdateSubscriptionRequest::getPhoneNoX()const
{
return phoneNoX_;
}
void UpdateSubscriptionRequest::setPhoneNoX(const std::string& phoneNoX)
{
phoneNoX_ = phoneNoX;
setCoreParameter("PhoneNoX", phoneNoX);
}
std::string UpdateSubscriptionRequest::getRingConfig()const
{
return ringConfig_;
}
void UpdateSubscriptionRequest::setRingConfig(const std::string& ringConfig)
{
ringConfig_ = ringConfig;
setCoreParameter("RingConfig", ringConfig);
}
std::string UpdateSubscriptionRequest::getPhoneNoB()const
{
return phoneNoB_;
}
void UpdateSubscriptionRequest::setPhoneNoB(const std::string& phoneNoB)
{
phoneNoB_ = phoneNoB;
setCoreParameter("PhoneNoB", phoneNoB);
}
std::string UpdateSubscriptionRequest::getPhoneNoA()const
{
return phoneNoA_;
}
void UpdateSubscriptionRequest::setPhoneNoA(const std::string& phoneNoA)
{
phoneNoA_ = phoneNoA;
setCoreParameter("PhoneNoA", phoneNoA);
}
std::string UpdateSubscriptionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void UpdateSubscriptionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string UpdateSubscriptionRequest::getGroupId()const
{
return groupId_;
}
void UpdateSubscriptionRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
long UpdateSubscriptionRequest::getOwnerId()const
{
return ownerId_;
}
void UpdateSubscriptionRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string UpdateSubscriptionRequest::getPoolKey()const
{
return poolKey_;
}
void UpdateSubscriptionRequest::setPoolKey(const std::string& poolKey)
{
poolKey_ = poolKey;
setCoreParameter("PoolKey", poolKey);
}
std::string UpdateSubscriptionRequest::getExpiration()const
{
return expiration_;
}
void UpdateSubscriptionRequest::setExpiration(const std::string& expiration)
{
expiration_ = expiration;
setCoreParameter("Expiration", expiration);
}
std::string UpdateSubscriptionRequest::getOutId()const
{
return outId_;
}
void UpdateSubscriptionRequest::setOutId(const std::string& outId)
{
outId_ = outId;
setCoreParameter("OutId", outId);
}
bool UpdateSubscriptionRequest::getIsRecordingEnabled()const
{
return isRecordingEnabled_;
}
void UpdateSubscriptionRequest::setIsRecordingEnabled(bool isRecordingEnabled)
{
isRecordingEnabled_ = isRecordingEnabled;
setCoreParameter("IsRecordingEnabled", isRecordingEnabled ? "true" : "false");
}
std::string UpdateSubscriptionRequest::getOperateType()const
{
return operateType_;
}
void UpdateSubscriptionRequest::setOperateType(const std::string& operateType)
{
operateType_ = operateType;
setCoreParameter("OperateType", operateType);
}
std::string UpdateSubscriptionRequest::getCallRestrict()const
{
return callRestrict_;
}
void UpdateSubscriptionRequest::setCallRestrict(const std::string& callRestrict)
{
callRestrict_ = callRestrict;
setCoreParameter("CallRestrict", callRestrict);
}

View File

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