Generated 2018-01-20 for Linkvisual.

This commit is contained in:
sdk-team
2024-02-21 14:13:28 +00:00
parent 43b055ce70
commit 2d2d1e86d9
54 changed files with 4054 additions and 1 deletions

View File

@@ -843,6 +843,78 @@ LinkvisualClient::CreateRtmpDeviceOutcomeCallable LinkvisualClient::createRtmpDe
return task->get_future();
}
LinkvisualClient::CreateStreamPushJobOutcome LinkvisualClient::createStreamPushJob(const CreateStreamPushJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateStreamPushJobOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateStreamPushJobOutcome(CreateStreamPushJobResult(outcome.result()));
else
return CreateStreamPushJobOutcome(outcome.error());
}
void LinkvisualClient::createStreamPushJobAsync(const CreateStreamPushJobRequest& request, const CreateStreamPushJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createStreamPushJob(request), context);
};
asyncExecute(new Runnable(fn));
}
LinkvisualClient::CreateStreamPushJobOutcomeCallable LinkvisualClient::createStreamPushJobCallable(const CreateStreamPushJobRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateStreamPushJobOutcome()>>(
[this, request]()
{
return this->createStreamPushJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LinkvisualClient::CreateStreamSnapshotJobOutcome LinkvisualClient::createStreamSnapshotJob(const CreateStreamSnapshotJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateStreamSnapshotJobOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateStreamSnapshotJobOutcome(CreateStreamSnapshotJobResult(outcome.result()));
else
return CreateStreamSnapshotJobOutcome(outcome.error());
}
void LinkvisualClient::createStreamSnapshotJobAsync(const CreateStreamSnapshotJobRequest& request, const CreateStreamSnapshotJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createStreamSnapshotJob(request), context);
};
asyncExecute(new Runnable(fn));
}
LinkvisualClient::CreateStreamSnapshotJobOutcomeCallable LinkvisualClient::createStreamSnapshotJobCallable(const CreateStreamSnapshotJobRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateStreamSnapshotJobOutcome()>>(
[this, request]()
{
return this->createStreamSnapshotJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LinkvisualClient::CreateTimeTemplateOutcome LinkvisualClient::createTimeTemplate(const CreateTimeTemplateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1131,6 +1203,42 @@ LinkvisualClient::DeleteFaceUserPictureOutcomeCallable LinkvisualClient::deleteF
return task->get_future();
}
LinkvisualClient::DeleteGbDeviceOutcome LinkvisualClient::deleteGbDevice(const DeleteGbDeviceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteGbDeviceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteGbDeviceOutcome(DeleteGbDeviceResult(outcome.result()));
else
return DeleteGbDeviceOutcome(outcome.error());
}
void LinkvisualClient::deleteGbDeviceAsync(const DeleteGbDeviceRequest& request, const DeleteGbDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteGbDevice(request), context);
};
asyncExecute(new Runnable(fn));
}
LinkvisualClient::DeleteGbDeviceOutcomeCallable LinkvisualClient::deleteGbDeviceCallable(const DeleteGbDeviceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteGbDeviceOutcome()>>(
[this, request]()
{
return this->deleteGbDevice(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LinkvisualClient::DeleteLocalFileUploadJobOutcome LinkvisualClient::deleteLocalFileUploadJob(const DeleteLocalFileUploadJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1383,6 +1491,78 @@ LinkvisualClient::DeleteRtmpKeyOutcomeCallable LinkvisualClient::deleteRtmpKeyCa
return task->get_future();
}
LinkvisualClient::DeleteStreamPushJobOutcome LinkvisualClient::deleteStreamPushJob(const DeleteStreamPushJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteStreamPushJobOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteStreamPushJobOutcome(DeleteStreamPushJobResult(outcome.result()));
else
return DeleteStreamPushJobOutcome(outcome.error());
}
void LinkvisualClient::deleteStreamPushJobAsync(const DeleteStreamPushJobRequest& request, const DeleteStreamPushJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteStreamPushJob(request), context);
};
asyncExecute(new Runnable(fn));
}
LinkvisualClient::DeleteStreamPushJobOutcomeCallable LinkvisualClient::deleteStreamPushJobCallable(const DeleteStreamPushJobRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteStreamPushJobOutcome()>>(
[this, request]()
{
return this->deleteStreamPushJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LinkvisualClient::DeleteStreamSnapshotJobOutcome LinkvisualClient::deleteStreamSnapshotJob(const DeleteStreamSnapshotJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteStreamSnapshotJobOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteStreamSnapshotJobOutcome(DeleteStreamSnapshotJobResult(outcome.result()));
else
return DeleteStreamSnapshotJobOutcome(outcome.error());
}
void LinkvisualClient::deleteStreamSnapshotJobAsync(const DeleteStreamSnapshotJobRequest& request, const DeleteStreamSnapshotJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteStreamSnapshotJob(request), context);
};
asyncExecute(new Runnable(fn));
}
LinkvisualClient::DeleteStreamSnapshotJobOutcomeCallable LinkvisualClient::deleteStreamSnapshotJobCallable(const DeleteStreamSnapshotJobRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteStreamSnapshotJobOutcome()>>(
[this, request]()
{
return this->deleteStreamSnapshotJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LinkvisualClient::DeleteTimeTemplateOutcome LinkvisualClient::deleteTimeTemplate(const DeleteTimeTemplateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1455,6 +1635,42 @@ LinkvisualClient::DetectUserFaceByUrlOutcomeCallable LinkvisualClient::detectUse
return task->get_future();
}
LinkvisualClient::EnableGbSubDeviceOutcome LinkvisualClient::enableGbSubDevice(const EnableGbSubDeviceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return EnableGbSubDeviceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return EnableGbSubDeviceOutcome(EnableGbSubDeviceResult(outcome.result()));
else
return EnableGbSubDeviceOutcome(outcome.error());
}
void LinkvisualClient::enableGbSubDeviceAsync(const EnableGbSubDeviceRequest& request, const EnableGbSubDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, enableGbSubDevice(request), context);
};
asyncExecute(new Runnable(fn));
}
LinkvisualClient::EnableGbSubDeviceOutcomeCallable LinkvisualClient::enableGbSubDeviceCallable(const EnableGbSubDeviceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<EnableGbSubDeviceOutcome()>>(
[this, request]()
{
return this->enableGbSubDevice(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LinkvisualClient::GetPictureSearchJobStatusOutcome LinkvisualClient::getPictureSearchJobStatus(const GetPictureSearchJobStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2463,6 +2679,42 @@ LinkvisualClient::QueryFaceUserIdByCustomUserIdOutcomeCallable LinkvisualClient:
return task->get_future();
}
LinkvisualClient::QueryGbSubDeviceListOutcome LinkvisualClient::queryGbSubDeviceList(const QueryGbSubDeviceListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryGbSubDeviceListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryGbSubDeviceListOutcome(QueryGbSubDeviceListResult(outcome.result()));
else
return QueryGbSubDeviceListOutcome(outcome.error());
}
void LinkvisualClient::queryGbSubDeviceListAsync(const QueryGbSubDeviceListRequest& request, const QueryGbSubDeviceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryGbSubDeviceList(request), context);
};
asyncExecute(new Runnable(fn));
}
LinkvisualClient::QueryGbSubDeviceListOutcomeCallable LinkvisualClient::queryGbSubDeviceListCallable(const QueryGbSubDeviceListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryGbSubDeviceListOutcome()>>(
[this, request]()
{
return this->queryGbSubDeviceList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LinkvisualClient::QueryLiveStreamingOutcome LinkvisualClient::queryLiveStreaming(const QueryLiveStreamingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3219,6 +3471,114 @@ LinkvisualClient::QueryRtmpKeyOutcomeCallable LinkvisualClient::queryRtmpKeyCall
return task->get_future();
}
LinkvisualClient::QueryStreamPushJobOutcome LinkvisualClient::queryStreamPushJob(const QueryStreamPushJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryStreamPushJobOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryStreamPushJobOutcome(QueryStreamPushJobResult(outcome.result()));
else
return QueryStreamPushJobOutcome(outcome.error());
}
void LinkvisualClient::queryStreamPushJobAsync(const QueryStreamPushJobRequest& request, const QueryStreamPushJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryStreamPushJob(request), context);
};
asyncExecute(new Runnable(fn));
}
LinkvisualClient::QueryStreamPushJobOutcomeCallable LinkvisualClient::queryStreamPushJobCallable(const QueryStreamPushJobRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryStreamPushJobOutcome()>>(
[this, request]()
{
return this->queryStreamPushJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LinkvisualClient::QueryStreamPushJobListOutcome LinkvisualClient::queryStreamPushJobList(const QueryStreamPushJobListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryStreamPushJobListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryStreamPushJobListOutcome(QueryStreamPushJobListResult(outcome.result()));
else
return QueryStreamPushJobListOutcome(outcome.error());
}
void LinkvisualClient::queryStreamPushJobListAsync(const QueryStreamPushJobListRequest& request, const QueryStreamPushJobListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryStreamPushJobList(request), context);
};
asyncExecute(new Runnable(fn));
}
LinkvisualClient::QueryStreamPushJobListOutcomeCallable LinkvisualClient::queryStreamPushJobListCallable(const QueryStreamPushJobListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryStreamPushJobListOutcome()>>(
[this, request]()
{
return this->queryStreamPushJobList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LinkvisualClient::QueryStreamSnapshotJobOutcome LinkvisualClient::queryStreamSnapshotJob(const QueryStreamSnapshotJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryStreamSnapshotJobOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryStreamSnapshotJobOutcome(QueryStreamSnapshotJobResult(outcome.result()));
else
return QueryStreamSnapshotJobOutcome(outcome.error());
}
void LinkvisualClient::queryStreamSnapshotJobAsync(const QueryStreamSnapshotJobRequest& request, const QueryStreamSnapshotJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryStreamSnapshotJob(request), context);
};
asyncExecute(new Runnable(fn));
}
LinkvisualClient::QueryStreamSnapshotJobOutcomeCallable LinkvisualClient::queryStreamSnapshotJobCallable(const QueryStreamSnapshotJobRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryStreamSnapshotJobOutcome()>>(
[this, request]()
{
return this->queryStreamSnapshotJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LinkvisualClient::QueryTimeTemplateOutcome LinkvisualClient::queryTimeTemplate(const QueryTimeTemplateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3363,6 +3723,42 @@ LinkvisualClient::QueryVoiceIntercomOutcomeCallable LinkvisualClient::queryVoice
return task->get_future();
}
LinkvisualClient::RefreshGbSubDeviceListOutcome LinkvisualClient::refreshGbSubDeviceList(const RefreshGbSubDeviceListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RefreshGbSubDeviceListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RefreshGbSubDeviceListOutcome(RefreshGbSubDeviceListResult(outcome.result()));
else
return RefreshGbSubDeviceListOutcome(outcome.error());
}
void LinkvisualClient::refreshGbSubDeviceListAsync(const RefreshGbSubDeviceListRequest& request, const RefreshGbSubDeviceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, refreshGbSubDeviceList(request), context);
};
asyncExecute(new Runnable(fn));
}
LinkvisualClient::RefreshGbSubDeviceListOutcomeCallable LinkvisualClient::refreshGbSubDeviceListCallable(const RefreshGbSubDeviceListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RefreshGbSubDeviceListOutcome()>>(
[this, request]()
{
return this->refreshGbSubDeviceList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LinkvisualClient::RemoveFaceDeviceFromDeviceGroupOutcome LinkvisualClient::removeFaceDeviceFromDeviceGroup(const RemoveFaceDeviceFromDeviceGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3831,6 +4227,42 @@ LinkvisualClient::UpdateFaceUserGroupAndDeviceGroupRelationOutcomeCallable Linkv
return task->get_future();
}
LinkvisualClient::UpdateGbDeviceOutcome LinkvisualClient::updateGbDevice(const UpdateGbDeviceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateGbDeviceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateGbDeviceOutcome(UpdateGbDeviceResult(outcome.result()));
else
return UpdateGbDeviceOutcome(outcome.error());
}
void LinkvisualClient::updateGbDeviceAsync(const UpdateGbDeviceRequest& request, const UpdateGbDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateGbDevice(request), context);
};
asyncExecute(new Runnable(fn));
}
LinkvisualClient::UpdateGbDeviceOutcomeCallable LinkvisualClient::updateGbDeviceCallable(const UpdateGbDeviceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateGbDeviceOutcome()>>(
[this, request]()
{
return this->updateGbDevice(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LinkvisualClient::UpdateInstanceInternetProtocolOutcome LinkvisualClient::updateInstanceInternetProtocol(const UpdateInstanceInternetProtocolRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -124,3 +124,12 @@ void CreateGbDeviceRequest::setApiRevision(const std::string &apiRevision) {
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string CreateGbDeviceRequest::getDeviceName() const {
return deviceName_;
}
void CreateGbDeviceRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

View File

@@ -0,0 +1,108 @@
/*
* 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/linkvisual/model/CreateStreamPushJobRequest.h>
using AlibabaCloud::Linkvisual::Model::CreateStreamPushJobRequest;
CreateStreamPushJobRequest::CreateStreamPushJobRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "CreateStreamPushJob") {
setMethod(HttpRequest::Method::Post);
}
CreateStreamPushJobRequest::~CreateStreamPushJobRequest() {}
std::string CreateStreamPushJobRequest::getIotId() const {
return iotId_;
}
void CreateStreamPushJobRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string CreateStreamPushJobRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void CreateStreamPushJobRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
int CreateStreamPushJobRequest::getStreamType() const {
return streamType_;
}
void CreateStreamPushJobRequest::setStreamType(int streamType) {
streamType_ = streamType;
setParameter(std::string("StreamType"), std::to_string(streamType));
}
std::string CreateStreamPushJobRequest::getProductKey() const {
return productKey_;
}
void CreateStreamPushJobRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
int CreateStreamPushJobRequest::getJobType() const {
return jobType_;
}
void CreateStreamPushJobRequest::setJobType(int jobType) {
jobType_ = jobType;
setParameter(std::string("JobType"), std::to_string(jobType));
}
std::string CreateStreamPushJobRequest::getPushUrl() const {
return pushUrl_;
}
void CreateStreamPushJobRequest::setPushUrl(const std::string &pushUrl) {
pushUrl_ = pushUrl;
setParameter(std::string("PushUrl"), pushUrl);
}
std::string CreateStreamPushJobRequest::getApiProduct() const {
return apiProduct_;
}
void CreateStreamPushJobRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string CreateStreamPushJobRequest::getApiRevision() const {
return apiRevision_;
}
void CreateStreamPushJobRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string CreateStreamPushJobRequest::getDeviceName() const {
return deviceName_;
}
void CreateStreamPushJobRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

View File

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

View File

@@ -0,0 +1,99 @@
/*
* 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/linkvisual/model/CreateStreamSnapshotJobRequest.h>
using AlibabaCloud::Linkvisual::Model::CreateStreamSnapshotJobRequest;
CreateStreamSnapshotJobRequest::CreateStreamSnapshotJobRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "CreateStreamSnapshotJob") {
setMethod(HttpRequest::Method::Post);
}
CreateStreamSnapshotJobRequest::~CreateStreamSnapshotJobRequest() {}
std::string CreateStreamSnapshotJobRequest::getIotId() const {
return iotId_;
}
void CreateStreamSnapshotJobRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string CreateStreamSnapshotJobRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void CreateStreamSnapshotJobRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
int CreateStreamSnapshotJobRequest::getStreamType() const {
return streamType_;
}
void CreateStreamSnapshotJobRequest::setStreamType(int streamType) {
streamType_ = streamType;
setParameter(std::string("StreamType"), std::to_string(streamType));
}
std::string CreateStreamSnapshotJobRequest::getProductKey() const {
return productKey_;
}
void CreateStreamSnapshotJobRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
int CreateStreamSnapshotJobRequest::getSnapshotInterval() const {
return snapshotInterval_;
}
void CreateStreamSnapshotJobRequest::setSnapshotInterval(int snapshotInterval) {
snapshotInterval_ = snapshotInterval;
setParameter(std::string("SnapshotInterval"), std::to_string(snapshotInterval));
}
std::string CreateStreamSnapshotJobRequest::getApiProduct() const {
return apiProduct_;
}
void CreateStreamSnapshotJobRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string CreateStreamSnapshotJobRequest::getApiRevision() const {
return apiRevision_;
}
void CreateStreamSnapshotJobRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string CreateStreamSnapshotJobRequest::getDeviceName() const {
return deviceName_;
}
void CreateStreamSnapshotJobRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

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/linkvisual/model/CreateStreamSnapshotJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
CreateStreamSnapshotJobResult::CreateStreamSnapshotJobResult() :
ServiceResult()
{}
CreateStreamSnapshotJobResult::CreateStreamSnapshotJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateStreamSnapshotJobResult::~CreateStreamSnapshotJobResult()
{}
void CreateStreamSnapshotJobResult::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["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string CreateStreamSnapshotJobResult::getErrorMessage()const
{
return errorMessage_;
}
std::string CreateStreamSnapshotJobResult::getCode()const
{
return code_;
}
bool CreateStreamSnapshotJobResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,81 @@
/*
* 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/linkvisual/model/DeleteGbDeviceRequest.h>
using AlibabaCloud::Linkvisual::Model::DeleteGbDeviceRequest;
DeleteGbDeviceRequest::DeleteGbDeviceRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "DeleteGbDevice") {
setMethod(HttpRequest::Method::Post);
}
DeleteGbDeviceRequest::~DeleteGbDeviceRequest() {}
std::string DeleteGbDeviceRequest::getIotId() const {
return iotId_;
}
void DeleteGbDeviceRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string DeleteGbDeviceRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void DeleteGbDeviceRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
std::string DeleteGbDeviceRequest::getProductKey() const {
return productKey_;
}
void DeleteGbDeviceRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string DeleteGbDeviceRequest::getApiProduct() const {
return apiProduct_;
}
void DeleteGbDeviceRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string DeleteGbDeviceRequest::getApiRevision() const {
return apiRevision_;
}
void DeleteGbDeviceRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string DeleteGbDeviceRequest::getDeviceName() const {
return deviceName_;
}
void DeleteGbDeviceRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

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/linkvisual/model/DeleteGbDeviceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
DeleteGbDeviceResult::DeleteGbDeviceResult() :
ServiceResult()
{}
DeleteGbDeviceResult::DeleteGbDeviceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteGbDeviceResult::~DeleteGbDeviceResult()
{}
void DeleteGbDeviceResult::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["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteGbDeviceResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteGbDeviceResult::getCode()const
{
return code_;
}
bool DeleteGbDeviceResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,90 @@
/*
* 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/linkvisual/model/DeleteStreamPushJobRequest.h>
using AlibabaCloud::Linkvisual::Model::DeleteStreamPushJobRequest;
DeleteStreamPushJobRequest::DeleteStreamPushJobRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "DeleteStreamPushJob") {
setMethod(HttpRequest::Method::Post);
}
DeleteStreamPushJobRequest::~DeleteStreamPushJobRequest() {}
std::string DeleteStreamPushJobRequest::getJobId() const {
return jobId_;
}
void DeleteStreamPushJobRequest::setJobId(const std::string &jobId) {
jobId_ = jobId;
setParameter(std::string("JobId"), jobId);
}
std::string DeleteStreamPushJobRequest::getIotId() const {
return iotId_;
}
void DeleteStreamPushJobRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string DeleteStreamPushJobRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void DeleteStreamPushJobRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
std::string DeleteStreamPushJobRequest::getProductKey() const {
return productKey_;
}
void DeleteStreamPushJobRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string DeleteStreamPushJobRequest::getApiProduct() const {
return apiProduct_;
}
void DeleteStreamPushJobRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string DeleteStreamPushJobRequest::getApiRevision() const {
return apiRevision_;
}
void DeleteStreamPushJobRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string DeleteStreamPushJobRequest::getDeviceName() const {
return deviceName_;
}
void DeleteStreamPushJobRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

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/linkvisual/model/DeleteStreamPushJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
DeleteStreamPushJobResult::DeleteStreamPushJobResult() :
ServiceResult()
{}
DeleteStreamPushJobResult::DeleteStreamPushJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteStreamPushJobResult::~DeleteStreamPushJobResult()
{}
void DeleteStreamPushJobResult::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["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteStreamPushJobResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteStreamPushJobResult::getCode()const
{
return code_;
}
bool DeleteStreamPushJobResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,90 @@
/*
* 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/linkvisual/model/DeleteStreamSnapshotJobRequest.h>
using AlibabaCloud::Linkvisual::Model::DeleteStreamSnapshotJobRequest;
DeleteStreamSnapshotJobRequest::DeleteStreamSnapshotJobRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "DeleteStreamSnapshotJob") {
setMethod(HttpRequest::Method::Post);
}
DeleteStreamSnapshotJobRequest::~DeleteStreamSnapshotJobRequest() {}
std::string DeleteStreamSnapshotJobRequest::getIotId() const {
return iotId_;
}
void DeleteStreamSnapshotJobRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string DeleteStreamSnapshotJobRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void DeleteStreamSnapshotJobRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
int DeleteStreamSnapshotJobRequest::getStreamType() const {
return streamType_;
}
void DeleteStreamSnapshotJobRequest::setStreamType(int streamType) {
streamType_ = streamType;
setParameter(std::string("StreamType"), std::to_string(streamType));
}
std::string DeleteStreamSnapshotJobRequest::getProductKey() const {
return productKey_;
}
void DeleteStreamSnapshotJobRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string DeleteStreamSnapshotJobRequest::getApiProduct() const {
return apiProduct_;
}
void DeleteStreamSnapshotJobRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string DeleteStreamSnapshotJobRequest::getApiRevision() const {
return apiRevision_;
}
void DeleteStreamSnapshotJobRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string DeleteStreamSnapshotJobRequest::getDeviceName() const {
return deviceName_;
}
void DeleteStreamSnapshotJobRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

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/linkvisual/model/DeleteStreamSnapshotJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
DeleteStreamSnapshotJobResult::DeleteStreamSnapshotJobResult() :
ServiceResult()
{}
DeleteStreamSnapshotJobResult::DeleteStreamSnapshotJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteStreamSnapshotJobResult::~DeleteStreamSnapshotJobResult()
{}
void DeleteStreamSnapshotJobResult::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["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteStreamSnapshotJobResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DeleteStreamSnapshotJobResult::getCode()const
{
return code_;
}
bool DeleteStreamSnapshotJobResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,90 @@
/*
* 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/linkvisual/model/EnableGbSubDeviceRequest.h>
using AlibabaCloud::Linkvisual::Model::EnableGbSubDeviceRequest;
EnableGbSubDeviceRequest::EnableGbSubDeviceRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "EnableGbSubDevice") {
setMethod(HttpRequest::Method::Post);
}
EnableGbSubDeviceRequest::~EnableGbSubDeviceRequest() {}
std::string EnableGbSubDeviceRequest::getIotId() const {
return iotId_;
}
void EnableGbSubDeviceRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string EnableGbSubDeviceRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void EnableGbSubDeviceRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
std::string EnableGbSubDeviceRequest::getProductKey() const {
return productKey_;
}
void EnableGbSubDeviceRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string EnableGbSubDeviceRequest::getSubDeviceId() const {
return subDeviceId_;
}
void EnableGbSubDeviceRequest::setSubDeviceId(const std::string &subDeviceId) {
subDeviceId_ = subDeviceId;
setParameter(std::string("SubDeviceId"), subDeviceId);
}
std::string EnableGbSubDeviceRequest::getApiProduct() const {
return apiProduct_;
}
void EnableGbSubDeviceRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string EnableGbSubDeviceRequest::getApiRevision() const {
return apiRevision_;
}
void EnableGbSubDeviceRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string EnableGbSubDeviceRequest::getDeviceName() const {
return deviceName_;
}
void EnableGbSubDeviceRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

View File

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

View File

@@ -0,0 +1,99 @@
/*
* 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/linkvisual/model/QueryGbSubDeviceListRequest.h>
using AlibabaCloud::Linkvisual::Model::QueryGbSubDeviceListRequest;
QueryGbSubDeviceListRequest::QueryGbSubDeviceListRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "QueryGbSubDeviceList") {
setMethod(HttpRequest::Method::Post);
}
QueryGbSubDeviceListRequest::~QueryGbSubDeviceListRequest() {}
std::string QueryGbSubDeviceListRequest::getIotId() const {
return iotId_;
}
void QueryGbSubDeviceListRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string QueryGbSubDeviceListRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void QueryGbSubDeviceListRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
int QueryGbSubDeviceListRequest::getPageSize() const {
return pageSize_;
}
void QueryGbSubDeviceListRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string QueryGbSubDeviceListRequest::getProductKey() const {
return productKey_;
}
void QueryGbSubDeviceListRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string QueryGbSubDeviceListRequest::getApiProduct() const {
return apiProduct_;
}
void QueryGbSubDeviceListRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string QueryGbSubDeviceListRequest::getApiRevision() const {
return apiRevision_;
}
void QueryGbSubDeviceListRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string QueryGbSubDeviceListRequest::getDeviceName() const {
return deviceName_;
}
void QueryGbSubDeviceListRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}
int QueryGbSubDeviceListRequest::getPageStart() const {
return pageStart_;
}
void QueryGbSubDeviceListRequest::setPageStart(int pageStart) {
pageStart_ = pageStart;
setParameter(std::string("PageStart"), std::to_string(pageStart));
}

View File

@@ -0,0 +1,89 @@
/*
* 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/linkvisual/model/QueryGbSubDeviceListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
QueryGbSubDeviceListResult::QueryGbSubDeviceListResult() :
ServiceResult()
{}
QueryGbSubDeviceListResult::QueryGbSubDeviceListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryGbSubDeviceListResult::~QueryGbSubDeviceListResult()
{}
void QueryGbSubDeviceListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Total"].isNull())
data_.total = std::stoi(dataNode["Total"].asString());
auto allGbSubDeviceListNode = dataNode["GbSubDeviceList"]["gbSubDevice"];
for (auto dataNodeGbSubDeviceListgbSubDevice : allGbSubDeviceListNode)
{
Data::GbSubDevice gbSubDeviceObject;
if(!dataNodeGbSubDeviceListgbSubDevice["ProductKey"].isNull())
gbSubDeviceObject.productKey = dataNodeGbSubDeviceListgbSubDevice["ProductKey"].asString();
if(!dataNodeGbSubDeviceListgbSubDevice["DeviceName"].isNull())
gbSubDeviceObject.deviceName = dataNodeGbSubDeviceListgbSubDevice["DeviceName"].asString();
if(!dataNodeGbSubDeviceListgbSubDevice["DeviceId"].isNull())
gbSubDeviceObject.deviceId = dataNodeGbSubDeviceListgbSubDevice["DeviceId"].asString();
if(!dataNodeGbSubDeviceListgbSubDevice["DeviceEnable"].isNull())
gbSubDeviceObject.deviceEnable = std::stoi(dataNodeGbSubDeviceListgbSubDevice["DeviceEnable"].asString());
if(!dataNodeGbSubDeviceListgbSubDevice["IotId"].isNull())
gbSubDeviceObject.iotId = dataNodeGbSubDeviceListgbSubDevice["IotId"].asString();
data_.gbSubDeviceList.push_back(gbSubDeviceObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
QueryGbSubDeviceListResult::Data QueryGbSubDeviceListResult::getData()const
{
return data_;
}
std::string QueryGbSubDeviceListResult::getErrorMessage()const
{
return errorMessage_;
}
std::string QueryGbSubDeviceListResult::getCode()const
{
return code_;
}
bool QueryGbSubDeviceListResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,108 @@
/*
* 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/linkvisual/model/QueryStreamPushJobListRequest.h>
using AlibabaCloud::Linkvisual::Model::QueryStreamPushJobListRequest;
QueryStreamPushJobListRequest::QueryStreamPushJobListRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "QueryStreamPushJobList") {
setMethod(HttpRequest::Method::Post);
}
QueryStreamPushJobListRequest::~QueryStreamPushJobListRequest() {}
std::string QueryStreamPushJobListRequest::getIotId() const {
return iotId_;
}
void QueryStreamPushJobListRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string QueryStreamPushJobListRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void QueryStreamPushJobListRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
int QueryStreamPushJobListRequest::getPageSize() const {
return pageSize_;
}
void QueryStreamPushJobListRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
int QueryStreamPushJobListRequest::getCurrentPage() const {
return currentPage_;
}
void QueryStreamPushJobListRequest::setCurrentPage(int currentPage) {
currentPage_ = currentPage;
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
}
std::string QueryStreamPushJobListRequest::getProductKey() const {
return productKey_;
}
void QueryStreamPushJobListRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
int QueryStreamPushJobListRequest::getJobType() const {
return jobType_;
}
void QueryStreamPushJobListRequest::setJobType(int jobType) {
jobType_ = jobType;
setParameter(std::string("JobType"), std::to_string(jobType));
}
std::string QueryStreamPushJobListRequest::getApiProduct() const {
return apiProduct_;
}
void QueryStreamPushJobListRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string QueryStreamPushJobListRequest::getApiRevision() const {
return apiRevision_;
}
void QueryStreamPushJobListRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string QueryStreamPushJobListRequest::getDeviceName() const {
return deviceName_;
}
void QueryStreamPushJobListRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

View File

@@ -0,0 +1,91 @@
/*
* 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/linkvisual/model/QueryStreamPushJobListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
QueryStreamPushJobListResult::QueryStreamPushJobListResult() :
ServiceResult()
{}
QueryStreamPushJobListResult::QueryStreamPushJobListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryStreamPushJobListResult::~QueryStreamPushJobListResult()
{}
void QueryStreamPushJobListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Total"].isNull())
data_.total = std::stoi(dataNode["Total"].asString());
auto allJobListNode = dataNode["JobList"]["Job"];
for (auto dataNodeJobListJob : allJobListNode)
{
Data::Job jobObject;
if(!dataNodeJobListJob["PushUrl"].isNull())
jobObject.pushUrl = dataNodeJobListJob["PushUrl"].asString();
if(!dataNodeJobListJob["StreamType"].isNull())
jobObject.streamType = std::stoi(dataNodeJobListJob["StreamType"].asString());
if(!dataNodeJobListJob["JobId"].isNull())
jobObject.jobId = dataNodeJobListJob["JobId"].asString();
if(!dataNodeJobListJob["CreateTime"].isNull())
jobObject.createTime = std::stoi(dataNodeJobListJob["CreateTime"].asString());
if(!dataNodeJobListJob["PushStatus"].isNull())
jobObject.pushStatus = std::stoi(dataNodeJobListJob["PushStatus"].asString());
if(!dataNodeJobListJob["JobType"].isNull())
jobObject.jobType = std::stoi(dataNodeJobListJob["JobType"].asString());
data_.jobList.push_back(jobObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
QueryStreamPushJobListResult::Data QueryStreamPushJobListResult::getData()const
{
return data_;
}
std::string QueryStreamPushJobListResult::getErrorMessage()const
{
return errorMessage_;
}
std::string QueryStreamPushJobListResult::getCode()const
{
return code_;
}
bool QueryStreamPushJobListResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,90 @@
/*
* 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/linkvisual/model/QueryStreamPushJobRequest.h>
using AlibabaCloud::Linkvisual::Model::QueryStreamPushJobRequest;
QueryStreamPushJobRequest::QueryStreamPushJobRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "QueryStreamPushJob") {
setMethod(HttpRequest::Method::Post);
}
QueryStreamPushJobRequest::~QueryStreamPushJobRequest() {}
std::string QueryStreamPushJobRequest::getJobId() const {
return jobId_;
}
void QueryStreamPushJobRequest::setJobId(const std::string &jobId) {
jobId_ = jobId;
setParameter(std::string("JobId"), jobId);
}
std::string QueryStreamPushJobRequest::getIotId() const {
return iotId_;
}
void QueryStreamPushJobRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string QueryStreamPushJobRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void QueryStreamPushJobRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
std::string QueryStreamPushJobRequest::getProductKey() const {
return productKey_;
}
void QueryStreamPushJobRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string QueryStreamPushJobRequest::getApiProduct() const {
return apiProduct_;
}
void QueryStreamPushJobRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string QueryStreamPushJobRequest::getApiRevision() const {
return apiRevision_;
}
void QueryStreamPushJobRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string QueryStreamPushJobRequest::getDeviceName() const {
return deviceName_;
}
void QueryStreamPushJobRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

View File

@@ -0,0 +1,81 @@
/*
* 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/linkvisual/model/QueryStreamPushJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
QueryStreamPushJobResult::QueryStreamPushJobResult() :
ServiceResult()
{}
QueryStreamPushJobResult::QueryStreamPushJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryStreamPushJobResult::~QueryStreamPushJobResult()
{}
void QueryStreamPushJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["JobType"].isNull())
data_.jobType = std::stoi(dataNode["JobType"].asString());
if(!dataNode["PushUrl"].isNull())
data_.pushUrl = dataNode["PushUrl"].asString();
if(!dataNode["StreamType"].isNull())
data_.streamType = std::stoi(dataNode["StreamType"].asString());
if(!dataNode["CreateTime"].isNull())
data_.createTime = std::stoi(dataNode["CreateTime"].asString());
if(!dataNode["PushStatus"].isNull())
data_.pushStatus = std::stoi(dataNode["PushStatus"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
QueryStreamPushJobResult::Data QueryStreamPushJobResult::getData()const
{
return data_;
}
std::string QueryStreamPushJobResult::getErrorMessage()const
{
return errorMessage_;
}
std::string QueryStreamPushJobResult::getCode()const
{
return code_;
}
bool QueryStreamPushJobResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,81 @@
/*
* 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/linkvisual/model/QueryStreamSnapshotJobRequest.h>
using AlibabaCloud::Linkvisual::Model::QueryStreamSnapshotJobRequest;
QueryStreamSnapshotJobRequest::QueryStreamSnapshotJobRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "QueryStreamSnapshotJob") {
setMethod(HttpRequest::Method::Post);
}
QueryStreamSnapshotJobRequest::~QueryStreamSnapshotJobRequest() {}
std::string QueryStreamSnapshotJobRequest::getIotId() const {
return iotId_;
}
void QueryStreamSnapshotJobRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string QueryStreamSnapshotJobRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void QueryStreamSnapshotJobRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
std::string QueryStreamSnapshotJobRequest::getProductKey() const {
return productKey_;
}
void QueryStreamSnapshotJobRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string QueryStreamSnapshotJobRequest::getApiProduct() const {
return apiProduct_;
}
void QueryStreamSnapshotJobRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string QueryStreamSnapshotJobRequest::getApiRevision() const {
return apiRevision_;
}
void QueryStreamSnapshotJobRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string QueryStreamSnapshotJobRequest::getDeviceName() const {
return deviceName_;
}
void QueryStreamSnapshotJobRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

View File

@@ -0,0 +1,81 @@
/*
* 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/linkvisual/model/QueryStreamSnapshotJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
QueryStreamSnapshotJobResult::QueryStreamSnapshotJobResult() :
ServiceResult()
{}
QueryStreamSnapshotJobResult::QueryStreamSnapshotJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryStreamSnapshotJobResult::~QueryStreamSnapshotJobResult()
{}
void QueryStreamSnapshotJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allJobListNode = dataNode["JobList"]["Job"];
for (auto dataNodeJobListJob : allJobListNode)
{
Data::Job jobObject;
if(!dataNodeJobListJob["StreamType"].isNull())
jobObject.streamType = std::stoi(dataNodeJobListJob["StreamType"].asString());
if(!dataNodeJobListJob["SnapshotInterval"].isNull())
jobObject.snapshotInterval = std::stoi(dataNodeJobListJob["SnapshotInterval"].asString());
data_.jobList.push_back(jobObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
QueryStreamSnapshotJobResult::Data QueryStreamSnapshotJobResult::getData()const
{
return data_;
}
std::string QueryStreamSnapshotJobResult::getErrorMessage()const
{
return errorMessage_;
}
std::string QueryStreamSnapshotJobResult::getCode()const
{
return code_;
}
bool QueryStreamSnapshotJobResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,81 @@
/*
* 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/linkvisual/model/RefreshGbSubDeviceListRequest.h>
using AlibabaCloud::Linkvisual::Model::RefreshGbSubDeviceListRequest;
RefreshGbSubDeviceListRequest::RefreshGbSubDeviceListRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "RefreshGbSubDeviceList") {
setMethod(HttpRequest::Method::Post);
}
RefreshGbSubDeviceListRequest::~RefreshGbSubDeviceListRequest() {}
std::string RefreshGbSubDeviceListRequest::getIotId() const {
return iotId_;
}
void RefreshGbSubDeviceListRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string RefreshGbSubDeviceListRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void RefreshGbSubDeviceListRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
std::string RefreshGbSubDeviceListRequest::getProductKey() const {
return productKey_;
}
void RefreshGbSubDeviceListRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string RefreshGbSubDeviceListRequest::getApiProduct() const {
return apiProduct_;
}
void RefreshGbSubDeviceListRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string RefreshGbSubDeviceListRequest::getApiRevision() const {
return apiRevision_;
}
void RefreshGbSubDeviceListRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string RefreshGbSubDeviceListRequest::getDeviceName() const {
return deviceName_;
}
void RefreshGbSubDeviceListRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

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/linkvisual/model/RefreshGbSubDeviceListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
RefreshGbSubDeviceListResult::RefreshGbSubDeviceListResult() :
ServiceResult()
{}
RefreshGbSubDeviceListResult::RefreshGbSubDeviceListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RefreshGbSubDeviceListResult::~RefreshGbSubDeviceListResult()
{}
void RefreshGbSubDeviceListResult::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["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string RefreshGbSubDeviceListResult::getErrorMessage()const
{
return errorMessage_;
}
std::string RefreshGbSubDeviceListResult::getCode()const
{
return code_;
}
bool RefreshGbSubDeviceListResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,108 @@
/*
* 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/linkvisual/model/UpdateGbDeviceRequest.h>
using AlibabaCloud::Linkvisual::Model::UpdateGbDeviceRequest;
UpdateGbDeviceRequest::UpdateGbDeviceRequest()
: RpcServiceRequest("linkvisual", "2018-01-20", "UpdateGbDevice") {
setMethod(HttpRequest::Method::Post);
}
UpdateGbDeviceRequest::~UpdateGbDeviceRequest() {}
std::string UpdateGbDeviceRequest::getGbId() const {
return gbId_;
}
void UpdateGbDeviceRequest::setGbId(const std::string &gbId) {
gbId_ = gbId;
setParameter(std::string("GbId"), gbId);
}
std::string UpdateGbDeviceRequest::getDescription() const {
return description_;
}
void UpdateGbDeviceRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
std::string UpdateGbDeviceRequest::getPassword() const {
return password_;
}
void UpdateGbDeviceRequest::setPassword(const std::string &password) {
password_ = password;
setParameter(std::string("Password"), password);
}
std::string UpdateGbDeviceRequest::getIotId() const {
return iotId_;
}
void UpdateGbDeviceRequest::setIotId(const std::string &iotId) {
iotId_ = iotId;
setParameter(std::string("IotId"), iotId);
}
std::string UpdateGbDeviceRequest::getIotInstanceId() const {
return iotInstanceId_;
}
void UpdateGbDeviceRequest::setIotInstanceId(const std::string &iotInstanceId) {
iotInstanceId_ = iotInstanceId;
setParameter(std::string("IotInstanceId"), iotInstanceId);
}
std::string UpdateGbDeviceRequest::getProductKey() const {
return productKey_;
}
void UpdateGbDeviceRequest::setProductKey(const std::string &productKey) {
productKey_ = productKey;
setParameter(std::string("ProductKey"), productKey);
}
std::string UpdateGbDeviceRequest::getApiProduct() const {
return apiProduct_;
}
void UpdateGbDeviceRequest::setApiProduct(const std::string &apiProduct) {
apiProduct_ = apiProduct;
setBodyParameter(std::string("ApiProduct"), apiProduct);
}
std::string UpdateGbDeviceRequest::getApiRevision() const {
return apiRevision_;
}
void UpdateGbDeviceRequest::setApiRevision(const std::string &apiRevision) {
apiRevision_ = apiRevision;
setBodyParameter(std::string("ApiRevision"), apiRevision);
}
std::string UpdateGbDeviceRequest::getDeviceName() const {
return deviceName_;
}
void UpdateGbDeviceRequest::setDeviceName(const std::string &deviceName) {
deviceName_ = deviceName;
setParameter(std::string("DeviceName"), deviceName);
}

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/linkvisual/model/UpdateGbDeviceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Linkvisual;
using namespace AlibabaCloud::Linkvisual::Model;
UpdateGbDeviceResult::UpdateGbDeviceResult() :
ServiceResult()
{}
UpdateGbDeviceResult::UpdateGbDeviceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateGbDeviceResult::~UpdateGbDeviceResult()
{}
void UpdateGbDeviceResult::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["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string UpdateGbDeviceResult::getErrorMessage()const
{
return errorMessage_;
}
std::string UpdateGbDeviceResult::getCode()const
{
return code_;
}
bool UpdateGbDeviceResult::getSuccess()const
{
return success_;
}