Generated 2021-03-20 for Emr.

This commit is contained in:
sdk-team
2022-02-16 07:16:19 +00:00
parent 1435718263
commit 25cc56a91b
654 changed files with 21248 additions and 38540 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,95 @@
/*
* 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/emr/model/AddApplicationRequest.h>
using AlibabaCloud::Emr::Model::AddApplicationRequest;
AddApplicationRequest::AddApplicationRequest() :
RpcServiceRequest("emr", "2021-03-20", "AddApplication")
{
setMethod(HttpRequest::Method::Post);
}
AddApplicationRequest::~AddApplicationRequest()
{}
std::string AddApplicationRequest::getClientToken()const
{
return clientToken_;
}
void AddApplicationRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string AddApplicationRequest::getDescription()const
{
return description_;
}
void AddApplicationRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string AddApplicationRequest::getRegionId()const
{
return regionId_;
}
void AddApplicationRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AddApplicationRequest::getClusterId()const
{
return clusterId_;
}
void AddApplicationRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string AddApplicationRequest::getSystemDebug()const
{
return systemDebug_;
}
void AddApplicationRequest::setSystemDebug(const std::string& systemDebug)
{
systemDebug_ = systemDebug;
setParameter("SystemDebug", systemDebug);
}
Array AddApplicationRequest::getApplications()const
{
return applications_;
}
void AddApplicationRequest::setApplications(const Array& applications)
{
applications_ = applications;
setParameter("Applications", std::to_string(applications));
}

View File

@@ -14,38 +14,38 @@
* limitations under the License.
*/
#include <alibabacloud/emr/model/CreateFlowForWebResult.h>
#include <alibabacloud/emr/model/AddApplicationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
CreateFlowForWebResult::CreateFlowForWebResult() :
AddApplicationResult::AddApplicationResult() :
ServiceResult()
{}
CreateFlowForWebResult::CreateFlowForWebResult(const std::string &payload) :
AddApplicationResult::AddApplicationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateFlowForWebResult::~CreateFlowForWebResult()
AddApplicationResult::~AddApplicationResult()
{}
void CreateFlowForWebResult::parse(const std::string &payload)
void AddApplicationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Id"].isNull())
id_ = value["Id"].asString();
if(!value["OperationId"].isNull())
operationId_ = value["OperationId"].asString();
}
std::string CreateFlowForWebResult::getId()const
std::string AddApplicationResult::getOperationId()const
{
return id_;
return operationId_;
}

View File

@@ -0,0 +1,95 @@
/*
* 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/emr/model/AddApplicationsRequest.h>
using AlibabaCloud::Emr::Model::AddApplicationsRequest;
AddApplicationsRequest::AddApplicationsRequest() :
RpcServiceRequest("emr", "2021-03-20", "AddApplications")
{
setMethod(HttpRequest::Method::Post);
}
AddApplicationsRequest::~AddApplicationsRequest()
{}
std::string AddApplicationsRequest::getClientToken()const
{
return clientToken_;
}
void AddApplicationsRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string AddApplicationsRequest::getDescription()const
{
return description_;
}
void AddApplicationsRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string AddApplicationsRequest::getRegionId()const
{
return regionId_;
}
void AddApplicationsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AddApplicationsRequest::getClusterId()const
{
return clusterId_;
}
void AddApplicationsRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string AddApplicationsRequest::getSystemDebug()const
{
return systemDebug_;
}
void AddApplicationsRequest::setSystemDebug(const std::string& systemDebug)
{
systemDebug_ = systemDebug;
setParameter("SystemDebug", systemDebug);
}
Array AddApplicationsRequest::getApplications()const
{
return applications_;
}
void AddApplicationsRequest::setApplications(const Array& applications)
{
applications_ = applications;
setParameter("Applications", std::to_string(applications));
}

View File

@@ -14,38 +14,38 @@
* limitations under the License.
*/
#include <alibabacloud/emr/model/CloneFlowResult.h>
#include <alibabacloud/emr/model/AddApplicationsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
CloneFlowResult::CloneFlowResult() :
AddApplicationsResult::AddApplicationsResult() :
ServiceResult()
{}
CloneFlowResult::CloneFlowResult(const std::string &payload) :
AddApplicationsResult::AddApplicationsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CloneFlowResult::~CloneFlowResult()
AddApplicationsResult::~AddApplicationsResult()
{}
void CloneFlowResult::parse(const std::string &payload)
void AddApplicationsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Id"].isNull())
id_ = value["Id"].asString();
if(!value["OperationId"].isNull())
operationId_ = value["OperationId"].asString();
}
std::string CloneFlowResult::getId()const
std::string AddApplicationsResult::getOperationId()const
{
return id_;
return operationId_;
}

View File

@@ -1,100 +0,0 @@
/*
* 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/emr/model/AddClusterServiceRequest.h>
using AlibabaCloud::Emr::Model::AddClusterServiceRequest;
AddClusterServiceRequest::AddClusterServiceRequest() :
RpcServiceRequest("emr", "2016-04-08", "AddClusterService")
{
setMethod(HttpRequest::Method::Post);
}
AddClusterServiceRequest::~AddClusterServiceRequest()
{}
long AddClusterServiceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddClusterServiceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddClusterServiceRequest::getClusterId()const
{
return clusterId_;
}
void AddClusterServiceRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string AddClusterServiceRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddClusterServiceRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string AddClusterServiceRequest::getRegionId()const
{
return regionId_;
}
void AddClusterServiceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::vector<AddClusterServiceRequest::Service> AddClusterServiceRequest::getService()const
{
return service_;
}
void AddClusterServiceRequest::setService(const std::vector<Service>& service)
{
service_ = service;
for(int dep1 = 0; dep1!= service.size(); dep1++) {
auto serviceObj = service.at(dep1);
std::string serviceObjStr = "Service." + std::to_string(dep1 + 1);
setParameter(serviceObjStr + ".ServiceVersion", serviceObj.serviceVersion);
setParameter(serviceObjStr + ".ServiceName", serviceObj.serviceName);
}
}
std::string AddClusterServiceRequest::getComment()const
{
return comment_;
}
void AddClusterServiceRequest::setComment(const std::string& comment)
{
comment_ = comment;
setParameter("Comment", comment);
}

View File

@@ -1,106 +0,0 @@
/*
* 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/emr/model/AddScalingConfigItemV2Request.h>
using AlibabaCloud::Emr::Model::AddScalingConfigItemV2Request;
AddScalingConfigItemV2Request::AddScalingConfigItemV2Request() :
RpcServiceRequest("emr", "2016-04-08", "AddScalingConfigItemV2")
{
setMethod(HttpRequest::Method::Post);
}
AddScalingConfigItemV2Request::~AddScalingConfigItemV2Request()
{}
std::string AddScalingConfigItemV2Request::getConfigItemType()const
{
return configItemType_;
}
void AddScalingConfigItemV2Request::setConfigItemType(const std::string& configItemType)
{
configItemType_ = configItemType;
setParameter("ConfigItemType", configItemType);
}
long AddScalingConfigItemV2Request::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddScalingConfigItemV2Request::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddScalingConfigItemV2Request::getAccessKeyId()const
{
return accessKeyId_;
}
void AddScalingConfigItemV2Request::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string AddScalingConfigItemV2Request::getScalingGroupBizId()const
{
return scalingGroupBizId_;
}
void AddScalingConfigItemV2Request::setScalingGroupBizId(const std::string& scalingGroupBizId)
{
scalingGroupBizId_ = scalingGroupBizId;
setParameter("ScalingGroupBizId", scalingGroupBizId);
}
std::string AddScalingConfigItemV2Request::getResourceGroupId()const
{
return resourceGroupId_;
}
void AddScalingConfigItemV2Request::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string AddScalingConfigItemV2Request::getRegionId()const
{
return regionId_;
}
void AddScalingConfigItemV2Request::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AddScalingConfigItemV2Request::getConfigItemInformation()const
{
return configItemInformation_;
}
void AddScalingConfigItemV2Request::setConfigItemInformation(const std::string& configItemInformation)
{
configItemInformation_ = configItemInformation;
setParameter("ConfigItemInformation", configItemInformation);
}

View File

@@ -0,0 +1,84 @@
/*
* 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/emr/model/CancelOperationOrdersRequest.h>
using AlibabaCloud::Emr::Model::CancelOperationOrdersRequest;
CancelOperationOrdersRequest::CancelOperationOrdersRequest() :
RpcServiceRequest("emr", "2021-03-20", "CancelOperationOrders")
{
setMethod(HttpRequest::Method::Post);
}
CancelOperationOrdersRequest::~CancelOperationOrdersRequest()
{}
std::string CancelOperationOrdersRequest::getClientToken()const
{
return clientToken_;
}
void CancelOperationOrdersRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CancelOperationOrdersRequest::getRegionId()const
{
return regionId_;
}
void CancelOperationOrdersRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CancelOperationOrdersRequest::getClusterId()const
{
return clusterId_;
}
void CancelOperationOrdersRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string CancelOperationOrdersRequest::getOperationId()const
{
return operationId_;
}
void CancelOperationOrdersRequest::setOperationId(const std::string& operationId)
{
operationId_ = operationId;
setParameter("OperationId", operationId);
}
std::string CancelOperationOrdersRequest::getSystemDebug()const
{
return systemDebug_;
}
void CancelOperationOrdersRequest::setSystemDebug(const std::string& systemDebug)
{
systemDebug_ = systemDebug;
setParameter("SystemDebug", systemDebug);
}

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/emr/model/CancelOperationOrdersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
CancelOperationOrdersResult::CancelOperationOrdersResult() :
ServiceResult()
{}
CancelOperationOrdersResult::CancelOperationOrdersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CancelOperationOrdersResult::~CancelOperationOrdersResult()
{}
void CancelOperationOrdersResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
bool CancelOperationOrdersResult::getSuccess()const
{
return success_;
}

View File

@@ -1,73 +0,0 @@
/*
* 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/emr/model/CloneFlowJobRequest.h>
using AlibabaCloud::Emr::Model::CloneFlowJobRequest;
CloneFlowJobRequest::CloneFlowJobRequest() :
RpcServiceRequest("emr", "2016-04-08", "CloneFlowJob")
{
setMethod(HttpRequest::Method::Post);
}
CloneFlowJobRequest::~CloneFlowJobRequest()
{}
std::string CloneFlowJobRequest::getRegionId()const
{
return regionId_;
}
void CloneFlowJobRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CloneFlowJobRequest::getName()const
{
return name_;
}
void CloneFlowJobRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CloneFlowJobRequest::getId()const
{
return id_;
}
void CloneFlowJobRequest::setId(const std::string& id)
{
id_ = id;
setParameter("Id", id);
}
std::string CloneFlowJobRequest::getProjectId()const
{
return projectId_;
}
void CloneFlowJobRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
}

View File

@@ -1,62 +0,0 @@
/*
* 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/emr/model/CloneFlowRequest.h>
using AlibabaCloud::Emr::Model::CloneFlowRequest;
CloneFlowRequest::CloneFlowRequest() :
RpcServiceRequest("emr", "2016-04-08", "CloneFlow")
{
setMethod(HttpRequest::Method::Post);
}
CloneFlowRequest::~CloneFlowRequest()
{}
std::string CloneFlowRequest::getRegionId()const
{
return regionId_;
}
void CloneFlowRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CloneFlowRequest::getId()const
{
return id_;
}
void CloneFlowRequest::setId(const std::string& id)
{
id_ = id;
setParameter("Id", id);
}
std::string CloneFlowRequest::getProjectId()const
{
return projectId_;
}
void CloneFlowRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
}

View File

@@ -0,0 +1,106 @@
/*
* 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/emr/model/CreateAutoScalingPolicyRequest.h>
using AlibabaCloud::Emr::Model::CreateAutoScalingPolicyRequest;
CreateAutoScalingPolicyRequest::CreateAutoScalingPolicyRequest() :
RpcServiceRequest("emr", "2021-03-20", "CreateAutoScalingPolicy")
{
setMethod(HttpRequest::Method::Post);
}
CreateAutoScalingPolicyRequest::~CreateAutoScalingPolicyRequest()
{}
std::string CreateAutoScalingPolicyRequest::getClientToken()const
{
return clientToken_;
}
void CreateAutoScalingPolicyRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateAutoScalingPolicyRequest::getRegionId()const
{
return regionId_;
}
void CreateAutoScalingPolicyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateAutoScalingPolicyRequest::getClusterId()const
{
return clusterId_;
}
void CreateAutoScalingPolicyRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
Array CreateAutoScalingPolicyRequest::getScalingRuleSpecs()const
{
return scalingRuleSpecs_;
}
void CreateAutoScalingPolicyRequest::setScalingRuleSpecs(const Array& scalingRuleSpecs)
{
scalingRuleSpecs_ = scalingRuleSpecs;
setParameter("ScalingRuleSpecs", std::to_string(scalingRuleSpecs));
}
std::string CreateAutoScalingPolicyRequest::getNodeGroupId()const
{
return nodeGroupId_;
}
void CreateAutoScalingPolicyRequest::setNodeGroupId(const std::string& nodeGroupId)
{
nodeGroupId_ = nodeGroupId;
setParameter("NodeGroupId", nodeGroupId);
}
bool CreateAutoScalingPolicyRequest::getEnableWhenCreate()const
{
return enableWhenCreate_;
}
void CreateAutoScalingPolicyRequest::setEnableWhenCreate(bool enableWhenCreate)
{
enableWhenCreate_ = enableWhenCreate;
setParameter("EnableWhenCreate", enableWhenCreate ? "true" : "false");
}
std::string CreateAutoScalingPolicyRequest::getSystemDebug()const
{
return systemDebug_;
}
void CreateAutoScalingPolicyRequest::setSystemDebug(const std::string& systemDebug)
{
systemDebug_ = systemDebug;
setParameter("SystemDebug", systemDebug);
}

View File

@@ -14,38 +14,38 @@
* limitations under the License.
*/
#include <alibabacloud/emr/model/ModifyClusterTemplateResult.h>
#include <alibabacloud/emr/model/CreateAutoScalingPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
ModifyClusterTemplateResult::ModifyClusterTemplateResult() :
CreateAutoScalingPolicyResult::CreateAutoScalingPolicyResult() :
ServiceResult()
{}
ModifyClusterTemplateResult::ModifyClusterTemplateResult(const std::string &payload) :
CreateAutoScalingPolicyResult::CreateAutoScalingPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyClusterTemplateResult::~ModifyClusterTemplateResult()
CreateAutoScalingPolicyResult::~CreateAutoScalingPolicyResult()
{}
void ModifyClusterTemplateResult::parse(const std::string &payload)
void CreateAutoScalingPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ClusterTemplateId"].isNull())
clusterTemplateId_ = value["ClusterTemplateId"].asString();
if(!value["ScalingPolicyId"].isNull())
scalingPolicyId_ = value["ScalingPolicyId"].asString();
}
std::string ModifyClusterTemplateResult::getClusterTemplateId()const
std::string CreateAutoScalingPolicyResult::getScalingPolicyId()const
{
return clusterTemplateId_;
return scalingPolicyId_;
}

View File

@@ -0,0 +1,95 @@
/*
* 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/emr/model/CreateAutoScalingRuleRequest.h>
using AlibabaCloud::Emr::Model::CreateAutoScalingRuleRequest;
CreateAutoScalingRuleRequest::CreateAutoScalingRuleRequest() :
RpcServiceRequest("emr", "2021-03-20", "CreateAutoScalingRule")
{
setMethod(HttpRequest::Method::Post);
}
CreateAutoScalingRuleRequest::~CreateAutoScalingRuleRequest()
{}
std::string CreateAutoScalingRuleRequest::getClientToken()const
{
return clientToken_;
}
void CreateAutoScalingRuleRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateAutoScalingRuleRequest::getRegionId()const
{
return regionId_;
}
void CreateAutoScalingRuleRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
Struct CreateAutoScalingRuleRequest::getScalingRuleSpec()const
{
return scalingRuleSpec_;
}
void CreateAutoScalingRuleRequest::setScalingRuleSpec(const Struct& scalingRuleSpec)
{
scalingRuleSpec_ = scalingRuleSpec;
setParameter("ScalingRuleSpec", std::to_string(scalingRuleSpec));
}
std::string CreateAutoScalingRuleRequest::getClusterId()const
{
return clusterId_;
}
void CreateAutoScalingRuleRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string CreateAutoScalingRuleRequest::getSystemDebug()const
{
return systemDebug_;
}
void CreateAutoScalingRuleRequest::setSystemDebug(const std::string& systemDebug)
{
systemDebug_ = systemDebug;
setParameter("SystemDebug", systemDebug);
}
std::string CreateAutoScalingRuleRequest::getScalingPolicyId()const
{
return scalingPolicyId_;
}
void CreateAutoScalingRuleRequest::setScalingPolicyId(const std::string& scalingPolicyId)
{
scalingPolicyId_ = scalingPolicyId;
setParameter("ScalingPolicyId", scalingPolicyId);
}

View File

@@ -14,38 +14,38 @@
* limitations under the License.
*/
#include <alibabacloud/emr/model/CreateClusterTemplateResult.h>
#include <alibabacloud/emr/model/CreateAutoScalingRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
CreateClusterTemplateResult::CreateClusterTemplateResult() :
CreateAutoScalingRuleResult::CreateAutoScalingRuleResult() :
ServiceResult()
{}
CreateClusterTemplateResult::CreateClusterTemplateResult(const std::string &payload) :
CreateAutoScalingRuleResult::CreateAutoScalingRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateClusterTemplateResult::~CreateClusterTemplateResult()
CreateAutoScalingRuleResult::~CreateAutoScalingRuleResult()
{}
void CreateClusterTemplateResult::parse(const std::string &payload)
void CreateAutoScalingRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ClusterTemplateId"].isNull())
clusterTemplateId_ = value["ClusterTemplateId"].asString();
if(!value["ScalingRuleId"].isNull())
scalingRuleId_ = value["ScalingRuleId"].asString();
}
std::string CreateClusterTemplateResult::getClusterTemplateId()const
std::string CreateAutoScalingRuleResult::getScalingRuleId()const
{
return clusterTemplateId_;
return scalingRuleId_;
}

View File

@@ -0,0 +1,425 @@
/*
* 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/emr/model/CreateClusterRequest.h>
using AlibabaCloud::Emr::Model::CreateClusterRequest;
CreateClusterRequest::CreateClusterRequest() :
RpcServiceRequest("emr", "2021-03-20", "CreateCluster")
{
setMethod(HttpRequest::Method::Post);
}
CreateClusterRequest::~CreateClusterRequest()
{}
std::string CreateClusterRequest::getMainVersion()const
{
return mainVersion_;
}
void CreateClusterRequest::setMainVersion(const std::string& mainVersion)
{
mainVersion_ = mainVersion;
setParameter("MainVersion", mainVersion);
}
std::string CreateClusterRequest::getNodeKeyPairName()const
{
return nodeKeyPairName_;
}
void CreateClusterRequest::setNodeKeyPairName(const std::string& nodeKeyPairName)
{
nodeKeyPairName_ = nodeKeyPairName;
setParameter("NodeKeyPairName", nodeKeyPairName);
}
std::string CreateClusterRequest::getClusterName()const
{
return clusterName_;
}
void CreateClusterRequest::setClusterName(const std::string& clusterName)
{
clusterName_ = clusterName;
setParameter("ClusterName", clusterName);
}
std::string CreateClusterRequest::getMetaStoreType()const
{
return metaStoreType_;
}
void CreateClusterRequest::setMetaStoreType(const std::string& metaStoreType)
{
metaStoreType_ = metaStoreType;
setParameter("MetaStoreType", metaStoreType);
}
std::string CreateClusterRequest::getReleaseVersion()const
{
return releaseVersion_;
}
void CreateClusterRequest::setReleaseVersion(const std::string& releaseVersion)
{
releaseVersion_ = releaseVersion;
setParameter("ReleaseVersion", releaseVersion);
}
std::string CreateClusterRequest::getDeployMode()const
{
return deployMode_;
}
void CreateClusterRequest::setDeployMode(const std::string& deployMode)
{
deployMode_ = deployMode;
setParameter("DeployMode", deployMode);
}
std::string CreateClusterRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateClusterRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
Struct CreateClusterRequest::getClickhouseConf()const
{
return clickhouseConf_;
}
void CreateClusterRequest::setClickhouseConf(const Struct& clickhouseConf)
{
clickhouseConf_ = clickhouseConf;
setParameter("ClickhouseConf", std::to_string(clickhouseConf));
}
Array CreateClusterRequest::getNodeGroups()const
{
return nodeGroups_;
}
void CreateClusterRequest::setNodeGroups(const Array& nodeGroups)
{
nodeGroups_ = nodeGroups;
setParameter("NodeGroups", std::to_string(nodeGroups));
}
Struct CreateClusterRequest::getMetaStoreConf()const
{
return metaStoreConf_;
}
void CreateClusterRequest::setMetaStoreConf(const Struct& metaStoreConf)
{
metaStoreConf_ = metaStoreConf;
setParameter("MetaStoreConf", std::to_string(metaStoreConf));
}
std::string CreateClusterRequest::getNodeRamRole()const
{
return nodeRamRole_;
}
void CreateClusterRequest::setNodeRamRole(const std::string& nodeRamRole)
{
nodeRamRole_ = nodeRamRole;
setParameter("NodeRamRole", nodeRamRole);
}
bool CreateClusterRequest::getMasterWithPublicIp()const
{
return masterWithPublicIp_;
}
void CreateClusterRequest::setMasterWithPublicIp(bool masterWithPublicIp)
{
masterWithPublicIp_ = masterWithPublicIp;
setParameter("MasterWithPublicIp", masterWithPublicIp ? "true" : "false");
}
Array CreateClusterRequest::getUsers()const
{
return users_;
}
void CreateClusterRequest::setUsers(const Array& users)
{
users_ = users;
setParameter("Users", std::to_string(users));
}
Array CreateClusterRequest::getTags()const
{
return tags_;
}
void CreateClusterRequest::setTags(const Array& tags)
{
tags_ = tags;
setParameter("Tags", std::to_string(tags));
}
std::string CreateClusterRequest::getClusterType()const
{
return clusterType_;
}
void CreateClusterRequest::setClusterType(const std::string& clusterType)
{
clusterType_ = clusterType;
setParameter("ClusterType", clusterType);
}
std::string CreateClusterRequest::getVSwitchId()const
{
return vSwitchId_;
}
void CreateClusterRequest::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
setParameter("VSwitchId", vSwitchId);
}
Struct CreateClusterRequest::getNodeAttributes()const
{
return nodeAttributes_;
}
void CreateClusterRequest::setNodeAttributes(const Struct& nodeAttributes)
{
nodeAttributes_ = nodeAttributes;
setParameter("NodeAttributes", std::to_string(nodeAttributes));
}
std::string CreateClusterRequest::getNodeRootPassword()const
{
return nodeRootPassword_;
}
void CreateClusterRequest::setNodeRootPassword(const std::string& nodeRootPassword)
{
nodeRootPassword_ = nodeRootPassword;
setParameter("NodeRootPassword", nodeRootPassword);
}
Array CreateClusterRequest::getBootstrapScripts()const
{
return bootstrapScripts_;
}
void CreateClusterRequest::setBootstrapScripts(const Array& bootstrapScripts)
{
bootstrapScripts_ = bootstrapScripts;
setParameter("BootstrapScripts", std::to_string(bootstrapScripts));
}
std::string CreateClusterRequest::getZoneId()const
{
return zoneId_;
}
void CreateClusterRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}
std::string CreateClusterRequest::getSystemDebug()const
{
return systemDebug_;
}
void CreateClusterRequest::setSystemDebug(const std::string& systemDebug)
{
systemDebug_ = systemDebug;
setParameter("SystemDebug", systemDebug);
}
std::string CreateClusterRequest::getClientToken()const
{
return clientToken_;
}
void CreateClusterRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateClusterRequest::getSecurityGroupId()const
{
return securityGroupId_;
}
void CreateClusterRequest::setSecurityGroupId(const std::string& securityGroupId)
{
securityGroupId_ = securityGroupId;
setParameter("SecurityGroupId", securityGroupId);
}
std::string CreateClusterRequest::getDescription()const
{
return description_;
}
void CreateClusterRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateClusterRequest::getRegionId()const
{
return regionId_;
}
void CreateClusterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateClusterRequest::getSecurityMode()const
{
return securityMode_;
}
void CreateClusterRequest::setSecurityMode(const std::string& securityMode)
{
securityMode_ = securityMode;
setParameter("SecurityMode", securityMode);
}
Struct CreateClusterRequest::getSubscriptionConfig()const
{
return subscriptionConfig_;
}
void CreateClusterRequest::setSubscriptionConfig(const Struct& subscriptionConfig)
{
subscriptionConfig_ = subscriptionConfig;
setParameter("SubscriptionConfig", std::to_string(subscriptionConfig));
}
Array CreateClusterRequest::getEmrStudioConfigs()const
{
return emrStudioConfigs_;
}
void CreateClusterRequest::setEmrStudioConfigs(const Array& emrStudioConfigs)
{
emrStudioConfigs_ = emrStudioConfigs;
setParameter("EmrStudioConfigs", std::to_string(emrStudioConfigs));
}
std::string CreateClusterRequest::getSlaveSecurityGroupId()const
{
return slaveSecurityGroupId_;
}
void CreateClusterRequest::setSlaveSecurityGroupId(const std::string& slaveSecurityGroupId)
{
slaveSecurityGroupId_ = slaveSecurityGroupId;
setParameter("SlaveSecurityGroupId", slaveSecurityGroupId);
}
Array CreateClusterRequest::getOptionApplications()const
{
return optionApplications_;
}
void CreateClusterRequest::setOptionApplications(const Array& optionApplications)
{
optionApplications_ = optionApplications;
setParameter("OptionApplications", std::to_string(optionApplications));
}
Array CreateClusterRequest::getApplicationConfigs()const
{
return applicationConfigs_;
}
void CreateClusterRequest::setApplicationConfigs(const Array& applicationConfigs)
{
applicationConfigs_ = applicationConfigs;
setParameter("ApplicationConfigs", std::to_string(applicationConfigs));
}
Array CreateClusterRequest::getComponentLayouts()const
{
return componentLayouts_;
}
void CreateClusterRequest::setComponentLayouts(const Array& componentLayouts)
{
componentLayouts_ = componentLayouts;
setParameter("ComponentLayouts", std::to_string(componentLayouts));
}
Array CreateClusterRequest::getPromotions()const
{
return promotions_;
}
void CreateClusterRequest::setPromotions(const Array& promotions)
{
promotions_ = promotions;
setParameter("Promotions", std::to_string(promotions));
}
std::string CreateClusterRequest::getVpcId()const
{
return vpcId_;
}
void CreateClusterRequest::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
setParameter("VpcId", vpcId);
}
std::string CreateClusterRequest::getPaymentType()const
{
return paymentType_;
}
void CreateClusterRequest::setPaymentType(const std::string& paymentType)
{
paymentType_ = paymentType;
setParameter("PaymentType", paymentType);
}
Array CreateClusterRequest::getApplications()const
{
return applications_;
}
void CreateClusterRequest::setApplications(const Array& applications)
{
applications_ = applications;
setParameter("Applications", std::to_string(applications));
}

View File

@@ -14,38 +14,45 @@
* limitations under the License.
*/
#include <alibabacloud/emr/model/SubmitFlowJobResult.h>
#include <alibabacloud/emr/model/CreateClusterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
SubmitFlowJobResult::SubmitFlowJobResult() :
CreateClusterResult::CreateClusterResult() :
ServiceResult()
{}
SubmitFlowJobResult::SubmitFlowJobResult(const std::string &payload) :
CreateClusterResult::CreateClusterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubmitFlowJobResult::~SubmitFlowJobResult()
CreateClusterResult::~CreateClusterResult()
{}
void SubmitFlowJobResult::parse(const std::string &payload)
void CreateClusterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Id"].isNull())
id_ = value["Id"].asString();
if(!value["ClusterId"].isNull())
clusterId_ = value["ClusterId"].asString();
if(!value["OperationId"].isNull())
operationId_ = value["OperationId"].asString();
}
std::string SubmitFlowJobResult::getId()const
std::string CreateClusterResult::getClusterId()const
{
return id_;
return clusterId_;
}
std::string CreateClusterResult::getOperationId()const
{
return operationId_;
}

View File

@@ -0,0 +1,95 @@
/*
* 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/emr/model/CreateClusterScriptRequest.h>
using AlibabaCloud::Emr::Model::CreateClusterScriptRequest;
CreateClusterScriptRequest::CreateClusterScriptRequest() :
RpcServiceRequest("emr", "2021-03-20", "CreateClusterScript")
{
setMethod(HttpRequest::Method::Post);
}
CreateClusterScriptRequest::~CreateClusterScriptRequest()
{}
std::string CreateClusterScriptRequest::getClientToken()const
{
return clientToken_;
}
void CreateClusterScriptRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateClusterScriptRequest::getRegionId()const
{
return regionId_;
}
void CreateClusterScriptRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
Array CreateClusterScriptRequest::getClusterScripts()const
{
return clusterScripts_;
}
void CreateClusterScriptRequest::setClusterScripts(const Array& clusterScripts)
{
clusterScripts_ = clusterScripts;
setParameter("ClusterScripts", std::to_string(clusterScripts));
}
std::string CreateClusterScriptRequest::getScriptType()const
{
return scriptType_;
}
void CreateClusterScriptRequest::setScriptType(const std::string& scriptType)
{
scriptType_ = scriptType;
setParameter("ScriptType", scriptType);
}
std::string CreateClusterScriptRequest::getClusterId()const
{
return clusterId_;
}
void CreateClusterScriptRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string CreateClusterScriptRequest::getSystemDebug()const
{
return systemDebug_;
}
void CreateClusterScriptRequest::setSystemDebug(const std::string& systemDebug)
{
systemDebug_ = systemDebug;
setParameter("SystemDebug", systemDebug);
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/emr/model/DeleteFlowProjectUserResult.h>
#include <alibabacloud/emr/model/CreateClusterScriptResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
DeleteFlowProjectUserResult::DeleteFlowProjectUserResult() :
CreateClusterScriptResult::CreateClusterScriptResult() :
ServiceResult()
{}
DeleteFlowProjectUserResult::DeleteFlowProjectUserResult(const std::string &payload) :
CreateClusterScriptResult::CreateClusterScriptResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteFlowProjectUserResult::~DeleteFlowProjectUserResult()
CreateClusterScriptResult::~CreateClusterScriptResult()
{}
void DeleteFlowProjectUserResult::parse(const std::string &payload)
void CreateClusterScriptResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
@@ -44,7 +44,7 @@ void DeleteFlowProjectUserResult::parse(const std::string &payload)
}
bool DeleteFlowProjectUserResult::getData()const
bool CreateClusterScriptResult::getData()const
{
return data_;
}

View File

@@ -1,528 +0,0 @@
/*
* 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/emr/model/CreateClusterTemplateRequest.h>
using AlibabaCloud::Emr::Model::CreateClusterTemplateRequest;
CreateClusterTemplateRequest::CreateClusterTemplateRequest() :
RpcServiceRequest("emr", "2016-04-08", "CreateClusterTemplate")
{
setMethod(HttpRequest::Method::Post);
}
CreateClusterTemplateRequest::~CreateClusterTemplateRequest()
{}
long CreateClusterTemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateClusterTemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateClusterTemplateRequest::getLogPath()const
{
return logPath_;
}
void CreateClusterTemplateRequest::setLogPath(const std::string& logPath)
{
logPath_ = logPath;
setParameter("LogPath", logPath);
}
std::string CreateClusterTemplateRequest::getMasterPwd()const
{
return masterPwd_;
}
void CreateClusterTemplateRequest::setMasterPwd(const std::string& masterPwd)
{
masterPwd_ = masterPwd;
setParameter("MasterPwd", masterPwd);
}
std::string CreateClusterTemplateRequest::getConfigurations()const
{
return configurations_;
}
void CreateClusterTemplateRequest::setConfigurations(const std::string& configurations)
{
configurations_ = configurations;
setParameter("Configurations", configurations);
}
bool CreateClusterTemplateRequest::getSshEnable()const
{
return sshEnable_;
}
void CreateClusterTemplateRequest::setSshEnable(bool sshEnable)
{
sshEnable_ = sshEnable;
setParameter("SshEnable", sshEnable ? "true" : "false");
}
std::string CreateClusterTemplateRequest::getKeyPairName()const
{
return keyPairName_;
}
void CreateClusterTemplateRequest::setKeyPairName(const std::string& keyPairName)
{
keyPairName_ = keyPairName;
setParameter("KeyPairName", keyPairName);
}
std::string CreateClusterTemplateRequest::getMetaStoreType()const
{
return metaStoreType_;
}
void CreateClusterTemplateRequest::setMetaStoreType(const std::string& metaStoreType)
{
metaStoreType_ = metaStoreType;
setParameter("MetaStoreType", metaStoreType);
}
std::string CreateClusterTemplateRequest::getSecurityGroupName()const
{
return securityGroupName_;
}
void CreateClusterTemplateRequest::setSecurityGroupName(const std::string& securityGroupName)
{
securityGroupName_ = securityGroupName;
setParameter("SecurityGroupName", securityGroupName);
}
std::string CreateClusterTemplateRequest::getMachineType()const
{
return machineType_;
}
void CreateClusterTemplateRequest::setMachineType(const std::string& machineType)
{
machineType_ = machineType;
setParameter("MachineType", machineType);
}
std::string CreateClusterTemplateRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateClusterTemplateRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::vector<CreateClusterTemplateRequest::BootstrapAction> CreateClusterTemplateRequest::getBootstrapAction()const
{
return bootstrapAction_;
}
void CreateClusterTemplateRequest::setBootstrapAction(const std::vector<BootstrapAction>& bootstrapAction)
{
bootstrapAction_ = bootstrapAction;
for(int dep1 = 0; dep1!= bootstrapAction.size(); dep1++) {
auto bootstrapActionObj = bootstrapAction.at(dep1);
std::string bootstrapActionObjStr = "BootstrapAction." + std::to_string(dep1 + 1);
setParameter(bootstrapActionObjStr + ".Path", bootstrapActionObj.path);
setParameter(bootstrapActionObjStr + ".ExecutionTarget", bootstrapActionObj.executionTarget);
setParameter(bootstrapActionObjStr + ".ExecutionMoment", bootstrapActionObj.executionMoment);
setParameter(bootstrapActionObjStr + ".Arg", bootstrapActionObj.arg);
setParameter(bootstrapActionObjStr + ".Name", bootstrapActionObj.name);
setParameter(bootstrapActionObjStr + ".ExecutionFailStrategy", bootstrapActionObj.executionFailStrategy);
}
}
std::string CreateClusterTemplateRequest::getMetaStoreConf()const
{
return metaStoreConf_;
}
void CreateClusterTemplateRequest::setMetaStoreConf(const std::string& metaStoreConf)
{
metaStoreConf_ = metaStoreConf;
setParameter("MetaStoreConf", metaStoreConf);
}
std::string CreateClusterTemplateRequest::getEmrVer()const
{
return emrVer_;
}
void CreateClusterTemplateRequest::setEmrVer(const std::string& emrVer)
{
emrVer_ = emrVer;
setParameter("EmrVer", emrVer);
}
std::vector<CreateClusterTemplateRequest::Tag> CreateClusterTemplateRequest::getTag()const
{
return tag_;
}
void CreateClusterTemplateRequest::setTag(const std::vector<Tag>& tag)
{
tag_ = tag;
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
}
bool CreateClusterTemplateRequest::getIsOpenPublicIp()const
{
return isOpenPublicIp_;
}
void CreateClusterTemplateRequest::setIsOpenPublicIp(bool isOpenPublicIp)
{
isOpenPublicIp_ = isOpenPublicIp;
setParameter("IsOpenPublicIp", isOpenPublicIp ? "true" : "false");
}
int CreateClusterTemplateRequest::getPeriod()const
{
return period_;
}
void CreateClusterTemplateRequest::setPeriod(int period)
{
period_ = period;
setParameter("Period", std::to_string(period));
}
std::string CreateClusterTemplateRequest::getInstanceGeneration()const
{
return instanceGeneration_;
}
void CreateClusterTemplateRequest::setInstanceGeneration(const std::string& instanceGeneration)
{
instanceGeneration_ = instanceGeneration;
setParameter("InstanceGeneration", instanceGeneration);
}
std::string CreateClusterTemplateRequest::getVSwitchId()const
{
return vSwitchId_;
}
void CreateClusterTemplateRequest::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
setParameter("VSwitchId", vSwitchId);
}
std::string CreateClusterTemplateRequest::getClusterType()const
{
return clusterType_;
}
void CreateClusterTemplateRequest::setClusterType(const std::string& clusterType)
{
clusterType_ = clusterType;
setParameter("ClusterType", clusterType);
}
bool CreateClusterTemplateRequest::getAutoRenew()const
{
return autoRenew_;
}
void CreateClusterTemplateRequest::setAutoRenew(bool autoRenew)
{
autoRenew_ = autoRenew;
setParameter("AutoRenew", autoRenew ? "true" : "false");
}
std::vector<std::string> CreateClusterTemplateRequest::getOptionSoftWareList()const
{
return optionSoftWareList_;
}
void CreateClusterTemplateRequest::setOptionSoftWareList(const std::vector<std::string>& optionSoftWareList)
{
optionSoftWareList_ = optionSoftWareList;
for(int dep1 = 0; dep1!= optionSoftWareList.size(); dep1++) {
setParameter("OptionSoftWareList."+ std::to_string(dep1), optionSoftWareList.at(dep1));
}
}
std::string CreateClusterTemplateRequest::getNetType()const
{
return netType_;
}
void CreateClusterTemplateRequest::setNetType(const std::string& netType)
{
netType_ = netType;
setParameter("NetType", netType);
}
std::string CreateClusterTemplateRequest::getZoneId()const
{
return zoneId_;
}
void CreateClusterTemplateRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}
bool CreateClusterTemplateRequest::getUseCustomHiveMetaDb()const
{
return useCustomHiveMetaDb_;
}
void CreateClusterTemplateRequest::setUseCustomHiveMetaDb(bool useCustomHiveMetaDb)
{
useCustomHiveMetaDb_ = useCustomHiveMetaDb;
setParameter("UseCustomHiveMetaDb", useCustomHiveMetaDb ? "true" : "false");
}
bool CreateClusterTemplateRequest::getInitCustomHiveMetaDb()const
{
return initCustomHiveMetaDb_;
}
void CreateClusterTemplateRequest::setInitCustomHiveMetaDb(bool initCustomHiveMetaDb)
{
initCustomHiveMetaDb_ = initCustomHiveMetaDb;
setParameter("InitCustomHiveMetaDb", initCustomHiveMetaDb ? "true" : "false");
}
std::string CreateClusterTemplateRequest::getClientToken()const
{
return clientToken_;
}
void CreateClusterTemplateRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
bool CreateClusterTemplateRequest::getIoOptimized()const
{
return ioOptimized_;
}
void CreateClusterTemplateRequest::setIoOptimized(bool ioOptimized)
{
ioOptimized_ = ioOptimized;
setParameter("IoOptimized", ioOptimized ? "true" : "false");
}
std::string CreateClusterTemplateRequest::getSecurityGroupId()const
{
return securityGroupId_;
}
void CreateClusterTemplateRequest::setSecurityGroupId(const std::string& securityGroupId)
{
securityGroupId_ = securityGroupId;
setParameter("SecurityGroupId", securityGroupId);
}
bool CreateClusterTemplateRequest::getEasEnable()const
{
return easEnable_;
}
void CreateClusterTemplateRequest::setEasEnable(bool easEnable)
{
easEnable_ = easEnable;
setParameter("EasEnable", easEnable ? "true" : "false");
}
std::string CreateClusterTemplateRequest::getDepositType()const
{
return depositType_;
}
void CreateClusterTemplateRequest::setDepositType(const std::string& depositType)
{
depositType_ = depositType;
setParameter("DepositType", depositType);
}
std::string CreateClusterTemplateRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateClusterTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string CreateClusterTemplateRequest::getDataDiskKMSKeyId()const
{
return dataDiskKMSKeyId_;
}
void CreateClusterTemplateRequest::setDataDiskKMSKeyId(const std::string& dataDiskKMSKeyId)
{
dataDiskKMSKeyId_ = dataDiskKMSKeyId;
setParameter("DataDiskKMSKeyId", dataDiskKMSKeyId);
}
std::string CreateClusterTemplateRequest::getRegionId()const
{
return regionId_;
}
void CreateClusterTemplateRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
bool CreateClusterTemplateRequest::getUseLocalMetaDb()const
{
return useLocalMetaDb_;
}
void CreateClusterTemplateRequest::setUseLocalMetaDb(bool useLocalMetaDb)
{
useLocalMetaDb_ = useLocalMetaDb;
setParameter("UseLocalMetaDb", useLocalMetaDb ? "true" : "false");
}
std::string CreateClusterTemplateRequest::getTemplateName()const
{
return templateName_;
}
void CreateClusterTemplateRequest::setTemplateName(const std::string& templateName)
{
templateName_ = templateName;
setParameter("TemplateName", templateName);
}
std::string CreateClusterTemplateRequest::getUserDefinedEmrEcsRole()const
{
return userDefinedEmrEcsRole_;
}
void CreateClusterTemplateRequest::setUserDefinedEmrEcsRole(const std::string& userDefinedEmrEcsRole)
{
userDefinedEmrEcsRole_ = userDefinedEmrEcsRole;
setParameter("UserDefinedEmrEcsRole", userDefinedEmrEcsRole);
}
bool CreateClusterTemplateRequest::getDataDiskEncrypted()const
{
return dataDiskEncrypted_;
}
void CreateClusterTemplateRequest::setDataDiskEncrypted(bool dataDiskEncrypted)
{
dataDiskEncrypted_ = dataDiskEncrypted;
setParameter("DataDiskEncrypted", dataDiskEncrypted ? "true" : "false");
}
std::string CreateClusterTemplateRequest::getVpcId()const
{
return vpcId_;
}
void CreateClusterTemplateRequest::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
setParameter("VpcId", vpcId);
}
std::vector<CreateClusterTemplateRequest::HostGroup> CreateClusterTemplateRequest::getHostGroup()const
{
return hostGroup_;
}
void CreateClusterTemplateRequest::setHostGroup(const std::vector<HostGroup>& hostGroup)
{
hostGroup_ = hostGroup;
for(int dep1 = 0; dep1!= hostGroup.size(); dep1++) {
auto hostGroupObj = hostGroup.at(dep1);
std::string hostGroupObjStr = "HostGroup." + std::to_string(dep1 + 1);
setParameter(hostGroupObjStr + ".Period", std::to_string(hostGroupObj.period));
setParameter(hostGroupObjStr + ".SysDiskCapacity", std::to_string(hostGroupObj.sysDiskCapacity));
setParameter(hostGroupObjStr + ".PrivatePoolOptionsId", hostGroupObj.privatePoolOptionsId);
setParameter(hostGroupObjStr + ".DiskCapacity", std::to_string(hostGroupObj.diskCapacity));
setParameter(hostGroupObjStr + ".SysDiskType", hostGroupObj.sysDiskType);
setParameter(hostGroupObjStr + ".ClusterId", hostGroupObj.clusterId);
setParameter(hostGroupObjStr + ".DiskType", hostGroupObj.diskType);
setParameter(hostGroupObjStr + ".HostGroupName", hostGroupObj.hostGroupName);
setParameter(hostGroupObjStr + ".VSwitchId", hostGroupObj.vSwitchId);
setParameter(hostGroupObjStr + ".DiskCount", std::to_string(hostGroupObj.diskCount));
setParameter(hostGroupObjStr + ".AutoRenew", hostGroupObj.autoRenew ? "true" : "false");
setParameter(hostGroupObjStr + ".HostGroupId", hostGroupObj.hostGroupId);
setParameter(hostGroupObjStr + ".NodeCount", std::to_string(hostGroupObj.nodeCount));
setParameter(hostGroupObjStr + ".InstanceType", hostGroupObj.instanceType);
setParameter(hostGroupObjStr + ".Comment", hostGroupObj.comment);
setParameter(hostGroupObjStr + ".ChargeType", hostGroupObj.chargeType);
setParameter(hostGroupObjStr + ".MultiInstanceTypes", hostGroupObj.multiInstanceTypes);
setParameter(hostGroupObjStr + ".CreateType", hostGroupObj.createType);
setParameter(hostGroupObjStr + ".HostGroupType", hostGroupObj.hostGroupType);
setParameter(hostGroupObjStr + ".PrivatePoolOptionsMatchCriteria", hostGroupObj.privatePoolOptionsMatchCriteria);
}
}
std::vector<CreateClusterTemplateRequest::Config> CreateClusterTemplateRequest::getConfig()const
{
return config_;
}
void CreateClusterTemplateRequest::setConfig(const std::vector<Config>& config)
{
config_ = config;
for(int dep1 = 0; dep1!= config.size(); dep1++) {
auto configObj = config.at(dep1);
std::string configObjStr = "Config." + std::to_string(dep1 + 1);
setParameter(configObjStr + ".ConfigKey", configObj.configKey);
setParameter(configObjStr + ".FileName", configObj.fileName);
setParameter(configObjStr + ".Encrypt", configObj.encrypt);
setParameter(configObjStr + ".Replace", configObj.replace);
setParameter(configObjStr + ".ConfigValue", configObj.configValue);
setParameter(configObjStr + ".ServiceName", configObj.serviceName);
}
}
bool CreateClusterTemplateRequest::getHighAvailabilityEnable()const
{
return highAvailabilityEnable_;
}
void CreateClusterTemplateRequest::setHighAvailabilityEnable(bool highAvailabilityEnable)
{
highAvailabilityEnable_ = highAvailabilityEnable;
setParameter("HighAvailabilityEnable", highAvailabilityEnable ? "true" : "false");
}

View File

@@ -1,674 +0,0 @@
/*
* 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/emr/model/CreateClusterV2Request.h>
using AlibabaCloud::Emr::Model::CreateClusterV2Request;
CreateClusterV2Request::CreateClusterV2Request() :
RpcServiceRequest("emr", "2016-04-08", "CreateClusterV2")
{
setMethod(HttpRequest::Method::Post);
}
CreateClusterV2Request::~CreateClusterV2Request()
{}
bool CreateClusterV2Request::getAutoPayOrder()const
{
return autoPayOrder_;
}
void CreateClusterV2Request::setAutoPayOrder(bool autoPayOrder)
{
autoPayOrder_ = autoPayOrder;
setParameter("AutoPayOrder", autoPayOrder ? "true" : "false");
}
long CreateClusterV2Request::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateClusterV2Request::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateClusterV2Request::getLogPath()const
{
return logPath_;
}
void CreateClusterV2Request::setLogPath(const std::string& logPath)
{
logPath_ = logPath;
setParameter("LogPath", logPath);
}
std::string CreateClusterV2Request::getMasterPwd()const
{
return masterPwd_;
}
void CreateClusterV2Request::setMasterPwd(const std::string& masterPwd)
{
masterPwd_ = masterPwd;
setParameter("MasterPwd", masterPwd);
}
std::string CreateClusterV2Request::getConfigurations()const
{
return configurations_;
}
void CreateClusterV2Request::setConfigurations(const std::string& configurations)
{
configurations_ = configurations;
setParameter("Configurations", configurations);
}
bool CreateClusterV2Request::getSshEnable()const
{
return sshEnable_;
}
void CreateClusterV2Request::setSshEnable(bool sshEnable)
{
sshEnable_ = sshEnable;
setParameter("SshEnable", sshEnable ? "true" : "false");
}
std::string CreateClusterV2Request::getKeyPairName()const
{
return keyPairName_;
}
void CreateClusterV2Request::setKeyPairName(const std::string& keyPairName)
{
keyPairName_ = keyPairName;
setParameter("KeyPairName", keyPairName);
}
std::string CreateClusterV2Request::getMetaStoreType()const
{
return metaStoreType_;
}
void CreateClusterV2Request::setMetaStoreType(const std::string& metaStoreType)
{
metaStoreType_ = metaStoreType;
setParameter("MetaStoreType", metaStoreType);
}
std::string CreateClusterV2Request::getSecurityGroupName()const
{
return securityGroupName_;
}
void CreateClusterV2Request::setSecurityGroupName(const std::string& securityGroupName)
{
securityGroupName_ = securityGroupName;
setParameter("SecurityGroupName", securityGroupName);
}
std::string CreateClusterV2Request::getMachineType()const
{
return machineType_;
}
void CreateClusterV2Request::setMachineType(const std::string& machineType)
{
machineType_ = machineType;
setParameter("MachineType", machineType);
}
std::string CreateClusterV2Request::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateClusterV2Request::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::vector<CreateClusterV2Request::HostComponentInfo> CreateClusterV2Request::getHostComponentInfo()const
{
return hostComponentInfo_;
}
void CreateClusterV2Request::setHostComponentInfo(const std::vector<HostComponentInfo>& hostComponentInfo)
{
hostComponentInfo_ = hostComponentInfo;
for(int dep1 = 0; dep1!= hostComponentInfo.size(); dep1++) {
auto hostComponentInfoObj = hostComponentInfo.at(dep1);
std::string hostComponentInfoObjStr = "HostComponentInfo." + std::to_string(dep1 + 1);
setParameter(hostComponentInfoObjStr + ".HostName", hostComponentInfoObj.hostName);
for(int dep2 = 0; dep2!= hostComponentInfoObj.componentNameList.size(); dep2++) {
setParameter(hostComponentInfoObjStr + ".ComponentNameList."+ std::to_string(dep2), hostComponentInfoObj.componentNameList.at(dep2));
}
setParameter(hostComponentInfoObjStr + ".ServiceName", hostComponentInfoObj.serviceName);
}
}
std::string CreateClusterV2Request::getClickHouseConf()const
{
return clickHouseConf_;
}
void CreateClusterV2Request::setClickHouseConf(const std::string& clickHouseConf)
{
clickHouseConf_ = clickHouseConf;
setParameter("ClickHouseConf", clickHouseConf);
}
std::vector<CreateClusterV2Request::BootstrapAction> CreateClusterV2Request::getBootstrapAction()const
{
return bootstrapAction_;
}
void CreateClusterV2Request::setBootstrapAction(const std::vector<BootstrapAction>& bootstrapAction)
{
bootstrapAction_ = bootstrapAction;
for(int dep1 = 0; dep1!= bootstrapAction.size(); dep1++) {
auto bootstrapActionObj = bootstrapAction.at(dep1);
std::string bootstrapActionObjStr = "BootstrapAction." + std::to_string(dep1 + 1);
setParameter(bootstrapActionObjStr + ".Path", bootstrapActionObj.path);
setParameter(bootstrapActionObjStr + ".ExecutionTarget", bootstrapActionObj.executionTarget);
setParameter(bootstrapActionObjStr + ".ExecutionMoment", bootstrapActionObj.executionMoment);
setParameter(bootstrapActionObjStr + ".Arg", bootstrapActionObj.arg);
setParameter(bootstrapActionObjStr + ".Name", bootstrapActionObj.name);
setParameter(bootstrapActionObjStr + ".ExecutionFailStrategy", bootstrapActionObj.executionFailStrategy);
}
}
std::string CreateClusterV2Request::getMetaStoreConf()const
{
return metaStoreConf_;
}
void CreateClusterV2Request::setMetaStoreConf(const std::string& metaStoreConf)
{
metaStoreConf_ = metaStoreConf;
setParameter("MetaStoreConf", metaStoreConf);
}
std::string CreateClusterV2Request::getEmrVer()const
{
return emrVer_;
}
void CreateClusterV2Request::setEmrVer(const std::string& emrVer)
{
emrVer_ = emrVer;
setParameter("EmrVer", emrVer);
}
std::vector<CreateClusterV2Request::Tag> CreateClusterV2Request::getTag()const
{
return tag_;
}
void CreateClusterV2Request::setTag(const std::vector<Tag>& tag)
{
tag_ = tag;
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
}
std::string CreateClusterV2Request::getAuthorizeContent()const
{
return authorizeContent_;
}
void CreateClusterV2Request::setAuthorizeContent(const std::string& authorizeContent)
{
authorizeContent_ = authorizeContent;
setParameter("AuthorizeContent", authorizeContent);
}
bool CreateClusterV2Request::getIsOpenPublicIp()const
{
return isOpenPublicIp_;
}
void CreateClusterV2Request::setIsOpenPublicIp(bool isOpenPublicIp)
{
isOpenPublicIp_ = isOpenPublicIp;
setParameter("IsOpenPublicIp", isOpenPublicIp ? "true" : "false");
}
int CreateClusterV2Request::getPeriod()const
{
return period_;
}
void CreateClusterV2Request::setPeriod(int period)
{
period_ = period;
setParameter("Period", std::to_string(period));
}
std::string CreateClusterV2Request::getInstanceGeneration()const
{
return instanceGeneration_;
}
void CreateClusterV2Request::setInstanceGeneration(const std::string& instanceGeneration)
{
instanceGeneration_ = instanceGeneration;
setParameter("InstanceGeneration", instanceGeneration);
}
std::string CreateClusterV2Request::getVSwitchId()const
{
return vSwitchId_;
}
void CreateClusterV2Request::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
setParameter("VSwitchId", vSwitchId);
}
std::string CreateClusterV2Request::getClusterType()const
{
return clusterType_;
}
void CreateClusterV2Request::setClusterType(const std::string& clusterType)
{
clusterType_ = clusterType;
setParameter("ClusterType", clusterType);
}
std::string CreateClusterV2Request::getExtraAttributes()const
{
return extraAttributes_;
}
void CreateClusterV2Request::setExtraAttributes(const std::string& extraAttributes)
{
extraAttributes_ = extraAttributes;
setParameter("ExtraAttributes", extraAttributes);
}
bool CreateClusterV2Request::getAutoRenew()const
{
return autoRenew_;
}
void CreateClusterV2Request::setAutoRenew(bool autoRenew)
{
autoRenew_ = autoRenew;
setParameter("AutoRenew", autoRenew ? "true" : "false");
}
std::vector<std::string> CreateClusterV2Request::getOptionSoftWareList()const
{
return optionSoftWareList_;
}
void CreateClusterV2Request::setOptionSoftWareList(const std::vector<std::string>& optionSoftWareList)
{
optionSoftWareList_ = optionSoftWareList;
for(int dep1 = 0; dep1!= optionSoftWareList.size(); dep1++) {
setParameter("OptionSoftWareList."+ std::to_string(dep1), optionSoftWareList.at(dep1));
}
}
std::string CreateClusterV2Request::getNetType()const
{
return netType_;
}
void CreateClusterV2Request::setNetType(const std::string& netType)
{
netType_ = netType;
setParameter("NetType", netType);
}
std::string CreateClusterV2Request::getName()const
{
return name_;
}
void CreateClusterV2Request::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateClusterV2Request::getZoneId()const
{
return zoneId_;
}
void CreateClusterV2Request::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}
bool CreateClusterV2Request::getUseCustomHiveMetaDB()const
{
return useCustomHiveMetaDB_;
}
void CreateClusterV2Request::setUseCustomHiveMetaDB(bool useCustomHiveMetaDB)
{
useCustomHiveMetaDB_ = useCustomHiveMetaDB;
setParameter("UseCustomHiveMetaDB", useCustomHiveMetaDB ? "true" : "false");
}
bool CreateClusterV2Request::getInitCustomHiveMetaDB()const
{
return initCustomHiveMetaDB_;
}
void CreateClusterV2Request::setInitCustomHiveMetaDB(bool initCustomHiveMetaDB)
{
initCustomHiveMetaDB_ = initCustomHiveMetaDB;
setParameter("InitCustomHiveMetaDB", initCustomHiveMetaDB ? "true" : "false");
}
std::string CreateClusterV2Request::getClientToken()const
{
return clientToken_;
}
void CreateClusterV2Request::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
bool CreateClusterV2Request::getIoOptimized()const
{
return ioOptimized_;
}
void CreateClusterV2Request::setIoOptimized(bool ioOptimized)
{
ioOptimized_ = ioOptimized;
setParameter("IoOptimized", ioOptimized ? "true" : "false");
}
std::string CreateClusterV2Request::getSecurityGroupId()const
{
return securityGroupId_;
}
void CreateClusterV2Request::setSecurityGroupId(const std::string& securityGroupId)
{
securityGroupId_ = securityGroupId;
setParameter("SecurityGroupId", securityGroupId);
}
bool CreateClusterV2Request::getEasEnable()const
{
return easEnable_;
}
void CreateClusterV2Request::setEasEnable(bool easEnable)
{
easEnable_ = easEnable;
setParameter("EasEnable", easEnable ? "true" : "false");
}
std::string CreateClusterV2Request::getDepositType()const
{
return depositType_;
}
void CreateClusterV2Request::setDepositType(const std::string& depositType)
{
depositType_ = depositType;
setParameter("DepositType", depositType);
}
std::string CreateClusterV2Request::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateClusterV2Request::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string CreateClusterV2Request::getDataDiskKMSKeyId()const
{
return dataDiskKMSKeyId_;
}
void CreateClusterV2Request::setDataDiskKMSKeyId(const std::string& dataDiskKMSKeyId)
{
dataDiskKMSKeyId_ = dataDiskKMSKeyId;
setParameter("DataDiskKMSKeyId", dataDiskKMSKeyId);
}
std::string CreateClusterV2Request::getRegionId()const
{
return regionId_;
}
void CreateClusterV2Request::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
bool CreateClusterV2Request::getUseLocalMetaDb()const
{
return useLocalMetaDb_;
}
void CreateClusterV2Request::setUseLocalMetaDb(bool useLocalMetaDb)
{
useLocalMetaDb_ = useLocalMetaDb;
setParameter("UseLocalMetaDb", useLocalMetaDb ? "true" : "false");
}
std::vector<CreateClusterV2Request::UserInfo> CreateClusterV2Request::getUserInfo()const
{
return userInfo_;
}
void CreateClusterV2Request::setUserInfo(const std::vector<UserInfo>& userInfo)
{
userInfo_ = userInfo;
for(int dep1 = 0; dep1!= userInfo.size(); dep1++) {
auto userInfoObj = userInfo.at(dep1);
std::string userInfoObjStr = "UserInfo." + std::to_string(dep1 + 1);
setParameter(userInfoObjStr + ".Password", userInfoObj.password);
setParameter(userInfoObjStr + ".UserId", userInfoObj.userId);
setParameter(userInfoObjStr + ".UserName", userInfoObj.userName);
}
}
std::string CreateClusterV2Request::getUserDefinedEmrEcsRole()const
{
return userDefinedEmrEcsRole_;
}
void CreateClusterV2Request::setUserDefinedEmrEcsRole(const std::string& userDefinedEmrEcsRole)
{
userDefinedEmrEcsRole_ = userDefinedEmrEcsRole;
setParameter("UserDefinedEmrEcsRole", userDefinedEmrEcsRole);
}
bool CreateClusterV2Request::getDataDiskEncrypted()const
{
return dataDiskEncrypted_;
}
void CreateClusterV2Request::setDataDiskEncrypted(bool dataDiskEncrypted)
{
dataDiskEncrypted_ = dataDiskEncrypted;
setParameter("DataDiskEncrypted", dataDiskEncrypted ? "true" : "false");
}
std::string CreateClusterV2Request::getWhiteListType()const
{
return whiteListType_;
}
void CreateClusterV2Request::setWhiteListType(const std::string& whiteListType)
{
whiteListType_ = whiteListType;
setParameter("WhiteListType", whiteListType);
}
std::string CreateClusterV2Request::getRelatedClusterId()const
{
return relatedClusterId_;
}
void CreateClusterV2Request::setRelatedClusterId(const std::string& relatedClusterId)
{
relatedClusterId_ = relatedClusterId;
setParameter("RelatedClusterId", relatedClusterId);
}
std::string CreateClusterV2Request::getVpcId()const
{
return vpcId_;
}
void CreateClusterV2Request::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
setParameter("VpcId", vpcId);
}
std::vector<CreateClusterV2Request::PromotionInfo> CreateClusterV2Request::getPromotionInfo()const
{
return promotionInfo_;
}
void CreateClusterV2Request::setPromotionInfo(const std::vector<PromotionInfo>& promotionInfo)
{
promotionInfo_ = promotionInfo;
for(int dep1 = 0; dep1!= promotionInfo.size(); dep1++) {
auto promotionInfoObj = promotionInfo.at(dep1);
std::string promotionInfoObjStr = "PromotionInfo." + std::to_string(dep1 + 1);
setParameter(promotionInfoObjStr + ".PromotionOptionCode", promotionInfoObj.promotionOptionCode);
setParameter(promotionInfoObjStr + ".ProductCode", promotionInfoObj.productCode);
setParameter(promotionInfoObjStr + ".PromotionOptionNo", promotionInfoObj.promotionOptionNo);
}
}
std::vector<CreateClusterV2Request::HostGroup> CreateClusterV2Request::getHostGroup()const
{
return hostGroup_;
}
void CreateClusterV2Request::setHostGroup(const std::vector<HostGroup>& hostGroup)
{
hostGroup_ = hostGroup;
for(int dep1 = 0; dep1!= hostGroup.size(); dep1++) {
auto hostGroupObj = hostGroup.at(dep1);
std::string hostGroupObjStr = "HostGroup." + std::to_string(dep1 + 1);
setParameter(hostGroupObjStr + ".Period", std::to_string(hostGroupObj.period));
setParameter(hostGroupObjStr + ".SysDiskCapacity", std::to_string(hostGroupObj.sysDiskCapacity));
setParameter(hostGroupObjStr + ".PrivatePoolOptionsId", hostGroupObj.privatePoolOptionsId);
setParameter(hostGroupObjStr + ".DiskCapacity", std::to_string(hostGroupObj.diskCapacity));
setParameter(hostGroupObjStr + ".SysDiskType", hostGroupObj.sysDiskType);
setParameter(hostGroupObjStr + ".ClusterId", hostGroupObj.clusterId);
setParameter(hostGroupObjStr + ".DiskType", hostGroupObj.diskType);
setParameter(hostGroupObjStr + ".HostGroupName", hostGroupObj.hostGroupName);
setParameter(hostGroupObjStr + ".VSwitchId", hostGroupObj.vSwitchId);
setParameter(hostGroupObjStr + ".DiskCount", std::to_string(hostGroupObj.diskCount));
setParameter(hostGroupObjStr + ".AutoRenew", hostGroupObj.autoRenew ? "true" : "false");
setParameter(hostGroupObjStr + ".GpuDriver", hostGroupObj.gpuDriver);
setParameter(hostGroupObjStr + ".HostGroupId", hostGroupObj.hostGroupId);
setParameter(hostGroupObjStr + ".NodeCount", std::to_string(hostGroupObj.nodeCount));
setParameter(hostGroupObjStr + ".InstanceType", hostGroupObj.instanceType);
setParameter(hostGroupObjStr + ".Comment", hostGroupObj.comment);
setParameter(hostGroupObjStr + ".ChargeType", hostGroupObj.chargeType);
setParameter(hostGroupObjStr + ".CreateType", hostGroupObj.createType);
setParameter(hostGroupObjStr + ".HostGroupType", hostGroupObj.hostGroupType);
setParameter(hostGroupObjStr + ".PrivatePoolOptionsMatchCriteria", hostGroupObj.privatePoolOptionsMatchCriteria);
}
}
std::string CreateClusterV2Request::getChargeType()const
{
return chargeType_;
}
void CreateClusterV2Request::setChargeType(const std::string& chargeType)
{
chargeType_ = chargeType;
setParameter("ChargeType", chargeType);
}
std::vector<CreateClusterV2Request::ServiceInfo> CreateClusterV2Request::getServiceInfo()const
{
return serviceInfo_;
}
void CreateClusterV2Request::setServiceInfo(const std::vector<ServiceInfo>& serviceInfo)
{
serviceInfo_ = serviceInfo;
for(int dep1 = 0; dep1!= serviceInfo.size(); dep1++) {
auto serviceInfoObj = serviceInfo.at(dep1);
std::string serviceInfoObjStr = "ServiceInfo." + std::to_string(dep1 + 1);
setParameter(serviceInfoObjStr + ".ServiceVersion", serviceInfoObj.serviceVersion);
setParameter(serviceInfoObjStr + ".ServiceName", serviceInfoObj.serviceName);
}
}
std::vector<CreateClusterV2Request::Config> CreateClusterV2Request::getConfig()const
{
return config_;
}
void CreateClusterV2Request::setConfig(const std::vector<Config>& config)
{
config_ = config;
for(int dep1 = 0; dep1!= config.size(); dep1++) {
auto configObj = config.at(dep1);
std::string configObjStr = "Config." + std::to_string(dep1 + 1);
setParameter(configObjStr + ".ConfigKey", configObj.configKey);
setParameter(configObjStr + ".FileName", configObj.fileName);
setParameter(configObjStr + ".Encrypt", configObj.encrypt);
setParameter(configObjStr + ".Replace", configObj.replace);
setParameter(configObjStr + ".ConfigValue", configObj.configValue);
setParameter(configObjStr + ".ServiceName", configObj.serviceName);
}
}
bool CreateClusterV2Request::getHighAvailabilityEnable()const
{
return highAvailabilityEnable_;
}
void CreateClusterV2Request::setHighAvailabilityEnable(bool highAvailabilityEnable)
{
highAvailabilityEnable_ = highAvailabilityEnable;
setParameter("HighAvailabilityEnable", highAvailabilityEnable ? "true" : "false");
}

View File

@@ -1,72 +0,0 @@
/*
* 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/emr/model/CreateClusterV2Result.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
CreateClusterV2Result::CreateClusterV2Result() :
ServiceResult()
{}
CreateClusterV2Result::CreateClusterV2Result(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateClusterV2Result::~CreateClusterV2Result()
{}
void CreateClusterV2Result::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ClusterId"].isNull())
clusterId_ = value["ClusterId"].asString();
if(!value["EmrOrderId"].isNull())
emrOrderId_ = value["EmrOrderId"].asString();
if(!value["MasterOrderId"].isNull())
masterOrderId_ = value["MasterOrderId"].asString();
if(!value["CoreOrderId"].isNull())
coreOrderId_ = value["CoreOrderId"].asString();
}
std::string CreateClusterV2Result::getMasterOrderId()const
{
return masterOrderId_;
}
std::string CreateClusterV2Result::getCoreOrderId()const
{
return coreOrderId_;
}
std::string CreateClusterV2Result::getClusterId()const
{
return clusterId_;
}
std::string CreateClusterV2Result::getEmrOrderId()const
{
return emrOrderId_;
}

View File

@@ -1,95 +0,0 @@
/*
* 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/emr/model/CreateClusterWithTemplateRequest.h>
using AlibabaCloud::Emr::Model::CreateClusterWithTemplateRequest;
CreateClusterWithTemplateRequest::CreateClusterWithTemplateRequest() :
RpcServiceRequest("emr", "2016-04-08", "CreateClusterWithTemplate")
{
setMethod(HttpRequest::Method::Post);
}
CreateClusterWithTemplateRequest::~CreateClusterWithTemplateRequest()
{}
long CreateClusterWithTemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateClusterWithTemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateClusterWithTemplateRequest::getUniqueTag()const
{
return uniqueTag_;
}
void CreateClusterWithTemplateRequest::setUniqueTag(const std::string& uniqueTag)
{
uniqueTag_ = uniqueTag;
setParameter("UniqueTag", uniqueTag);
}
std::string CreateClusterWithTemplateRequest::getClusterName()const
{
return clusterName_;
}
void CreateClusterWithTemplateRequest::setClusterName(const std::string& clusterName)
{
clusterName_ = clusterName;
setParameter("ClusterName", clusterName);
}
std::string CreateClusterWithTemplateRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateClusterWithTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string CreateClusterWithTemplateRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateClusterWithTemplateRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateClusterWithTemplateRequest::getTemplateBizId()const
{
return templateBizId_;
}
void CreateClusterWithTemplateRequest::setTemplateBizId(const std::string& templateBizId)
{
templateBizId_ = templateBizId;
setParameter("TemplateBizId", templateBizId);
}

View File

@@ -1,72 +0,0 @@
/*
* 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/emr/model/CreateClusterWithTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
CreateClusterWithTemplateResult::CreateClusterWithTemplateResult() :
ServiceResult()
{}
CreateClusterWithTemplateResult::CreateClusterWithTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateClusterWithTemplateResult::~CreateClusterWithTemplateResult()
{}
void CreateClusterWithTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ClusterId"].isNull())
clusterId_ = value["ClusterId"].asString();
if(!value["EmrOrderId"].isNull())
emrOrderId_ = value["EmrOrderId"].asString();
if(!value["MasterOrderId"].isNull())
masterOrderId_ = value["MasterOrderId"].asString();
if(!value["CoreOrderId"].isNull())
coreOrderId_ = value["CoreOrderId"].asString();
}
std::string CreateClusterWithTemplateResult::getMasterOrderId()const
{
return masterOrderId_;
}
std::string CreateClusterWithTemplateResult::getCoreOrderId()const
{
return coreOrderId_;
}
std::string CreateClusterWithTemplateResult::getClusterId()const
{
return clusterId_;
}
std::string CreateClusterWithTemplateResult::getEmrOrderId()const
{
return emrOrderId_;
}

View File

@@ -1,84 +0,0 @@
/*
* 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/emr/model/CreateFlowCategoryRequest.h>
using AlibabaCloud::Emr::Model::CreateFlowCategoryRequest;
CreateFlowCategoryRequest::CreateFlowCategoryRequest() :
RpcServiceRequest("emr", "2016-04-08", "CreateFlowCategory")
{
setMethod(HttpRequest::Method::Post);
}
CreateFlowCategoryRequest::~CreateFlowCategoryRequest()
{}
std::string CreateFlowCategoryRequest::getType()const
{
return type_;
}
void CreateFlowCategoryRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
std::string CreateFlowCategoryRequest::getParentId()const
{
return parentId_;
}
void CreateFlowCategoryRequest::setParentId(const std::string& parentId)
{
parentId_ = parentId;
setParameter("ParentId", parentId);
}
std::string CreateFlowCategoryRequest::getRegionId()const
{
return regionId_;
}
void CreateFlowCategoryRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateFlowCategoryRequest::getName()const
{
return name_;
}
void CreateFlowCategoryRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateFlowCategoryRequest::getProjectId()const
{
return projectId_;
}
void CreateFlowCategoryRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
}

View File

@@ -1,238 +0,0 @@
/*
* 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/emr/model/CreateFlowForWebRequest.h>
using AlibabaCloud::Emr::Model::CreateFlowForWebRequest;
CreateFlowForWebRequest::CreateFlowForWebRequest() :
RpcServiceRequest("emr", "2016-04-08", "CreateFlowForWeb")
{
setMethod(HttpRequest::Method::Post);
}
CreateFlowForWebRequest::~CreateFlowForWebRequest()
{}
std::string CreateFlowForWebRequest::getCronExpr()const
{
return cronExpr_;
}
void CreateFlowForWebRequest::setCronExpr(const std::string& cronExpr)
{
cronExpr_ = cronExpr;
setParameter("CronExpr", cronExpr);
}
std::string CreateFlowForWebRequest::getDescription()const
{
return description_;
}
void CreateFlowForWebRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateFlowForWebRequest::getAlertUserGroupBizId()const
{
return alertUserGroupBizId_;
}
void CreateFlowForWebRequest::setAlertUserGroupBizId(const std::string& alertUserGroupBizId)
{
alertUserGroupBizId_ = alertUserGroupBizId;
setParameter("AlertUserGroupBizId", alertUserGroupBizId);
}
std::string CreateFlowForWebRequest::getLifecycle()const
{
return lifecycle_;
}
void CreateFlowForWebRequest::setLifecycle(const std::string& lifecycle)
{
lifecycle_ = lifecycle;
setParameter("Lifecycle", lifecycle);
}
std::string CreateFlowForWebRequest::getHostName()const
{
return hostName_;
}
void CreateFlowForWebRequest::setHostName(const std::string& hostName)
{
hostName_ = hostName;
setParameter("HostName", hostName);
}
std::string CreateFlowForWebRequest::getRegionId()const
{
return regionId_;
}
void CreateFlowForWebRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
bool CreateFlowForWebRequest::getCreateCluster()const
{
return createCluster_;
}
void CreateFlowForWebRequest::setCreateCluster(bool createCluster)
{
createCluster_ = createCluster;
setParameter("CreateCluster", createCluster ? "true" : "false");
}
long CreateFlowForWebRequest::getEndSchedule()const
{
return endSchedule_;
}
void CreateFlowForWebRequest::setEndSchedule(long endSchedule)
{
endSchedule_ = endSchedule;
setParameter("EndSchedule", std::to_string(endSchedule));
}
std::string CreateFlowForWebRequest::getAlertConf()const
{
return alertConf_;
}
void CreateFlowForWebRequest::setAlertConf(const std::string& alertConf)
{
alertConf_ = alertConf;
setParameter("AlertConf", alertConf);
}
std::string CreateFlowForWebRequest::getProjectId()const
{
return projectId_;
}
void CreateFlowForWebRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
}
std::string CreateFlowForWebRequest::getParentFlowList()const
{
return parentFlowList_;
}
void CreateFlowForWebRequest::setParentFlowList(const std::string& parentFlowList)
{
parentFlowList_ = parentFlowList;
setParameter("ParentFlowList", parentFlowList);
}
std::string CreateFlowForWebRequest::getLogArchiveLocation()const
{
return logArchiveLocation_;
}
void CreateFlowForWebRequest::setLogArchiveLocation(const std::string& logArchiveLocation)
{
logArchiveLocation_ = logArchiveLocation;
setParameter("LogArchiveLocation", logArchiveLocation);
}
std::string CreateFlowForWebRequest::getAlertDingDingGroupBizId()const
{
return alertDingDingGroupBizId_;
}
void CreateFlowForWebRequest::setAlertDingDingGroupBizId(const std::string& alertDingDingGroupBizId)
{
alertDingDingGroupBizId_ = alertDingDingGroupBizId;
setParameter("AlertDingDingGroupBizId", alertDingDingGroupBizId);
}
long CreateFlowForWebRequest::getStartSchedule()const
{
return startSchedule_;
}
void CreateFlowForWebRequest::setStartSchedule(long startSchedule)
{
startSchedule_ = startSchedule;
setParameter("StartSchedule", std::to_string(startSchedule));
}
std::string CreateFlowForWebRequest::getClusterId()const
{
return clusterId_;
}
void CreateFlowForWebRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string CreateFlowForWebRequest::getGraph()const
{
return graph_;
}
void CreateFlowForWebRequest::setGraph(const std::string& graph)
{
graph_ = graph;
setParameter("Graph", graph);
}
std::string CreateFlowForWebRequest::getName()const
{
return name_;
}
void CreateFlowForWebRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateFlowForWebRequest::get_Namespace()const
{
return _namespace_;
}
void CreateFlowForWebRequest::set_Namespace(const std::string& _namespace)
{
_namespace_ = _namespace;
setParameter("_Namespace", _namespace);
}
std::string CreateFlowForWebRequest::getParentCategory()const
{
return parentCategory_;
}
void CreateFlowForWebRequest::setParentCategory(const std::string& parentCategory)
{
parentCategory_ = parentCategory;
setParameter("ParentCategory", parentCategory);
}

View File

@@ -1,276 +0,0 @@
/*
* 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/emr/model/CreateFlowJobRequest.h>
using AlibabaCloud::Emr::Model::CreateFlowJobRequest;
CreateFlowJobRequest::CreateFlowJobRequest() :
RpcServiceRequest("emr", "2016-04-08", "CreateFlowJob")
{
setMethod(HttpRequest::Method::Post);
}
CreateFlowJobRequest::~CreateFlowJobRequest()
{}
std::string CreateFlowJobRequest::getRetryPolicy()const
{
return retryPolicy_;
}
void CreateFlowJobRequest::setRetryPolicy(const std::string& retryPolicy)
{
retryPolicy_ = retryPolicy;
setParameter("RetryPolicy", retryPolicy);
}
std::string CreateFlowJobRequest::getRunConf()const
{
return runConf_;
}
void CreateFlowJobRequest::setRunConf(const std::string& runConf)
{
runConf_ = runConf;
setBodyParameter("RunConf", runConf);
}
std::string CreateFlowJobRequest::getDescription()const
{
return description_;
}
void CreateFlowJobRequest::setDescription(const std::string& description)
{
description_ = description;
setBodyParameter("Description", description);
}
std::string CreateFlowJobRequest::getType()const
{
return type_;
}
void CreateFlowJobRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
std::string CreateFlowJobRequest::getParamConf()const
{
return paramConf_;
}
void CreateFlowJobRequest::setParamConf(const std::string& paramConf)
{
paramConf_ = paramConf;
setBodyParameter("ParamConf", paramConf);
}
std::vector<CreateFlowJobRequest::ResourceList> CreateFlowJobRequest::getResourceList()const
{
return resourceList_;
}
void CreateFlowJobRequest::setResourceList(const std::vector<ResourceList>& resourceList)
{
resourceList_ = resourceList;
for(int dep1 = 0; dep1!= resourceList.size(); dep1++) {
auto resourceListObj = resourceList.at(dep1);
std::string resourceListObjStr = "ResourceList." + std::to_string(dep1 + 1);
setParameter(resourceListObjStr + ".Path", resourceListObj.path);
setParameter(resourceListObjStr + ".Alias", resourceListObj.alias);
}
}
std::string CreateFlowJobRequest::getFailAct()const
{
return failAct_;
}
void CreateFlowJobRequest::setFailAct(const std::string& failAct)
{
failAct_ = failAct;
setParameter("FailAct", failAct);
}
std::string CreateFlowJobRequest::getMode()const
{
return mode_;
}
void CreateFlowJobRequest::setMode(const std::string& mode)
{
mode_ = mode;
setParameter("Mode", mode);
}
std::string CreateFlowJobRequest::getMonitorConf()const
{
return monitorConf_;
}
void CreateFlowJobRequest::setMonitorConf(const std::string& monitorConf)
{
monitorConf_ = monitorConf;
setBodyParameter("MonitorConf", monitorConf);
}
std::string CreateFlowJobRequest::getRegionId()const
{
return regionId_;
}
void CreateFlowJobRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
int CreateFlowJobRequest::getMaxRetry()const
{
return maxRetry_;
}
void CreateFlowJobRequest::setMaxRetry(int maxRetry)
{
maxRetry_ = maxRetry;
setParameter("MaxRetry", std::to_string(maxRetry));
}
std::string CreateFlowJobRequest::getAlertConf()const
{
return alertConf_;
}
void CreateFlowJobRequest::setAlertConf(const std::string& alertConf)
{
alertConf_ = alertConf;
setParameter("AlertConf", alertConf);
}
std::string CreateFlowJobRequest::getProjectId()const
{
return projectId_;
}
void CreateFlowJobRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
}
std::string CreateFlowJobRequest::getEnvConf()const
{
return envConf_;
}
void CreateFlowJobRequest::setEnvConf(const std::string& envConf)
{
envConf_ = envConf;
setBodyParameter("EnvConf", envConf);
}
long CreateFlowJobRequest::getMaxRunningTimeSec()const
{
return maxRunningTimeSec_;
}
void CreateFlowJobRequest::setMaxRunningTimeSec(long maxRunningTimeSec)
{
maxRunningTimeSec_ = maxRunningTimeSec;
setParameter("MaxRunningTimeSec", std::to_string(maxRunningTimeSec));
}
std::string CreateFlowJobRequest::getClusterId()const
{
return clusterId_;
}
void CreateFlowJobRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string CreateFlowJobRequest::getParams()const
{
return params_;
}
void CreateFlowJobRequest::setParams(const std::string& params)
{
params_ = params;
setBodyParameter("Params", params);
}
std::string CreateFlowJobRequest::getCustomVariables()const
{
return customVariables_;
}
void CreateFlowJobRequest::setCustomVariables(const std::string& customVariables)
{
customVariables_ = customVariables;
setBodyParameter("CustomVariables", customVariables);
}
long CreateFlowJobRequest::getRetryInterval()const
{
return retryInterval_;
}
void CreateFlowJobRequest::setRetryInterval(long retryInterval)
{
retryInterval_ = retryInterval;
setParameter("RetryInterval", std::to_string(retryInterval));
}
std::string CreateFlowJobRequest::getName()const
{
return name_;
}
void CreateFlowJobRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
bool CreateFlowJobRequest::getAdhoc()const
{
return adhoc_;
}
void CreateFlowJobRequest::setAdhoc(bool adhoc)
{
adhoc_ = adhoc;
setParameter("Adhoc", adhoc ? "true" : "false");
}
std::string CreateFlowJobRequest::getParentCategory()const
{
return parentCategory_;
}
void CreateFlowJobRequest::setParentCategory(const std::string& parentCategory)
{
parentCategory_ = parentCategory;
setParameter("ParentCategory", parentCategory);
}

View File

@@ -1,123 +0,0 @@
/*
* 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/emr/model/CreateFlowProjectClusterSettingRequest.h>
using AlibabaCloud::Emr::Model::CreateFlowProjectClusterSettingRequest;
CreateFlowProjectClusterSettingRequest::CreateFlowProjectClusterSettingRequest() :
RpcServiceRequest("emr", "2016-04-08", "CreateFlowProjectClusterSetting")
{
setMethod(HttpRequest::Method::Post);
}
CreateFlowProjectClusterSettingRequest::~CreateFlowProjectClusterSettingRequest()
{}
std::vector<std::string> CreateFlowProjectClusterSettingRequest::getUserList()const
{
return userList_;
}
void CreateFlowProjectClusterSettingRequest::setUserList(const std::vector<std::string>& userList)
{
userList_ = userList;
for(int dep1 = 0; dep1!= userList.size(); dep1++) {
setParameter("UserList."+ std::to_string(dep1), userList.at(dep1));
}
}
std::vector<std::string> CreateFlowProjectClusterSettingRequest::getHostList()const
{
return hostList_;
}
void CreateFlowProjectClusterSettingRequest::setHostList(const std::vector<std::string>& hostList)
{
hostList_ = hostList;
for(int dep1 = 0; dep1!= hostList.size(); dep1++) {
setParameter("HostList."+ std::to_string(dep1), hostList.at(dep1));
}
}
std::string CreateFlowProjectClusterSettingRequest::getClusterId()const
{
return clusterId_;
}
void CreateFlowProjectClusterSettingRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string CreateFlowProjectClusterSettingRequest::getDefaultQueue()const
{
return defaultQueue_;
}
void CreateFlowProjectClusterSettingRequest::setDefaultQueue(const std::string& defaultQueue)
{
defaultQueue_ = defaultQueue;
setParameter("DefaultQueue", defaultQueue);
}
std::string CreateFlowProjectClusterSettingRequest::getDefaultUser()const
{
return defaultUser_;
}
void CreateFlowProjectClusterSettingRequest::setDefaultUser(const std::string& defaultUser)
{
defaultUser_ = defaultUser;
setParameter("DefaultUser", defaultUser);
}
std::vector<std::string> CreateFlowProjectClusterSettingRequest::getQueueList()const
{
return queueList_;
}
void CreateFlowProjectClusterSettingRequest::setQueueList(const std::vector<std::string>& queueList)
{
queueList_ = queueList;
for(int dep1 = 0; dep1!= queueList.size(); dep1++) {
setParameter("QueueList."+ std::to_string(dep1), queueList.at(dep1));
}
}
std::string CreateFlowProjectClusterSettingRequest::getRegionId()const
{
return regionId_;
}
void CreateFlowProjectClusterSettingRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateFlowProjectClusterSettingRequest::getProjectId()const
{
return projectId_;
}
void CreateFlowProjectClusterSettingRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
}

View File

@@ -1,84 +0,0 @@
/*
* 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/emr/model/CreateFlowProjectRequest.h>
using AlibabaCloud::Emr::Model::CreateFlowProjectRequest;
CreateFlowProjectRequest::CreateFlowProjectRequest() :
RpcServiceRequest("emr", "2016-04-08", "CreateFlowProject")
{
setMethod(HttpRequest::Method::Post);
}
CreateFlowProjectRequest::~CreateFlowProjectRequest()
{}
std::string CreateFlowProjectRequest::getDescription()const
{
return description_;
}
void CreateFlowProjectRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateFlowProjectRequest::getProductType()const
{
return productType_;
}
void CreateFlowProjectRequest::setProductType(const std::string& productType)
{
productType_ = productType;
setParameter("ProductType", productType);
}
std::string CreateFlowProjectRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateFlowProjectRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateFlowProjectRequest::getRegionId()const
{
return regionId_;
}
void CreateFlowProjectRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateFlowProjectRequest::getName()const
{
return name_;
}
void CreateFlowProjectRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

@@ -1,51 +0,0 @@
/*
* 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/emr/model/CreateFlowProjectResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
CreateFlowProjectResult::CreateFlowProjectResult() :
ServiceResult()
{}
CreateFlowProjectResult::CreateFlowProjectResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateFlowProjectResult::~CreateFlowProjectResult()
{}
void CreateFlowProjectResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Id"].isNull())
id_ = value["Id"].asString();
}
std::string CreateFlowProjectResult::getId()const
{
return id_;
}

View File

@@ -1,67 +0,0 @@
/*
* 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/emr/model/CreateFlowProjectUserRequest.h>
using AlibabaCloud::Emr::Model::CreateFlowProjectUserRequest;
CreateFlowProjectUserRequest::CreateFlowProjectUserRequest() :
RpcServiceRequest("emr", "2016-04-08", "CreateFlowProjectUser")
{
setMethod(HttpRequest::Method::Post);
}
CreateFlowProjectUserRequest::~CreateFlowProjectUserRequest()
{}
std::string CreateFlowProjectUserRequest::getRegionId()const
{
return regionId_;
}
void CreateFlowProjectUserRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateFlowProjectUserRequest::getProjectId()const
{
return projectId_;
}
void CreateFlowProjectUserRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
}
std::vector<CreateFlowProjectUserRequest::User> CreateFlowProjectUserRequest::getUser()const
{
return user_;
}
void CreateFlowProjectUserRequest::setUser(const std::vector<User>& user)
{
user_ = user;
for(int dep1 = 0; dep1!= user.size(); dep1++) {
auto userObj = user.at(dep1);
std::string userObjStr = "User." + std::to_string(dep1 + 1);
setParameter(userObjStr + ".UserId", userObj.userId);
setParameter(userObjStr + ".UserName", userObj.userName);
}
}

View File

@@ -1,238 +0,0 @@
/*
* 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/emr/model/CreateFlowRequest.h>
using AlibabaCloud::Emr::Model::CreateFlowRequest;
CreateFlowRequest::CreateFlowRequest() :
RpcServiceRequest("emr", "2016-04-08", "CreateFlow")
{
setMethod(HttpRequest::Method::Post);
}
CreateFlowRequest::~CreateFlowRequest()
{}
std::string CreateFlowRequest::getCronExpr()const
{
return cronExpr_;
}
void CreateFlowRequest::setCronExpr(const std::string& cronExpr)
{
cronExpr_ = cronExpr;
setParameter("CronExpr", cronExpr);
}
std::string CreateFlowRequest::getDescription()const
{
return description_;
}
void CreateFlowRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateFlowRequest::getAlertUserGroupBizId()const
{
return alertUserGroupBizId_;
}
void CreateFlowRequest::setAlertUserGroupBizId(const std::string& alertUserGroupBizId)
{
alertUserGroupBizId_ = alertUserGroupBizId;
setParameter("AlertUserGroupBizId", alertUserGroupBizId);
}
std::string CreateFlowRequest::getLifecycle()const
{
return lifecycle_;
}
void CreateFlowRequest::setLifecycle(const std::string& lifecycle)
{
lifecycle_ = lifecycle;
setParameter("Lifecycle", lifecycle);
}
std::string CreateFlowRequest::getHostName()const
{
return hostName_;
}
void CreateFlowRequest::setHostName(const std::string& hostName)
{
hostName_ = hostName;
setParameter("HostName", hostName);
}
std::string CreateFlowRequest::getRegionId()const
{
return regionId_;
}
void CreateFlowRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
bool CreateFlowRequest::getCreateCluster()const
{
return createCluster_;
}
void CreateFlowRequest::setCreateCluster(bool createCluster)
{
createCluster_ = createCluster;
setParameter("CreateCluster", createCluster ? "true" : "false");
}
long CreateFlowRequest::getEndSchedule()const
{
return endSchedule_;
}
void CreateFlowRequest::setEndSchedule(long endSchedule)
{
endSchedule_ = endSchedule;
setParameter("EndSchedule", std::to_string(endSchedule));
}
std::string CreateFlowRequest::getAlertConf()const
{
return alertConf_;
}
void CreateFlowRequest::setAlertConf(const std::string& alertConf)
{
alertConf_ = alertConf;
setParameter("AlertConf", alertConf);
}
std::string CreateFlowRequest::getProjectId()const
{
return projectId_;
}
void CreateFlowRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
}
std::string CreateFlowRequest::getParentFlowList()const
{
return parentFlowList_;
}
void CreateFlowRequest::setParentFlowList(const std::string& parentFlowList)
{
parentFlowList_ = parentFlowList;
setParameter("ParentFlowList", parentFlowList);
}
std::string CreateFlowRequest::getLogArchiveLocation()const
{
return logArchiveLocation_;
}
void CreateFlowRequest::setLogArchiveLocation(const std::string& logArchiveLocation)
{
logArchiveLocation_ = logArchiveLocation;
setParameter("LogArchiveLocation", logArchiveLocation);
}
std::string CreateFlowRequest::getAlertDingDingGroupBizId()const
{
return alertDingDingGroupBizId_;
}
void CreateFlowRequest::setAlertDingDingGroupBizId(const std::string& alertDingDingGroupBizId)
{
alertDingDingGroupBizId_ = alertDingDingGroupBizId;
setParameter("AlertDingDingGroupBizId", alertDingDingGroupBizId);
}
long CreateFlowRequest::getStartSchedule()const
{
return startSchedule_;
}
void CreateFlowRequest::setStartSchedule(long startSchedule)
{
startSchedule_ = startSchedule;
setParameter("StartSchedule", std::to_string(startSchedule));
}
std::string CreateFlowRequest::getClusterId()const
{
return clusterId_;
}
void CreateFlowRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string CreateFlowRequest::getApplication()const
{
return application_;
}
void CreateFlowRequest::setApplication(const std::string& application)
{
application_ = application;
setParameter("Application", application);
}
std::string CreateFlowRequest::getName()const
{
return name_;
}
void CreateFlowRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateFlowRequest::get_Namespace()const
{
return _namespace_;
}
void CreateFlowRequest::set_Namespace(const std::string& _namespace)
{
_namespace_ = _namespace;
setParameter("_Namespace", _namespace);
}
std::string CreateFlowRequest::getParentCategory()const
{
return parentCategory_;
}
void CreateFlowRequest::setParentCategory(const std::string& parentCategory)
{
parentCategory_ = parentCategory;
setParameter("ParentCategory", parentCategory);
}

View File

@@ -1,51 +0,0 @@
/*
* 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/emr/model/CreateFlowResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
CreateFlowResult::CreateFlowResult() :
ServiceResult()
{}
CreateFlowResult::CreateFlowResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateFlowResult::~CreateFlowResult()
{}
void CreateFlowResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Id"].isNull())
id_ = value["Id"].asString();
}
std::string CreateFlowResult::getId()const
{
return id_;
}

View File

@@ -0,0 +1,106 @@
/*
* 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/emr/model/CreateNodeGroupRequest.h>
using AlibabaCloud::Emr::Model::CreateNodeGroupRequest;
CreateNodeGroupRequest::CreateNodeGroupRequest() :
RpcServiceRequest("emr", "2021-03-20", "CreateNodeGroup")
{
setMethod(HttpRequest::Method::Post);
}
CreateNodeGroupRequest::~CreateNodeGroupRequest()
{}
std::string CreateNodeGroupRequest::getClientToken()const
{
return clientToken_;
}
void CreateNodeGroupRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateNodeGroupRequest::getDescription()const
{
return description_;
}
void CreateNodeGroupRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
Struct CreateNodeGroupRequest::getNodeGroup()const
{
return nodeGroup_;
}
void CreateNodeGroupRequest::setNodeGroup(const Struct& nodeGroup)
{
nodeGroup_ = nodeGroup;
setParameter("NodeGroup", std::to_string(nodeGroup));
}
std::string CreateNodeGroupRequest::getRegionId()const
{
return regionId_;
}
void CreateNodeGroupRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateNodeGroupRequest::getSlaveSecurityGroupId()const
{
return slaveSecurityGroupId_;
}
void CreateNodeGroupRequest::setSlaveSecurityGroupId(const std::string& slaveSecurityGroupId)
{
slaveSecurityGroupId_ = slaveSecurityGroupId;
setParameter("SlaveSecurityGroupId", slaveSecurityGroupId);
}
std::string CreateNodeGroupRequest::getClusterId()const
{
return clusterId_;
}
void CreateNodeGroupRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string CreateNodeGroupRequest::getSystemDebug()const
{
return systemDebug_;
}
void CreateNodeGroupRequest::setSystemDebug(const std::string& systemDebug)
{
systemDebug_ = systemDebug;
setParameter("SystemDebug", systemDebug);
}

View File

@@ -14,38 +14,38 @@
* limitations under the License.
*/
#include <alibabacloud/emr/model/CreateFlowCategoryResult.h>
#include <alibabacloud/emr/model/CreateNodeGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
CreateFlowCategoryResult::CreateFlowCategoryResult() :
CreateNodeGroupResult::CreateNodeGroupResult() :
ServiceResult()
{}
CreateFlowCategoryResult::CreateFlowCategoryResult(const std::string &payload) :
CreateNodeGroupResult::CreateNodeGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateFlowCategoryResult::~CreateFlowCategoryResult()
CreateNodeGroupResult::~CreateNodeGroupResult()
{}
void CreateFlowCategoryResult::parse(const std::string &payload)
void CreateNodeGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Id"].isNull())
id_ = value["Id"].asString();
if(!value["NodeGroupId"].isNull())
nodeGroupId_ = value["NodeGroupId"].asString();
}
std::string CreateFlowCategoryResult::getId()const
std::string CreateNodeGroupResult::getNodeGroupId()const
{
return id_;
return nodeGroupId_;
}

View File

@@ -0,0 +1,183 @@
/*
* 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/emr/model/CreateOnAckClusterRequest.h>
using AlibabaCloud::Emr::Model::CreateOnAckClusterRequest;
CreateOnAckClusterRequest::CreateOnAckClusterRequest() :
RpcServiceRequest("emr", "2021-03-20", "CreateOnAckCluster")
{
setMethod(HttpRequest::Method::Post);
}
CreateOnAckClusterRequest::~CreateOnAckClusterRequest()
{}
std::string CreateOnAckClusterRequest::getClusterName()const
{
return clusterName_;
}
void CreateOnAckClusterRequest::setClusterName(const std::string& clusterName)
{
clusterName_ = clusterName;
setParameter("ClusterName", clusterName);
}
Array CreateOnAckClusterRequest::getAckNodePools()const
{
return ackNodePools_;
}
void CreateOnAckClusterRequest::setAckNodePools(const Array& ackNodePools)
{
ackNodePools_ = ackNodePools;
setParameter("AckNodePools", std::to_string(ackNodePools));
}
std::string CreateOnAckClusterRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateOnAckClusterRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateOnAckClusterRequest::getOssPath()const
{
return ossPath_;
}
void CreateOnAckClusterRequest::setOssPath(const std::string& ossPath)
{
ossPath_ = ossPath;
setParameter("OssPath", ossPath);
}
std::string CreateOnAckClusterRequest::getClusterType()const
{
return clusterType_;
}
void CreateOnAckClusterRequest::setClusterType(const std::string& clusterType)
{
clusterType_ = clusterType;
setParameter("ClusterType", clusterType);
}
std::string CreateOnAckClusterRequest::getSystemDebug()const
{
return systemDebug_;
}
void CreateOnAckClusterRequest::setSystemDebug(const std::string& systemDebug)
{
systemDebug_ = systemDebug;
setParameter("SystemDebug", systemDebug);
}
std::string CreateOnAckClusterRequest::getClientToken()const
{
return clientToken_;
}
void CreateOnAckClusterRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateOnAckClusterRequest::getRegionId()const
{
return regionId_;
}
void CreateOnAckClusterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateOnAckClusterRequest::getAckClusterId()const
{
return ackClusterId_;
}
void CreateOnAckClusterRequest::setAckClusterId(const std::string& ackClusterId)
{
ackClusterId_ = ackClusterId;
setParameter("AckClusterId", ackClusterId);
}
std::string CreateOnAckClusterRequest::getAckNamespace()const
{
return ackNamespace_;
}
void CreateOnAckClusterRequest::setAckNamespace(const std::string& ackNamespace)
{
ackNamespace_ = ackNamespace;
setParameter("AckNamespace", ackNamespace);
}
std::string CreateOnAckClusterRequest::getToken()const
{
return token_;
}
void CreateOnAckClusterRequest::setToken(const std::string& token)
{
token_ = token;
setParameter("Token", token);
}
Array CreateOnAckClusterRequest::getAckNodes()const
{
return ackNodes_;
}
void CreateOnAckClusterRequest::setAckNodes(const Array& ackNodes)
{
ackNodes_ = ackNodes;
setParameter("AckNodes", std::to_string(ackNodes));
}
std::string CreateOnAckClusterRequest::getProductRoleName()const
{
return productRoleName_;
}
void CreateOnAckClusterRequest::setProductRoleName(const std::string& productRoleName)
{
productRoleName_ = productRoleName;
setParameter("ProductRoleName", productRoleName);
}
Array CreateOnAckClusterRequest::getApplications()const
{
return applications_;
}
void CreateOnAckClusterRequest::setApplications(const Array& applications)
{
applications_ = applications;
setParameter("Applications", std::to_string(applications));
}

View File

@@ -14,44 +14,44 @@
* limitations under the License.
*/
#include <alibabacloud/emr/model/RefreshClusterResourcePoolResult.h>
#include <alibabacloud/emr/model/CreateOnAckClusterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
RefreshClusterResourcePoolResult::RefreshClusterResourcePoolResult() :
CreateOnAckClusterResult::CreateOnAckClusterResult() :
ServiceResult()
{}
RefreshClusterResourcePoolResult::RefreshClusterResourcePoolResult(const std::string &payload) :
CreateOnAckClusterResult::CreateOnAckClusterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RefreshClusterResourcePoolResult::~RefreshClusterResourcePoolResult()
CreateOnAckClusterResult::~CreateOnAckClusterResult()
{}
void RefreshClusterResourcePoolResult::parse(const std::string &payload)
void CreateOnAckClusterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["WorkFlowInstanceId"].isNull())
workFlowInstanceId_ = value["WorkFlowInstanceId"].asString();
if(!value["ClusterId"].isNull())
clusterId_ = value["ClusterId"].asString();
if(!value["OperationId"].isNull())
operationId_ = value["OperationId"].asString();
}
std::string RefreshClusterResourcePoolResult::getWorkFlowInstanceId()const
std::string CreateOnAckClusterResult::getClusterId()const
{
return workFlowInstanceId_;
return clusterId_;
}
std::string RefreshClusterResourcePoolResult::getOperationId()const
std::string CreateOnAckClusterResult::getOperationId()const
{
return operationId_;
}

View File

@@ -0,0 +1,183 @@
/*
* 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/emr/model/CreateOnKubeClusterRequest.h>
using AlibabaCloud::Emr::Model::CreateOnKubeClusterRequest;
CreateOnKubeClusterRequest::CreateOnKubeClusterRequest() :
RpcServiceRequest("emr", "2021-03-20", "CreateOnKubeCluster")
{
setMethod(HttpRequest::Method::Post);
}
CreateOnKubeClusterRequest::~CreateOnKubeClusterRequest()
{}
std::string CreateOnKubeClusterRequest::getClusterName()const
{
return clusterName_;
}
void CreateOnKubeClusterRequest::setClusterName(const std::string& clusterName)
{
clusterName_ = clusterName;
setParameter("ClusterName", clusterName);
}
Array CreateOnKubeClusterRequest::getAckNodePools()const
{
return ackNodePools_;
}
void CreateOnKubeClusterRequest::setAckNodePools(const Array& ackNodePools)
{
ackNodePools_ = ackNodePools;
setParameter("AckNodePools", std::to_string(ackNodePools));
}
std::string CreateOnKubeClusterRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateOnKubeClusterRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateOnKubeClusterRequest::getOssPath()const
{
return ossPath_;
}
void CreateOnKubeClusterRequest::setOssPath(const std::string& ossPath)
{
ossPath_ = ossPath;
setParameter("OssPath", ossPath);
}
std::string CreateOnKubeClusterRequest::getClusterType()const
{
return clusterType_;
}
void CreateOnKubeClusterRequest::setClusterType(const std::string& clusterType)
{
clusterType_ = clusterType;
setParameter("ClusterType", clusterType);
}
std::string CreateOnKubeClusterRequest::getSystemDebug()const
{
return systemDebug_;
}
void CreateOnKubeClusterRequest::setSystemDebug(const std::string& systemDebug)
{
systemDebug_ = systemDebug;
setParameter("SystemDebug", systemDebug);
}
std::string CreateOnKubeClusterRequest::getClientToken()const
{
return clientToken_;
}
void CreateOnKubeClusterRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateOnKubeClusterRequest::getRegionId()const
{
return regionId_;
}
void CreateOnKubeClusterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateOnKubeClusterRequest::getAckClusterId()const
{
return ackClusterId_;
}
void CreateOnKubeClusterRequest::setAckClusterId(const std::string& ackClusterId)
{
ackClusterId_ = ackClusterId;
setParameter("AckClusterId", ackClusterId);
}
std::string CreateOnKubeClusterRequest::getAckNamespace()const
{
return ackNamespace_;
}
void CreateOnKubeClusterRequest::setAckNamespace(const std::string& ackNamespace)
{
ackNamespace_ = ackNamespace;
setParameter("AckNamespace", ackNamespace);
}
std::string CreateOnKubeClusterRequest::getToken()const
{
return token_;
}
void CreateOnKubeClusterRequest::setToken(const std::string& token)
{
token_ = token;
setParameter("Token", token);
}
Array CreateOnKubeClusterRequest::getAckNodes()const
{
return ackNodes_;
}
void CreateOnKubeClusterRequest::setAckNodes(const Array& ackNodes)
{
ackNodes_ = ackNodes;
setParameter("AckNodes", std::to_string(ackNodes));
}
std::string CreateOnKubeClusterRequest::getProductRoleName()const
{
return productRoleName_;
}
void CreateOnKubeClusterRequest::setProductRoleName(const std::string& productRoleName)
{
productRoleName_ = productRoleName;
setParameter("ProductRoleName", productRoleName);
}
Array CreateOnKubeClusterRequest::getApplications()const
{
return applications_;
}
void CreateOnKubeClusterRequest::setApplications(const Array& applications)
{
applications_ = applications;
setParameter("Applications", std::to_string(applications));
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/emr/model/DeleteResourceQueueResult.h>
#include <alibabacloud/emr/model/CreateOnKubeClusterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
DeleteResourceQueueResult::DeleteResourceQueueResult() :
CreateOnKubeClusterResult::CreateOnKubeClusterResult() :
ServiceResult()
{}
DeleteResourceQueueResult::DeleteResourceQueueResult(const std::string &payload) :
CreateOnKubeClusterResult::CreateOnKubeClusterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteResourceQueueResult::~DeleteResourceQueueResult()
CreateOnKubeClusterResult::~CreateOnKubeClusterResult()
{}
void DeleteResourceQueueResult::parse(const std::string &payload)
void CreateOnKubeClusterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;

View File

@@ -1,148 +0,0 @@
/*
* 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/emr/model/CreateResourcePoolRequest.h>
using AlibabaCloud::Emr::Model::CreateResourcePoolRequest;
CreateResourcePoolRequest::CreateResourcePoolRequest() :
RpcServiceRequest("emr", "2016-04-08", "CreateResourcePool")
{
setMethod(HttpRequest::Method::Post);
}
CreateResourcePoolRequest::~CreateResourcePoolRequest()
{}
std::string CreateResourcePoolRequest::getNote()const
{
return note_;
}
void CreateResourcePoolRequest::setNote(const std::string& note)
{
note_ = note;
setParameter("Note", note);
}
long CreateResourcePoolRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateResourcePoolRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
bool CreateResourcePoolRequest::getActive()const
{
return active_;
}
void CreateResourcePoolRequest::setActive(bool active)
{
active_ = active;
setParameter("Active", active ? "true" : "false");
}
std::string CreateResourcePoolRequest::getClusterId()const
{
return clusterId_;
}
void CreateResourcePoolRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string CreateResourcePoolRequest::getYarnSiteConfig()const
{
return yarnSiteConfig_;
}
void CreateResourcePoolRequest::setYarnSiteConfig(const std::string& yarnSiteConfig)
{
yarnSiteConfig_ = yarnSiteConfig;
setParameter("YarnSiteConfig", yarnSiteConfig);
}
std::string CreateResourcePoolRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateResourcePoolRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string CreateResourcePoolRequest::getRegionId()const
{
return regionId_;
}
void CreateResourcePoolRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateResourcePoolRequest::getName()const
{
return name_;
}
void CreateResourcePoolRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::vector<CreateResourcePoolRequest::Config> CreateResourcePoolRequest::getConfig()const
{
return config_;
}
void CreateResourcePoolRequest::setConfig(const std::vector<Config>& config)
{
config_ = config;
for(int dep1 = 0; dep1!= config.size(); dep1++) {
auto configObj = config.at(dep1);
std::string configObjStr = "Config." + std::to_string(dep1 + 1);
setParameter(configObjStr + ".ConfigKey", configObj.configKey);
setParameter(configObjStr + ".Note", configObj.note);
setParameter(configObjStr + ".ConfigType", configObj.configType);
setParameter(configObjStr + ".TargetId", configObj.targetId);
setParameter(configObjStr + ".ConfigValue", configObj.configValue);
setParameter(configObjStr + ".Category", configObj.category);
}
}
std::string CreateResourcePoolRequest::getPoolType()const
{
return poolType_;
}
void CreateResourcePoolRequest::setPoolType(const std::string& poolType)
{
poolType_ = poolType;
setParameter("PoolType", poolType);
}

View File

@@ -1,146 +0,0 @@
/*
* 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/emr/model/CreateResourceQueueRequest.h>
using AlibabaCloud::Emr::Model::CreateResourceQueueRequest;
CreateResourceQueueRequest::CreateResourceQueueRequest() :
RpcServiceRequest("emr", "2016-04-08", "CreateResourceQueue")
{
setMethod(HttpRequest::Method::Post);
}
CreateResourceQueueRequest::~CreateResourceQueueRequest()
{}
long CreateResourceQueueRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateResourceQueueRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateResourceQueueRequest::getQualifiedName()const
{
return qualifiedName_;
}
void CreateResourceQueueRequest::setQualifiedName(const std::string& qualifiedName)
{
qualifiedName_ = qualifiedName;
setParameter("QualifiedName", qualifiedName);
}
long CreateResourceQueueRequest::getResourcePoolId()const
{
return resourcePoolId_;
}
void CreateResourceQueueRequest::setResourcePoolId(long resourcePoolId)
{
resourcePoolId_ = resourcePoolId;
setParameter("ResourcePoolId", std::to_string(resourcePoolId));
}
std::string CreateResourceQueueRequest::getClusterId()const
{
return clusterId_;
}
void CreateResourceQueueRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
bool CreateResourceQueueRequest::getLeaf()const
{
return leaf_;
}
void CreateResourceQueueRequest::setLeaf(bool leaf)
{
leaf_ = leaf;
setParameter("Leaf", leaf ? "true" : "false");
}
std::string CreateResourceQueueRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateResourceQueueRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
long CreateResourceQueueRequest::getParentQueueId()const
{
return parentQueueId_;
}
void CreateResourceQueueRequest::setParentQueueId(long parentQueueId)
{
parentQueueId_ = parentQueueId;
setParameter("ParentQueueId", std::to_string(parentQueueId));
}
std::string CreateResourceQueueRequest::getRegionId()const
{
return regionId_;
}
void CreateResourceQueueRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateResourceQueueRequest::getName()const
{
return name_;
}
void CreateResourceQueueRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::vector<CreateResourceQueueRequest::Config> CreateResourceQueueRequest::getConfig()const
{
return config_;
}
void CreateResourceQueueRequest::setConfig(const std::vector<Config>& config)
{
config_ = config;
for(int dep1 = 0; dep1!= config.size(); dep1++) {
auto configObj = config.at(dep1);
std::string configObjStr = "Config." + std::to_string(dep1 + 1);
setParameter(configObjStr + ".ConfigKey", configObj.configKey);
setParameter(configObjStr + ".Note", configObj.note);
setParameter(configObjStr + ".ConfigValue", configObj.configValue);
setParameter(configObjStr + ".Category", configObj.category);
}
}

View File

@@ -0,0 +1,128 @@
/*
* 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/emr/model/CreateScalingGroupRequest.h>
using AlibabaCloud::Emr::Model::CreateScalingGroupRequest;
CreateScalingGroupRequest::CreateScalingGroupRequest() :
RpcServiceRequest("emr", "2021-03-20", "CreateScalingGroup")
{
setMethod(HttpRequest::Method::Post);
}
CreateScalingGroupRequest::~CreateScalingGroupRequest()
{}
std::string CreateScalingGroupRequest::getClientToken()const
{
return clientToken_;
}
void CreateScalingGroupRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateScalingGroupRequest::getDescription()const
{
return description_;
}
void CreateScalingGroupRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateScalingGroupRequest::getRegionId()const
{
return regionId_;
}
void CreateScalingGroupRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateScalingGroupRequest::getClusterId()const
{
return clusterId_;
}
void CreateScalingGroupRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
Struct CreateScalingGroupRequest::getScalingConfig()const
{
return scalingConfig_;
}
void CreateScalingGroupRequest::setScalingConfig(const Struct& scalingConfig)
{
scalingConfig_ = scalingConfig;
setParameter("ScalingConfig", std::to_string(scalingConfig));
}
std::string CreateScalingGroupRequest::getVSwitchId()const
{
return vSwitchId_;
}
void CreateScalingGroupRequest::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
setParameter("VSwitchId", vSwitchId);
}
std::string CreateScalingGroupRequest::getName()const
{
return name_;
}
void CreateScalingGroupRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateScalingGroupRequest::getSystemDebug()const
{
return systemDebug_;
}
void CreateScalingGroupRequest::setSystemDebug(const std::string& systemDebug)
{
systemDebug_ = systemDebug;
setParameter("SystemDebug", systemDebug);
}
Array CreateScalingGroupRequest::getScalingRuleList()const
{
return scalingRuleList_;
}
void CreateScalingGroupRequest::setScalingRuleList(const Array& scalingRuleList)
{
scalingRuleList_ = scalingRuleList;
setParameter("ScalingRuleList", std::to_string(scalingRuleList));
}

View File

@@ -14,38 +14,38 @@
* limitations under the License.
*/
#include <alibabacloud/emr/model/ModifyFlowCategoryResult.h>
#include <alibabacloud/emr/model/CreateScalingGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
ModifyFlowCategoryResult::ModifyFlowCategoryResult() :
CreateScalingGroupResult::CreateScalingGroupResult() :
ServiceResult()
{}
ModifyFlowCategoryResult::ModifyFlowCategoryResult(const std::string &payload) :
CreateScalingGroupResult::CreateScalingGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyFlowCategoryResult::~ModifyFlowCategoryResult()
CreateScalingGroupResult::~CreateScalingGroupResult()
{}
void ModifyFlowCategoryResult::parse(const std::string &payload)
void CreateScalingGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
if(!value["ScalingGroupId"].isNull())
scalingGroupId_ = value["ScalingGroupId"].asString();
}
bool ModifyFlowCategoryResult::getData()const
std::string CreateScalingGroupResult::getScalingGroupId()const
{
return data_;
return scalingGroupId_;
}

View File

@@ -1,106 +0,0 @@
/*
* 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/emr/model/CreateScalingGroupV2Request.h>
using AlibabaCloud::Emr::Model::CreateScalingGroupV2Request;
CreateScalingGroupV2Request::CreateScalingGroupV2Request() :
RpcServiceRequest("emr", "2016-04-08", "CreateScalingGroupV2")
{
setMethod(HttpRequest::Method::Post);
}
CreateScalingGroupV2Request::~CreateScalingGroupV2Request()
{}
long CreateScalingGroupV2Request::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateScalingGroupV2Request::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateScalingGroupV2Request::getDescription()const
{
return description_;
}
void CreateScalingGroupV2Request::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateScalingGroupV2Request::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateScalingGroupV2Request::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string CreateScalingGroupV2Request::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateScalingGroupV2Request::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateScalingGroupV2Request::getRegionId()const
{
return regionId_;
}
void CreateScalingGroupV2Request::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateScalingGroupV2Request::getHostGroupId()const
{
return hostGroupId_;
}
void CreateScalingGroupV2Request::setHostGroupId(const std::string& hostGroupId)
{
hostGroupId_ = hostGroupId;
setParameter("HostGroupId", hostGroupId);
}
std::string CreateScalingGroupV2Request::getName()const
{
return name_;
}
void CreateScalingGroupV2Request::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

@@ -0,0 +1,95 @@
/*
* 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/emr/model/DecreaseNodesRequest.h>
using AlibabaCloud::Emr::Model::DecreaseNodesRequest;
DecreaseNodesRequest::DecreaseNodesRequest() :
RpcServiceRequest("emr", "2021-03-20", "DecreaseNodes")
{
setMethod(HttpRequest::Method::Post);
}
DecreaseNodesRequest::~DecreaseNodesRequest()
{}
std::string DecreaseNodesRequest::getClientToken()const
{
return clientToken_;
}
void DecreaseNodesRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DecreaseNodesRequest::getDescription()const
{
return description_;
}
void DecreaseNodesRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string DecreaseNodesRequest::getRegionId()const
{
return regionId_;
}
void DecreaseNodesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
Array DecreaseNodesRequest::getNodeGroups()const
{
return nodeGroups_;
}
void DecreaseNodesRequest::setNodeGroups(const Array& nodeGroups)
{
nodeGroups_ = nodeGroups;
setParameter("NodeGroups", std::to_string(nodeGroups));
}
std::string DecreaseNodesRequest::getClusterId()const
{
return clusterId_;
}
void DecreaseNodesRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DecreaseNodesRequest::getSystemDebug()const
{
return systemDebug_;
}
void DecreaseNodesRequest::setSystemDebug(const std::string& systemDebug)
{
systemDebug_ = systemDebug;
setParameter("SystemDebug", systemDebug);
}

View File

@@ -14,38 +14,38 @@
* limitations under the License.
*/
#include <alibabacloud/emr/model/CreateFlowJobResult.h>
#include <alibabacloud/emr/model/DecreaseNodesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
CreateFlowJobResult::CreateFlowJobResult() :
DecreaseNodesResult::DecreaseNodesResult() :
ServiceResult()
{}
CreateFlowJobResult::CreateFlowJobResult(const std::string &payload) :
DecreaseNodesResult::DecreaseNodesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateFlowJobResult::~CreateFlowJobResult()
DecreaseNodesResult::~DecreaseNodesResult()
{}
void CreateFlowJobResult::parse(const std::string &payload)
void DecreaseNodesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Id"].isNull())
id_ = value["Id"].asString();
if(!value["OperationId"].isNull())
operationId_ = value["OperationId"].asString();
}
std::string CreateFlowJobResult::getId()const
std::string DecreaseNodesResult::getOperationId()const
{
return id_;
return operationId_;
}

View File

@@ -0,0 +1,84 @@
/*
* 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/emr/model/DeleteAutoScalingPolicyRequest.h>
using AlibabaCloud::Emr::Model::DeleteAutoScalingPolicyRequest;
DeleteAutoScalingPolicyRequest::DeleteAutoScalingPolicyRequest() :
RpcServiceRequest("emr", "2021-03-20", "DeleteAutoScalingPolicy")
{
setMethod(HttpRequest::Method::Post);
}
DeleteAutoScalingPolicyRequest::~DeleteAutoScalingPolicyRequest()
{}
std::string DeleteAutoScalingPolicyRequest::getClientToken()const
{
return clientToken_;
}
void DeleteAutoScalingPolicyRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DeleteAutoScalingPolicyRequest::getRegionId()const
{
return regionId_;
}
void DeleteAutoScalingPolicyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteAutoScalingPolicyRequest::getClusterId()const
{
return clusterId_;
}
void DeleteAutoScalingPolicyRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DeleteAutoScalingPolicyRequest::getSystemDebug()const
{
return systemDebug_;
}
void DeleteAutoScalingPolicyRequest::setSystemDebug(const std::string& systemDebug)
{
systemDebug_ = systemDebug;
setParameter("SystemDebug", systemDebug);
}
std::string DeleteAutoScalingPolicyRequest::getScalingPolicyId()const
{
return scalingPolicyId_;
}
void DeleteAutoScalingPolicyRequest::setScalingPolicyId(const std::string& scalingPolicyId)
{
scalingPolicyId_ = scalingPolicyId;
setParameter("ScalingPolicyId", scalingPolicyId);
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/emr/model/RunClusterServiceActionResult.h>
#include <alibabacloud/emr/model/DeleteAutoScalingPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
RunClusterServiceActionResult::RunClusterServiceActionResult() :
DeleteAutoScalingPolicyResult::DeleteAutoScalingPolicyResult() :
ServiceResult()
{}
RunClusterServiceActionResult::RunClusterServiceActionResult(const std::string &payload) :
DeleteAutoScalingPolicyResult::DeleteAutoScalingPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RunClusterServiceActionResult::~RunClusterServiceActionResult()
DeleteAutoScalingPolicyResult::~DeleteAutoScalingPolicyResult()
{}
void RunClusterServiceActionResult::parse(const std::string &payload)
void DeleteAutoScalingPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;

View File

@@ -0,0 +1,84 @@
/*
* 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/emr/model/DeleteAutoScalingRuleRequest.h>
using AlibabaCloud::Emr::Model::DeleteAutoScalingRuleRequest;
DeleteAutoScalingRuleRequest::DeleteAutoScalingRuleRequest() :
RpcServiceRequest("emr", "2021-03-20", "DeleteAutoScalingRule")
{
setMethod(HttpRequest::Method::Post);
}
DeleteAutoScalingRuleRequest::~DeleteAutoScalingRuleRequest()
{}
std::string DeleteAutoScalingRuleRequest::getClientToken()const
{
return clientToken_;
}
void DeleteAutoScalingRuleRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DeleteAutoScalingRuleRequest::getScalingRuleId()const
{
return scalingRuleId_;
}
void DeleteAutoScalingRuleRequest::setScalingRuleId(const std::string& scalingRuleId)
{
scalingRuleId_ = scalingRuleId;
setParameter("ScalingRuleId", scalingRuleId);
}
std::string DeleteAutoScalingRuleRequest::getRegionId()const
{
return regionId_;
}
void DeleteAutoScalingRuleRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteAutoScalingRuleRequest::getClusterId()const
{
return clusterId_;
}
void DeleteAutoScalingRuleRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DeleteAutoScalingRuleRequest::getSystemDebug()const
{
return systemDebug_;
}
void DeleteAutoScalingRuleRequest::setSystemDebug(const std::string& systemDebug)
{
systemDebug_ = systemDebug;
setParameter("SystemDebug", systemDebug);
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/emr/model/DeleteClusterTemplateResult.h>
#include <alibabacloud/emr/model/DeleteAutoScalingRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
DeleteClusterTemplateResult::DeleteClusterTemplateResult() :
DeleteAutoScalingRuleResult::DeleteAutoScalingRuleResult() :
ServiceResult()
{}
DeleteClusterTemplateResult::DeleteClusterTemplateResult(const std::string &payload) :
DeleteAutoScalingRuleResult::DeleteAutoScalingRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteClusterTemplateResult::~DeleteClusterTemplateResult()
DeleteAutoScalingRuleResult::~DeleteAutoScalingRuleResult()
{}
void DeleteClusterTemplateResult::parse(const std::string &payload)
void DeleteAutoScalingRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;

View File

@@ -0,0 +1,84 @@
/*
* 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/emr/model/DeleteClusterRequest.h>
using AlibabaCloud::Emr::Model::DeleteClusterRequest;
DeleteClusterRequest::DeleteClusterRequest() :
RpcServiceRequest("emr", "2021-03-20", "DeleteCluster")
{
setMethod(HttpRequest::Method::Post);
}
DeleteClusterRequest::~DeleteClusterRequest()
{}
std::string DeleteClusterRequest::getClientToken()const
{
return clientToken_;
}
void DeleteClusterRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
bool DeleteClusterRequest::getForceRelease()const
{
return forceRelease_;
}
void DeleteClusterRequest::setForceRelease(bool forceRelease)
{
forceRelease_ = forceRelease;
setParameter("ForceRelease", forceRelease ? "true" : "false");
}
std::string DeleteClusterRequest::getRegionId()const
{
return regionId_;
}
void DeleteClusterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteClusterRequest::getClusterId()const
{
return clusterId_;
}
void DeleteClusterRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DeleteClusterRequest::getSystemDebug()const
{
return systemDebug_;
}
void DeleteClusterRequest::setSystemDebug(const std::string& systemDebug)
{
systemDebug_ = systemDebug;
setParameter("SystemDebug", systemDebug);
}

View File

@@ -14,37 +14,44 @@
* limitations under the License.
*/
#include <alibabacloud/emr/model/DeleteFlowJobResult.h>
#include <alibabacloud/emr/model/DeleteClusterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
DeleteFlowJobResult::DeleteFlowJobResult() :
DeleteClusterResult::DeleteClusterResult() :
ServiceResult()
{}
DeleteFlowJobResult::DeleteFlowJobResult(const std::string &payload) :
DeleteClusterResult::DeleteClusterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteFlowJobResult::~DeleteFlowJobResult()
DeleteClusterResult::~DeleteClusterResult()
{}
void DeleteFlowJobResult::parse(const std::string &payload)
void DeleteClusterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["OperationId"].isNull())
operationId_ = value["OperationId"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
bool DeleteFlowJobResult::getData()const
std::string DeleteClusterResult::getOperationId()const
{
return operationId_;
}
bool DeleteClusterResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,95 @@
/*
* 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/emr/model/DeleteClusterScriptRequest.h>
using AlibabaCloud::Emr::Model::DeleteClusterScriptRequest;
DeleteClusterScriptRequest::DeleteClusterScriptRequest() :
RpcServiceRequest("emr", "2021-03-20", "DeleteClusterScript")
{
setMethod(HttpRequest::Method::Post);
}
DeleteClusterScriptRequest::~DeleteClusterScriptRequest()
{}
std::string DeleteClusterScriptRequest::getClientToken()const
{
return clientToken_;
}
void DeleteClusterScriptRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DeleteClusterScriptRequest::getRegionId()const
{
return regionId_;
}
void DeleteClusterScriptRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteClusterScriptRequest::getScriptType()const
{
return scriptType_;
}
void DeleteClusterScriptRequest::setScriptType(const std::string& scriptType)
{
scriptType_ = scriptType;
setParameter("ScriptType", scriptType);
}
std::string DeleteClusterScriptRequest::getClusterId()const
{
return clusterId_;
}
void DeleteClusterScriptRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DeleteClusterScriptRequest::getScriptBizId()const
{
return scriptBizId_;
}
void DeleteClusterScriptRequest::setScriptBizId(const std::string& scriptBizId)
{
scriptBizId_ = scriptBizId;
setParameter("ScriptBizId", scriptBizId);
}
std::string DeleteClusterScriptRequest::getSystemDebug()const
{
return systemDebug_;
}
void DeleteClusterScriptRequest::setSystemDebug(const std::string& systemDebug)
{
systemDebug_ = systemDebug;
setParameter("SystemDebug", systemDebug);
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/emr/model/ModifyResourceQueueResult.h>
#include <alibabacloud/emr/model/DeleteClusterScriptResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
ModifyResourceQueueResult::ModifyResourceQueueResult() :
DeleteClusterScriptResult::DeleteClusterScriptResult() :
ServiceResult()
{}
ModifyResourceQueueResult::ModifyResourceQueueResult(const std::string &payload) :
DeleteClusterScriptResult::DeleteClusterScriptResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyResourceQueueResult::~ModifyResourceQueueResult()
DeleteClusterScriptResult::~DeleteClusterScriptResult()
{}
void ModifyResourceQueueResult::parse(const std::string &payload)
void DeleteClusterScriptResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;

View File

@@ -1,84 +0,0 @@
/*
* 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/emr/model/DeleteClusterTemplateRequest.h>
using AlibabaCloud::Emr::Model::DeleteClusterTemplateRequest;
DeleteClusterTemplateRequest::DeleteClusterTemplateRequest() :
RpcServiceRequest("emr", "2016-04-08", "DeleteClusterTemplate")
{
setMethod(HttpRequest::Method::Post);
}
DeleteClusterTemplateRequest::~DeleteClusterTemplateRequest()
{}
long DeleteClusterTemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteClusterTemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteClusterTemplateRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteClusterTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DeleteClusterTemplateRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DeleteClusterTemplateRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DeleteClusterTemplateRequest::getRegionId()const
{
return regionId_;
}
void DeleteClusterTemplateRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteClusterTemplateRequest::getBizId()const
{
return bizId_;
}
void DeleteClusterTemplateRequest::setBizId(const std::string& bizId)
{
bizId_ = bizId;
setParameter("BizId", bizId);
}

View File

@@ -1,62 +0,0 @@
/*
* 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/emr/model/DeleteFlowCategoryRequest.h>
using AlibabaCloud::Emr::Model::DeleteFlowCategoryRequest;
DeleteFlowCategoryRequest::DeleteFlowCategoryRequest() :
RpcServiceRequest("emr", "2016-04-08", "DeleteFlowCategory")
{
setMethod(HttpRequest::Method::Post);
}
DeleteFlowCategoryRequest::~DeleteFlowCategoryRequest()
{}
std::string DeleteFlowCategoryRequest::getRegionId()const
{
return regionId_;
}
void DeleteFlowCategoryRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteFlowCategoryRequest::getId()const
{
return id_;
}
void DeleteFlowCategoryRequest::setId(const std::string& id)
{
id_ = id;
setParameter("Id", id);
}
std::string DeleteFlowCategoryRequest::getProjectId()const
{
return projectId_;
}
void DeleteFlowCategoryRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
}

View File

@@ -1,62 +0,0 @@
/*
* 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/emr/model/DeleteFlowJobRequest.h>
using AlibabaCloud::Emr::Model::DeleteFlowJobRequest;
DeleteFlowJobRequest::DeleteFlowJobRequest() :
RpcServiceRequest("emr", "2016-04-08", "DeleteFlowJob")
{
setMethod(HttpRequest::Method::Post);
}
DeleteFlowJobRequest::~DeleteFlowJobRequest()
{}
std::string DeleteFlowJobRequest::getRegionId()const
{
return regionId_;
}
void DeleteFlowJobRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteFlowJobRequest::getId()const
{
return id_;
}
void DeleteFlowJobRequest::setId(const std::string& id)
{
id_ = id;
setParameter("Id", id);
}
std::string DeleteFlowJobRequest::getProjectId()const
{
return projectId_;
}
void DeleteFlowJobRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
}

View File

@@ -1,62 +0,0 @@
/*
* 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/emr/model/DeleteFlowProjectClusterSettingRequest.h>
using AlibabaCloud::Emr::Model::DeleteFlowProjectClusterSettingRequest;
DeleteFlowProjectClusterSettingRequest::DeleteFlowProjectClusterSettingRequest() :
RpcServiceRequest("emr", "2016-04-08", "DeleteFlowProjectClusterSetting")
{
setMethod(HttpRequest::Method::Post);
}
DeleteFlowProjectClusterSettingRequest::~DeleteFlowProjectClusterSettingRequest()
{}
std::string DeleteFlowProjectClusterSettingRequest::getClusterId()const
{
return clusterId_;
}
void DeleteFlowProjectClusterSettingRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DeleteFlowProjectClusterSettingRequest::getRegionId()const
{
return regionId_;
}
void DeleteFlowProjectClusterSettingRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteFlowProjectClusterSettingRequest::getProjectId()const
{
return projectId_;
}
void DeleteFlowProjectClusterSettingRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
}

View File

@@ -1,51 +0,0 @@
/*
* 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/emr/model/DeleteFlowProjectClusterSettingResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
DeleteFlowProjectClusterSettingResult::DeleteFlowProjectClusterSettingResult() :
ServiceResult()
{}
DeleteFlowProjectClusterSettingResult::DeleteFlowProjectClusterSettingResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteFlowProjectClusterSettingResult::~DeleteFlowProjectClusterSettingResult()
{}
void DeleteFlowProjectClusterSettingResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
bool DeleteFlowProjectClusterSettingResult::getData()const
{
return data_;
}

View File

@@ -1,51 +0,0 @@
/*
* 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/emr/model/DeleteFlowProjectRequest.h>
using AlibabaCloud::Emr::Model::DeleteFlowProjectRequest;
DeleteFlowProjectRequest::DeleteFlowProjectRequest() :
RpcServiceRequest("emr", "2016-04-08", "DeleteFlowProject")
{
setMethod(HttpRequest::Method::Post);
}
DeleteFlowProjectRequest::~DeleteFlowProjectRequest()
{}
std::string DeleteFlowProjectRequest::getRegionId()const
{
return regionId_;
}
void DeleteFlowProjectRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteFlowProjectRequest::getProjectId()const
{
return projectId_;
}
void DeleteFlowProjectRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
}

View File

@@ -1,51 +0,0 @@
/*
* 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/emr/model/DeleteFlowProjectResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
DeleteFlowProjectResult::DeleteFlowProjectResult() :
ServiceResult()
{}
DeleteFlowProjectResult::DeleteFlowProjectResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteFlowProjectResult::~DeleteFlowProjectResult()
{}
void DeleteFlowProjectResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
bool DeleteFlowProjectResult::getData()const
{
return data_;
}

View File

@@ -1,62 +0,0 @@
/*
* 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/emr/model/DeleteFlowProjectUserRequest.h>
using AlibabaCloud::Emr::Model::DeleteFlowProjectUserRequest;
DeleteFlowProjectUserRequest::DeleteFlowProjectUserRequest() :
RpcServiceRequest("emr", "2016-04-08", "DeleteFlowProjectUser")
{
setMethod(HttpRequest::Method::Post);
}
DeleteFlowProjectUserRequest::~DeleteFlowProjectUserRequest()
{}
std::string DeleteFlowProjectUserRequest::getRegionId()const
{
return regionId_;
}
void DeleteFlowProjectUserRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteFlowProjectUserRequest::getProjectId()const
{
return projectId_;
}
void DeleteFlowProjectUserRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
}
std::string DeleteFlowProjectUserRequest::getUserName()const
{
return userName_;
}
void DeleteFlowProjectUserRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

View File

@@ -1,62 +0,0 @@
/*
* 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/emr/model/DeleteFlowRequest.h>
using AlibabaCloud::Emr::Model::DeleteFlowRequest;
DeleteFlowRequest::DeleteFlowRequest() :
RpcServiceRequest("emr", "2016-04-08", "DeleteFlow")
{
setMethod(HttpRequest::Method::Post);
}
DeleteFlowRequest::~DeleteFlowRequest()
{}
std::string DeleteFlowRequest::getRegionId()const
{
return regionId_;
}
void DeleteFlowRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteFlowRequest::getId()const
{
return id_;
}
void DeleteFlowRequest::setId(const std::string& id)
{
id_ = id;
setParameter("Id", id);
}
std::string DeleteFlowRequest::getProjectId()const
{
return projectId_;
}
void DeleteFlowRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
}

View File

@@ -0,0 +1,95 @@
/*
* 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/emr/model/DeleteNodeGroupRequest.h>
using AlibabaCloud::Emr::Model::DeleteNodeGroupRequest;
DeleteNodeGroupRequest::DeleteNodeGroupRequest() :
RpcServiceRequest("emr", "2021-03-20", "DeleteNodeGroup")
{
setMethod(HttpRequest::Method::Post);
}
DeleteNodeGroupRequest::~DeleteNodeGroupRequest()
{}
std::string DeleteNodeGroupRequest::getClientToken()const
{
return clientToken_;
}
void DeleteNodeGroupRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DeleteNodeGroupRequest::getDescription()const
{
return description_;
}
void DeleteNodeGroupRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string DeleteNodeGroupRequest::getRegionId()const
{
return regionId_;
}
void DeleteNodeGroupRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteNodeGroupRequest::getClusterId()const
{
return clusterId_;
}
void DeleteNodeGroupRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DeleteNodeGroupRequest::getNodeGroupId()const
{
return nodeGroupId_;
}
void DeleteNodeGroupRequest::setNodeGroupId(const std::string& nodeGroupId)
{
nodeGroupId_ = nodeGroupId;
setParameter("NodeGroupId", nodeGroupId);
}
std::string DeleteNodeGroupRequest::getSystemDebug()const
{
return systemDebug_;
}
void DeleteNodeGroupRequest::setSystemDebug(const std::string& systemDebug)
{
systemDebug_ = systemDebug;
setParameter("SystemDebug", systemDebug);
}

View File

@@ -14,38 +14,38 @@
* limitations under the License.
*/
#include <alibabacloud/emr/model/ResizeClusterV2Result.h>
#include <alibabacloud/emr/model/DeleteNodeGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
ResizeClusterV2Result::ResizeClusterV2Result() :
DeleteNodeGroupResult::DeleteNodeGroupResult() :
ServiceResult()
{}
ResizeClusterV2Result::ResizeClusterV2Result(const std::string &payload) :
DeleteNodeGroupResult::DeleteNodeGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ResizeClusterV2Result::~ResizeClusterV2Result()
DeleteNodeGroupResult::~DeleteNodeGroupResult()
{}
void ResizeClusterV2Result::parse(const std::string &payload)
void DeleteNodeGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ClusterId"].isNull())
clusterId_ = value["ClusterId"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string ResizeClusterV2Result::getClusterId()const
bool DeleteNodeGroupResult::getSuccess()const
{
return clusterId_;
return success_;
}

View File

@@ -0,0 +1,95 @@
/*
* 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/emr/model/DeleteOnAckClusterRequest.h>
using AlibabaCloud::Emr::Model::DeleteOnAckClusterRequest;
DeleteOnAckClusterRequest::DeleteOnAckClusterRequest() :
RpcServiceRequest("emr", "2021-03-20", "DeleteOnAckCluster")
{
setMethod(HttpRequest::Method::Post);
}
DeleteOnAckClusterRequest::~DeleteOnAckClusterRequest()
{}
std::string DeleteOnAckClusterRequest::getClientToken()const
{
return clientToken_;
}
void DeleteOnAckClusterRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DeleteOnAckClusterRequest::getRegionId()const
{
return regionId_;
}
void DeleteOnAckClusterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteOnAckClusterRequest::getClusterId()const
{
return clusterId_;
}
void DeleteOnAckClusterRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DeleteOnAckClusterRequest::getToken()const
{
return token_;
}
void DeleteOnAckClusterRequest::setToken(const std::string& token)
{
token_ = token;
setParameter("Token", token);
}
std::string DeleteOnAckClusterRequest::getSystemDebug()const
{
return systemDebug_;
}
void DeleteOnAckClusterRequest::setSystemDebug(const std::string& systemDebug)
{
systemDebug_ = systemDebug;
setParameter("SystemDebug", systemDebug);
}
std::string DeleteOnAckClusterRequest::getProductRoleName()const
{
return productRoleName_;
}
void DeleteOnAckClusterRequest::setProductRoleName(const std::string& productRoleName)
{
productRoleName_ = productRoleName;
setParameter("ProductRoleName", productRoleName);
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/emr/model/DeleteResourcePoolResult.h>
#include <alibabacloud/emr/model/DeleteOnAckClusterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
DeleteResourcePoolResult::DeleteResourcePoolResult() :
DeleteOnAckClusterResult::DeleteOnAckClusterResult() :
ServiceResult()
{}
DeleteResourcePoolResult::DeleteResourcePoolResult(const std::string &payload) :
DeleteOnAckClusterResult::DeleteOnAckClusterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteResourcePoolResult::~DeleteResourcePoolResult()
DeleteOnAckClusterResult::~DeleteOnAckClusterResult()
{}
void DeleteResourcePoolResult::parse(const std::string &payload)
void DeleteOnAckClusterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;

View File

@@ -1,84 +0,0 @@
/*
* 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/emr/model/DeleteResourcePoolRequest.h>
using AlibabaCloud::Emr::Model::DeleteResourcePoolRequest;
DeleteResourcePoolRequest::DeleteResourcePoolRequest() :
RpcServiceRequest("emr", "2016-04-08", "DeleteResourcePool")
{
setMethod(HttpRequest::Method::Post);
}
DeleteResourcePoolRequest::~DeleteResourcePoolRequest()
{}
long DeleteResourcePoolRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteResourcePoolRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteResourcePoolRequest::getResourcePoolId()const
{
return resourcePoolId_;
}
void DeleteResourcePoolRequest::setResourcePoolId(const std::string& resourcePoolId)
{
resourcePoolId_ = resourcePoolId;
setParameter("ResourcePoolId", resourcePoolId);
}
std::string DeleteResourcePoolRequest::getClusterId()const
{
return clusterId_;
}
void DeleteResourcePoolRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DeleteResourcePoolRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteResourcePoolRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DeleteResourcePoolRequest::getRegionId()const
{
return regionId_;
}
void DeleteResourcePoolRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

@@ -1,84 +0,0 @@
/*
* 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/emr/model/DeleteResourceQueueRequest.h>
using AlibabaCloud::Emr::Model::DeleteResourceQueueRequest;
DeleteResourceQueueRequest::DeleteResourceQueueRequest() :
RpcServiceRequest("emr", "2016-04-08", "DeleteResourceQueue")
{
setMethod(HttpRequest::Method::Post);
}
DeleteResourceQueueRequest::~DeleteResourceQueueRequest()
{}
long DeleteResourceQueueRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteResourceQueueRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteResourceQueueRequest::getClusterId()const
{
return clusterId_;
}
void DeleteResourceQueueRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DeleteResourceQueueRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteResourceQueueRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DeleteResourceQueueRequest::getResourceQueueId()const
{
return resourceQueueId_;
}
void DeleteResourceQueueRequest::setResourceQueueId(const std::string& resourceQueueId)
{
resourceQueueId_ = resourceQueueId;
setParameter("ResourceQueueId", resourceQueueId);
}
std::string DeleteResourceQueueRequest::getRegionId()const
{
return regionId_;
}
void DeleteResourceQueueRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

@@ -0,0 +1,84 @@
/*
* 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/emr/model/DeleteScalingGroupRequest.h>
using AlibabaCloud::Emr::Model::DeleteScalingGroupRequest;
DeleteScalingGroupRequest::DeleteScalingGroupRequest() :
RpcServiceRequest("emr", "2021-03-20", "DeleteScalingGroup")
{
setMethod(HttpRequest::Method::Post);
}
DeleteScalingGroupRequest::~DeleteScalingGroupRequest()
{}
std::string DeleteScalingGroupRequest::getClientToken()const
{
return clientToken_;
}
void DeleteScalingGroupRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DeleteScalingGroupRequest::getScalingGroupId()const
{
return scalingGroupId_;
}
void DeleteScalingGroupRequest::setScalingGroupId(const std::string& scalingGroupId)
{
scalingGroupId_ = scalingGroupId;
setParameter("ScalingGroupId", scalingGroupId);
}
std::string DeleteScalingGroupRequest::getRegionId()const
{
return regionId_;
}
void DeleteScalingGroupRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteScalingGroupRequest::getClusterId()const
{
return clusterId_;
}
void DeleteScalingGroupRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DeleteScalingGroupRequest::getSystemDebug()const
{
return systemDebug_;
}
void DeleteScalingGroupRequest::setSystemDebug(const std::string& systemDebug)
{
systemDebug_ = systemDebug;
setParameter("SystemDebug", systemDebug);
}

View File

@@ -14,38 +14,38 @@
* limitations under the License.
*/
#include <alibabacloud/emr/model/RunScalingActionV2Result.h>
#include <alibabacloud/emr/model/DeleteScalingGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
RunScalingActionV2Result::RunScalingActionV2Result() :
DeleteScalingGroupResult::DeleteScalingGroupResult() :
ServiceResult()
{}
RunScalingActionV2Result::RunScalingActionV2Result(const std::string &payload) :
DeleteScalingGroupResult::DeleteScalingGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RunScalingActionV2Result::~RunScalingActionV2Result()
DeleteScalingGroupResult::~DeleteScalingGroupResult()
{}
void RunScalingActionV2Result::parse(const std::string &payload)
void DeleteScalingGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["ScalingGroupId"].isNull())
scalingGroupId_ = value["ScalingGroupId"].asString();
}
std::string RunScalingActionV2Result::getData()const
std::string DeleteScalingGroupResult::getScalingGroupId()const
{
return data_;
return scalingGroupId_;
}

View File

@@ -1,73 +0,0 @@
/*
* 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/emr/model/DescribeClusterBasicInfoRequest.h>
using AlibabaCloud::Emr::Model::DescribeClusterBasicInfoRequest;
DescribeClusterBasicInfoRequest::DescribeClusterBasicInfoRequest() :
RpcServiceRequest("emr", "2016-04-08", "DescribeClusterBasicInfo")
{
setMethod(HttpRequest::Method::Post);
}
DescribeClusterBasicInfoRequest::~DescribeClusterBasicInfoRequest()
{}
long DescribeClusterBasicInfoRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeClusterBasicInfoRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeClusterBasicInfoRequest::getClusterId()const
{
return clusterId_;
}
void DescribeClusterBasicInfoRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DescribeClusterBasicInfoRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeClusterBasicInfoRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeClusterBasicInfoRequest::getRegionId()const
{
return regionId_;
}
void DescribeClusterBasicInfoRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

@@ -1,239 +0,0 @@
/*
* 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/emr/model/DescribeClusterBasicInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
DescribeClusterBasicInfoResult::DescribeClusterBasicInfoResult() :
ServiceResult()
{}
DescribeClusterBasicInfoResult::DescribeClusterBasicInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeClusterBasicInfoResult::~DescribeClusterBasicInfoResult()
{}
void DescribeClusterBasicInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto clusterInfoNode = value["ClusterInfo"];
if(!clusterInfoNode["ClusterId"].isNull())
clusterInfo_.clusterId = clusterInfoNode["ClusterId"].asString();
if(!clusterInfoNode["RegionId"].isNull())
clusterInfo_.regionId = clusterInfoNode["RegionId"].asString();
if(!clusterInfoNode["MachineType"].isNull())
clusterInfo_.machineType = clusterInfoNode["MachineType"].asString();
if(!clusterInfoNode["DepositType"].isNull())
clusterInfo_.depositType = clusterInfoNode["DepositType"].asString();
if(!clusterInfoNode["ZoneId"].isNull())
clusterInfo_.zoneId = clusterInfoNode["ZoneId"].asString();
if(!clusterInfoNode["Name"].isNull())
clusterInfo_.name = clusterInfoNode["Name"].asString();
if(!clusterInfoNode["ExtraInfo"].isNull())
clusterInfo_.extraInfo = clusterInfoNode["ExtraInfo"].asString();
if(!clusterInfoNode["RelateClusterId"].isNull())
clusterInfo_.relateClusterId = clusterInfoNode["RelateClusterId"].asString();
if(!clusterInfoNode["GatewayClusterIds"].isNull())
clusterInfo_.gatewayClusterIds = clusterInfoNode["GatewayClusterIds"].asString();
if(!clusterInfoNode["CreateType"].isNull())
clusterInfo_.createType = clusterInfoNode["CreateType"].asString();
if(!clusterInfoNode["StartTime"].isNull())
clusterInfo_.startTime = std::stol(clusterInfoNode["StartTime"].asString());
if(!clusterInfoNode["ExpiredTime"].isNull())
clusterInfo_.expiredTime = std::stol(clusterInfoNode["ExpiredTime"].asString());
if(!clusterInfoNode["StopTime"].isNull())
clusterInfo_.stopTime = std::stol(clusterInfoNode["StopTime"].asString());
if(!clusterInfoNode["LogEnable"].isNull())
clusterInfo_.logEnable = clusterInfoNode["LogEnable"].asString() == "true";
if(!clusterInfoNode["LogPath"].isNull())
clusterInfo_.logPath = clusterInfoNode["LogPath"].asString();
if(!clusterInfoNode["UserId"].isNull())
clusterInfo_.userId = clusterInfoNode["UserId"].asString();
if(!clusterInfoNode["Status"].isNull())
clusterInfo_.status = clusterInfoNode["Status"].asString();
if(!clusterInfoNode["HighAvailabilityEnable"].isNull())
clusterInfo_.highAvailabilityEnable = clusterInfoNode["HighAvailabilityEnable"].asString() == "true";
if(!clusterInfoNode["LocalMetaDb"].isNull())
clusterInfo_.localMetaDb = clusterInfoNode["LocalMetaDb"].asString() == "true";
if(!clusterInfoNode["ChargeType"].isNull())
clusterInfo_.chargeType = clusterInfoNode["ChargeType"].asString();
if(!clusterInfoNode["Period"].isNull())
clusterInfo_.period = std::stoi(clusterInfoNode["Period"].asString());
if(!clusterInfoNode["RunningTime"].isNull())
clusterInfo_.runningTime = std::stoi(clusterInfoNode["RunningTime"].asString());
if(!clusterInfoNode["MasterNodeTotal"].isNull())
clusterInfo_.masterNodeTotal = std::stoi(clusterInfoNode["MasterNodeTotal"].asString());
if(!clusterInfoNode["MasterNodeInService"].isNull())
clusterInfo_.masterNodeInService = std::stoi(clusterInfoNode["MasterNodeInService"].asString());
if(!clusterInfoNode["CoreNodeTotal"].isNull())
clusterInfo_.coreNodeTotal = std::stoi(clusterInfoNode["CoreNodeTotal"].asString());
if(!clusterInfoNode["CoreNodeInService"].isNull())
clusterInfo_.coreNodeInService = std::stoi(clusterInfoNode["CoreNodeInService"].asString());
if(!clusterInfoNode["TaskNodeTotal"].isNull())
clusterInfo_.taskNodeTotal = std::stoi(clusterInfoNode["TaskNodeTotal"].asString());
if(!clusterInfoNode["TaskNodeInService"].isNull())
clusterInfo_.taskNodeInService = std::stoi(clusterInfoNode["TaskNodeInService"].asString());
if(!clusterInfoNode["ShowSoftwareInterface"].isNull())
clusterInfo_.showSoftwareInterface = clusterInfoNode["ShowSoftwareInterface"].asString() == "true";
if(!clusterInfoNode["CreateResource"].isNull())
clusterInfo_.createResource = clusterInfoNode["CreateResource"].asString();
if(!clusterInfoNode["VpcId"].isNull())
clusterInfo_.vpcId = clusterInfoNode["VpcId"].asString();
if(!clusterInfoNode["VSwitchId"].isNull())
clusterInfo_.vSwitchId = clusterInfoNode["VSwitchId"].asString();
if(!clusterInfoNode["NetType"].isNull())
clusterInfo_.netType = clusterInfoNode["NetType"].asString();
if(!clusterInfoNode["UserDefinedEmrEcsRole"].isNull())
clusterInfo_.userDefinedEmrEcsRole = clusterInfoNode["UserDefinedEmrEcsRole"].asString();
if(!clusterInfoNode["IoOptimized"].isNull())
clusterInfo_.ioOptimized = clusterInfoNode["IoOptimized"].asString() == "true";
if(!clusterInfoNode["InstanceGeneration"].isNull())
clusterInfo_.instanceGeneration = clusterInfoNode["InstanceGeneration"].asString();
if(!clusterInfoNode["ImageId"].isNull())
clusterInfo_.imageId = clusterInfoNode["ImageId"].asString();
if(!clusterInfoNode["SecurityGroupId"].isNull())
clusterInfo_.securityGroupId = clusterInfoNode["SecurityGroupId"].asString();
if(!clusterInfoNode["SecurityGroupName"].isNull())
clusterInfo_.securityGroupName = clusterInfoNode["SecurityGroupName"].asString();
if(!clusterInfoNode["BootstrapFailed"].isNull())
clusterInfo_.bootstrapFailed = clusterInfoNode["BootstrapFailed"].asString() == "true";
if(!clusterInfoNode["Configurations"].isNull())
clusterInfo_.configurations = clusterInfoNode["Configurations"].asString();
if(!clusterInfoNode["EasEnable"].isNull())
clusterInfo_.easEnable = clusterInfoNode["EasEnable"].asString() == "true";
if(!clusterInfoNode["AutoScalingVersion"].isNull())
clusterInfo_.autoScalingVersion = clusterInfoNode["AutoScalingVersion"].asString();
if(!clusterInfoNode["AutoScalingEnable"].isNull())
clusterInfo_.autoScalingEnable = clusterInfoNode["AutoScalingEnable"].asString() == "true";
if(!clusterInfoNode["AutoScalingAllowed"].isNull())
clusterInfo_.autoScalingAllowed = clusterInfoNode["AutoScalingAllowed"].asString() == "true";
if(!clusterInfoNode["AutoScalingSpotWithLimitAllowed"].isNull())
clusterInfo_.autoScalingSpotWithLimitAllowed = clusterInfoNode["AutoScalingSpotWithLimitAllowed"].asString() == "true";
if(!clusterInfoNode["AutoScalingByLoadAllowed"].isNull())
clusterInfo_.autoScalingByLoadAllowed = clusterInfoNode["AutoScalingByLoadAllowed"].asString() == "true";
if(!clusterInfoNode["AutoScalingWithGraceAllowed"].isNull())
clusterInfo_.autoScalingWithGraceAllowed = clusterInfoNode["AutoScalingWithGraceAllowed"].asString() == "true";
if(!clusterInfoNode["ResizeDiskEnable"].isNull())
clusterInfo_.resizeDiskEnable = clusterInfoNode["ResizeDiskEnable"].asString() == "true";
if(!clusterInfoNode["ResizeClusterEnable"].isNull())
clusterInfo_.resizeClusterEnable = clusterInfoNode["ResizeClusterEnable"].asString() == "true";
if(!clusterInfoNode["MetaStoreType"].isNull())
clusterInfo_.metaStoreType = clusterInfoNode["MetaStoreType"].asString();
if(!clusterInfoNode["K8sClusterId"].isNull())
clusterInfo_.k8sClusterId = clusterInfoNode["K8sClusterId"].asString();
if(!clusterInfoNode["OperationId"].isNull())
clusterInfo_.operationId = clusterInfoNode["OperationId"].asString();
if(!clusterInfoNode["ClickhouseConf"].isNull())
clusterInfo_.clickhouseConf = clusterInfoNode["ClickhouseConf"].asString();
if(!clusterInfoNode["DataDiskEncrypted"].isNull())
clusterInfo_.dataDiskEncrypted = clusterInfoNode["DataDiskEncrypted"].asString() == "true";
if(!clusterInfoNode["DataDiskKMSKeyId"].isNull())
clusterInfo_.dataDiskKMSKeyId = clusterInfoNode["DataDiskKMSKeyId"].asString();
auto allGatewayClusterInfoListNode = clusterInfoNode["GatewayClusterInfoList"]["GatewayClusterInfo"];
for (auto clusterInfoNodeGatewayClusterInfoListGatewayClusterInfo : allGatewayClusterInfoListNode)
{
ClusterInfo::GatewayClusterInfo gatewayClusterInfoObject;
if(!clusterInfoNodeGatewayClusterInfoListGatewayClusterInfo["ClusterId"].isNull())
gatewayClusterInfoObject.clusterId = clusterInfoNodeGatewayClusterInfoListGatewayClusterInfo["ClusterId"].asString();
if(!clusterInfoNodeGatewayClusterInfoListGatewayClusterInfo["ClusterName"].isNull())
gatewayClusterInfoObject.clusterName = clusterInfoNodeGatewayClusterInfoListGatewayClusterInfo["ClusterName"].asString();
if(!clusterInfoNodeGatewayClusterInfoListGatewayClusterInfo["Status"].isNull())
gatewayClusterInfoObject.status = clusterInfoNodeGatewayClusterInfoListGatewayClusterInfo["Status"].asString();
clusterInfo_.gatewayClusterInfoList.push_back(gatewayClusterInfoObject);
}
auto allBootstrapActionListNode = clusterInfoNode["BootstrapActionList"]["BootstrapAction"];
for (auto clusterInfoNodeBootstrapActionListBootstrapAction : allBootstrapActionListNode)
{
ClusterInfo::BootstrapAction bootstrapActionObject;
if(!clusterInfoNodeBootstrapActionListBootstrapAction["Name"].isNull())
bootstrapActionObject.name = clusterInfoNodeBootstrapActionListBootstrapAction["Name"].asString();
if(!clusterInfoNodeBootstrapActionListBootstrapAction["Path"].isNull())
bootstrapActionObject.path = clusterInfoNodeBootstrapActionListBootstrapAction["Path"].asString();
if(!clusterInfoNodeBootstrapActionListBootstrapAction["Arg"].isNull())
bootstrapActionObject.arg = clusterInfoNodeBootstrapActionListBootstrapAction["Arg"].asString();
clusterInfo_.bootstrapActionList.push_back(bootstrapActionObject);
}
auto relateClusterInfoNode = clusterInfoNode["RelateClusterInfo"];
if(!relateClusterInfoNode["ClusterId"].isNull())
clusterInfo_.relateClusterInfo.clusterId = relateClusterInfoNode["ClusterId"].asString();
if(!relateClusterInfoNode["ClusterName"].isNull())
clusterInfo_.relateClusterInfo.clusterName = relateClusterInfoNode["ClusterName"].asString();
if(!relateClusterInfoNode["Status"].isNull())
clusterInfo_.relateClusterInfo.status = relateClusterInfoNode["Status"].asString();
if(!relateClusterInfoNode["ClusterType"].isNull())
clusterInfo_.relateClusterInfo.clusterType = relateClusterInfoNode["ClusterType"].asString();
auto hostPoolInfoNode = clusterInfoNode["HostPoolInfo"];
if(!hostPoolInfoNode["HpBizId"].isNull())
clusterInfo_.hostPoolInfo.hpBizId = hostPoolInfoNode["HpBizId"].asString();
if(!hostPoolInfoNode["HpName"].isNull())
clusterInfo_.hostPoolInfo.hpName = hostPoolInfoNode["HpName"].asString();
auto failReasonNode = clusterInfoNode["FailReason"];
if(!failReasonNode["ErrorCode"].isNull())
clusterInfo_.failReason.errorCode = failReasonNode["ErrorCode"].asString();
if(!failReasonNode["ErrorMsg"].isNull())
clusterInfo_.failReason.errorMsg = failReasonNode["ErrorMsg"].asString();
if(!failReasonNode["RequestId"].isNull())
clusterInfo_.failReason.requestId = failReasonNode["RequestId"].asString();
auto softwareInfoNode = clusterInfoNode["SoftwareInfo"];
if(!softwareInfoNode["EmrVer"].isNull())
clusterInfo_.softwareInfo.emrVer = softwareInfoNode["EmrVer"].asString();
if(!softwareInfoNode["ClusterType"].isNull())
clusterInfo_.softwareInfo.clusterType = softwareInfoNode["ClusterType"].asString();
auto allSoftwaresNode = softwareInfoNode["Softwares"]["Software"];
for (auto softwareInfoNodeSoftwaresSoftware : allSoftwaresNode)
{
ClusterInfo::SoftwareInfo::Software softwareObject;
if(!softwareInfoNodeSoftwaresSoftware["DisplayName"].isNull())
softwareObject.displayName = softwareInfoNodeSoftwaresSoftware["DisplayName"].asString();
if(!softwareInfoNodeSoftwaresSoftware["Name"].isNull())
softwareObject.name = softwareInfoNodeSoftwaresSoftware["Name"].asString();
if(!softwareInfoNodeSoftwaresSoftware["OnlyDisplay"].isNull())
softwareObject.onlyDisplay = softwareInfoNodeSoftwaresSoftware["OnlyDisplay"].asString() == "true";
if(!softwareInfoNodeSoftwaresSoftware["StartTpe"].isNull())
softwareObject.startTpe = std::stoi(softwareInfoNodeSoftwaresSoftware["StartTpe"].asString());
if(!softwareInfoNodeSoftwaresSoftware["Version"].isNull())
softwareObject.version = softwareInfoNodeSoftwaresSoftware["Version"].asString();
clusterInfo_.softwareInfo.softwares.push_back(softwareObject);
}
auto accessInfoNode = clusterInfoNode["AccessInfo"];
auto allZKLinksNode = accessInfoNode["ZKLinks"]["ZKLink"];
for (auto accessInfoNodeZKLinksZKLink : allZKLinksNode)
{
ClusterInfo::AccessInfo::ZKLink zKLinkObject;
if(!accessInfoNodeZKLinksZKLink["Link"].isNull())
zKLinkObject.link = accessInfoNodeZKLinksZKLink["Link"].asString();
if(!accessInfoNodeZKLinksZKLink["Port"].isNull())
zKLinkObject.port = accessInfoNodeZKLinksZKLink["Port"].asString();
clusterInfo_.accessInfo.zKLinks.push_back(zKLinkObject);
}
}
DescribeClusterBasicInfoResult::ClusterInfo DescribeClusterBasicInfoResult::getClusterInfo()const
{
return clusterInfo_;
}

View File

@@ -1,117 +0,0 @@
/*
* 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/emr/model/DescribeClusterOperationHostTaskLogRequest.h>
using AlibabaCloud::Emr::Model::DescribeClusterOperationHostTaskLogRequest;
DescribeClusterOperationHostTaskLogRequest::DescribeClusterOperationHostTaskLogRequest() :
RpcServiceRequest("emr", "2016-04-08", "DescribeClusterOperationHostTaskLog")
{
setMethod(HttpRequest::Method::Post);
}
DescribeClusterOperationHostTaskLogRequest::~DescribeClusterOperationHostTaskLogRequest()
{}
long DescribeClusterOperationHostTaskLogRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeClusterOperationHostTaskLogRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeClusterOperationHostTaskLogRequest::getHostId()const
{
return hostId_;
}
void DescribeClusterOperationHostTaskLogRequest::setHostId(const std::string& hostId)
{
hostId_ = hostId;
setParameter("HostId", hostId);
}
std::string DescribeClusterOperationHostTaskLogRequest::getClusterId()const
{
return clusterId_;
}
void DescribeClusterOperationHostTaskLogRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DescribeClusterOperationHostTaskLogRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeClusterOperationHostTaskLogRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeClusterOperationHostTaskLogRequest::getRegionId()const
{
return regionId_;
}
void DescribeClusterOperationHostTaskLogRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DescribeClusterOperationHostTaskLogRequest::getOperationId()const
{
return operationId_;
}
void DescribeClusterOperationHostTaskLogRequest::setOperationId(const std::string& operationId)
{
operationId_ = operationId;
setParameter("OperationId", operationId);
}
std::string DescribeClusterOperationHostTaskLogRequest::getTaskId()const
{
return taskId_;
}
void DescribeClusterOperationHostTaskLogRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
}
std::string DescribeClusterOperationHostTaskLogRequest::getStatus()const
{
return status_;
}
void DescribeClusterOperationHostTaskLogRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}

View File

@@ -1,58 +0,0 @@
/*
* 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/emr/model/DescribeClusterOperationHostTaskLogResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
DescribeClusterOperationHostTaskLogResult::DescribeClusterOperationHostTaskLogResult() :
ServiceResult()
{}
DescribeClusterOperationHostTaskLogResult::DescribeClusterOperationHostTaskLogResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeClusterOperationHostTaskLogResult::~DescribeClusterOperationHostTaskLogResult()
{}
void DescribeClusterOperationHostTaskLogResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Stdout"].isNull())
_stdout_ = value["Stdout"].asString();
if(!value["Stderr"].isNull())
_stderr_ = value["Stderr"].asString();
}
std::string DescribeClusterOperationHostTaskLogResult::get_Stderr()const
{
return _stderr_;
}
std::string DescribeClusterOperationHostTaskLogResult::get_Stdout()const
{
return _stdout_;
}

View File

@@ -1,73 +0,0 @@
/*
* 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/emr/model/DescribeClusterResourcePoolSchedulerTypeRequest.h>
using AlibabaCloud::Emr::Model::DescribeClusterResourcePoolSchedulerTypeRequest;
DescribeClusterResourcePoolSchedulerTypeRequest::DescribeClusterResourcePoolSchedulerTypeRequest() :
RpcServiceRequest("emr", "2016-04-08", "DescribeClusterResourcePoolSchedulerType")
{
setMethod(HttpRequest::Method::Post);
}
DescribeClusterResourcePoolSchedulerTypeRequest::~DescribeClusterResourcePoolSchedulerTypeRequest()
{}
long DescribeClusterResourcePoolSchedulerTypeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeClusterResourcePoolSchedulerTypeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeClusterResourcePoolSchedulerTypeRequest::getClusterId()const
{
return clusterId_;
}
void DescribeClusterResourcePoolSchedulerTypeRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DescribeClusterResourcePoolSchedulerTypeRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeClusterResourcePoolSchedulerTypeRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeClusterResourcePoolSchedulerTypeRequest::getRegionId()const
{
return regionId_;
}
void DescribeClusterResourcePoolSchedulerTypeRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

@@ -1,65 +0,0 @@
/*
* 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/emr/model/DescribeClusterResourcePoolSchedulerTypeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
DescribeClusterResourcePoolSchedulerTypeResult::DescribeClusterResourcePoolSchedulerTypeResult() :
ServiceResult()
{}
DescribeClusterResourcePoolSchedulerTypeResult::DescribeClusterResourcePoolSchedulerTypeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeClusterResourcePoolSchedulerTypeResult::~DescribeClusterResourcePoolSchedulerTypeResult()
{}
void DescribeClusterResourcePoolSchedulerTypeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["CurrentSchedulerType"].isNull())
currentSchedulerType_ = value["CurrentSchedulerType"].asString();
if(!value["SupportSchedulerType"].isNull())
supportSchedulerType_ = value["SupportSchedulerType"].asString();
if(!value["DefaultSchedulerType"].isNull())
defaultSchedulerType_ = value["DefaultSchedulerType"].asString();
}
std::string DescribeClusterResourcePoolSchedulerTypeResult::getCurrentSchedulerType()const
{
return currentSchedulerType_;
}
std::string DescribeClusterResourcePoolSchedulerTypeResult::getSupportSchedulerType()const
{
return supportSchedulerType_;
}
std::string DescribeClusterResourcePoolSchedulerTypeResult::getDefaultSchedulerType()const
{
return defaultSchedulerType_;
}

View File

@@ -1,128 +0,0 @@
/*
* 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/emr/model/DescribeClusterServiceConfigRequest.h>
using AlibabaCloud::Emr::Model::DescribeClusterServiceConfigRequest;
DescribeClusterServiceConfigRequest::DescribeClusterServiceConfigRequest() :
RpcServiceRequest("emr", "2016-04-08", "DescribeClusterServiceConfig")
{
setMethod(HttpRequest::Method::Post);
}
DescribeClusterServiceConfigRequest::~DescribeClusterServiceConfigRequest()
{}
long DescribeClusterServiceConfigRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeClusterServiceConfigRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeClusterServiceConfigRequest::getHostInstanceId()const
{
return hostInstanceId_;
}
void DescribeClusterServiceConfigRequest::setHostInstanceId(const std::string& hostInstanceId)
{
hostInstanceId_ = hostInstanceId;
setParameter("HostInstanceId", hostInstanceId);
}
std::string DescribeClusterServiceConfigRequest::getTagValue()const
{
return tagValue_;
}
void DescribeClusterServiceConfigRequest::setTagValue(const std::string& tagValue)
{
tagValue_ = tagValue;
setParameter("TagValue", tagValue);
}
std::string DescribeClusterServiceConfigRequest::getGroupId()const
{
return groupId_;
}
void DescribeClusterServiceConfigRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setParameter("GroupId", groupId);
}
std::string DescribeClusterServiceConfigRequest::getClusterId()const
{
return clusterId_;
}
void DescribeClusterServiceConfigRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DescribeClusterServiceConfigRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeClusterServiceConfigRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeClusterServiceConfigRequest::getConfigVersion()const
{
return configVersion_;
}
void DescribeClusterServiceConfigRequest::setConfigVersion(const std::string& configVersion)
{
configVersion_ = configVersion;
setParameter("ConfigVersion", configVersion);
}
std::string DescribeClusterServiceConfigRequest::getRegionId()const
{
return regionId_;
}
void DescribeClusterServiceConfigRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DescribeClusterServiceConfigRequest::getServiceName()const
{
return serviceName_;
}
void DescribeClusterServiceConfigRequest::setServiceName(const std::string& serviceName)
{
serviceName_ = serviceName;
setParameter("ServiceName", serviceName);
}

View File

@@ -1,147 +0,0 @@
/*
* 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/emr/model/DescribeClusterServiceConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
DescribeClusterServiceConfigResult::DescribeClusterServiceConfigResult() :
ServiceResult()
{}
DescribeClusterServiceConfigResult::DescribeClusterServiceConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeClusterServiceConfigResult::~DescribeClusterServiceConfigResult()
{}
void DescribeClusterServiceConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto configNode = value["Config"];
if(!configNode["ServiceName"].isNull())
config_.serviceName = configNode["ServiceName"].asString();
if(!configNode["ConfigVersion"].isNull())
config_.configVersion = configNode["ConfigVersion"].asString();
if(!configNode["Applied"].isNull())
config_.applied = configNode["Applied"].asString();
if(!configNode["CreateTime"].isNull())
config_.createTime = configNode["CreateTime"].asString();
if(!configNode["Author"].isNull())
config_.author = configNode["Author"].asString();
if(!configNode["Comment"].isNull())
config_.comment = configNode["Comment"].asString();
auto allConfigValueListNode = configNode["ConfigValueList"]["ConfigValue"];
for (auto configNodeConfigValueListConfigValue : allConfigValueListNode)
{
Config::ConfigValue configValueObject;
if(!configNodeConfigValueListConfigValue["ConfigName"].isNull())
configValueObject.configName = configNodeConfigValueListConfigValue["ConfigName"].asString();
if(!configNodeConfigValueListConfigValue["AllowCustom"].isNull())
configValueObject.allowCustom = configNodeConfigValueListConfigValue["AllowCustom"].asString() == "true";
if(!configNodeConfigValueListConfigValue["Scope"].isNull())
configValueObject.scope = configNodeConfigValueListConfigValue["Scope"].asString();
if(!configNodeConfigValueListConfigValue["ScopeId"].isNull())
configValueObject.scopeId = std::stol(configNodeConfigValueListConfigValue["ScopeId"].asString());
auto allConfigItemValueListNode = configNodeConfigValueListConfigValue["ConfigItemValueList"]["ConfigItemValue"];
for (auto configNodeConfigValueListConfigValueConfigItemValueListConfigItemValue : allConfigItemValueListNode)
{
Config::ConfigValue::ConfigItemValue configItemValueListObject;
if(!configNodeConfigValueListConfigValueConfigItemValueListConfigItemValue["ItemName"].isNull())
configItemValueListObject.itemName = configNodeConfigValueListConfigValueConfigItemValueListConfigItemValue["ItemName"].asString();
if(!configNodeConfigValueListConfigValueConfigItemValueListConfigItemValue["Value"].isNull())
configItemValueListObject.value = configNodeConfigValueListConfigValueConfigItemValueListConfigItemValue["Value"].asString();
if(!configNodeConfigValueListConfigValueConfigItemValueListConfigItemValue["IsCustom"].isNull())
configItemValueListObject.isCustom = configNodeConfigValueListConfigValueConfigItemValueListConfigItemValue["IsCustom"].asString() == "true";
if(!configNodeConfigValueListConfigValueConfigItemValueListConfigItemValue["Description"].isNull())
configItemValueListObject.description = configNodeConfigValueListConfigValueConfigItemValueListConfigItemValue["Description"].asString();
if(!configNodeConfigValueListConfigValueConfigItemValueListConfigItemValue["ValueScope"].isNull())
configItemValueListObject.valueScope = configNodeConfigValueListConfigValueConfigItemValueListConfigItemValue["ValueScope"].asString();
configValueObject.configItemValueList.push_back(configItemValueListObject);
}
config_.configValueList.push_back(configValueObject);
}
auto allPropertyInfoListNode = configNode["PropertyInfoList"]["PropertyInfo"];
for (auto configNodePropertyInfoListPropertyInfo : allPropertyInfoListNode)
{
Config::PropertyInfo propertyInfoObject;
if(!configNodePropertyInfoListPropertyInfo["Name"].isNull())
propertyInfoObject.name = configNodePropertyInfoListPropertyInfo["Name"].asString();
if(!configNodePropertyInfoListPropertyInfo["Value"].isNull())
propertyInfoObject.value = configNodePropertyInfoListPropertyInfo["Value"].asString();
if(!configNodePropertyInfoListPropertyInfo["Description"].isNull())
propertyInfoObject.description = configNodePropertyInfoListPropertyInfo["Description"].asString();
if(!configNodePropertyInfoListPropertyInfo["FileName"].isNull())
propertyInfoObject.fileName = configNodePropertyInfoListPropertyInfo["FileName"].asString();
if(!configNodePropertyInfoListPropertyInfo["DisplayName"].isNull())
propertyInfoObject.displayName = configNodePropertyInfoListPropertyInfo["DisplayName"].asString();
if(!configNodePropertyInfoListPropertyInfo["ServiceName"].isNull())
propertyInfoObject.serviceName = configNodePropertyInfoListPropertyInfo["ServiceName"].asString();
if(!configNodePropertyInfoListPropertyInfo["Component"].isNull())
propertyInfoObject.component = configNodePropertyInfoListPropertyInfo["Component"].asString();
auto propertyValueAttributesNode = value["PropertyValueAttributes"];
if(!propertyValueAttributesNode["Type"].isNull())
propertyInfoObject.propertyValueAttributes.type = propertyValueAttributesNode["Type"].asString();
if(!propertyValueAttributesNode["Maximum"].isNull())
propertyInfoObject.propertyValueAttributes.maximum = propertyValueAttributesNode["Maximum"].asString();
if(!propertyValueAttributesNode["Mimimum"].isNull())
propertyInfoObject.propertyValueAttributes.mimimum = propertyValueAttributesNode["Mimimum"].asString();
if(!propertyValueAttributesNode["Unit"].isNull())
propertyInfoObject.propertyValueAttributes.unit = propertyValueAttributesNode["Unit"].asString();
if(!propertyValueAttributesNode["ReadOnly"].isNull())
propertyInfoObject.propertyValueAttributes.readOnly = propertyValueAttributesNode["ReadOnly"].asString() == "true";
if(!propertyValueAttributesNode["Hidden"].isNull())
propertyInfoObject.propertyValueAttributes.hidden = propertyValueAttributesNode["Hidden"].asString() == "true";
if(!propertyValueAttributesNode["IncrememtStep"].isNull())
propertyInfoObject.propertyValueAttributes.incrememtStep = propertyValueAttributesNode["IncrememtStep"].asString();
auto allEntriesNode = propertyValueAttributesNode["Entries"]["ValueEntryInfo"];
for (auto propertyValueAttributesNodeEntriesValueEntryInfo : allEntriesNode)
{
Config::PropertyInfo::PropertyValueAttributes::ValueEntryInfo valueEntryInfoObject;
if(!propertyValueAttributesNodeEntriesValueEntryInfo["Value"].isNull())
valueEntryInfoObject.value = propertyValueAttributesNodeEntriesValueEntryInfo["Value"].asString();
if(!propertyValueAttributesNodeEntriesValueEntryInfo["Label"].isNull())
valueEntryInfoObject.label = propertyValueAttributesNodeEntriesValueEntryInfo["Label"].asString();
if(!propertyValueAttributesNodeEntriesValueEntryInfo["Description"].isNull())
valueEntryInfoObject.description = propertyValueAttributesNodeEntriesValueEntryInfo["Description"].asString();
propertyInfoObject.propertyValueAttributes.entries.push_back(valueEntryInfoObject);
}
auto effectWayNode = value["EffectWay"];
if(!effectWayNode["EffectType"].isNull())
propertyInfoObject.effectWay.effectType = effectWayNode["EffectType"].asString();
if(!effectWayNode["InvokeServiceName"].isNull())
propertyInfoObject.effectWay.invokeServiceName = effectWayNode["InvokeServiceName"].asString();
auto allPropertyTypes = value["PropertyTypes"]["propertyType"];
for (auto value : allPropertyTypes)
propertyInfoObject.propertyTypes.push_back(value.asString());
config_.propertyInfoList.push_back(propertyInfoObject);
}
}
DescribeClusterServiceConfigResult::Config DescribeClusterServiceConfigResult::getConfig()const
{
return config_;
}

View File

@@ -1,95 +0,0 @@
/*
* 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/emr/model/DescribeClusterServiceConfigTagRequest.h>
using AlibabaCloud::Emr::Model::DescribeClusterServiceConfigTagRequest;
DescribeClusterServiceConfigTagRequest::DescribeClusterServiceConfigTagRequest() :
RpcServiceRequest("emr", "2016-04-08", "DescribeClusterServiceConfigTag")
{
setMethod(HttpRequest::Method::Post);
}
DescribeClusterServiceConfigTagRequest::~DescribeClusterServiceConfigTagRequest()
{}
long DescribeClusterServiceConfigTagRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeClusterServiceConfigTagRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeClusterServiceConfigTagRequest::getClusterId()const
{
return clusterId_;
}
void DescribeClusterServiceConfigTagRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DescribeClusterServiceConfigTagRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeClusterServiceConfigTagRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeClusterServiceConfigTagRequest::getRegionId()const
{
return regionId_;
}
void DescribeClusterServiceConfigTagRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DescribeClusterServiceConfigTagRequest::getConfigTag()const
{
return configTag_;
}
void DescribeClusterServiceConfigTagRequest::setConfigTag(const std::string& configTag)
{
configTag_ = configTag;
setParameter("ConfigTag", configTag);
}
std::string DescribeClusterServiceConfigTagRequest::getServiceName()const
{
return serviceName_;
}
void DescribeClusterServiceConfigTagRequest::setServiceName(const std::string& serviceName)
{
serviceName_ = serviceName;
setParameter("ServiceName", serviceName);
}

View File

@@ -1,69 +0,0 @@
/*
* 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/emr/model/DescribeClusterServiceConfigTagResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
DescribeClusterServiceConfigTagResult::DescribeClusterServiceConfigTagResult() :
ServiceResult()
{}
DescribeClusterServiceConfigTagResult::DescribeClusterServiceConfigTagResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeClusterServiceConfigTagResult::~DescribeClusterServiceConfigTagResult()
{}
void DescribeClusterServiceConfigTagResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allConfigTagListNode = value["ConfigTagList"]["ConfigTag"];
for (auto valueConfigTagListConfigTag : allConfigTagListNode)
{
ConfigTag configTagListObject;
if(!valueConfigTagListConfigTag["Tag"].isNull())
configTagListObject.tag = valueConfigTagListConfigTag["Tag"].asString();
if(!valueConfigTagListConfigTag["TagDesc"].isNull())
configTagListObject.tagDesc = valueConfigTagListConfigTag["TagDesc"].asString();
auto allValueListNode = valueConfigTagListConfigTag["ValueList"]["Value"];
for (auto valueConfigTagListConfigTagValueListValue : allValueListNode)
{
ConfigTag::Value valueListObject;
if(!valueConfigTagListConfigTagValueListValue["Value"].isNull())
valueListObject.value = valueConfigTagListConfigTagValueListValue["Value"].asString();
if(!valueConfigTagListConfigTagValueListValue["ValueDesc"].isNull())
valueListObject.valueDesc = valueConfigTagListConfigTagValueListValue["ValueDesc"].asString();
configTagListObject.valueList.push_back(valueListObject);
}
configTagList_.push_back(configTagListObject);
}
}
std::vector<DescribeClusterServiceConfigTagResult::ConfigTag> DescribeClusterServiceConfigTagResult::getConfigTagList()const
{
return configTagList_;
}

View File

@@ -1,84 +0,0 @@
/*
* 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/emr/model/DescribeClusterServiceRequest.h>
using AlibabaCloud::Emr::Model::DescribeClusterServiceRequest;
DescribeClusterServiceRequest::DescribeClusterServiceRequest() :
RpcServiceRequest("emr", "2016-04-08", "DescribeClusterService")
{
setMethod(HttpRequest::Method::Post);
}
DescribeClusterServiceRequest::~DescribeClusterServiceRequest()
{}
long DescribeClusterServiceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeClusterServiceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeClusterServiceRequest::getClusterId()const
{
return clusterId_;
}
void DescribeClusterServiceRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DescribeClusterServiceRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeClusterServiceRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeClusterServiceRequest::getRegionId()const
{
return regionId_;
}
void DescribeClusterServiceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DescribeClusterServiceRequest::getServiceName()const
{
return serviceName_;
}
void DescribeClusterServiceRequest::setServiceName(const std::string& serviceName)
{
serviceName_ = serviceName;
setParameter("ServiceName", serviceName);
}

View File

@@ -1,104 +0,0 @@
/*
* 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/emr/model/DescribeClusterServiceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
DescribeClusterServiceResult::DescribeClusterServiceResult() :
ServiceResult()
{}
DescribeClusterServiceResult::DescribeClusterServiceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeClusterServiceResult::~DescribeClusterServiceResult()
{}
void DescribeClusterServiceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto serviceInfoNode = value["ServiceInfo"];
if(!serviceInfoNode["ServiceName"].isNull())
serviceInfo_.serviceName = serviceInfoNode["ServiceName"].asString();
if(!serviceInfoNode["ServiceVersion"].isNull())
serviceInfo_.serviceVersion = serviceInfoNode["ServiceVersion"].asString();
if(!serviceInfoNode["ServiceStatus"].isNull())
serviceInfo_.serviceStatus = serviceInfoNode["ServiceStatus"].asString();
if(!serviceInfoNode["NeedRestartInfo"].isNull())
serviceInfo_.needRestartInfo = serviceInfoNode["NeedRestartInfo"].asString();
if(!serviceInfoNode["NeedRestartNum"].isNull())
serviceInfo_.needRestartNum = std::stoi(serviceInfoNode["NeedRestartNum"].asString());
auto allServiceActionListNode = serviceInfoNode["ServiceActionList"]["ServiceAction"];
for (auto serviceInfoNodeServiceActionListServiceAction : allServiceActionListNode)
{
ServiceInfo::ServiceAction serviceActionObject;
if(!serviceInfoNodeServiceActionListServiceAction["ServiceName"].isNull())
serviceActionObject.serviceName = serviceInfoNodeServiceActionListServiceAction["ServiceName"].asString();
if(!serviceInfoNodeServiceActionListServiceAction["ComponentName"].isNull())
serviceActionObject.componentName = serviceInfoNodeServiceActionListServiceAction["ComponentName"].asString();
if(!serviceInfoNodeServiceActionListServiceAction["ActionName"].isNull())
serviceActionObject.actionName = serviceInfoNodeServiceActionListServiceAction["ActionName"].asString();
if(!serviceInfoNodeServiceActionListServiceAction["Command"].isNull())
serviceActionObject.command = serviceInfoNodeServiceActionListServiceAction["Command"].asString();
if(!serviceInfoNodeServiceActionListServiceAction["DisplayName"].isNull())
serviceActionObject.displayName = serviceInfoNodeServiceActionListServiceAction["DisplayName"].asString();
serviceInfo_.serviceActionList.push_back(serviceActionObject);
}
auto allClusterServiceSummaryListNode = serviceInfoNode["ClusterServiceSummaryList"]["ClusterServiceSummary"];
for (auto serviceInfoNodeClusterServiceSummaryListClusterServiceSummary : allClusterServiceSummaryListNode)
{
ServiceInfo::ClusterServiceSummary clusterServiceSummaryObject;
if(!serviceInfoNodeClusterServiceSummaryListClusterServiceSummary["Key"].isNull())
clusterServiceSummaryObject.key = serviceInfoNodeClusterServiceSummaryListClusterServiceSummary["Key"].asString();
if(!serviceInfoNodeClusterServiceSummaryListClusterServiceSummary["DisplayName"].isNull())
clusterServiceSummaryObject.displayName = serviceInfoNodeClusterServiceSummaryListClusterServiceSummary["DisplayName"].asString();
if(!serviceInfoNodeClusterServiceSummaryListClusterServiceSummary["Value"].isNull())
clusterServiceSummaryObject.value = serviceInfoNodeClusterServiceSummaryListClusterServiceSummary["Value"].asString();
if(!serviceInfoNodeClusterServiceSummaryListClusterServiceSummary["DesiredStoppedValue"].isNull())
clusterServiceSummaryObject.desiredStoppedValue = std::stoi(serviceInfoNodeClusterServiceSummaryListClusterServiceSummary["DesiredStoppedValue"].asString());
if(!serviceInfoNodeClusterServiceSummaryListClusterServiceSummary["Status"].isNull())
clusterServiceSummaryObject.status = serviceInfoNodeClusterServiceSummaryListClusterServiceSummary["Status"].asString();
if(!serviceInfoNodeClusterServiceSummaryListClusterServiceSummary["Type"].isNull())
clusterServiceSummaryObject.type = serviceInfoNodeClusterServiceSummaryListClusterServiceSummary["Type"].asString();
if(!serviceInfoNodeClusterServiceSummaryListClusterServiceSummary["Category"].isNull())
clusterServiceSummaryObject.category = serviceInfoNodeClusterServiceSummaryListClusterServiceSummary["Category"].asString();
if(!serviceInfoNodeClusterServiceSummaryListClusterServiceSummary["AlertInfo"].isNull())
clusterServiceSummaryObject.alertInfo = serviceInfoNodeClusterServiceSummaryListClusterServiceSummary["AlertInfo"].asString();
serviceInfo_.clusterServiceSummaryList.push_back(clusterServiceSummaryObject);
}
auto allNeedRestartHostIdList = serviceInfoNode["NeedRestartHostIdList"]["Service"];
for (auto value : allNeedRestartHostIdList)
serviceInfo_.needRestartHostIdList.push_back(value.asString());
auto allNeedRestartComponentNameList = serviceInfoNode["NeedRestartComponentNameList"]["Service"];
for (auto value : allNeedRestartComponentNameList)
serviceInfo_.needRestartComponentNameList.push_back(value.asString());
}
DescribeClusterServiceResult::ServiceInfo DescribeClusterServiceResult::getServiceInfo()const
{
return serviceInfo_;
}

View File

@@ -1,73 +0,0 @@
/*
* 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/emr/model/DescribeClusterTemplateRequest.h>
using AlibabaCloud::Emr::Model::DescribeClusterTemplateRequest;
DescribeClusterTemplateRequest::DescribeClusterTemplateRequest() :
RpcServiceRequest("emr", "2016-04-08", "DescribeClusterTemplate")
{
setMethod(HttpRequest::Method::Post);
}
DescribeClusterTemplateRequest::~DescribeClusterTemplateRequest()
{}
long DescribeClusterTemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeClusterTemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeClusterTemplateRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeClusterTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeClusterTemplateRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeClusterTemplateRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeClusterTemplateRequest::getBizId()const
{
return bizId_;
}
void DescribeClusterTemplateRequest::setBizId(const std::string& bizId)
{
bizId_ = bizId;
setParameter("BizId", bizId);
}

View File

@@ -1,199 +0,0 @@
/*
* 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/emr/model/DescribeClusterTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
DescribeClusterTemplateResult::DescribeClusterTemplateResult() :
ServiceResult()
{}
DescribeClusterTemplateResult::DescribeClusterTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeClusterTemplateResult::~DescribeClusterTemplateResult()
{}
void DescribeClusterTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto templateInfoNode = value["TemplateInfo"];
if(!templateInfoNode["Id"].isNull())
templateInfo_.id = templateInfoNode["Id"].asString();
if(!templateInfoNode["TemplateName"].isNull())
templateInfo_.templateName = templateInfoNode["TemplateName"].asString();
if(!templateInfoNode["EmrVer"].isNull())
templateInfo_.emrVer = templateInfoNode["EmrVer"].asString();
if(!templateInfoNode["LogEnable"].isNull())
templateInfo_.logEnable = templateInfoNode["LogEnable"].asString() == "true";
if(!templateInfoNode["LogPath"].isNull())
templateInfo_.logPath = templateInfoNode["LogPath"].asString();
if(!templateInfoNode["UserId"].isNull())
templateInfo_.userId = templateInfoNode["UserId"].asString();
if(!templateInfoNode["UserDefinedEmrEcsRole"].isNull())
templateInfo_.userDefinedEmrEcsRole = templateInfoNode["UserDefinedEmrEcsRole"].asString();
if(!templateInfoNode["MasterNodeTotal"].isNull())
templateInfo_.masterNodeTotal = std::stoi(templateInfoNode["MasterNodeTotal"].asString());
if(!templateInfoNode["VpcId"].isNull())
templateInfo_.vpcId = templateInfoNode["VpcId"].asString();
if(!templateInfoNode["VSwitchId"].isNull())
templateInfo_.vSwitchId = templateInfoNode["VSwitchId"].asString();
if(!templateInfoNode["NetType"].isNull())
templateInfo_.netType = templateInfoNode["NetType"].asString();
if(!templateInfoNode["IoOptimized"].isNull())
templateInfo_.ioOptimized = templateInfoNode["IoOptimized"].asString() == "true";
if(!templateInfoNode["InstanceGeneration"].isNull())
templateInfo_.instanceGeneration = templateInfoNode["InstanceGeneration"].asString();
if(!templateInfoNode["HighAvailabilityEnable"].isNull())
templateInfo_.highAvailabilityEnable = templateInfoNode["HighAvailabilityEnable"].asString() == "true";
if(!templateInfoNode["EasEnable"].isNull())
templateInfo_.easEnable = templateInfoNode["EasEnable"].asString() == "true";
if(!templateInfoNode["GmtCreate"].isNull())
templateInfo_.gmtCreate = std::stol(templateInfoNode["GmtCreate"].asString());
if(!templateInfoNode["GmtModified"].isNull())
templateInfo_.gmtModified = std::stol(templateInfoNode["GmtModified"].asString());
if(!templateInfoNode["ZoneId"].isNull())
templateInfo_.zoneId = templateInfoNode["ZoneId"].asString();
if(!templateInfoNode["ClusterType"].isNull())
templateInfo_.clusterType = templateInfoNode["ClusterType"].asString();
if(!templateInfoNode["SecurityGroupId"].isNull())
templateInfo_.securityGroupId = templateInfoNode["SecurityGroupId"].asString();
if(!templateInfoNode["SecurityGroupName"].isNull())
templateInfo_.securityGroupName = templateInfoNode["SecurityGroupName"].asString();
if(!templateInfoNode["Configurations"].isNull())
templateInfo_.configurations = templateInfoNode["Configurations"].asString();
if(!templateInfoNode["AllowNotebook"].isNull())
templateInfo_.allowNotebook = templateInfoNode["AllowNotebook"].asString() == "true";
if(!templateInfoNode["CreateSource"].isNull())
templateInfo_.createSource = templateInfoNode["CreateSource"].asString();
if(!templateInfoNode["UseLocalMetaDb"].isNull())
templateInfo_.useLocalMetaDb = templateInfoNode["UseLocalMetaDb"].asString() == "true";
if(!templateInfoNode["SshEnable"].isNull())
templateInfo_.sshEnable = templateInfoNode["SshEnable"].asString() == "true";
if(!templateInfoNode["IsOpenPublicIp"].isNull())
templateInfo_.isOpenPublicIp = templateInfoNode["IsOpenPublicIp"].asString() == "true";
if(!templateInfoNode["DepositType"].isNull())
templateInfo_.depositType = templateInfoNode["DepositType"].asString();
if(!templateInfoNode["MachineType"].isNull())
templateInfo_.machineType = templateInfoNode["MachineType"].asString();
if(!templateInfoNode["UseCustomHiveMetaDb"].isNull())
templateInfo_.useCustomHiveMetaDb = templateInfoNode["UseCustomHiveMetaDb"].asString() == "true";
if(!templateInfoNode["InitCustomHiveMetaDb"].isNull())
templateInfo_.initCustomHiveMetaDb = templateInfoNode["InitCustomHiveMetaDb"].asString() == "true";
if(!templateInfoNode["KeyPairName"].isNull())
templateInfo_.keyPairName = templateInfoNode["KeyPairName"].asString();
if(!templateInfoNode["MasterPwd"].isNull())
templateInfo_.masterPwd = templateInfoNode["MasterPwd"].asString();
if(!templateInfoNode["MetaStoreType"].isNull())
templateInfo_.metaStoreType = templateInfoNode["MetaStoreType"].asString();
if(!templateInfoNode["MetaStoreConf"].isNull())
templateInfo_.metaStoreConf = templateInfoNode["MetaStoreConf"].asString();
if(!templateInfoNode["DataDiskEncrypted"].isNull())
templateInfo_.dataDiskEncrypted = templateInfoNode["DataDiskEncrypted"].asString() == "true";
if(!templateInfoNode["DataDiskKMSKeyId"].isNull())
templateInfo_.dataDiskKMSKeyId = templateInfoNode["DataDiskKMSKeyId"].asString();
auto allBootstrapActionListNode = templateInfoNode["BootstrapActionList"]["BootstrapAction"];
for (auto templateInfoNodeBootstrapActionListBootstrapAction : allBootstrapActionListNode)
{
TemplateInfo::BootstrapAction bootstrapActionObject;
if(!templateInfoNodeBootstrapActionListBootstrapAction["Name"].isNull())
bootstrapActionObject.name = templateInfoNodeBootstrapActionListBootstrapAction["Name"].asString();
if(!templateInfoNodeBootstrapActionListBootstrapAction["Path"].isNull())
bootstrapActionObject.path = templateInfoNodeBootstrapActionListBootstrapAction["Path"].asString();
if(!templateInfoNodeBootstrapActionListBootstrapAction["Arg"].isNull())
bootstrapActionObject.arg = templateInfoNodeBootstrapActionListBootstrapAction["Arg"].asString();
templateInfo_.bootstrapActionList.push_back(bootstrapActionObject);
}
auto allHostGroupListNode = templateInfoNode["HostGroupList"]["HostGroup"];
for (auto templateInfoNodeHostGroupListHostGroup : allHostGroupListNode)
{
TemplateInfo::HostGroup hostGroupObject;
if(!templateInfoNodeHostGroupListHostGroup["HostGroupId"].isNull())
hostGroupObject.hostGroupId = templateInfoNodeHostGroupListHostGroup["HostGroupId"].asString();
if(!templateInfoNodeHostGroupListHostGroup["HostGroupName"].isNull())
hostGroupObject.hostGroupName = templateInfoNodeHostGroupListHostGroup["HostGroupName"].asString();
if(!templateInfoNodeHostGroupListHostGroup["HostGroupType"].isNull())
hostGroupObject.hostGroupType = templateInfoNodeHostGroupListHostGroup["HostGroupType"].asString();
if(!templateInfoNodeHostGroupListHostGroup["ChargeType"].isNull())
hostGroupObject.chargeType = templateInfoNodeHostGroupListHostGroup["ChargeType"].asString();
if(!templateInfoNodeHostGroupListHostGroup["Period"].isNull())
hostGroupObject.period = templateInfoNodeHostGroupListHostGroup["Period"].asString();
if(!templateInfoNodeHostGroupListHostGroup["NodeCount"].isNull())
hostGroupObject.nodeCount = std::stoi(templateInfoNodeHostGroupListHostGroup["NodeCount"].asString());
if(!templateInfoNodeHostGroupListHostGroup["InstanceType"].isNull())
hostGroupObject.instanceType = templateInfoNodeHostGroupListHostGroup["InstanceType"].asString();
if(!templateInfoNodeHostGroupListHostGroup["DiskType"].isNull())
hostGroupObject.diskType = templateInfoNodeHostGroupListHostGroup["DiskType"].asString();
if(!templateInfoNodeHostGroupListHostGroup["DiskCapacity"].isNull())
hostGroupObject.diskCapacity = std::stoi(templateInfoNodeHostGroupListHostGroup["DiskCapacity"].asString());
if(!templateInfoNodeHostGroupListHostGroup["DiskCount"].isNull())
hostGroupObject.diskCount = std::stoi(templateInfoNodeHostGroupListHostGroup["DiskCount"].asString());
if(!templateInfoNodeHostGroupListHostGroup["SysDiskType"].isNull())
hostGroupObject.sysDiskType = templateInfoNodeHostGroupListHostGroup["SysDiskType"].asString();
if(!templateInfoNodeHostGroupListHostGroup["SysDiskCapacity"].isNull())
hostGroupObject.sysDiskCapacity = std::stoi(templateInfoNodeHostGroupListHostGroup["SysDiskCapacity"].asString());
if(!templateInfoNodeHostGroupListHostGroup["MultiInstanceTypes"].isNull())
hostGroupObject.multiInstanceTypes = templateInfoNodeHostGroupListHostGroup["MultiInstanceTypes"].asString();
templateInfo_.hostGroupList.push_back(hostGroupObject);
}
auto allConfigListNode = templateInfoNode["ConfigList"]["Config"];
for (auto templateInfoNodeConfigListConfig : allConfigListNode)
{
TemplateInfo::Config configObject;
if(!templateInfoNodeConfigListConfig["ServiceName"].isNull())
configObject.serviceName = templateInfoNodeConfigListConfig["ServiceName"].asString();
if(!templateInfoNodeConfigListConfig["FileName"].isNull())
configObject.fileName = templateInfoNodeConfigListConfig["FileName"].asString();
if(!templateInfoNodeConfigListConfig["ConfigKey"].isNull())
configObject.configKey = templateInfoNodeConfigListConfig["ConfigKey"].asString();
if(!templateInfoNodeConfigListConfig["ConfigValue"].isNull())
configObject.configValue = templateInfoNodeConfigListConfig["ConfigValue"].asString();
if(!templateInfoNodeConfigListConfig["Encrypt"].isNull())
configObject.encrypt = templateInfoNodeConfigListConfig["Encrypt"].asString();
if(!templateInfoNodeConfigListConfig["Replace"].isNull())
configObject.replace = templateInfoNodeConfigListConfig["Replace"].asString();
templateInfo_.configList.push_back(configObject);
}
auto allTagsNode = templateInfoNode["Tags"]["Tag"];
for (auto templateInfoNodeTagsTag : allTagsNode)
{
TemplateInfo::Tag tagObject;
if(!templateInfoNodeTagsTag["TagKey"].isNull())
tagObject.tagKey = templateInfoNodeTagsTag["TagKey"].asString();
if(!templateInfoNodeTagsTag["TagValue"].isNull())
tagObject.tagValue = templateInfoNodeTagsTag["TagValue"].asString();
templateInfo_.tags.push_back(tagObject);
}
auto allSoftwareInfoList = templateInfoNode["SoftwareInfoList"]["SoftwareInfo"];
for (auto value : allSoftwareInfoList)
templateInfo_.softwareInfoList.push_back(value.asString());
}
DescribeClusterTemplateResult::TemplateInfo DescribeClusterTemplateResult::getTemplateInfo()const
{
return templateInfo_;
}

View File

@@ -1,73 +0,0 @@
/*
* 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/emr/model/DescribeClusterV2Request.h>
using AlibabaCloud::Emr::Model::DescribeClusterV2Request;
DescribeClusterV2Request::DescribeClusterV2Request() :
RpcServiceRequest("emr", "2016-04-08", "DescribeClusterV2")
{
setMethod(HttpRequest::Method::Post);
}
DescribeClusterV2Request::~DescribeClusterV2Request()
{}
long DescribeClusterV2Request::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeClusterV2Request::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeClusterV2Request::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeClusterV2Request::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeClusterV2Request::getRegionId()const
{
return regionId_;
}
void DescribeClusterV2Request::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DescribeClusterV2Request::getId()const
{
return id_;
}
void DescribeClusterV2Request::setId(const std::string& id)
{
id_ = id;
setParameter("Id", id);
}

View File

@@ -1,323 +0,0 @@
/*
* 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/emr/model/DescribeClusterV2Result.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
DescribeClusterV2Result::DescribeClusterV2Result() :
ServiceResult()
{}
DescribeClusterV2Result::DescribeClusterV2Result(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeClusterV2Result::~DescribeClusterV2Result()
{}
void DescribeClusterV2Result::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto clusterInfoNode = value["ClusterInfo"];
if(!clusterInfoNode["Id"].isNull())
clusterInfo_.id = clusterInfoNode["Id"].asString();
if(!clusterInfoNode["RegionId"].isNull())
clusterInfo_.regionId = clusterInfoNode["RegionId"].asString();
if(!clusterInfoNode["DepositType"].isNull())
clusterInfo_.depositType = clusterInfoNode["DepositType"].asString();
if(!clusterInfoNode["MachineType"].isNull())
clusterInfo_.machineType = clusterInfoNode["MachineType"].asString();
if(!clusterInfoNode["ZoneId"].isNull())
clusterInfo_.zoneId = clusterInfoNode["ZoneId"].asString();
if(!clusterInfoNode["Name"].isNull())
clusterInfo_.name = clusterInfoNode["Name"].asString();
if(!clusterInfoNode["ExtraInfo"].isNull())
clusterInfo_.extraInfo = clusterInfoNode["ExtraInfo"].asString();
if(!clusterInfoNode["RelateClusterId"].isNull())
clusterInfo_.relateClusterId = clusterInfoNode["RelateClusterId"].asString();
if(!clusterInfoNode["GatewayClusterIds"].isNull())
clusterInfo_.gatewayClusterIds = clusterInfoNode["GatewayClusterIds"].asString();
if(!clusterInfoNode["CreateType"].isNull())
clusterInfo_.createType = clusterInfoNode["CreateType"].asString();
if(!clusterInfoNode["StartTime"].isNull())
clusterInfo_.startTime = std::stol(clusterInfoNode["StartTime"].asString());
if(!clusterInfoNode["ExpiredTime"].isNull())
clusterInfo_.expiredTime = std::stol(clusterInfoNode["ExpiredTime"].asString());
if(!clusterInfoNode["StopTime"].isNull())
clusterInfo_.stopTime = std::stol(clusterInfoNode["StopTime"].asString());
if(!clusterInfoNode["LogEnable"].isNull())
clusterInfo_.logEnable = clusterInfoNode["LogEnable"].asString() == "true";
if(!clusterInfoNode["LogPath"].isNull())
clusterInfo_.logPath = clusterInfoNode["LogPath"].asString();
if(!clusterInfoNode["UserId"].isNull())
clusterInfo_.userId = clusterInfoNode["UserId"].asString();
if(!clusterInfoNode["Status"].isNull())
clusterInfo_.status = clusterInfoNode["Status"].asString();
if(!clusterInfoNode["HighAvailabilityEnable"].isNull())
clusterInfo_.highAvailabilityEnable = clusterInfoNode["HighAvailabilityEnable"].asString() == "true";
if(!clusterInfoNode["LocalMetaDb"].isNull())
clusterInfo_.localMetaDb = clusterInfoNode["LocalMetaDb"].asString() == "true";
if(!clusterInfoNode["ChargeType"].isNull())
clusterInfo_.chargeType = clusterInfoNode["ChargeType"].asString();
if(!clusterInfoNode["Period"].isNull())
clusterInfo_.period = std::stoi(clusterInfoNode["Period"].asString());
if(!clusterInfoNode["RunningTime"].isNull())
clusterInfo_.runningTime = std::stoi(clusterInfoNode["RunningTime"].asString());
if(!clusterInfoNode["MasterNodeTotal"].isNull())
clusterInfo_.masterNodeTotal = std::stoi(clusterInfoNode["MasterNodeTotal"].asString());
if(!clusterInfoNode["MasterNodeInService"].isNull())
clusterInfo_.masterNodeInService = std::stoi(clusterInfoNode["MasterNodeInService"].asString());
if(!clusterInfoNode["CoreNodeTotal"].isNull())
clusterInfo_.coreNodeTotal = std::stoi(clusterInfoNode["CoreNodeTotal"].asString());
if(!clusterInfoNode["CoreNodeInService"].isNull())
clusterInfo_.coreNodeInService = std::stoi(clusterInfoNode["CoreNodeInService"].asString());
if(!clusterInfoNode["TaskNodeTotal"].isNull())
clusterInfo_.taskNodeTotal = std::stoi(clusterInfoNode["TaskNodeTotal"].asString());
if(!clusterInfoNode["TaskNodeInService"].isNull())
clusterInfo_.taskNodeInService = std::stoi(clusterInfoNode["TaskNodeInService"].asString());
if(!clusterInfoNode["ShowSoftwareInterface"].isNull())
clusterInfo_.showSoftwareInterface = clusterInfoNode["ShowSoftwareInterface"].asString() == "true";
if(!clusterInfoNode["CreateResource"].isNull())
clusterInfo_.createResource = clusterInfoNode["CreateResource"].asString();
if(!clusterInfoNode["VpcId"].isNull())
clusterInfo_.vpcId = clusterInfoNode["VpcId"].asString();
if(!clusterInfoNode["VSwitchId"].isNull())
clusterInfo_.vSwitchId = clusterInfoNode["VSwitchId"].asString();
if(!clusterInfoNode["NetType"].isNull())
clusterInfo_.netType = clusterInfoNode["NetType"].asString();
if(!clusterInfoNode["UserDefinedEmrEcsRole"].isNull())
clusterInfo_.userDefinedEmrEcsRole = clusterInfoNode["UserDefinedEmrEcsRole"].asString();
if(!clusterInfoNode["IoOptimized"].isNull())
clusterInfo_.ioOptimized = clusterInfoNode["IoOptimized"].asString() == "true";
if(!clusterInfoNode["InstanceGeneration"].isNull())
clusterInfo_.instanceGeneration = clusterInfoNode["InstanceGeneration"].asString();
if(!clusterInfoNode["ImageId"].isNull())
clusterInfo_.imageId = clusterInfoNode["ImageId"].asString();
if(!clusterInfoNode["SecurityGroupId"].isNull())
clusterInfo_.securityGroupId = clusterInfoNode["SecurityGroupId"].asString();
if(!clusterInfoNode["SecurityGroupName"].isNull())
clusterInfo_.securityGroupName = clusterInfoNode["SecurityGroupName"].asString();
if(!clusterInfoNode["BootstrapFailed"].isNull())
clusterInfo_.bootstrapFailed = clusterInfoNode["BootstrapFailed"].asString() == "true";
if(!clusterInfoNode["Configurations"].isNull())
clusterInfo_.configurations = clusterInfoNode["Configurations"].asString();
if(!clusterInfoNode["EasEnable"].isNull())
clusterInfo_.easEnable = clusterInfoNode["EasEnable"].asString() == "true";
if(!clusterInfoNode["AutoScalingVersion"].isNull())
clusterInfo_.autoScalingVersion = clusterInfoNode["AutoScalingVersion"].asString();
if(!clusterInfoNode["AutoScalingEnable"].isNull())
clusterInfo_.autoScalingEnable = clusterInfoNode["AutoScalingEnable"].asString() == "true";
if(!clusterInfoNode["AutoScalingAllowed"].isNull())
clusterInfo_.autoScalingAllowed = clusterInfoNode["AutoScalingAllowed"].asString() == "true";
if(!clusterInfoNode["AutoScalingSpotWithLimitAllowed"].isNull())
clusterInfo_.autoScalingSpotWithLimitAllowed = clusterInfoNode["AutoScalingSpotWithLimitAllowed"].asString() == "true";
if(!clusterInfoNode["AutoScalingByLoadAllowed"].isNull())
clusterInfo_.autoScalingByLoadAllowed = clusterInfoNode["AutoScalingByLoadAllowed"].asString() == "true";
if(!clusterInfoNode["AutoScalingWithGraceAllowed"].isNull())
clusterInfo_.autoScalingWithGraceAllowed = clusterInfoNode["AutoScalingWithGraceAllowed"].asString() == "true";
if(!clusterInfoNode["ResizeDiskEnable"].isNull())
clusterInfo_.resizeDiskEnable = clusterInfoNode["ResizeDiskEnable"].asString() == "true";
if(!clusterInfoNode["MetaStoreType"].isNull())
clusterInfo_.metaStoreType = clusterInfoNode["MetaStoreType"].asString();
if(!clusterInfoNode["K8sClusterId"].isNull())
clusterInfo_.k8sClusterId = clusterInfoNode["K8sClusterId"].asString();
if(!clusterInfoNode["DataDiskEncrypted"].isNull())
clusterInfo_.dataDiskEncrypted = clusterInfoNode["DataDiskEncrypted"].asString() == "true";
if(!clusterInfoNode["DataDiskKMSKeyId"].isNull())
clusterInfo_.dataDiskKMSKeyId = clusterInfoNode["DataDiskKMSKeyId"].asString();
auto allGatewayClusterInfoListNode = clusterInfoNode["GatewayClusterInfoList"]["GatewayClusterInfo"];
for (auto clusterInfoNodeGatewayClusterInfoListGatewayClusterInfo : allGatewayClusterInfoListNode)
{
ClusterInfo::GatewayClusterInfo gatewayClusterInfoObject;
if(!clusterInfoNodeGatewayClusterInfoListGatewayClusterInfo["ClusterId"].isNull())
gatewayClusterInfoObject.clusterId = clusterInfoNodeGatewayClusterInfoListGatewayClusterInfo["ClusterId"].asString();
if(!clusterInfoNodeGatewayClusterInfoListGatewayClusterInfo["ClusterName"].isNull())
gatewayClusterInfoObject.clusterName = clusterInfoNodeGatewayClusterInfoListGatewayClusterInfo["ClusterName"].asString();
if(!clusterInfoNodeGatewayClusterInfoListGatewayClusterInfo["Status"].isNull())
gatewayClusterInfoObject.status = clusterInfoNodeGatewayClusterInfoListGatewayClusterInfo["Status"].asString();
clusterInfo_.gatewayClusterInfoList.push_back(gatewayClusterInfoObject);
}
auto allHostGroupListNode = clusterInfoNode["HostGroupList"]["HostGroup"];
for (auto clusterInfoNodeHostGroupListHostGroup : allHostGroupListNode)
{
ClusterInfo::HostGroup hostGroupObject;
if(!clusterInfoNodeHostGroupListHostGroup["HostGroupId"].isNull())
hostGroupObject.hostGroupId = clusterInfoNodeHostGroupListHostGroup["HostGroupId"].asString();
if(!clusterInfoNodeHostGroupListHostGroup["HostGroupName"].isNull())
hostGroupObject.hostGroupName = clusterInfoNodeHostGroupListHostGroup["HostGroupName"].asString();
if(!clusterInfoNodeHostGroupListHostGroup["HostGroupType"].isNull())
hostGroupObject.hostGroupType = clusterInfoNodeHostGroupListHostGroup["HostGroupType"].asString();
if(!clusterInfoNodeHostGroupListHostGroup["HostGroupSubType"].isNull())
hostGroupObject.hostGroupSubType = clusterInfoNodeHostGroupListHostGroup["HostGroupSubType"].asString();
if(!clusterInfoNodeHostGroupListHostGroup["HostGroupChangeType"].isNull())
hostGroupObject.hostGroupChangeType = clusterInfoNodeHostGroupListHostGroup["HostGroupChangeType"].asString();
if(!clusterInfoNodeHostGroupListHostGroup["HostGroupChangeStatus"].isNull())
hostGroupObject.hostGroupChangeStatus = clusterInfoNodeHostGroupListHostGroup["HostGroupChangeStatus"].asString();
if(!clusterInfoNodeHostGroupListHostGroup["ChargeType"].isNull())
hostGroupObject.chargeType = clusterInfoNodeHostGroupListHostGroup["ChargeType"].asString();
if(!clusterInfoNodeHostGroupListHostGroup["Period"].isNull())
hostGroupObject.period = clusterInfoNodeHostGroupListHostGroup["Period"].asString();
if(!clusterInfoNodeHostGroupListHostGroup["NodeCount"].isNull())
hostGroupObject.nodeCount = std::stoi(clusterInfoNodeHostGroupListHostGroup["NodeCount"].asString());
if(!clusterInfoNodeHostGroupListHostGroup["InstanceType"].isNull())
hostGroupObject.instanceType = clusterInfoNodeHostGroupListHostGroup["InstanceType"].asString();
if(!clusterInfoNodeHostGroupListHostGroup["CpuCore"].isNull())
hostGroupObject.cpuCore = std::stoi(clusterInfoNodeHostGroupListHostGroup["CpuCore"].asString());
if(!clusterInfoNodeHostGroupListHostGroup["MemoryCapacity"].isNull())
hostGroupObject.memoryCapacity = std::stoi(clusterInfoNodeHostGroupListHostGroup["MemoryCapacity"].asString());
if(!clusterInfoNodeHostGroupListHostGroup["DiskType"].isNull())
hostGroupObject.diskType = clusterInfoNodeHostGroupListHostGroup["DiskType"].asString();
if(!clusterInfoNodeHostGroupListHostGroup["DiskCapacity"].isNull())
hostGroupObject.diskCapacity = std::stoi(clusterInfoNodeHostGroupListHostGroup["DiskCapacity"].asString());
if(!clusterInfoNodeHostGroupListHostGroup["DiskCount"].isNull())
hostGroupObject.diskCount = std::stoi(clusterInfoNodeHostGroupListHostGroup["DiskCount"].asString());
if(!clusterInfoNodeHostGroupListHostGroup["BandWidth"].isNull())
hostGroupObject.bandWidth = clusterInfoNodeHostGroupListHostGroup["BandWidth"].asString();
if(!clusterInfoNodeHostGroupListHostGroup["LockType"].isNull())
hostGroupObject.lockType = clusterInfoNodeHostGroupListHostGroup["LockType"].asString();
if(!clusterInfoNodeHostGroupListHostGroup["LockReason"].isNull())
hostGroupObject.lockReason = clusterInfoNodeHostGroupListHostGroup["LockReason"].asString();
auto allNodesNode = clusterInfoNodeHostGroupListHostGroup["Nodes"]["Node"];
for (auto clusterInfoNodeHostGroupListHostGroupNodesNode : allNodesNode)
{
ClusterInfo::HostGroup::Node nodesObject;
if(!clusterInfoNodeHostGroupListHostGroupNodesNode["ZoneId"].isNull())
nodesObject.zoneId = clusterInfoNodeHostGroupListHostGroupNodesNode["ZoneId"].asString();
if(!clusterInfoNodeHostGroupListHostGroupNodesNode["InstanceId"].isNull())
nodesObject.instanceId = clusterInfoNodeHostGroupListHostGroupNodesNode["InstanceId"].asString();
if(!clusterInfoNodeHostGroupListHostGroupNodesNode["Status"].isNull())
nodesObject.status = clusterInfoNodeHostGroupListHostGroupNodesNode["Status"].asString();
if(!clusterInfoNodeHostGroupListHostGroupNodesNode["PubIp"].isNull())
nodesObject.pubIp = clusterInfoNodeHostGroupListHostGroupNodesNode["PubIp"].asString();
if(!clusterInfoNodeHostGroupListHostGroupNodesNode["InnerIp"].isNull())
nodesObject.innerIp = clusterInfoNodeHostGroupListHostGroupNodesNode["InnerIp"].asString();
if(!clusterInfoNodeHostGroupListHostGroupNodesNode["ExpiredTime"].isNull())
nodesObject.expiredTime = clusterInfoNodeHostGroupListHostGroupNodesNode["ExpiredTime"].asString();
if(!clusterInfoNodeHostGroupListHostGroupNodesNode["CreateTime"].isNull())
nodesObject.createTime = clusterInfoNodeHostGroupListHostGroupNodesNode["CreateTime"].asString();
if(!clusterInfoNodeHostGroupListHostGroupNodesNode["EmrExpiredTime"].isNull())
nodesObject.emrExpiredTime = clusterInfoNodeHostGroupListHostGroupNodesNode["EmrExpiredTime"].asString();
if(!clusterInfoNodeHostGroupListHostGroupNodesNode["SupportIpV6"].isNull())
nodesObject.supportIpV6 = clusterInfoNodeHostGroupListHostGroupNodesNode["SupportIpV6"].asString() == "true";
auto allDaemonInfosNode = clusterInfoNodeHostGroupListHostGroupNodesNode["DaemonInfos"]["DaemonInfo"];
for (auto clusterInfoNodeHostGroupListHostGroupNodesNodeDaemonInfosDaemonInfo : allDaemonInfosNode)
{
ClusterInfo::HostGroup::Node::DaemonInfo daemonInfosObject;
if(!clusterInfoNodeHostGroupListHostGroupNodesNodeDaemonInfosDaemonInfo["Name"].isNull())
daemonInfosObject.name = clusterInfoNodeHostGroupListHostGroupNodesNodeDaemonInfosDaemonInfo["Name"].asString();
nodesObject.daemonInfos.push_back(daemonInfosObject);
}
auto allDiskInfosNode = clusterInfoNodeHostGroupListHostGroupNodesNode["DiskInfos"]["DiskInfo"];
for (auto clusterInfoNodeHostGroupListHostGroupNodesNodeDiskInfosDiskInfo : allDiskInfosNode)
{
ClusterInfo::HostGroup::Node::DiskInfo diskInfosObject;
if(!clusterInfoNodeHostGroupListHostGroupNodesNodeDiskInfosDiskInfo["Device"].isNull())
diskInfosObject.device = clusterInfoNodeHostGroupListHostGroupNodesNodeDiskInfosDiskInfo["Device"].asString();
if(!clusterInfoNodeHostGroupListHostGroupNodesNodeDiskInfosDiskInfo["DiskName"].isNull())
diskInfosObject.diskName = clusterInfoNodeHostGroupListHostGroupNodesNodeDiskInfosDiskInfo["DiskName"].asString();
if(!clusterInfoNodeHostGroupListHostGroupNodesNodeDiskInfosDiskInfo["DiskId"].isNull())
diskInfosObject.diskId = clusterInfoNodeHostGroupListHostGroupNodesNodeDiskInfosDiskInfo["DiskId"].asString();
if(!clusterInfoNodeHostGroupListHostGroupNodesNodeDiskInfosDiskInfo["Type"].isNull())
diskInfosObject.type = clusterInfoNodeHostGroupListHostGroupNodesNodeDiskInfosDiskInfo["Type"].asString();
if(!clusterInfoNodeHostGroupListHostGroupNodesNodeDiskInfosDiskInfo["Size"].isNull())
diskInfosObject.size = std::stoi(clusterInfoNodeHostGroupListHostGroupNodesNodeDiskInfosDiskInfo["Size"].asString());
nodesObject.diskInfos.push_back(diskInfosObject);
}
hostGroupObject.nodes.push_back(nodesObject);
}
clusterInfo_.hostGroupList.push_back(hostGroupObject);
}
auto allBootstrapActionListNode = clusterInfoNode["BootstrapActionList"]["BootstrapAction"];
for (auto clusterInfoNodeBootstrapActionListBootstrapAction : allBootstrapActionListNode)
{
ClusterInfo::BootstrapAction bootstrapActionObject;
if(!clusterInfoNodeBootstrapActionListBootstrapAction["Name"].isNull())
bootstrapActionObject.name = clusterInfoNodeBootstrapActionListBootstrapAction["Name"].asString();
if(!clusterInfoNodeBootstrapActionListBootstrapAction["Path"].isNull())
bootstrapActionObject.path = clusterInfoNodeBootstrapActionListBootstrapAction["Path"].asString();
if(!clusterInfoNodeBootstrapActionListBootstrapAction["Arg"].isNull())
bootstrapActionObject.arg = clusterInfoNodeBootstrapActionListBootstrapAction["Arg"].asString();
clusterInfo_.bootstrapActionList.push_back(bootstrapActionObject);
}
auto relateClusterInfoNode = clusterInfoNode["RelateClusterInfo"];
if(!relateClusterInfoNode["ClusterId"].isNull())
clusterInfo_.relateClusterInfo.clusterId = relateClusterInfoNode["ClusterId"].asString();
if(!relateClusterInfoNode["ClusterName"].isNull())
clusterInfo_.relateClusterInfo.clusterName = relateClusterInfoNode["ClusterName"].asString();
if(!relateClusterInfoNode["Status"].isNull())
clusterInfo_.relateClusterInfo.status = relateClusterInfoNode["Status"].asString();
if(!relateClusterInfoNode["ClusterType"].isNull())
clusterInfo_.relateClusterInfo.clusterType = relateClusterInfoNode["ClusterType"].asString();
auto hostPoolInfoNode = clusterInfoNode["HostPoolInfo"];
if(!hostPoolInfoNode["HpBizId"].isNull())
clusterInfo_.hostPoolInfo.hpBizId = hostPoolInfoNode["HpBizId"].asString();
if(!hostPoolInfoNode["HpName"].isNull())
clusterInfo_.hostPoolInfo.hpName = hostPoolInfoNode["HpName"].asString();
auto failReasonNode = clusterInfoNode["FailReason"];
if(!failReasonNode["ErrorCode"].isNull())
clusterInfo_.failReason.errorCode = failReasonNode["ErrorCode"].asString();
if(!failReasonNode["ErrorMsg"].isNull())
clusterInfo_.failReason.errorMsg = failReasonNode["ErrorMsg"].asString();
if(!failReasonNode["RequestId"].isNull())
clusterInfo_.failReason.requestId = failReasonNode["RequestId"].asString();
auto softwareInfoNode = clusterInfoNode["SoftwareInfo"];
if(!softwareInfoNode["EmrVer"].isNull())
clusterInfo_.softwareInfo.emrVer = softwareInfoNode["EmrVer"].asString();
if(!softwareInfoNode["ClusterType"].isNull())
clusterInfo_.softwareInfo.clusterType = softwareInfoNode["ClusterType"].asString();
auto allSoftwaresNode = softwareInfoNode["Softwares"]["Software"];
for (auto softwareInfoNodeSoftwaresSoftware : allSoftwaresNode)
{
ClusterInfo::SoftwareInfo::Software softwareObject;
if(!softwareInfoNodeSoftwaresSoftware["DisplayName"].isNull())
softwareObject.displayName = softwareInfoNodeSoftwaresSoftware["DisplayName"].asString();
if(!softwareInfoNodeSoftwaresSoftware["Name"].isNull())
softwareObject.name = softwareInfoNodeSoftwaresSoftware["Name"].asString();
if(!softwareInfoNodeSoftwaresSoftware["OnlyDisplay"].isNull())
softwareObject.onlyDisplay = softwareInfoNodeSoftwaresSoftware["OnlyDisplay"].asString() == "true";
if(!softwareInfoNodeSoftwaresSoftware["StartTpe"].isNull())
softwareObject.startTpe = std::stoi(softwareInfoNodeSoftwaresSoftware["StartTpe"].asString());
if(!softwareInfoNodeSoftwaresSoftware["Version"].isNull())
softwareObject.version = softwareInfoNodeSoftwaresSoftware["Version"].asString();
clusterInfo_.softwareInfo.softwares.push_back(softwareObject);
}
auto accessInfoNode = clusterInfoNode["AccessInfo"];
auto allZKLinksNode = accessInfoNode["ZKLinks"]["ZKLink"];
for (auto accessInfoNodeZKLinksZKLink : allZKLinksNode)
{
ClusterInfo::AccessInfo::ZKLink zKLinkObject;
if(!accessInfoNodeZKLinksZKLink["Link"].isNull())
zKLinkObject.link = accessInfoNodeZKLinksZKLink["Link"].asString();
if(!accessInfoNodeZKLinksZKLink["Port"].isNull())
zKLinkObject.port = accessInfoNodeZKLinksZKLink["Port"].asString();
clusterInfo_.accessInfo.zKLinks.push_back(zKLinkObject);
}
}
DescribeClusterV2Result::ClusterInfo DescribeClusterV2Result::getClusterInfo()const
{
return clusterInfo_;
}

View File

@@ -1,62 +0,0 @@
/*
* 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/emr/model/DescribeFlowCategoryRequest.h>
using AlibabaCloud::Emr::Model::DescribeFlowCategoryRequest;
DescribeFlowCategoryRequest::DescribeFlowCategoryRequest() :
RpcServiceRequest("emr", "2016-04-08", "DescribeFlowCategory")
{
setMethod(HttpRequest::Method::Post);
}
DescribeFlowCategoryRequest::~DescribeFlowCategoryRequest()
{}
std::string DescribeFlowCategoryRequest::getRegionId()const
{
return regionId_;
}
void DescribeFlowCategoryRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DescribeFlowCategoryRequest::getId()const
{
return id_;
}
void DescribeFlowCategoryRequest::setId(const std::string& id)
{
id_ = id;
setParameter("Id", id);
}
std::string DescribeFlowCategoryRequest::getProjectId()const
{
return projectId_;
}
void DescribeFlowCategoryRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
}

View File

@@ -1,114 +0,0 @@
/*
* 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/emr/model/DescribeFlowCategoryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
DescribeFlowCategoryResult::DescribeFlowCategoryResult() :
ServiceResult()
{}
DescribeFlowCategoryResult::DescribeFlowCategoryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeFlowCategoryResult::~DescribeFlowCategoryResult()
{}
void DescribeFlowCategoryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Id"].isNull())
id_ = value["Id"].asString();
if(!value["GmtCreate"].isNull())
gmtCreate_ = std::stol(value["GmtCreate"].asString());
if(!value["GmtModified"].isNull())
gmtModified_ = std::stol(value["GmtModified"].asString());
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["ParentId"].isNull())
parentId_ = value["ParentId"].asString();
if(!value["Type"].isNull())
type_ = value["Type"].asString();
if(!value["CategoryType"].isNull())
categoryType_ = value["CategoryType"].asString();
if(!value["ObjectType"].isNull())
objectType_ = value["ObjectType"].asString();
if(!value["ObjectId"].isNull())
objectId_ = value["ObjectId"].asString();
if(!value["ProjectId"].isNull())
projectId_ = value["ProjectId"].asString();
}
std::string DescribeFlowCategoryResult::getParentId()const
{
return parentId_;
}
std::string DescribeFlowCategoryResult::getObjectType()const
{
return objectType_;
}
long DescribeFlowCategoryResult::getGmtCreate()const
{
return gmtCreate_;
}
std::string DescribeFlowCategoryResult::getType()const
{
return type_;
}
std::string DescribeFlowCategoryResult::getObjectId()const
{
return objectId_;
}
long DescribeFlowCategoryResult::getGmtModified()const
{
return gmtModified_;
}
std::string DescribeFlowCategoryResult::getProjectId()const
{
return projectId_;
}
std::string DescribeFlowCategoryResult::getId()const
{
return id_;
}
std::string DescribeFlowCategoryResult::getCategoryType()const
{
return categoryType_;
}
std::string DescribeFlowCategoryResult::getName()const
{
return name_;
}

View File

@@ -1,95 +0,0 @@
/*
* 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/emr/model/DescribeFlowCategoryTreeRequest.h>
using AlibabaCloud::Emr::Model::DescribeFlowCategoryTreeRequest;
DescribeFlowCategoryTreeRequest::DescribeFlowCategoryTreeRequest() :
RpcServiceRequest("emr", "2016-04-08", "DescribeFlowCategoryTree")
{
setMethod(HttpRequest::Method::Post);
}
DescribeFlowCategoryTreeRequest::~DescribeFlowCategoryTreeRequest()
{}
std::string DescribeFlowCategoryTreeRequest::getType()const
{
return type_;
}
void DescribeFlowCategoryTreeRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
std::string DescribeFlowCategoryTreeRequest::getMode()const
{
return mode_;
}
void DescribeFlowCategoryTreeRequest::setMode(const std::string& mode)
{
mode_ = mode;
setParameter("Mode", mode);
}
std::string DescribeFlowCategoryTreeRequest::getRegionId()const
{
return regionId_;
}
void DescribeFlowCategoryTreeRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DescribeFlowCategoryTreeRequest::getKeyword()const
{
return keyword_;
}
void DescribeFlowCategoryTreeRequest::setKeyword(const std::string& keyword)
{
keyword_ = keyword;
setParameter("Keyword", keyword);
}
std::string DescribeFlowCategoryTreeRequest::getProjectId()const
{
return projectId_;
}
void DescribeFlowCategoryTreeRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
}
std::string DescribeFlowCategoryTreeRequest::getCategoryId()const
{
return categoryId_;
}
void DescribeFlowCategoryTreeRequest::setCategoryId(const std::string& categoryId)
{
categoryId_ = categoryId;
setParameter("CategoryId", categoryId);
}

View File

@@ -1,62 +0,0 @@
/*
* 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/emr/model/DescribeFlowInstanceRequest.h>
using AlibabaCloud::Emr::Model::DescribeFlowInstanceRequest;
DescribeFlowInstanceRequest::DescribeFlowInstanceRequest() :
RpcServiceRequest("emr", "2016-04-08", "DescribeFlowInstance")
{
setMethod(HttpRequest::Method::Post);
}
DescribeFlowInstanceRequest::~DescribeFlowInstanceRequest()
{}
std::string DescribeFlowInstanceRequest::getRegionId()const
{
return regionId_;
}
void DescribeFlowInstanceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DescribeFlowInstanceRequest::getId()const
{
return id_;
}
void DescribeFlowInstanceRequest::setId(const std::string& id)
{
id_ = id;
setParameter("Id", id);
}
std::string DescribeFlowInstanceRequest::getProjectId()const
{
return projectId_;
}
void DescribeFlowInstanceRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
}

View File

@@ -1,254 +0,0 @@
/*
* 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/emr/model/DescribeFlowInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
DescribeFlowInstanceResult::DescribeFlowInstanceResult() :
ServiceResult()
{}
DescribeFlowInstanceResult::DescribeFlowInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeFlowInstanceResult::~DescribeFlowInstanceResult()
{}
void DescribeFlowInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDependencyFlowListNode = value["DependencyFlowList"]["ParentFlow"];
for (auto valueDependencyFlowListParentFlow : allDependencyFlowListNode)
{
ParentFlow dependencyFlowListObject;
if(!valueDependencyFlowListParentFlow["ProjectId"].isNull())
dependencyFlowListObject.projectId = valueDependencyFlowListParentFlow["ProjectId"].asString();
if(!valueDependencyFlowListParentFlow["FlowId"].isNull())
dependencyFlowListObject.flowId = valueDependencyFlowListParentFlow["FlowId"].asString();
if(!valueDependencyFlowListParentFlow["DependencyFlowId"].isNull())
dependencyFlowListObject.dependencyFlowId = valueDependencyFlowListParentFlow["DependencyFlowId"].asString();
if(!valueDependencyFlowListParentFlow["FlowInstanceId"].isNull())
dependencyFlowListObject.flowInstanceId = valueDependencyFlowListParentFlow["FlowInstanceId"].asString();
if(!valueDependencyFlowListParentFlow["DependencyInstanceId"].isNull())
dependencyFlowListObject.dependencyInstanceId = valueDependencyFlowListParentFlow["DependencyInstanceId"].asString();
if(!valueDependencyFlowListParentFlow["ScheduleKey"].isNull())
dependencyFlowListObject.scheduleKey = valueDependencyFlowListParentFlow["ScheduleKey"].asString();
if(!valueDependencyFlowListParentFlow["BizDate"].isNull())
dependencyFlowListObject.bizDate = std::stol(valueDependencyFlowListParentFlow["BizDate"].asString());
if(!valueDependencyFlowListParentFlow["Meet"].isNull())
dependencyFlowListObject.meet = valueDependencyFlowListParentFlow["Meet"].asString() == "true";
dependencyFlowList_.push_back(dependencyFlowListObject);
}
auto allNodeInstanceNode = value["NodeInstance"]["NodeInstanceItem"];
for (auto valueNodeInstanceNodeInstanceItem : allNodeInstanceNode)
{
NodeInstanceItem nodeInstanceObject;
if(!valueNodeInstanceNodeInstanceItem["Id"].isNull())
nodeInstanceObject.id = valueNodeInstanceNodeInstanceItem["Id"].asString();
if(!valueNodeInstanceNodeInstanceItem["GmtCreate"].isNull())
nodeInstanceObject.gmtCreate = std::stol(valueNodeInstanceNodeInstanceItem["GmtCreate"].asString());
if(!valueNodeInstanceNodeInstanceItem["GmtModified"].isNull())
nodeInstanceObject.gmtModified = std::stol(valueNodeInstanceNodeInstanceItem["GmtModified"].asString());
if(!valueNodeInstanceNodeInstanceItem["Type"].isNull())
nodeInstanceObject.type = valueNodeInstanceNodeInstanceItem["Type"].asString();
if(!valueNodeInstanceNodeInstanceItem["Status"].isNull())
nodeInstanceObject.status = valueNodeInstanceNodeInstanceItem["Status"].asString();
if(!valueNodeInstanceNodeInstanceItem["JobId"].isNull())
nodeInstanceObject.jobId = valueNodeInstanceNodeInstanceItem["JobId"].asString();
if(!valueNodeInstanceNodeInstanceItem["JobName"].isNull())
nodeInstanceObject.jobName = valueNodeInstanceNodeInstanceItem["JobName"].asString();
if(!valueNodeInstanceNodeInstanceItem["JobType"].isNull())
nodeInstanceObject.jobType = valueNodeInstanceNodeInstanceItem["JobType"].asString();
if(!valueNodeInstanceNodeInstanceItem["FailAct"].isNull())
nodeInstanceObject.failAct = valueNodeInstanceNodeInstanceItem["FailAct"].asString();
if(!valueNodeInstanceNodeInstanceItem["MaxRetry"].isNull())
nodeInstanceObject.maxRetry = valueNodeInstanceNodeInstanceItem["MaxRetry"].asString();
if(!valueNodeInstanceNodeInstanceItem["RetryInterval"].isNull())
nodeInstanceObject.retryInterval = valueNodeInstanceNodeInstanceItem["RetryInterval"].asString();
if(!valueNodeInstanceNodeInstanceItem["NodeName"].isNull())
nodeInstanceObject.nodeName = valueNodeInstanceNodeInstanceItem["NodeName"].asString();
if(!valueNodeInstanceNodeInstanceItem["ClusterId"].isNull())
nodeInstanceObject.clusterId = valueNodeInstanceNodeInstanceItem["ClusterId"].asString();
if(!valueNodeInstanceNodeInstanceItem["HostName"].isNull())
nodeInstanceObject.hostName = valueNodeInstanceNodeInstanceItem["HostName"].asString();
if(!valueNodeInstanceNodeInstanceItem["ProjectId"].isNull())
nodeInstanceObject.projectId = valueNodeInstanceNodeInstanceItem["ProjectId"].asString();
if(!valueNodeInstanceNodeInstanceItem["Pending"].isNull())
nodeInstanceObject.pending = valueNodeInstanceNodeInstanceItem["Pending"].asString() == "true";
if(!valueNodeInstanceNodeInstanceItem["StartTime"].isNull())
nodeInstanceObject.startTime = std::stol(valueNodeInstanceNodeInstanceItem["StartTime"].asString());
if(!valueNodeInstanceNodeInstanceItem["EndTime"].isNull())
nodeInstanceObject.endTime = std::stol(valueNodeInstanceNodeInstanceItem["EndTime"].asString());
if(!valueNodeInstanceNodeInstanceItem["Duration"].isNull())
nodeInstanceObject.duration = std::stol(valueNodeInstanceNodeInstanceItem["Duration"].asString());
if(!valueNodeInstanceNodeInstanceItem["Retries"].isNull())
nodeInstanceObject.retries = std::stoi(valueNodeInstanceNodeInstanceItem["Retries"].asString());
if(!valueNodeInstanceNodeInstanceItem["ExternalId"].isNull())
nodeInstanceObject.externalId = valueNodeInstanceNodeInstanceItem["ExternalId"].asString();
if(!valueNodeInstanceNodeInstanceItem["ExternalStatus"].isNull())
nodeInstanceObject.externalStatus = valueNodeInstanceNodeInstanceItem["ExternalStatus"].asString();
if(!valueNodeInstanceNodeInstanceItem["ExternalInfo"].isNull())
nodeInstanceObject.externalInfo = valueNodeInstanceNodeInstanceItem["ExternalInfo"].asString();
nodeInstance_.push_back(nodeInstanceObject);
}
if(!value["Id"].isNull())
id_ = value["Id"].asString();
if(!value["GmtCreate"].isNull())
gmtCreate_ = std::stol(value["GmtCreate"].asString());
if(!value["GmtModified"].isNull())
gmtModified_ = std::stol(value["GmtModified"].asString());
if(!value["FlowId"].isNull())
flowId_ = value["FlowId"].asString();
if(!value["FlowName"].isNull())
flowName_ = value["FlowName"].asString();
if(!value["ProjectId"].isNull())
projectId_ = value["ProjectId"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["ClusterId"].isNull())
clusterId_ = value["ClusterId"].asString();
if(!value["Namespace"].isNull())
_namespace_ = value["Namespace"].asString();
if(!value["LogArchiveLocation"].isNull())
logArchiveLocation_ = value["LogArchiveLocation"].asString();
if(!value["Lifecycle"].isNull())
lifecycle_ = value["Lifecycle"].asString();
if(!value["StartTime"].isNull())
startTime_ = std::stol(value["StartTime"].asString());
if(!value["EndTime"].isNull())
endTime_ = std::stol(value["EndTime"].asString());
if(!value["Duration"].isNull())
duration_ = std::stol(value["Duration"].asString());
if(!value["ScheduleTime"].isNull())
scheduleTime_ = std::stol(value["ScheduleTime"].asString());
if(!value["Graph"].isNull())
graph_ = value["Graph"].asString();
if(!value["CronExpression"].isNull())
cronExpression_ = value["CronExpression"].asString();
if(!value["HasNodeFailed"].isNull())
hasNodeFailed_ = value["HasNodeFailed"].asString() == "true";
}
std::string DescribeFlowInstanceResult::getStatus()const
{
return status_;
}
bool DescribeFlowInstanceResult::getHasNodeFailed()const
{
return hasNodeFailed_;
}
long DescribeFlowInstanceResult::getEndTime()const
{
return endTime_;
}
std::string DescribeFlowInstanceResult::getClusterId()const
{
return clusterId_;
}
std::string DescribeFlowInstanceResult::getLifecycle()const
{
return lifecycle_;
}
long DescribeFlowInstanceResult::getGmtModified()const
{
return gmtModified_;
}
std::string DescribeFlowInstanceResult::getProjectId()const
{
return projectId_;
}
long DescribeFlowInstanceResult::getStartTime()const
{
return startTime_;
}
std::string DescribeFlowInstanceResult::get_Namespace()const
{
return _namespace_;
}
long DescribeFlowInstanceResult::getDuration()const
{
return duration_;
}
std::string DescribeFlowInstanceResult::getFlowId()const
{
return flowId_;
}
long DescribeFlowInstanceResult::getGmtCreate()const
{
return gmtCreate_;
}
std::string DescribeFlowInstanceResult::getGraph()const
{
return graph_;
}
long DescribeFlowInstanceResult::getScheduleTime()const
{
return scheduleTime_;
}
std::string DescribeFlowInstanceResult::getFlowName()const
{
return flowName_;
}
std::string DescribeFlowInstanceResult::getId()const
{
return id_;
}
std::string DescribeFlowInstanceResult::getLogArchiveLocation()const
{
return logArchiveLocation_;
}
std::string DescribeFlowInstanceResult::getCronExpression()const
{
return cronExpression_;
}
std::vector<DescribeFlowInstanceResult::ParentFlow> DescribeFlowInstanceResult::getDependencyFlowList()const
{
return dependencyFlowList_;
}
std::vector<DescribeFlowInstanceResult::NodeInstanceItem> DescribeFlowInstanceResult::getNodeInstance()const
{
return nodeInstance_;
}

View File

@@ -1,62 +0,0 @@
/*
* 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/emr/model/DescribeFlowJobRequest.h>
using AlibabaCloud::Emr::Model::DescribeFlowJobRequest;
DescribeFlowJobRequest::DescribeFlowJobRequest() :
RpcServiceRequest("emr", "2016-04-08", "DescribeFlowJob")
{
setMethod(HttpRequest::Method::Post);
}
DescribeFlowJobRequest::~DescribeFlowJobRequest()
{}
std::string DescribeFlowJobRequest::getRegionId()const
{
return regionId_;
}
void DescribeFlowJobRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DescribeFlowJobRequest::getId()const
{
return id_;
}
void DescribeFlowJobRequest::setId(const std::string& id)
{
id_ = id;
setParameter("Id", id);
}
std::string DescribeFlowJobRequest::getProjectId()const
{
return projectId_;
}
void DescribeFlowJobRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
}

View File

@@ -1,220 +0,0 @@
/*
* 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/emr/model/DescribeFlowJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
DescribeFlowJobResult::DescribeFlowJobResult() :
ServiceResult()
{}
DescribeFlowJobResult::DescribeFlowJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeFlowJobResult::~DescribeFlowJobResult()
{}
void DescribeFlowJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResourceListNode = value["ResourceList"]["Resource"];
for (auto valueResourceListResource : allResourceListNode)
{
Resource resourceListObject;
if(!valueResourceListResource["Path"].isNull())
resourceListObject.path = valueResourceListResource["Path"].asString();
if(!valueResourceListResource["Alias"].isNull())
resourceListObject.alias = valueResourceListResource["Alias"].asString();
resourceList_.push_back(resourceListObject);
}
if(!value["Id"].isNull())
id_ = value["Id"].asString();
if(!value["GmtCreate"].isNull())
gmtCreate_ = std::stol(value["GmtCreate"].asString());
if(!value["GmtModified"].isNull())
gmtModified_ = std::stol(value["GmtModified"].asString());
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["Type"].isNull())
type_ = value["Type"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["FailAct"].isNull())
failAct_ = value["FailAct"].asString();
if(!value["MaxRetry"].isNull())
maxRetry_ = std::stoi(value["MaxRetry"].asString());
if(!value["RetryInterval"].isNull())
retryInterval_ = std::stol(value["RetryInterval"].asString());
if(!value["RetryPolicy"].isNull())
retryPolicy_ = value["RetryPolicy"].asString();
if(!value["Params"].isNull())
params_ = value["Params"].asString();
if(!value["ParamConf"].isNull())
paramConf_ = value["ParamConf"].asString();
if(!value["CustomVariables"].isNull())
customVariables_ = value["CustomVariables"].asString();
if(!value["EnvConf"].isNull())
envConf_ = value["EnvConf"].asString();
if(!value["RunConf"].isNull())
runConf_ = value["RunConf"].asString();
if(!value["MonitorConf"].isNull())
monitorConf_ = value["MonitorConf"].asString();
if(!value["CategoryId"].isNull())
categoryId_ = value["CategoryId"].asString();
if(!value["mode"].isNull())
mode_ = value["mode"].asString();
if(!value["LastInstanceId"].isNull())
lastInstanceId_ = value["LastInstanceId"].asString();
if(!value["Adhoc"].isNull())
adhoc_ = value["Adhoc"].asString();
if(!value["AlertConf"].isNull())
alertConf_ = value["AlertConf"].asString();
if(!value["EditLockDetail"].isNull())
editLockDetail_ = value["EditLockDetail"].asString();
if(!value["MaxRunningTimeSec"].isNull())
maxRunningTimeSec_ = std::stol(value["MaxRunningTimeSec"].asString());
}
std::string DescribeFlowJobResult::getFailAct()const
{
return failAct_;
}
std::string DescribeFlowJobResult::getCategoryId()const
{
return categoryId_;
}
std::string DescribeFlowJobResult::getDescription()const
{
return description_;
}
std::string DescribeFlowJobResult::getMode()const
{
return mode_;
}
std::string DescribeFlowJobResult::getLastInstanceId()const
{
return lastInstanceId_;
}
long DescribeFlowJobResult::getGmtModified()const
{
return gmtModified_;
}
std::string DescribeFlowJobResult::getParams()const
{
return params_;
}
int DescribeFlowJobResult::getMaxRetry()const
{
return maxRetry_;
}
std::string DescribeFlowJobResult::getEditLockDetail()const
{
return editLockDetail_;
}
long DescribeFlowJobResult::getMaxRunningTimeSec()const
{
return maxRunningTimeSec_;
}
std::string DescribeFlowJobResult::getName()const
{
return name_;
}
std::string DescribeFlowJobResult::getParamConf()const
{
return paramConf_;
}
std::vector<DescribeFlowJobResult::Resource> DescribeFlowJobResult::getResourceList()const
{
return resourceList_;
}
long DescribeFlowJobResult::getGmtCreate()const
{
return gmtCreate_;
}
std::string DescribeFlowJobResult::getType()const
{
return type_;
}
std::string DescribeFlowJobResult::getEnvConf()const
{
return envConf_;
}
std::string DescribeFlowJobResult::getMonitorConf()const
{
return monitorConf_;
}
std::string DescribeFlowJobResult::getAdhoc()const
{
return adhoc_;
}
std::string DescribeFlowJobResult::getId()const
{
return id_;
}
long DescribeFlowJobResult::getRetryInterval()const
{
return retryInterval_;
}
std::string DescribeFlowJobResult::getRunConf()const
{
return runConf_;
}
std::string DescribeFlowJobResult::getRetryPolicy()const
{
return retryPolicy_;
}
std::string DescribeFlowJobResult::getCustomVariables()const
{
return customVariables_;
}
std::string DescribeFlowJobResult::getAlertConf()const
{
return alertConf_;
}

View File

@@ -1,117 +0,0 @@
/*
* 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/emr/model/DescribeFlowNodeInstanceContainerLogRequest.h>
using AlibabaCloud::Emr::Model::DescribeFlowNodeInstanceContainerLogRequest;
DescribeFlowNodeInstanceContainerLogRequest::DescribeFlowNodeInstanceContainerLogRequest() :
RpcServiceRequest("emr", "2016-04-08", "DescribeFlowNodeInstanceContainerLog")
{
setMethod(HttpRequest::Method::Post);
}
DescribeFlowNodeInstanceContainerLogRequest::~DescribeFlowNodeInstanceContainerLogRequest()
{}
int DescribeFlowNodeInstanceContainerLogRequest::getOffset()const
{
return offset_;
}
void DescribeFlowNodeInstanceContainerLogRequest::setOffset(int offset)
{
offset_ = offset;
setParameter("Offset", std::to_string(offset));
}
std::string DescribeFlowNodeInstanceContainerLogRequest::getLogName()const
{
return logName_;
}
void DescribeFlowNodeInstanceContainerLogRequest::setLogName(const std::string& logName)
{
logName_ = logName;
setParameter("LogName", logName);
}
int DescribeFlowNodeInstanceContainerLogRequest::getLength()const
{
return length_;
}
void DescribeFlowNodeInstanceContainerLogRequest::setLength(int length)
{
length_ = length;
setParameter("Length", std::to_string(length));
}
std::string DescribeFlowNodeInstanceContainerLogRequest::getNodeInstanceId()const
{
return nodeInstanceId_;
}
void DescribeFlowNodeInstanceContainerLogRequest::setNodeInstanceId(const std::string& nodeInstanceId)
{
nodeInstanceId_ = nodeInstanceId;
setParameter("NodeInstanceId", nodeInstanceId);
}
std::string DescribeFlowNodeInstanceContainerLogRequest::getRegionId()const
{
return regionId_;
}
void DescribeFlowNodeInstanceContainerLogRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DescribeFlowNodeInstanceContainerLogRequest::getAppId()const
{
return appId_;
}
void DescribeFlowNodeInstanceContainerLogRequest::setAppId(const std::string& appId)
{
appId_ = appId;
setParameter("AppId", appId);
}
std::string DescribeFlowNodeInstanceContainerLogRequest::getContainerId()const
{
return containerId_;
}
void DescribeFlowNodeInstanceContainerLogRequest::setContainerId(const std::string& containerId)
{
containerId_ = containerId;
setParameter("ContainerId", containerId);
}
std::string DescribeFlowNodeInstanceContainerLogRequest::getProjectId()const
{
return projectId_;
}
void DescribeFlowNodeInstanceContainerLogRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
}

View File

@@ -1,64 +0,0 @@
/*
* 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/emr/model/DescribeFlowNodeInstanceContainerLogResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
DescribeFlowNodeInstanceContainerLogResult::DescribeFlowNodeInstanceContainerLogResult() :
ServiceResult()
{}
DescribeFlowNodeInstanceContainerLogResult::DescribeFlowNodeInstanceContainerLogResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeFlowNodeInstanceContainerLogResult::~DescribeFlowNodeInstanceContainerLogResult()
{}
void DescribeFlowNodeInstanceContainerLogResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allLogEntrysNode = value["LogEntrys"]["LogEntry"];
for (auto valueLogEntrysLogEntry : allLogEntrysNode)
{
LogEntry logEntrysObject;
if(!valueLogEntrysLogEntry["Content"].isNull())
logEntrysObject.content = valueLogEntrysLogEntry["Content"].asString();
logEntrys_.push_back(logEntrysObject);
}
if(!value["LogEnd"].isNull())
logEnd_ = value["LogEnd"].asString() == "true";
}
bool DescribeFlowNodeInstanceContainerLogResult::getLogEnd()const
{
return logEnd_;
}
std::vector<DescribeFlowNodeInstanceContainerLogResult::LogEntry> DescribeFlowNodeInstanceContainerLogResult::getLogEntrys()const
{
return logEntrys_;
}

View File

@@ -1,139 +0,0 @@
/*
* 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/emr/model/DescribeFlowNodeInstanceLauncherLogRequest.h>
using AlibabaCloud::Emr::Model::DescribeFlowNodeInstanceLauncherLogRequest;
DescribeFlowNodeInstanceLauncherLogRequest::DescribeFlowNodeInstanceLauncherLogRequest() :
RpcServiceRequest("emr", "2016-04-08", "DescribeFlowNodeInstanceLauncherLog")
{
setMethod(HttpRequest::Method::Post);
}
DescribeFlowNodeInstanceLauncherLogRequest::~DescribeFlowNodeInstanceLauncherLogRequest()
{}
int DescribeFlowNodeInstanceLauncherLogRequest::getOffset()const
{
return offset_;
}
void DescribeFlowNodeInstanceLauncherLogRequest::setOffset(int offset)
{
offset_ = offset;
setParameter("Offset", std::to_string(offset));
}
int DescribeFlowNodeInstanceLauncherLogRequest::getStart()const
{
return start_;
}
void DescribeFlowNodeInstanceLauncherLogRequest::setStart(int start)
{
start_ = start;
setParameter("Start", std::to_string(start));
}
int DescribeFlowNodeInstanceLauncherLogRequest::getLength()const
{
return length_;
}
void DescribeFlowNodeInstanceLauncherLogRequest::setLength(int length)
{
length_ = length;
setParameter("Length", std::to_string(length));
}
long DescribeFlowNodeInstanceLauncherLogRequest::getEndTime()const
{
return endTime_;
}
void DescribeFlowNodeInstanceLauncherLogRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
long DescribeFlowNodeInstanceLauncherLogRequest::getStartTime()const
{
return startTime_;
}
void DescribeFlowNodeInstanceLauncherLogRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
bool DescribeFlowNodeInstanceLauncherLogRequest::getReverse()const
{
return reverse_;
}
void DescribeFlowNodeInstanceLauncherLogRequest::setReverse(bool reverse)
{
reverse_ = reverse;
setParameter("Reverse", reverse ? "true" : "false");
}
std::string DescribeFlowNodeInstanceLauncherLogRequest::getNodeInstanceId()const
{
return nodeInstanceId_;
}
void DescribeFlowNodeInstanceLauncherLogRequest::setNodeInstanceId(const std::string& nodeInstanceId)
{
nodeInstanceId_ = nodeInstanceId;
setParameter("NodeInstanceId", nodeInstanceId);
}
std::string DescribeFlowNodeInstanceLauncherLogRequest::getRegionId()const
{
return regionId_;
}
void DescribeFlowNodeInstanceLauncherLogRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
int DescribeFlowNodeInstanceLauncherLogRequest::getLines()const
{
return lines_;
}
void DescribeFlowNodeInstanceLauncherLogRequest::setLines(int lines)
{
lines_ = lines;
setParameter("Lines", std::to_string(lines));
}
std::string DescribeFlowNodeInstanceLauncherLogRequest::getProjectId()const
{
return projectId_;
}
void DescribeFlowNodeInstanceLauncherLogRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
}

View File

@@ -1,64 +0,0 @@
/*
* 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/emr/model/DescribeFlowNodeInstanceLauncherLogResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
DescribeFlowNodeInstanceLauncherLogResult::DescribeFlowNodeInstanceLauncherLogResult() :
ServiceResult()
{}
DescribeFlowNodeInstanceLauncherLogResult::DescribeFlowNodeInstanceLauncherLogResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeFlowNodeInstanceLauncherLogResult::~DescribeFlowNodeInstanceLauncherLogResult()
{}
void DescribeFlowNodeInstanceLauncherLogResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allLogEntrysNode = value["LogEntrys"]["LogEntry"];
for (auto valueLogEntrysLogEntry : allLogEntrysNode)
{
LogEntry logEntrysObject;
if(!valueLogEntrysLogEntry["Content"].isNull())
logEntrysObject.content = valueLogEntrysLogEntry["Content"].asString();
logEntrys_.push_back(logEntrysObject);
}
if(!value["LogEnd"].isNull())
logEnd_ = value["LogEnd"].asString() == "true";
}
bool DescribeFlowNodeInstanceLauncherLogResult::getLogEnd()const
{
return logEnd_;
}
std::vector<DescribeFlowNodeInstanceLauncherLogResult::LogEntry> DescribeFlowNodeInstanceLauncherLogResult::getLogEntrys()const
{
return logEntrys_;
}

View File

@@ -1,62 +0,0 @@
/*
* 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/emr/model/DescribeFlowNodeInstanceRequest.h>
using AlibabaCloud::Emr::Model::DescribeFlowNodeInstanceRequest;
DescribeFlowNodeInstanceRequest::DescribeFlowNodeInstanceRequest() :
RpcServiceRequest("emr", "2016-04-08", "DescribeFlowNodeInstance")
{
setMethod(HttpRequest::Method::Post);
}
DescribeFlowNodeInstanceRequest::~DescribeFlowNodeInstanceRequest()
{}
std::string DescribeFlowNodeInstanceRequest::getRegionId()const
{
return regionId_;
}
void DescribeFlowNodeInstanceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DescribeFlowNodeInstanceRequest::getId()const
{
return id_;
}
void DescribeFlowNodeInstanceRequest::setId(const std::string& id)
{
id_ = id;
setParameter("Id", id);
}
std::string DescribeFlowNodeInstanceRequest::getProjectId()const
{
return projectId_;
}
void DescribeFlowNodeInstanceRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
}

View File

@@ -1,296 +0,0 @@
/*
* 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/emr/model/DescribeFlowNodeInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
DescribeFlowNodeInstanceResult::DescribeFlowNodeInstanceResult() :
ServiceResult()
{}
DescribeFlowNodeInstanceResult::DescribeFlowNodeInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeFlowNodeInstanceResult::~DescribeFlowNodeInstanceResult()
{}
void DescribeFlowNodeInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Id"].isNull())
id_ = value["Id"].asString();
if(!value["GmtCreate"].isNull())
gmtCreate_ = std::stol(value["GmtCreate"].asString());
if(!value["GmtModified"].isNull())
gmtModified_ = std::stol(value["GmtModified"].asString());
if(!value["Type"].isNull())
type_ = value["Type"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["JobId"].isNull())
jobId_ = value["JobId"].asString();
if(!value["JobName"].isNull())
jobName_ = value["JobName"].asString();
if(!value["JobType"].isNull())
jobType_ = value["JobType"].asString();
if(!value["JobParams"].isNull())
jobParams_ = value["JobParams"].asString();
if(!value["FailAct"].isNull())
failAct_ = value["FailAct"].asString();
if(!value["MaxRetry"].isNull())
maxRetry_ = value["MaxRetry"].asString();
if(!value["RetryInterval"].isNull())
retryInterval_ = value["RetryInterval"].asString();
if(!value["RetryPolicy"].isNull())
retryPolicy_ = value["RetryPolicy"].asString();
if(!value["NodeName"].isNull())
nodeName_ = value["NodeName"].asString();
if(!value["FlowId"].isNull())
flowId_ = value["FlowId"].asString();
if(!value["FlowInstanceId"].isNull())
flowInstanceId_ = value["FlowInstanceId"].asString();
if(!value["ClusterId"].isNull())
clusterId_ = value["ClusterId"].asString();
if(!value["HostName"].isNull())
hostName_ = value["HostName"].asString();
if(!value["ProjectId"].isNull())
projectId_ = value["ProjectId"].asString();
if(!value["Pending"].isNull())
pending_ = value["Pending"].asString() == "true";
if(!value["StartTime"].isNull())
startTime_ = std::stol(value["StartTime"].asString());
if(!value["EndTime"].isNull())
endTime_ = std::stol(value["EndTime"].asString());
if(!value["Duration"].isNull())
duration_ = std::stol(value["Duration"].asString());
if(!value["Retries"].isNull())
retries_ = std::stoi(value["Retries"].asString());
if(!value["ExternalId"].isNull())
externalId_ = value["ExternalId"].asString();
if(!value["ExternalSubId"].isNull())
externalSubId_ = value["ExternalSubId"].asString();
if(!value["ExternalChildIds"].isNull())
externalChildIds_ = value["ExternalChildIds"].asString();
if(!value["ExternalStatus"].isNull())
externalStatus_ = value["ExternalStatus"].asString();
if(!value["ExternalInfo"].isNull())
externalInfo_ = value["ExternalInfo"].asString();
if(!value["ParamConf"].isNull())
paramConf_ = value["ParamConf"].asString();
if(!value["EnvConf"].isNull())
envConf_ = value["EnvConf"].asString();
if(!value["RunConf"].isNull())
runConf_ = value["RunConf"].asString();
if(!value["Adhoc"].isNull())
adhoc_ = value["Adhoc"].asString() == "true";
if(!value["MonitorConf"].isNull())
monitorConf_ = value["MonitorConf"].asString();
if(!value["Mode"].isNull())
mode_ = value["Mode"].asString();
if(!value["ClusterName"].isNull())
clusterName_ = value["ClusterName"].asString();
}
std::string DescribeFlowNodeInstanceResult::getFailAct()const
{
return failAct_;
}
long DescribeFlowNodeInstanceResult::getEndTime()const
{
return endTime_;
}
std::string DescribeFlowNodeInstanceResult::getNodeName()const
{
return nodeName_;
}
long DescribeFlowNodeInstanceResult::getGmtModified()const
{
return gmtModified_;
}
std::string DescribeFlowNodeInstanceResult::getJobName()const
{
return jobName_;
}
std::string DescribeFlowNodeInstanceResult::getFlowId()const
{
return flowId_;
}
std::string DescribeFlowNodeInstanceResult::getExternalStatus()const
{
return externalStatus_;
}
std::string DescribeFlowNodeInstanceResult::getParamConf()const
{
return paramConf_;
}
std::string DescribeFlowNodeInstanceResult::getExternalInfo()const
{
return externalInfo_;
}
int DescribeFlowNodeInstanceResult::getRetries()const
{
return retries_;
}
std::string DescribeFlowNodeInstanceResult::getClusterName()const
{
return clusterName_;
}
bool DescribeFlowNodeInstanceResult::getAdhoc()const
{
return adhoc_;
}
std::string DescribeFlowNodeInstanceResult::getJobId()const
{
return jobId_;
}
std::string DescribeFlowNodeInstanceResult::getJobParams()const
{
return jobParams_;
}
std::string DescribeFlowNodeInstanceResult::getHostName()const
{
return hostName_;
}
std::string DescribeFlowNodeInstanceResult::getStatus()const
{
return status_;
}
std::string DescribeFlowNodeInstanceResult::getClusterId()const
{
return clusterId_;
}
std::string DescribeFlowNodeInstanceResult::getExternalId()const
{
return externalId_;
}
std::string DescribeFlowNodeInstanceResult::getMode()const
{
return mode_;
}
std::string DescribeFlowNodeInstanceResult::getProjectId()const
{
return projectId_;
}
long DescribeFlowNodeInstanceResult::getStartTime()const
{
return startTime_;
}
std::string DescribeFlowNodeInstanceResult::getFlowInstanceId()const
{
return flowInstanceId_;
}
long DescribeFlowNodeInstanceResult::getDuration()const
{
return duration_;
}
std::string DescribeFlowNodeInstanceResult::getMaxRetry()const
{
return maxRetry_;
}
std::string DescribeFlowNodeInstanceResult::getExternalSubId()const
{
return externalSubId_;
}
long DescribeFlowNodeInstanceResult::getGmtCreate()const
{
return gmtCreate_;
}
std::string DescribeFlowNodeInstanceResult::getType()const
{
return type_;
}
std::string DescribeFlowNodeInstanceResult::getJobType()const
{
return jobType_;
}
std::string DescribeFlowNodeInstanceResult::getEnvConf()const
{
return envConf_;
}
std::string DescribeFlowNodeInstanceResult::getExternalChildIds()const
{
return externalChildIds_;
}
std::string DescribeFlowNodeInstanceResult::getMonitorConf()const
{
return monitorConf_;
}
std::string DescribeFlowNodeInstanceResult::getId()const
{
return id_;
}
std::string DescribeFlowNodeInstanceResult::getRetryInterval()const
{
return retryInterval_;
}
std::string DescribeFlowNodeInstanceResult::getRunConf()const
{
return runConf_;
}
std::string DescribeFlowNodeInstanceResult::getRetryPolicy()const
{
return retryPolicy_;
}
bool DescribeFlowNodeInstanceResult::getPending()const
{
return pending_;
}

Some files were not shown because too many files have changed in this diff Show More