Add openapi CreateEaisEi.

This commit is contained in:
sdk-team
2023-07-12 03:09:12 +00:00
parent 861a684089
commit 9454f4754b
34 changed files with 1548 additions and 3 deletions

View File

@@ -87,6 +87,42 @@ EaisClient::AttachEaiOutcomeCallable EaisClient::attachEaiCallable(const AttachE
return task->get_future();
}
EaisClient::AttachEaisEiOutcome EaisClient::attachEaisEi(const AttachEaisEiRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AttachEaisEiOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AttachEaisEiOutcome(AttachEaisEiResult(outcome.result()));
else
return AttachEaisEiOutcome(outcome.error());
}
void EaisClient::attachEaisEiAsync(const AttachEaisEiRequest& request, const AttachEaisEiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, attachEaisEi(request), context);
};
asyncExecute(new Runnable(fn));
}
EaisClient::AttachEaisEiOutcomeCallable EaisClient::attachEaisEiCallable(const AttachEaisEiRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AttachEaisEiOutcome()>>(
[this, request]()
{
return this->attachEaisEi(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EaisClient::ChangeResourceGroupOutcome EaisClient::changeResourceGroup(const ChangeResourceGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -303,6 +339,42 @@ EaisClient::CreateEaiJupyterOutcomeCallable EaisClient::createEaiJupyterCallable
return task->get_future();
}
EaisClient::CreateEaisEiOutcome EaisClient::createEaisEi(const CreateEaisEiRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateEaisEiOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateEaisEiOutcome(CreateEaisEiResult(outcome.result()));
else
return CreateEaisEiOutcome(outcome.error());
}
void EaisClient::createEaisEiAsync(const CreateEaisEiRequest& request, const CreateEaisEiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createEaisEi(request), context);
};
asyncExecute(new Runnable(fn));
}
EaisClient::CreateEaisEiOutcomeCallable EaisClient::createEaisEiCallable(const CreateEaisEiRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateEaisEiOutcome()>>(
[this, request]()
{
return this->createEaisEi(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EaisClient::DeleteEaiOutcome EaisClient::deleteEai(const DeleteEaiRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -375,6 +447,42 @@ EaisClient::DeleteEaiAllOutcomeCallable EaisClient::deleteEaiAllCallable(const D
return task->get_future();
}
EaisClient::DeleteEaisEiOutcome EaisClient::deleteEaisEi(const DeleteEaisEiRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteEaisEiOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteEaisEiOutcome(DeleteEaisEiResult(outcome.result()));
else
return DeleteEaisEiOutcome(outcome.error());
}
void EaisClient::deleteEaisEiAsync(const DeleteEaisEiRequest& request, const DeleteEaisEiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteEaisEi(request), context);
};
asyncExecute(new Runnable(fn));
}
EaisClient::DeleteEaisEiOutcomeCallable EaisClient::deleteEaisEiCallable(const DeleteEaisEiRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteEaisEiOutcome()>>(
[this, request]()
{
return this->deleteEaisEi(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EaisClient::DescribeEaisOutcome EaisClient::describeEais(const DescribeEaisRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -483,6 +591,42 @@ EaisClient::DetachEaiOutcomeCallable EaisClient::detachEaiCallable(const DetachE
return task->get_future();
}
EaisClient::DetachEaisEiOutcome EaisClient::detachEaisEi(const DetachEaisEiRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DetachEaisEiOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DetachEaisEiOutcome(DetachEaisEiResult(outcome.result()));
else
return DetachEaisEiOutcome(outcome.error());
}
void EaisClient::detachEaisEiAsync(const DetachEaisEiRequest& request, const DetachEaisEiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, detachEaisEi(request), context);
};
asyncExecute(new Runnable(fn));
}
EaisClient::DetachEaisEiOutcomeCallable EaisClient::detachEaisEiCallable(const DetachEaisEiRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DetachEaisEiOutcome()>>(
[this, request]()
{
return this->detachEaisEi(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EaisClient::GetInstanceMetricsOutcome EaisClient::getInstanceMetrics(const GetInstanceMetricsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -519,3 +663,75 @@ EaisClient::GetInstanceMetricsOutcomeCallable EaisClient::getInstanceMetricsCall
return task->get_future();
}
EaisClient::StartEaisEiOutcome EaisClient::startEaisEi(const StartEaisEiRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StartEaisEiOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StartEaisEiOutcome(StartEaisEiResult(outcome.result()));
else
return StartEaisEiOutcome(outcome.error());
}
void EaisClient::startEaisEiAsync(const StartEaisEiRequest& request, const StartEaisEiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, startEaisEi(request), context);
};
asyncExecute(new Runnable(fn));
}
EaisClient::StartEaisEiOutcomeCallable EaisClient::startEaisEiCallable(const StartEaisEiRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StartEaisEiOutcome()>>(
[this, request]()
{
return this->startEaisEi(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EaisClient::StopEaisEiOutcome EaisClient::stopEaisEi(const StopEaisEiRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StopEaisEiOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StopEaisEiOutcome(StopEaisEiResult(outcome.result()));
else
return StopEaisEiOutcome(outcome.error());
}
void EaisClient::stopEaisEiAsync(const StopEaisEiRequest& request, const StopEaisEiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, stopEaisEi(request), context);
};
asyncExecute(new Runnable(fn));
}
EaisClient::StopEaisEiOutcomeCallable EaisClient::stopEaisEiCallable(const StopEaisEiRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StopEaisEiOutcome()>>(
[this, request]()
{
return this->stopEaisEi(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -0,0 +1,63 @@
/*
* 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/eais/model/AttachEaisEiRequest.h>
using AlibabaCloud::Eais::Model::AttachEaisEiRequest;
AttachEaisEiRequest::AttachEaisEiRequest()
: RpcServiceRequest("eais", "2019-06-24", "AttachEaisEi") {
setMethod(HttpRequest::Method::Post);
}
AttachEaisEiRequest::~AttachEaisEiRequest() {}
std::string AttachEaisEiRequest::getEiInstanceType() const {
return eiInstanceType_;
}
void AttachEaisEiRequest::setEiInstanceType(const std::string &eiInstanceType) {
eiInstanceType_ = eiInstanceType;
setParameter(std::string("EiInstanceType"), eiInstanceType);
}
std::string AttachEaisEiRequest::getClientInstanceId() const {
return clientInstanceId_;
}
void AttachEaisEiRequest::setClientInstanceId(const std::string &clientInstanceId) {
clientInstanceId_ = clientInstanceId;
setParameter(std::string("ClientInstanceId"), clientInstanceId);
}
std::string AttachEaisEiRequest::getEiInstanceId() const {
return eiInstanceId_;
}
void AttachEaisEiRequest::setEiInstanceId(const std::string &eiInstanceId) {
eiInstanceId_ = eiInstanceId;
setParameter(std::string("EiInstanceId"), eiInstanceId);
}
std::string AttachEaisEiRequest::getRegionId() const {
return regionId_;
}
void AttachEaisEiRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

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/eais/model/AttachEaisEiResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eais;
using namespace AlibabaCloud::Eais::Model;
AttachEaisEiResult::AttachEaisEiResult() :
ServiceResult()
{}
AttachEaisEiResult::AttachEaisEiResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AttachEaisEiResult::~AttachEaisEiResult()
{}
void AttachEaisEiResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["EiInstanceId"].isNull())
eiInstanceId_ = value["EiInstanceId"].asString();
if(!value["ClientInstanceId"].isNull())
clientInstanceId_ = value["ClientInstanceId"].asString();
}
std::string AttachEaisEiResult::getEiInstanceId()const
{
return eiInstanceId_;
}
std::string AttachEaisEiResult::getClientInstanceId()const
{
return clientInstanceId_;
}

View File

@@ -91,3 +91,12 @@ void CreateEaiJupyterRequest::setEnvironmentVar(const std::vector<CreateEaiJupyt
}
}
std::string CreateEaiJupyterRequest::getEaisName() const {
return eaisName_;
}
void CreateEaiJupyterRequest::setEaisName(const std::string &eaisName) {
eaisName_ = eaisName;
setParameter(std::string("EaisName"), eaisName);
}

View File

@@ -25,6 +25,15 @@ CreateEaiRequest::CreateEaiRequest()
CreateEaiRequest::~CreateEaiRequest() {}
std::string CreateEaiRequest::getImage() const {
return image_;
}
void CreateEaiRequest::setImage(const std::string &image) {
image_ = image;
setParameter(std::string("Image"), image);
}
std::string CreateEaiRequest::getClientToken() const {
return clientToken_;
}

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/eais/model/CreateEaisEiRequest.h>
using AlibabaCloud::Eais::Model::CreateEaisEiRequest;
CreateEaisEiRequest::CreateEaisEiRequest()
: RpcServiceRequest("eais", "2019-06-24", "CreateEaisEi") {
setMethod(HttpRequest::Method::Post);
}
CreateEaisEiRequest::~CreateEaisEiRequest() {}
std::string CreateEaisEiRequest::getClientToken() const {
return clientToken_;
}
void CreateEaisEiRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string CreateEaisEiRequest::getSecurityGroupId() const {
return securityGroupId_;
}
void CreateEaisEiRequest::setSecurityGroupId(const std::string &securityGroupId) {
securityGroupId_ = securityGroupId;
setParameter(std::string("SecurityGroupId"), securityGroupId);
}
std::string CreateEaisEiRequest::getVSwitchId() const {
return vSwitchId_;
}
void CreateEaisEiRequest::setVSwitchId(const std::string &vSwitchId) {
vSwitchId_ = vSwitchId;
setParameter(std::string("VSwitchId"), vSwitchId);
}
std::string CreateEaisEiRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void CreateEaisEiRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string CreateEaisEiRequest::getInstanceName() const {
return instanceName_;
}
void CreateEaisEiRequest::setInstanceName(const std::string &instanceName) {
instanceName_ = instanceName;
setParameter(std::string("InstanceName"), instanceName);
}
std::string CreateEaisEiRequest::getRegionId() const {
return regionId_;
}
void CreateEaisEiRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string CreateEaisEiRequest::getInstanceType() const {
return instanceType_;
}
void CreateEaisEiRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setParameter(std::string("InstanceType"), instanceType);
}

View File

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

View File

@@ -0,0 +1,54 @@
/*
* 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/eais/model/DeleteEaisEiRequest.h>
using AlibabaCloud::Eais::Model::DeleteEaisEiRequest;
DeleteEaisEiRequest::DeleteEaisEiRequest()
: RpcServiceRequest("eais", "2019-06-24", "DeleteEaisEi") {
setMethod(HttpRequest::Method::Post);
}
DeleteEaisEiRequest::~DeleteEaisEiRequest() {}
std::string DeleteEaisEiRequest::getEiInstanceId() const {
return eiInstanceId_;
}
void DeleteEaisEiRequest::setEiInstanceId(const std::string &eiInstanceId) {
eiInstanceId_ = eiInstanceId;
setParameter(std::string("EiInstanceId"), eiInstanceId);
}
std::string DeleteEaisEiRequest::getRegionId() const {
return regionId_;
}
void DeleteEaisEiRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
bool DeleteEaisEiRequest::getForce() const {
return force_;
}
void DeleteEaisEiRequest::setForce(bool force) {
force_ = force;
setParameter(std::string("Force"), force ? "true" : "false");
}

View File

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

View File

@@ -0,0 +1,45 @@
/*
* 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/eais/model/DetachEaisEiRequest.h>
using AlibabaCloud::Eais::Model::DetachEaisEiRequest;
DetachEaisEiRequest::DetachEaisEiRequest()
: RpcServiceRequest("eais", "2019-06-24", "DetachEaisEi") {
setMethod(HttpRequest::Method::Post);
}
DetachEaisEiRequest::~DetachEaisEiRequest() {}
std::string DetachEaisEiRequest::getEiInstanceId() const {
return eiInstanceId_;
}
void DetachEaisEiRequest::setEiInstanceId(const std::string &eiInstanceId) {
eiInstanceId_ = eiInstanceId;
setParameter(std::string("EiInstanceId"), eiInstanceId);
}
std::string DetachEaisEiRequest::getRegionId() const {
return regionId_;
}
void DetachEaisEiRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View File

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

View File

@@ -70,3 +70,12 @@ void GetInstanceMetricsRequest::setInstanceId(const std::string &instanceId) {
setParameter(std::string("InstanceId"), instanceId);
}
std::string GetInstanceMetricsRequest::getRegionId() const {
return regionId_;
}
void GetInstanceMetricsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View File

@@ -0,0 +1,45 @@
/*
* 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/eais/model/StartEaisEiRequest.h>
using AlibabaCloud::Eais::Model::StartEaisEiRequest;
StartEaisEiRequest::StartEaisEiRequest()
: RpcServiceRequest("eais", "2019-06-24", "StartEaisEi") {
setMethod(HttpRequest::Method::Post);
}
StartEaisEiRequest::~StartEaisEiRequest() {}
std::string StartEaisEiRequest::getEiInstanceId() const {
return eiInstanceId_;
}
void StartEaisEiRequest::setEiInstanceId(const std::string &eiInstanceId) {
eiInstanceId_ = eiInstanceId;
setParameter(std::string("EiInstanceId"), eiInstanceId);
}
std::string StartEaisEiRequest::getRegionId() const {
return regionId_;
}
void StartEaisEiRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View File

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

View File

@@ -0,0 +1,45 @@
/*
* 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/eais/model/StopEaisEiRequest.h>
using AlibabaCloud::Eais::Model::StopEaisEiRequest;
StopEaisEiRequest::StopEaisEiRequest()
: RpcServiceRequest("eais", "2019-06-24", "StopEaisEi") {
setMethod(HttpRequest::Method::Post);
}
StopEaisEiRequest::~StopEaisEiRequest() {}
std::string StopEaisEiRequest::getEiInstanceId() const {
return eiInstanceId_;
}
void StopEaisEiRequest::setEiInstanceId(const std::string &eiInstanceId) {
eiInstanceId_ = eiInstanceId;
setParameter(std::string("EiInstanceId"), eiInstanceId);
}
std::string StopEaisEiRequest::getRegionId() const {
return regionId_;
}
void StopEaisEiRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View File

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