regenerate code
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::AddClusterServiceRequest;
|
||||
|
||||
AddClusterServiceRequest::AddClusterServiceRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "AddClusterService")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddClusterServiceRequest::~AddClusterServiceRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long AddClusterServiceRequest::getResourceOwnerId()const
|
||||
void AddClusterServiceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AddClusterServiceRequest::getClusterId()const
|
||||
@@ -44,7 +46,7 @@ std::string AddClusterServiceRequest::getClusterId()const
|
||||
void AddClusterServiceRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string AddClusterServiceRequest::getAccessKeyId()const
|
||||
@@ -55,7 +57,7 @@ std::string AddClusterServiceRequest::getAccessKeyId()const
|
||||
void AddClusterServiceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string AddClusterServiceRequest::getRegionId()const
|
||||
@@ -66,7 +68,7 @@ std::string AddClusterServiceRequest::getRegionId()const
|
||||
void AddClusterServiceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<AddClusterServiceRequest::Service> AddClusterServiceRequest::getService()const
|
||||
@@ -77,11 +79,11 @@ std::vector<AddClusterServiceRequest::Service> AddClusterServiceRequest::getServ
|
||||
void AddClusterServiceRequest::setService(const std::vector<Service>& service)
|
||||
{
|
||||
service_ = service;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= service.size(); i++) {
|
||||
auto obj = service.at(i);
|
||||
std::string str ="Service."+ std::to_string(i);
|
||||
setCoreParameter(str + ".ServiceName", obj.serviceName);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,6 +95,6 @@ std::string AddClusterServiceRequest::getComment()const
|
||||
void AddClusterServiceRequest::setComment(const std::string& comment)
|
||||
{
|
||||
comment_ = comment;
|
||||
setCoreParameter("Comment", comment);
|
||||
setParameter("Comment", comment);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::AuthorizeSecurityGroupRequest;
|
||||
|
||||
AuthorizeSecurityGroupRequest::AuthorizeSecurityGroupRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "AuthorizeSecurityGroup")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AuthorizeSecurityGroupRequest::~AuthorizeSecurityGroupRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long AuthorizeSecurityGroupRequest::getResourceOwnerId()const
|
||||
void AuthorizeSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupRequest::getClusterId()const
|
||||
@@ -44,7 +46,7 @@ std::string AuthorizeSecurityGroupRequest::getClusterId()const
|
||||
void AuthorizeSecurityGroupRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupRequest::getAccessKeyId()const
|
||||
@@ -55,7 +57,7 @@ std::string AuthorizeSecurityGroupRequest::getAccessKeyId()const
|
||||
void AuthorizeSecurityGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupRequest::getBizType()const
|
||||
@@ -66,7 +68,7 @@ std::string AuthorizeSecurityGroupRequest::getBizType()const
|
||||
void AuthorizeSecurityGroupRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setCoreParameter("BizType", bizType);
|
||||
setParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupRequest::getBizContent()const
|
||||
@@ -77,7 +79,7 @@ std::string AuthorizeSecurityGroupRequest::getBizContent()const
|
||||
void AuthorizeSecurityGroupRequest::setBizContent(const std::string& bizContent)
|
||||
{
|
||||
bizContent_ = bizContent;
|
||||
setCoreParameter("BizContent", bizContent);
|
||||
setParameter("BizContent", bizContent);
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupRequest::getRegionId()const
|
||||
@@ -88,6 +90,6 @@ std::string AuthorizeSecurityGroupRequest::getRegionId()const
|
||||
void AuthorizeSecurityGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::CancelOrderRequest;
|
||||
|
||||
CancelOrderRequest::CancelOrderRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CancelOrder")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelOrderRequest::~CancelOrderRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long CancelOrderRequest::getResourceOwnerId()const
|
||||
void CancelOrderRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CancelOrderRequest::getClusterId()const
|
||||
@@ -44,7 +46,7 @@ std::string CancelOrderRequest::getClusterId()const
|
||||
void CancelOrderRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CancelOrderRequest::getAccessKeyId()const
|
||||
@@ -55,7 +57,7 @@ std::string CancelOrderRequest::getAccessKeyId()const
|
||||
void CancelOrderRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CancelOrderRequest::getRegionId()const
|
||||
@@ -66,6 +68,6 @@ std::string CancelOrderRequest::getRegionId()const
|
||||
void CancelOrderRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
|
||||
73
emr/src/model/CleanupFlowEntitySnapshotRequest.cc
Normal file
73
emr/src/model/CleanupFlowEntitySnapshotRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CleanupFlowEntitySnapshotRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::CleanupFlowEntitySnapshotRequest;
|
||||
|
||||
CleanupFlowEntitySnapshotRequest::CleanupFlowEntitySnapshotRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CleanupFlowEntitySnapshot")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CleanupFlowEntitySnapshotRequest::~CleanupFlowEntitySnapshotRequest()
|
||||
{}
|
||||
|
||||
long CleanupFlowEntitySnapshotRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CleanupFlowEntitySnapshotRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CleanupFlowEntitySnapshotRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CleanupFlowEntitySnapshotRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CleanupFlowEntitySnapshotRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CleanupFlowEntitySnapshotRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CleanupFlowEntitySnapshotRequest::getEntityIdList()const
|
||||
{
|
||||
return entityIdList_;
|
||||
}
|
||||
|
||||
void CleanupFlowEntitySnapshotRequest::setEntityIdList(const std::string& entityIdList)
|
||||
{
|
||||
entityIdList_ = entityIdList;
|
||||
setParameter("EntityIdList", entityIdList);
|
||||
}
|
||||
|
||||
51
emr/src/model/CleanupFlowEntitySnapshotResult.cc
Normal file
51
emr/src/model/CleanupFlowEntitySnapshotResult.cc
Normal 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/CleanupFlowEntitySnapshotResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
CleanupFlowEntitySnapshotResult::CleanupFlowEntitySnapshotResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CleanupFlowEntitySnapshotResult::CleanupFlowEntitySnapshotResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CleanupFlowEntitySnapshotResult::~CleanupFlowEntitySnapshotResult()
|
||||
{}
|
||||
|
||||
void CleanupFlowEntitySnapshotResult::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 CleanupFlowEntitySnapshotResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::CloneFlowJobRequest;
|
||||
|
||||
CloneFlowJobRequest::CloneFlowJobRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CloneFlowJob")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CloneFlowJobRequest::~CloneFlowJobRequest()
|
||||
{}
|
||||
@@ -33,7 +35,18 @@ std::string CloneFlowJobRequest::getRegionId()const
|
||||
void CloneFlowJobRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("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
|
||||
@@ -44,7 +57,7 @@ std::string CloneFlowJobRequest::getId()const
|
||||
void CloneFlowJobRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", id);
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
std::string CloneFlowJobRequest::getProjectId()const
|
||||
@@ -55,6 +68,6 @@ std::string CloneFlowJobRequest::getProjectId()const
|
||||
void CloneFlowJobRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::CloneFlowRequest;
|
||||
|
||||
CloneFlowRequest::CloneFlowRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CloneFlow")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CloneFlowRequest::~CloneFlowRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string CloneFlowRequest::getRegionId()const
|
||||
void CloneFlowRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CloneFlowRequest::getId()const
|
||||
@@ -44,7 +46,7 @@ std::string CloneFlowRequest::getId()const
|
||||
void CloneFlowRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", id);
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
std::string CloneFlowRequest::getProjectId()const
|
||||
@@ -55,6 +57,6 @@ std::string CloneFlowRequest::getProjectId()const
|
||||
void CloneFlowRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
|
||||
95
emr/src/model/CommitFlowEntitySnapshotRequest.cc
Normal file
95
emr/src/model/CommitFlowEntitySnapshotRequest.cc
Normal 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/CommitFlowEntitySnapshotRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::CommitFlowEntitySnapshotRequest;
|
||||
|
||||
CommitFlowEntitySnapshotRequest::CommitFlowEntitySnapshotRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CommitFlowEntitySnapshot")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CommitFlowEntitySnapshotRequest::~CommitFlowEntitySnapshotRequest()
|
||||
{}
|
||||
|
||||
long CommitFlowEntitySnapshotRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CommitFlowEntitySnapshotRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CommitFlowEntitySnapshotRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CommitFlowEntitySnapshotRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CommitFlowEntitySnapshotRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CommitFlowEntitySnapshotRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CommitFlowEntitySnapshotRequest::getEntityType()const
|
||||
{
|
||||
return entityType_;
|
||||
}
|
||||
|
||||
void CommitFlowEntitySnapshotRequest::setEntityType(const std::string& entityType)
|
||||
{
|
||||
entityType_ = entityType;
|
||||
setParameter("EntityType", entityType);
|
||||
}
|
||||
|
||||
std::string CommitFlowEntitySnapshotRequest::getEntityId()const
|
||||
{
|
||||
return entityId_;
|
||||
}
|
||||
|
||||
void CommitFlowEntitySnapshotRequest::setEntityId(const std::string& entityId)
|
||||
{
|
||||
entityId_ = entityId;
|
||||
setParameter("EntityId", entityId);
|
||||
}
|
||||
|
||||
std::string CommitFlowEntitySnapshotRequest::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
void CommitFlowEntitySnapshotRequest::setMessage(const std::string& message)
|
||||
{
|
||||
message_ = message;
|
||||
setParameter("Message", message);
|
||||
}
|
||||
|
||||
51
emr/src/model/CommitFlowEntitySnapshotResult.cc
Normal file
51
emr/src/model/CommitFlowEntitySnapshotResult.cc
Normal 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/CommitFlowEntitySnapshotResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
CommitFlowEntitySnapshotResult::CommitFlowEntitySnapshotResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CommitFlowEntitySnapshotResult::CommitFlowEntitySnapshotResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CommitFlowEntitySnapshotResult::~CommitFlowEntitySnapshotResult()
|
||||
{}
|
||||
|
||||
void CommitFlowEntitySnapshotResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string CommitFlowEntitySnapshotResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -20,85 +20,87 @@ using AlibabaCloud::Emr::Model::CreateBackupPlanRequest;
|
||||
|
||||
CreateBackupPlanRequest::CreateBackupPlanRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateBackupPlan")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateBackupPlanRequest::~CreateBackupPlanRequest()
|
||||
{}
|
||||
|
||||
long CreateBackupPlanRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getRootPath()const
|
||||
{
|
||||
return rootPath_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setRootPath(const std::string& rootPath)
|
||||
{
|
||||
rootPath_ = rootPath;
|
||||
setCoreParameter("RootPath", rootPath);
|
||||
}
|
||||
|
||||
long CreateBackupPlanRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getRootPath()const
|
||||
{
|
||||
return rootPath_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setRootPath(const std::string& rootPath)
|
||||
{
|
||||
rootPath_ = rootPath;
|
||||
setParameter("RootPath", rootPath);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,63 +20,65 @@ using AlibabaCloud::Emr::Model::CreateBackupRequest;
|
||||
|
||||
CreateBackupRequest::CreateBackupRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateBackup")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateBackupRequest::~CreateBackupRequest()
|
||||
{}
|
||||
|
||||
long CreateBackupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setBackupPlanId(const std::string& backupPlanId)
|
||||
{
|
||||
backupPlanId_ = backupPlanId;
|
||||
setCoreParameter("BackupPlanId", backupPlanId);
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getMetadataType()const
|
||||
{
|
||||
return metadataType_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setMetadataType(const std::string& metadataType)
|
||||
{
|
||||
metadataType_ = metadataType;
|
||||
setCoreParameter("MetadataType", metadataType);
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long CreateBackupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setBackupPlanId(const std::string& backupPlanId)
|
||||
{
|
||||
backupPlanId_ = backupPlanId;
|
||||
setParameter("BackupPlanId", backupPlanId);
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getMetadataType()const
|
||||
{
|
||||
return metadataType_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setMetadataType(const std::string& metadataType)
|
||||
{
|
||||
metadataType_ = metadataType;
|
||||
setParameter("MetadataType", metadataType);
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::CreateClusterTemplateRequest;
|
||||
|
||||
CreateClusterTemplateRequest::CreateClusterTemplateRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateClusterTemplate")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateClusterTemplateRequest::~CreateClusterTemplateRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long CreateClusterTemplateRequest::getResourceOwnerId()const
|
||||
void CreateClusterTemplateRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getLogPath()const
|
||||
@@ -44,7 +46,7 @@ std::string CreateClusterTemplateRequest::getLogPath()const
|
||||
void CreateClusterTemplateRequest::setLogPath(const std::string& logPath)
|
||||
{
|
||||
logPath_ = logPath;
|
||||
setCoreParameter("LogPath", logPath);
|
||||
setParameter("LogPath", logPath);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getMasterPwd()const
|
||||
@@ -55,7 +57,7 @@ std::string CreateClusterTemplateRequest::getMasterPwd()const
|
||||
void CreateClusterTemplateRequest::setMasterPwd(const std::string& masterPwd)
|
||||
{
|
||||
masterPwd_ = masterPwd;
|
||||
setCoreParameter("MasterPwd", masterPwd);
|
||||
setParameter("MasterPwd", masterPwd);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getConfigurations()const
|
||||
@@ -66,7 +68,7 @@ std::string CreateClusterTemplateRequest::getConfigurations()const
|
||||
void CreateClusterTemplateRequest::setConfigurations(const std::string& configurations)
|
||||
{
|
||||
configurations_ = configurations;
|
||||
setCoreParameter("Configurations", configurations);
|
||||
setParameter("Configurations", configurations);
|
||||
}
|
||||
|
||||
bool CreateClusterTemplateRequest::getSshEnable()const
|
||||
@@ -77,7 +79,7 @@ bool CreateClusterTemplateRequest::getSshEnable()const
|
||||
void CreateClusterTemplateRequest::setSshEnable(bool sshEnable)
|
||||
{
|
||||
sshEnable_ = sshEnable;
|
||||
setCoreParameter("SshEnable", sshEnable ? "true" : "false");
|
||||
setParameter("SshEnable", sshEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getKeyPairName()const
|
||||
@@ -88,7 +90,7 @@ std::string CreateClusterTemplateRequest::getKeyPairName()const
|
||||
void CreateClusterTemplateRequest::setKeyPairName(const std::string& keyPairName)
|
||||
{
|
||||
keyPairName_ = keyPairName;
|
||||
setCoreParameter("KeyPairName", keyPairName);
|
||||
setParameter("KeyPairName", keyPairName);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getMetaStoreType()const
|
||||
@@ -99,7 +101,7 @@ std::string CreateClusterTemplateRequest::getMetaStoreType()const
|
||||
void CreateClusterTemplateRequest::setMetaStoreType(const std::string& metaStoreType)
|
||||
{
|
||||
metaStoreType_ = metaStoreType;
|
||||
setCoreParameter("MetaStoreType", metaStoreType);
|
||||
setParameter("MetaStoreType", metaStoreType);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getSecurityGroupName()const
|
||||
@@ -110,7 +112,7 @@ std::string CreateClusterTemplateRequest::getSecurityGroupName()const
|
||||
void CreateClusterTemplateRequest::setSecurityGroupName(const std::string& securityGroupName)
|
||||
{
|
||||
securityGroupName_ = securityGroupName;
|
||||
setCoreParameter("SecurityGroupName", securityGroupName);
|
||||
setParameter("SecurityGroupName", securityGroupName);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getMachineType()const
|
||||
@@ -121,7 +123,7 @@ std::string CreateClusterTemplateRequest::getMachineType()const
|
||||
void CreateClusterTemplateRequest::setMachineType(const std::string& machineType)
|
||||
{
|
||||
machineType_ = machineType;
|
||||
setCoreParameter("MachineType", machineType);
|
||||
setParameter("MachineType", machineType);
|
||||
}
|
||||
|
||||
std::vector<CreateClusterTemplateRequest::BootstrapAction> CreateClusterTemplateRequest::getBootstrapAction()const
|
||||
@@ -132,13 +134,12 @@ std::vector<CreateClusterTemplateRequest::BootstrapAction> CreateClusterTemplate
|
||||
void CreateClusterTemplateRequest::setBootstrapAction(const std::vector<BootstrapAction>& bootstrapAction)
|
||||
{
|
||||
bootstrapAction_ = bootstrapAction;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= bootstrapAction.size(); i++) {
|
||||
auto obj = bootstrapAction.at(i);
|
||||
std::string str ="BootstrapAction."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Path", obj.path);
|
||||
setCoreParameter(str + ".Arg", obj.arg);
|
||||
setCoreParameter(str + ".Name", obj.name);
|
||||
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 + ".Arg", bootstrapActionObj.arg);
|
||||
setParameter(bootstrapActionObjStr + ".Name", bootstrapActionObj.name);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -150,7 +151,7 @@ std::string CreateClusterTemplateRequest::getMetaStoreConf()const
|
||||
void CreateClusterTemplateRequest::setMetaStoreConf(const std::string& metaStoreConf)
|
||||
{
|
||||
metaStoreConf_ = metaStoreConf;
|
||||
setCoreParameter("MetaStoreConf", metaStoreConf);
|
||||
setParameter("MetaStoreConf", metaStoreConf);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getEmrVer()const
|
||||
@@ -161,7 +162,7 @@ std::string CreateClusterTemplateRequest::getEmrVer()const
|
||||
void CreateClusterTemplateRequest::setEmrVer(const std::string& emrVer)
|
||||
{
|
||||
emrVer_ = emrVer;
|
||||
setCoreParameter("EmrVer", emrVer);
|
||||
setParameter("EmrVer", emrVer);
|
||||
}
|
||||
|
||||
bool CreateClusterTemplateRequest::getIsOpenPublicIp()const
|
||||
@@ -172,7 +173,7 @@ bool CreateClusterTemplateRequest::getIsOpenPublicIp()const
|
||||
void CreateClusterTemplateRequest::setIsOpenPublicIp(bool isOpenPublicIp)
|
||||
{
|
||||
isOpenPublicIp_ = isOpenPublicIp;
|
||||
setCoreParameter("IsOpenPublicIp", isOpenPublicIp ? "true" : "false");
|
||||
setParameter("IsOpenPublicIp", isOpenPublicIp ? "true" : "false");
|
||||
}
|
||||
|
||||
int CreateClusterTemplateRequest::getPeriod()const
|
||||
@@ -183,7 +184,7 @@ int CreateClusterTemplateRequest::getPeriod()const
|
||||
void CreateClusterTemplateRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setCoreParameter("Period", std::to_string(period));
|
||||
setParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getInstanceGeneration()const
|
||||
@@ -194,7 +195,7 @@ std::string CreateClusterTemplateRequest::getInstanceGeneration()const
|
||||
void CreateClusterTemplateRequest::setInstanceGeneration(const std::string& instanceGeneration)
|
||||
{
|
||||
instanceGeneration_ = instanceGeneration;
|
||||
setCoreParameter("InstanceGeneration", instanceGeneration);
|
||||
setParameter("InstanceGeneration", instanceGeneration);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getVSwitchId()const
|
||||
@@ -205,7 +206,7 @@ std::string CreateClusterTemplateRequest::getVSwitchId()const
|
||||
void CreateClusterTemplateRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setCoreParameter("VSwitchId", vSwitchId);
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getClusterType()const
|
||||
@@ -216,7 +217,7 @@ std::string CreateClusterTemplateRequest::getClusterType()const
|
||||
void CreateClusterTemplateRequest::setClusterType(const std::string& clusterType)
|
||||
{
|
||||
clusterType_ = clusterType;
|
||||
setCoreParameter("ClusterType", clusterType);
|
||||
setParameter("ClusterType", clusterType);
|
||||
}
|
||||
|
||||
bool CreateClusterTemplateRequest::getAutoRenew()const
|
||||
@@ -227,7 +228,7 @@ bool CreateClusterTemplateRequest::getAutoRenew()const
|
||||
void CreateClusterTemplateRequest::setAutoRenew(bool autoRenew)
|
||||
{
|
||||
autoRenew_ = autoRenew;
|
||||
setCoreParameter("AutoRenew", autoRenew ? "true" : "false");
|
||||
setParameter("AutoRenew", autoRenew ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateClusterTemplateRequest::getOptionSoftWareList()const
|
||||
@@ -238,8 +239,9 @@ std::vector<std::string> CreateClusterTemplateRequest::getOptionSoftWareList()co
|
||||
void CreateClusterTemplateRequest::setOptionSoftWareList(const std::vector<std::string>& optionSoftWareList)
|
||||
{
|
||||
optionSoftWareList_ = optionSoftWareList;
|
||||
for(int i = 0; i!= optionSoftWareList.size(); i++)
|
||||
setCoreParameter("OptionSoftWareList."+ std::to_string(i), optionSoftWareList.at(i));
|
||||
for(int dep1 = 0; dep1!= optionSoftWareList.size(); dep1++) {
|
||||
setParameter("OptionSoftWareList."+ std::to_string(dep1), optionSoftWareList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getNetType()const
|
||||
@@ -250,7 +252,7 @@ std::string CreateClusterTemplateRequest::getNetType()const
|
||||
void CreateClusterTemplateRequest::setNetType(const std::string& netType)
|
||||
{
|
||||
netType_ = netType;
|
||||
setCoreParameter("NetType", netType);
|
||||
setParameter("NetType", netType);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getZoneId()const
|
||||
@@ -261,7 +263,7 @@ std::string CreateClusterTemplateRequest::getZoneId()const
|
||||
void CreateClusterTemplateRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setCoreParameter("ZoneId", zoneId);
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
bool CreateClusterTemplateRequest::getUseCustomHiveMetaDb()const
|
||||
@@ -272,7 +274,7 @@ bool CreateClusterTemplateRequest::getUseCustomHiveMetaDb()const
|
||||
void CreateClusterTemplateRequest::setUseCustomHiveMetaDb(bool useCustomHiveMetaDb)
|
||||
{
|
||||
useCustomHiveMetaDb_ = useCustomHiveMetaDb;
|
||||
setCoreParameter("UseCustomHiveMetaDb", useCustomHiveMetaDb ? "true" : "false");
|
||||
setParameter("UseCustomHiveMetaDb", useCustomHiveMetaDb ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateClusterTemplateRequest::getInitCustomHiveMetaDb()const
|
||||
@@ -283,7 +285,7 @@ bool CreateClusterTemplateRequest::getInitCustomHiveMetaDb()const
|
||||
void CreateClusterTemplateRequest::setInitCustomHiveMetaDb(bool initCustomHiveMetaDb)
|
||||
{
|
||||
initCustomHiveMetaDb_ = initCustomHiveMetaDb;
|
||||
setCoreParameter("InitCustomHiveMetaDb", initCustomHiveMetaDb ? "true" : "false");
|
||||
setParameter("InitCustomHiveMetaDb", initCustomHiveMetaDb ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateClusterTemplateRequest::getIoOptimized()const
|
||||
@@ -294,7 +296,7 @@ bool CreateClusterTemplateRequest::getIoOptimized()const
|
||||
void CreateClusterTemplateRequest::setIoOptimized(bool ioOptimized)
|
||||
{
|
||||
ioOptimized_ = ioOptimized;
|
||||
setCoreParameter("IoOptimized", ioOptimized ? "true" : "false");
|
||||
setParameter("IoOptimized", ioOptimized ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getSecurityGroupId()const
|
||||
@@ -305,7 +307,7 @@ std::string CreateClusterTemplateRequest::getSecurityGroupId()const
|
||||
void CreateClusterTemplateRequest::setSecurityGroupId(const std::string& securityGroupId)
|
||||
{
|
||||
securityGroupId_ = securityGroupId;
|
||||
setCoreParameter("SecurityGroupId", securityGroupId);
|
||||
setParameter("SecurityGroupId", securityGroupId);
|
||||
}
|
||||
|
||||
bool CreateClusterTemplateRequest::getEasEnable()const
|
||||
@@ -316,7 +318,7 @@ bool CreateClusterTemplateRequest::getEasEnable()const
|
||||
void CreateClusterTemplateRequest::setEasEnable(bool easEnable)
|
||||
{
|
||||
easEnable_ = easEnable;
|
||||
setCoreParameter("EasEnable", easEnable ? "true" : "false");
|
||||
setParameter("EasEnable", easEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getDepositType()const
|
||||
@@ -327,7 +329,7 @@ std::string CreateClusterTemplateRequest::getDepositType()const
|
||||
void CreateClusterTemplateRequest::setDepositType(const std::string& depositType)
|
||||
{
|
||||
depositType_ = depositType;
|
||||
setCoreParameter("DepositType", depositType);
|
||||
setParameter("DepositType", depositType);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getAccessKeyId()const
|
||||
@@ -338,7 +340,7 @@ std::string CreateClusterTemplateRequest::getAccessKeyId()const
|
||||
void CreateClusterTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getRegionId()const
|
||||
@@ -349,7 +351,7 @@ std::string CreateClusterTemplateRequest::getRegionId()const
|
||||
void CreateClusterTemplateRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool CreateClusterTemplateRequest::getUseLocalMetaDb()const
|
||||
@@ -360,7 +362,7 @@ bool CreateClusterTemplateRequest::getUseLocalMetaDb()const
|
||||
void CreateClusterTemplateRequest::setUseLocalMetaDb(bool useLocalMetaDb)
|
||||
{
|
||||
useLocalMetaDb_ = useLocalMetaDb;
|
||||
setCoreParameter("UseLocalMetaDb", useLocalMetaDb ? "true" : "false");
|
||||
setParameter("UseLocalMetaDb", useLocalMetaDb ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getTemplateName()const
|
||||
@@ -371,7 +373,7 @@ std::string CreateClusterTemplateRequest::getTemplateName()const
|
||||
void CreateClusterTemplateRequest::setTemplateName(const std::string& templateName)
|
||||
{
|
||||
templateName_ = templateName;
|
||||
setCoreParameter("TemplateName", templateName);
|
||||
setParameter("TemplateName", templateName);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getUserDefinedEmrEcsRole()const
|
||||
@@ -382,7 +384,7 @@ std::string CreateClusterTemplateRequest::getUserDefinedEmrEcsRole()const
|
||||
void CreateClusterTemplateRequest::setUserDefinedEmrEcsRole(const std::string& userDefinedEmrEcsRole)
|
||||
{
|
||||
userDefinedEmrEcsRole_ = userDefinedEmrEcsRole;
|
||||
setCoreParameter("UserDefinedEmrEcsRole", userDefinedEmrEcsRole);
|
||||
setParameter("UserDefinedEmrEcsRole", userDefinedEmrEcsRole);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getVpcId()const
|
||||
@@ -393,7 +395,7 @@ std::string CreateClusterTemplateRequest::getVpcId()const
|
||||
void CreateClusterTemplateRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setCoreParameter("VpcId", vpcId);
|
||||
setParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::vector<CreateClusterTemplateRequest::HostGroup> CreateClusterTemplateRequest::getHostGroup()const
|
||||
@@ -404,28 +406,27 @@ std::vector<CreateClusterTemplateRequest::HostGroup> CreateClusterTemplateReques
|
||||
void CreateClusterTemplateRequest::setHostGroup(const std::vector<HostGroup>& hostGroup)
|
||||
{
|
||||
hostGroup_ = hostGroup;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= hostGroup.size(); i++) {
|
||||
auto obj = hostGroup.at(i);
|
||||
std::string str ="HostGroup."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Period", std::to_string(obj.period));
|
||||
setCoreParameter(str + ".SysDiskCapacity", std::to_string(obj.sysDiskCapacity));
|
||||
setCoreParameter(str + ".DiskCapacity", std::to_string(obj.diskCapacity));
|
||||
setCoreParameter(str + ".SysDiskType", obj.sysDiskType);
|
||||
setCoreParameter(str + ".ClusterId", obj.clusterId);
|
||||
setCoreParameter(str + ".DiskType", obj.diskType);
|
||||
setCoreParameter(str + ".HostGroupName", obj.hostGroupName);
|
||||
setCoreParameter(str + ".VSwitchId", obj.vSwitchId);
|
||||
setCoreParameter(str + ".DiskCount", std::to_string(obj.diskCount));
|
||||
setCoreParameter(str + ".AutoRenew", obj.autoRenew ? "true" : "false");
|
||||
setCoreParameter(str + ".HostGroupId", obj.hostGroupId);
|
||||
setCoreParameter(str + ".NodeCount", std::to_string(obj.nodeCount));
|
||||
setCoreParameter(str + ".InstanceType", obj.instanceType);
|
||||
setCoreParameter(str + ".Comment", obj.comment);
|
||||
setCoreParameter(str + ".ChargeType", obj.chargeType);
|
||||
setCoreParameter(str + ".MultiInstanceTypes", obj.multiInstanceTypes);
|
||||
setCoreParameter(str + ".CreateType", obj.createType);
|
||||
setCoreParameter(str + ".HostGroupType", obj.hostGroupType);
|
||||
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 + ".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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -437,16 +438,15 @@ std::vector<CreateClusterTemplateRequest::Config> CreateClusterTemplateRequest::
|
||||
void CreateClusterTemplateRequest::setConfig(const std::vector<Config>& config)
|
||||
{
|
||||
config_ = config;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= config.size(); i++) {
|
||||
auto obj = config.at(i);
|
||||
std::string str ="Config."+ std::to_string(i);
|
||||
setCoreParameter(str + ".ConfigKey", obj.configKey);
|
||||
setCoreParameter(str + ".FileName", obj.fileName);
|
||||
setCoreParameter(str + ".Encrypt", obj.encrypt);
|
||||
setCoreParameter(str + ".Replace", obj.replace);
|
||||
setCoreParameter(str + ".ConfigValue", obj.configValue);
|
||||
setCoreParameter(str + ".ServiceName", obj.serviceName);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -458,6 +458,6 @@ bool CreateClusterTemplateRequest::getHighAvailabilityEnable()const
|
||||
void CreateClusterTemplateRequest::setHighAvailabilityEnable(bool highAvailabilityEnable)
|
||||
{
|
||||
highAvailabilityEnable_ = highAvailabilityEnable;
|
||||
setCoreParameter("HighAvailabilityEnable", highAvailabilityEnable ? "true" : "false");
|
||||
setParameter("HighAvailabilityEnable", highAvailabilityEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::CreateClusterV2Request;
|
||||
|
||||
CreateClusterV2Request::CreateClusterV2Request() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateClusterV2")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateClusterV2Request::~CreateClusterV2Request()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ bool CreateClusterV2Request::getAutoPayOrder()const
|
||||
void CreateClusterV2Request::setAutoPayOrder(bool autoPayOrder)
|
||||
{
|
||||
autoPayOrder_ = autoPayOrder;
|
||||
setCoreParameter("AutoPayOrder", autoPayOrder ? "true" : "false");
|
||||
setParameter("AutoPayOrder", autoPayOrder ? "true" : "false");
|
||||
}
|
||||
|
||||
long CreateClusterV2Request::getResourceOwnerId()const
|
||||
@@ -44,7 +46,7 @@ long CreateClusterV2Request::getResourceOwnerId()const
|
||||
void CreateClusterV2Request::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getLogPath()const
|
||||
@@ -55,7 +57,7 @@ std::string CreateClusterV2Request::getLogPath()const
|
||||
void CreateClusterV2Request::setLogPath(const std::string& logPath)
|
||||
{
|
||||
logPath_ = logPath;
|
||||
setCoreParameter("LogPath", logPath);
|
||||
setParameter("LogPath", logPath);
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getMasterPwd()const
|
||||
@@ -66,7 +68,7 @@ std::string CreateClusterV2Request::getMasterPwd()const
|
||||
void CreateClusterV2Request::setMasterPwd(const std::string& masterPwd)
|
||||
{
|
||||
masterPwd_ = masterPwd;
|
||||
setCoreParameter("MasterPwd", masterPwd);
|
||||
setParameter("MasterPwd", masterPwd);
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getConfigurations()const
|
||||
@@ -77,7 +79,7 @@ std::string CreateClusterV2Request::getConfigurations()const
|
||||
void CreateClusterV2Request::setConfigurations(const std::string& configurations)
|
||||
{
|
||||
configurations_ = configurations;
|
||||
setCoreParameter("Configurations", configurations);
|
||||
setParameter("Configurations", configurations);
|
||||
}
|
||||
|
||||
bool CreateClusterV2Request::getSshEnable()const
|
||||
@@ -88,7 +90,7 @@ bool CreateClusterV2Request::getSshEnable()const
|
||||
void CreateClusterV2Request::setSshEnable(bool sshEnable)
|
||||
{
|
||||
sshEnable_ = sshEnable;
|
||||
setCoreParameter("SshEnable", sshEnable ? "true" : "false");
|
||||
setParameter("SshEnable", sshEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getKeyPairName()const
|
||||
@@ -99,7 +101,7 @@ std::string CreateClusterV2Request::getKeyPairName()const
|
||||
void CreateClusterV2Request::setKeyPairName(const std::string& keyPairName)
|
||||
{
|
||||
keyPairName_ = keyPairName;
|
||||
setCoreParameter("KeyPairName", keyPairName);
|
||||
setParameter("KeyPairName", keyPairName);
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getMetaStoreType()const
|
||||
@@ -110,7 +112,7 @@ std::string CreateClusterV2Request::getMetaStoreType()const
|
||||
void CreateClusterV2Request::setMetaStoreType(const std::string& metaStoreType)
|
||||
{
|
||||
metaStoreType_ = metaStoreType;
|
||||
setCoreParameter("MetaStoreType", metaStoreType);
|
||||
setParameter("MetaStoreType", metaStoreType);
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getSecurityGroupName()const
|
||||
@@ -121,7 +123,7 @@ std::string CreateClusterV2Request::getSecurityGroupName()const
|
||||
void CreateClusterV2Request::setSecurityGroupName(const std::string& securityGroupName)
|
||||
{
|
||||
securityGroupName_ = securityGroupName;
|
||||
setCoreParameter("SecurityGroupName", securityGroupName);
|
||||
setParameter("SecurityGroupName", securityGroupName);
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getMachineType()const
|
||||
@@ -132,7 +134,7 @@ std::string CreateClusterV2Request::getMachineType()const
|
||||
void CreateClusterV2Request::setMachineType(const std::string& machineType)
|
||||
{
|
||||
machineType_ = machineType;
|
||||
setCoreParameter("MachineType", machineType);
|
||||
setParameter("MachineType", machineType);
|
||||
}
|
||||
|
||||
std::vector<CreateClusterV2Request::HostComponentInfo> CreateClusterV2Request::getHostComponentInfo()const
|
||||
@@ -143,16 +145,28 @@ std::vector<CreateClusterV2Request::HostComponentInfo> CreateClusterV2Request::g
|
||||
void CreateClusterV2Request::setHostComponentInfo(const std::vector<HostComponentInfo>& hostComponentInfo)
|
||||
{
|
||||
hostComponentInfo_ = hostComponentInfo;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= hostComponentInfo.size(); i++) {
|
||||
auto obj = hostComponentInfo.at(i);
|
||||
std::string str ="HostComponentInfo."+ std::to_string(i);
|
||||
setCoreParameter(str + ".HostName", obj.hostName);
|
||||
for(int i = 0; i!= obj.componentNameList.size(); i++)
|
||||
setCoreParameter(str + ".ComponentNameList."+ std::to_string(i), obj.componentNameList.at(i));
|
||||
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_;
|
||||
@@ -161,13 +175,12 @@ std::vector<CreateClusterV2Request::BootstrapAction> CreateClusterV2Request::get
|
||||
void CreateClusterV2Request::setBootstrapAction(const std::vector<BootstrapAction>& bootstrapAction)
|
||||
{
|
||||
bootstrapAction_ = bootstrapAction;
|
||||
bootstrapAction_ = bootstrapAction;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= bootstrapAction.size(); i++) {
|
||||
auto obj = bootstrapAction.at(i);
|
||||
std::string str ="BootstrapAction."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Path", obj.path);
|
||||
setCoreParameter(str + ".Arg", obj.arg);
|
||||
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 + ".Arg", bootstrapActionObj.arg);
|
||||
setParameter(bootstrapActionObjStr + ".Name", bootstrapActionObj.name);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -179,7 +192,7 @@ std::string CreateClusterV2Request::getMetaStoreConf()const
|
||||
void CreateClusterV2Request::setMetaStoreConf(const std::string& metaStoreConf)
|
||||
{
|
||||
metaStoreConf_ = metaStoreConf;
|
||||
metaStoreConf_ = metaStoreConf;
|
||||
setParameter("MetaStoreConf", metaStoreConf);
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getEmrVer()const
|
||||
@@ -190,7 +203,23 @@ std::string CreateClusterV2Request::getEmrVer()const
|
||||
void CreateClusterV2Request::setEmrVer(const std::string& emrVer)
|
||||
{
|
||||
emrVer_ = 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
|
||||
@@ -201,7 +230,7 @@ std::string CreateClusterV2Request::getAuthorizeContent()const
|
||||
void CreateClusterV2Request::setAuthorizeContent(const std::string& authorizeContent)
|
||||
{
|
||||
authorizeContent_ = authorizeContent;
|
||||
authorizeContent_ = authorizeContent;
|
||||
setParameter("AuthorizeContent", authorizeContent);
|
||||
}
|
||||
|
||||
bool CreateClusterV2Request::getIsOpenPublicIp()const
|
||||
@@ -212,7 +241,7 @@ bool CreateClusterV2Request::getIsOpenPublicIp()const
|
||||
void CreateClusterV2Request::setIsOpenPublicIp(bool isOpenPublicIp)
|
||||
{
|
||||
isOpenPublicIp_ = isOpenPublicIp;
|
||||
isOpenPublicIp_ = isOpenPublicIp;
|
||||
setParameter("IsOpenPublicIp", isOpenPublicIp ? "true" : "false");
|
||||
}
|
||||
|
||||
int CreateClusterV2Request::getPeriod()const
|
||||
@@ -223,7 +252,7 @@ int CreateClusterV2Request::getPeriod()const
|
||||
void CreateClusterV2Request::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
period_ = period;
|
||||
setParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getInstanceGeneration()const
|
||||
@@ -234,7 +263,7 @@ std::string CreateClusterV2Request::getInstanceGeneration()const
|
||||
void CreateClusterV2Request::setInstanceGeneration(const std::string& instanceGeneration)
|
||||
{
|
||||
instanceGeneration_ = instanceGeneration;
|
||||
instanceGeneration_ = instanceGeneration;
|
||||
setParameter("InstanceGeneration", instanceGeneration);
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getVSwitchId()const
|
||||
@@ -245,7 +274,7 @@ std::string CreateClusterV2Request::getVSwitchId()const
|
||||
void CreateClusterV2Request::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getClusterType()const
|
||||
@@ -256,7 +285,7 @@ std::string CreateClusterV2Request::getClusterType()const
|
||||
void CreateClusterV2Request::setClusterType(const std::string& clusterType)
|
||||
{
|
||||
clusterType_ = clusterType;
|
||||
clusterType_ = clusterType;
|
||||
setParameter("ClusterType", clusterType);
|
||||
}
|
||||
|
||||
bool CreateClusterV2Request::getAutoRenew()const
|
||||
@@ -267,7 +296,7 @@ bool CreateClusterV2Request::getAutoRenew()const
|
||||
void CreateClusterV2Request::setAutoRenew(bool autoRenew)
|
||||
{
|
||||
autoRenew_ = autoRenew;
|
||||
autoRenew_ = autoRenew;
|
||||
setParameter("AutoRenew", autoRenew ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateClusterV2Request::getOptionSoftWareList()const
|
||||
@@ -278,8 +307,9 @@ std::vector<std::string> CreateClusterV2Request::getOptionSoftWareList()const
|
||||
void CreateClusterV2Request::setOptionSoftWareList(const std::vector<std::string>& optionSoftWareList)
|
||||
{
|
||||
optionSoftWareList_ = optionSoftWareList;
|
||||
optionSoftWareList_ = optionSoftWareList;
|
||||
for(int i = 0; i!= optionSoftWareList.size(); i++)
|
||||
for(int dep1 = 0; dep1!= optionSoftWareList.size(); dep1++) {
|
||||
setParameter("OptionSoftWareList."+ std::to_string(dep1), optionSoftWareList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getNetType()const
|
||||
@@ -290,7 +320,7 @@ std::string CreateClusterV2Request::getNetType()const
|
||||
void CreateClusterV2Request::setNetType(const std::string& netType)
|
||||
{
|
||||
netType_ = netType;
|
||||
netType_ = netType;
|
||||
setParameter("NetType", netType);
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getName()const
|
||||
@@ -301,7 +331,7 @@ std::string CreateClusterV2Request::getName()const
|
||||
void CreateClusterV2Request::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getZoneId()const
|
||||
@@ -312,7 +342,7 @@ std::string CreateClusterV2Request::getZoneId()const
|
||||
void CreateClusterV2Request::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
bool CreateClusterV2Request::getUseCustomHiveMetaDB()const
|
||||
@@ -323,7 +353,7 @@ bool CreateClusterV2Request::getUseCustomHiveMetaDB()const
|
||||
void CreateClusterV2Request::setUseCustomHiveMetaDB(bool useCustomHiveMetaDB)
|
||||
{
|
||||
useCustomHiveMetaDB_ = useCustomHiveMetaDB;
|
||||
useCustomHiveMetaDB_ = useCustomHiveMetaDB;
|
||||
setParameter("UseCustomHiveMetaDB", useCustomHiveMetaDB ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateClusterV2Request::getInitCustomHiveMetaDB()const
|
||||
@@ -334,7 +364,7 @@ bool CreateClusterV2Request::getInitCustomHiveMetaDB()const
|
||||
void CreateClusterV2Request::setInitCustomHiveMetaDB(bool initCustomHiveMetaDB)
|
||||
{
|
||||
initCustomHiveMetaDB_ = initCustomHiveMetaDB;
|
||||
initCustomHiveMetaDB_ = initCustomHiveMetaDB;
|
||||
setParameter("InitCustomHiveMetaDB", initCustomHiveMetaDB ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateClusterV2Request::getIoOptimized()const
|
||||
@@ -345,7 +375,7 @@ bool CreateClusterV2Request::getIoOptimized()const
|
||||
void CreateClusterV2Request::setIoOptimized(bool ioOptimized)
|
||||
{
|
||||
ioOptimized_ = ioOptimized;
|
||||
ioOptimized_ = ioOptimized;
|
||||
setParameter("IoOptimized", ioOptimized ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getSecurityGroupId()const
|
||||
@@ -356,7 +386,7 @@ std::string CreateClusterV2Request::getSecurityGroupId()const
|
||||
void CreateClusterV2Request::setSecurityGroupId(const std::string& securityGroupId)
|
||||
{
|
||||
securityGroupId_ = securityGroupId;
|
||||
securityGroupId_ = securityGroupId;
|
||||
setParameter("SecurityGroupId", securityGroupId);
|
||||
}
|
||||
|
||||
bool CreateClusterV2Request::getEasEnable()const
|
||||
@@ -367,7 +397,7 @@ bool CreateClusterV2Request::getEasEnable()const
|
||||
void CreateClusterV2Request::setEasEnable(bool easEnable)
|
||||
{
|
||||
easEnable_ = easEnable;
|
||||
easEnable_ = easEnable;
|
||||
setParameter("EasEnable", easEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getDepositType()const
|
||||
@@ -378,7 +408,7 @@ std::string CreateClusterV2Request::getDepositType()const
|
||||
void CreateClusterV2Request::setDepositType(const std::string& depositType)
|
||||
{
|
||||
depositType_ = depositType;
|
||||
depositType_ = depositType;
|
||||
setParameter("DepositType", depositType);
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getAccessKeyId()const
|
||||
@@ -389,7 +419,7 @@ std::string CreateClusterV2Request::getAccessKeyId()const
|
||||
void CreateClusterV2Request::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getRegionId()const
|
||||
@@ -400,7 +430,7 @@ std::string CreateClusterV2Request::getRegionId()const
|
||||
void CreateClusterV2Request::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool CreateClusterV2Request::getUseLocalMetaDb()const
|
||||
@@ -411,7 +441,7 @@ bool CreateClusterV2Request::getUseLocalMetaDb()const
|
||||
void CreateClusterV2Request::setUseLocalMetaDb(bool useLocalMetaDb)
|
||||
{
|
||||
useLocalMetaDb_ = useLocalMetaDb;
|
||||
useLocalMetaDb_ = useLocalMetaDb;
|
||||
setParameter("UseLocalMetaDb", useLocalMetaDb ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<CreateClusterV2Request::UserInfo> CreateClusterV2Request::getUserInfo()const
|
||||
@@ -422,13 +452,12 @@ std::vector<CreateClusterV2Request::UserInfo> CreateClusterV2Request::getUserInf
|
||||
void CreateClusterV2Request::setUserInfo(const std::vector<UserInfo>& userInfo)
|
||||
{
|
||||
userInfo_ = userInfo;
|
||||
userInfo_ = userInfo;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= userInfo.size(); i++) {
|
||||
auto obj = userInfo.at(i);
|
||||
std::string str ="UserInfo."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Password", obj.password);
|
||||
setCoreParameter(str + ".UserId", obj.userId);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -440,7 +469,7 @@ std::string CreateClusterV2Request::getUserDefinedEmrEcsRole()const
|
||||
void CreateClusterV2Request::setUserDefinedEmrEcsRole(const std::string& userDefinedEmrEcsRole)
|
||||
{
|
||||
userDefinedEmrEcsRole_ = userDefinedEmrEcsRole;
|
||||
userDefinedEmrEcsRole_ = userDefinedEmrEcsRole;
|
||||
setParameter("UserDefinedEmrEcsRole", userDefinedEmrEcsRole);
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getWhiteListType()const
|
||||
@@ -451,7 +480,7 @@ std::string CreateClusterV2Request::getWhiteListType()const
|
||||
void CreateClusterV2Request::setWhiteListType(const std::string& whiteListType)
|
||||
{
|
||||
whiteListType_ = whiteListType;
|
||||
whiteListType_ = whiteListType;
|
||||
setParameter("WhiteListType", whiteListType);
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getRelatedClusterId()const
|
||||
@@ -462,7 +491,7 @@ std::string CreateClusterV2Request::getRelatedClusterId()const
|
||||
void CreateClusterV2Request::setRelatedClusterId(const std::string& relatedClusterId)
|
||||
{
|
||||
relatedClusterId_ = relatedClusterId;
|
||||
relatedClusterId_ = relatedClusterId;
|
||||
setParameter("RelatedClusterId", relatedClusterId);
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getVpcId()const
|
||||
@@ -473,7 +502,7 @@ std::string CreateClusterV2Request::getVpcId()const
|
||||
void CreateClusterV2Request::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::vector<CreateClusterV2Request::HostGroup> CreateClusterV2Request::getHostGroup()const
|
||||
@@ -484,28 +513,27 @@ std::vector<CreateClusterV2Request::HostGroup> CreateClusterV2Request::getHostGr
|
||||
void CreateClusterV2Request::setHostGroup(const std::vector<HostGroup>& hostGroup)
|
||||
{
|
||||
hostGroup_ = hostGroup;
|
||||
hostGroup_ = hostGroup;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= hostGroup.size(); i++) {
|
||||
auto obj = hostGroup.at(i);
|
||||
std::string str ="HostGroup."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Period", std::to_string(obj.period));
|
||||
setCoreParameter(str + ".SysDiskCapacity", std::to_string(obj.sysDiskCapacity));
|
||||
setCoreParameter(str + ".DiskCapacity", std::to_string(obj.diskCapacity));
|
||||
setCoreParameter(str + ".SysDiskType", obj.sysDiskType);
|
||||
setCoreParameter(str + ".ClusterId", obj.clusterId);
|
||||
setCoreParameter(str + ".DiskType", obj.diskType);
|
||||
setCoreParameter(str + ".HostGroupName", obj.hostGroupName);
|
||||
setCoreParameter(str + ".VSwitchId", obj.vSwitchId);
|
||||
setCoreParameter(str + ".DiskCount", std::to_string(obj.diskCount));
|
||||
setCoreParameter(str + ".AutoRenew", obj.autoRenew ? "true" : "false");
|
||||
setCoreParameter(str + ".GpuDriver", obj.gpuDriver);
|
||||
setCoreParameter(str + ".HostGroupId", obj.hostGroupId);
|
||||
setCoreParameter(str + ".NodeCount", std::to_string(obj.nodeCount));
|
||||
setCoreParameter(str + ".InstanceType", obj.instanceType);
|
||||
setCoreParameter(str + ".Comment", obj.comment);
|
||||
setCoreParameter(str + ".ChargeType", obj.chargeType);
|
||||
setCoreParameter(str + ".CreateType", obj.createType);
|
||||
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 + ".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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -517,7 +545,23 @@ std::string CreateClusterV2Request::getChargeType()const
|
||||
void CreateClusterV2Request::setChargeType(const std::string& chargeType)
|
||||
{
|
||||
chargeType_ = 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
|
||||
@@ -528,16 +572,15 @@ std::vector<CreateClusterV2Request::Config> CreateClusterV2Request::getConfig()c
|
||||
void CreateClusterV2Request::setConfig(const std::vector<Config>& config)
|
||||
{
|
||||
config_ = config;
|
||||
config_ = config;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= config.size(); i++) {
|
||||
auto obj = config.at(i);
|
||||
std::string str ="Config."+ std::to_string(i);
|
||||
setCoreParameter(str + ".ConfigKey", obj.configKey);
|
||||
setCoreParameter(str + ".FileName", obj.fileName);
|
||||
setCoreParameter(str + ".Encrypt", obj.encrypt);
|
||||
setCoreParameter(str + ".Replace", obj.replace);
|
||||
setCoreParameter(str + ".ConfigValue", obj.configValue);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -549,6 +592,6 @@ bool CreateClusterV2Request::getHighAvailabilityEnable()const
|
||||
void CreateClusterV2Request::setHighAvailabilityEnable(bool highAvailabilityEnable)
|
||||
{
|
||||
highAvailabilityEnable_ = highAvailabilityEnable;
|
||||
highAvailabilityEnable_ = highAvailabilityEnable;
|
||||
setParameter("HighAvailabilityEnable", highAvailabilityEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::CreateClusterWithTemplateRequest;
|
||||
|
||||
CreateClusterWithTemplateRequest::CreateClusterWithTemplateRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateClusterWithTemplate")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateClusterWithTemplateRequest::~CreateClusterWithTemplateRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long CreateClusterWithTemplateRequest::getResourceOwnerId()const
|
||||
void CreateClusterWithTemplateRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateClusterWithTemplateRequest::getUniqueTag()const
|
||||
@@ -44,7 +46,7 @@ std::string CreateClusterWithTemplateRequest::getUniqueTag()const
|
||||
void CreateClusterWithTemplateRequest::setUniqueTag(const std::string& uniqueTag)
|
||||
{
|
||||
uniqueTag_ = uniqueTag;
|
||||
setCoreParameter("UniqueTag", uniqueTag);
|
||||
setParameter("UniqueTag", uniqueTag);
|
||||
}
|
||||
|
||||
std::string CreateClusterWithTemplateRequest::getClusterName()const
|
||||
@@ -55,7 +57,7 @@ std::string CreateClusterWithTemplateRequest::getClusterName()const
|
||||
void CreateClusterWithTemplateRequest::setClusterName(const std::string& clusterName)
|
||||
{
|
||||
clusterName_ = clusterName;
|
||||
setCoreParameter("ClusterName", clusterName);
|
||||
setParameter("ClusterName", clusterName);
|
||||
}
|
||||
|
||||
std::string CreateClusterWithTemplateRequest::getAccessKeyId()const
|
||||
@@ -66,7 +68,7 @@ std::string CreateClusterWithTemplateRequest::getAccessKeyId()const
|
||||
void CreateClusterWithTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateClusterWithTemplateRequest::getTemplateBizId()const
|
||||
@@ -77,6 +79,6 @@ std::string CreateClusterWithTemplateRequest::getTemplateBizId()const
|
||||
void CreateClusterWithTemplateRequest::setTemplateBizId(const std::string& templateBizId)
|
||||
{
|
||||
templateBizId_ = templateBizId;
|
||||
setCoreParameter("TemplateBizId", templateBizId);
|
||||
setParameter("TemplateBizId", templateBizId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::CreateDataSourceRequest;
|
||||
|
||||
CreateDataSourceRequest::CreateDataSourceRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateDataSource")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDataSourceRequest::~CreateDataSourceRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long CreateDataSourceRequest::getResourceOwnerId()const
|
||||
void CreateDataSourceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getNavParentId()const
|
||||
@@ -44,7 +46,7 @@ std::string CreateDataSourceRequest::getNavParentId()const
|
||||
void CreateDataSourceRequest::setNavParentId(const std::string& navParentId)
|
||||
{
|
||||
navParentId_ = navParentId;
|
||||
setCoreParameter("NavParentId", navParentId);
|
||||
setParameter("NavParentId", navParentId);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getDescription()const
|
||||
@@ -55,7 +57,7 @@ std::string CreateDataSourceRequest::getDescription()const
|
||||
void CreateDataSourceRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getConf()const
|
||||
@@ -66,7 +68,7 @@ std::string CreateDataSourceRequest::getConf()const
|
||||
void CreateDataSourceRequest::setConf(const std::string& conf)
|
||||
{
|
||||
conf_ = conf;
|
||||
setCoreParameter("Conf", conf);
|
||||
setParameter("Conf", conf);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getClusterId()const
|
||||
@@ -77,7 +79,7 @@ std::string CreateDataSourceRequest::getClusterId()const
|
||||
void CreateDataSourceRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getAccessKeyId()const
|
||||
@@ -88,7 +90,7 @@ std::string CreateDataSourceRequest::getAccessKeyId()const
|
||||
void CreateDataSourceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getRegionId()const
|
||||
@@ -99,7 +101,7 @@ std::string CreateDataSourceRequest::getRegionId()const
|
||||
void CreateDataSourceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getName()const
|
||||
@@ -110,7 +112,7 @@ std::string CreateDataSourceRequest::getName()const
|
||||
void CreateDataSourceRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getSourceType()const
|
||||
@@ -121,6 +123,6 @@ std::string CreateDataSourceRequest::getSourceType()const
|
||||
void CreateDataSourceRequest::setSourceType(const std::string& sourceType)
|
||||
{
|
||||
sourceType_ = sourceType;
|
||||
setCoreParameter("SourceType", sourceType);
|
||||
setParameter("SourceType", sourceType);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::CreateExecutionPlanRequest;
|
||||
|
||||
CreateExecutionPlanRequest::CreateExecutionPlanRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateExecutionPlan")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateExecutionPlanRequest::~CreateExecutionPlanRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long CreateExecutionPlanRequest::getResourceOwnerId()const
|
||||
void CreateExecutionPlanRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int CreateExecutionPlanRequest::getTimeInterval()const
|
||||
@@ -44,7 +46,7 @@ int CreateExecutionPlanRequest::getTimeInterval()const
|
||||
void CreateExecutionPlanRequest::setTimeInterval(int timeInterval)
|
||||
{
|
||||
timeInterval_ = timeInterval;
|
||||
setCoreParameter("TimeInterval", std::to_string(timeInterval));
|
||||
setParameter("TimeInterval", std::to_string(timeInterval));
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getLogPath()const
|
||||
@@ -55,7 +57,7 @@ std::string CreateExecutionPlanRequest::getLogPath()const
|
||||
void CreateExecutionPlanRequest::setLogPath(const std::string& logPath)
|
||||
{
|
||||
logPath_ = logPath;
|
||||
setCoreParameter("LogPath", logPath);
|
||||
setParameter("LogPath", logPath);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getClusterName()const
|
||||
@@ -66,7 +68,7 @@ std::string CreateExecutionPlanRequest::getClusterName()const
|
||||
void CreateExecutionPlanRequest::setClusterName(const std::string& clusterName)
|
||||
{
|
||||
clusterName_ = clusterName;
|
||||
setCoreParameter("ClusterName", clusterName);
|
||||
setParameter("ClusterName", clusterName);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getConfigurations()const
|
||||
@@ -77,7 +79,7 @@ std::string CreateExecutionPlanRequest::getConfigurations()const
|
||||
void CreateExecutionPlanRequest::setConfigurations(const std::string& configurations)
|
||||
{
|
||||
configurations_ = configurations;
|
||||
setCoreParameter("Configurations", configurations);
|
||||
setParameter("Configurations", configurations);
|
||||
}
|
||||
|
||||
bool CreateExecutionPlanRequest::getCreateClusterOnDemand()const
|
||||
@@ -88,7 +90,7 @@ bool CreateExecutionPlanRequest::getCreateClusterOnDemand()const
|
||||
void CreateExecutionPlanRequest::setCreateClusterOnDemand(bool createClusterOnDemand)
|
||||
{
|
||||
createClusterOnDemand_ = createClusterOnDemand;
|
||||
setCoreParameter("CreateClusterOnDemand", createClusterOnDemand ? "true" : "false");
|
||||
setParameter("CreateClusterOnDemand", createClusterOnDemand ? "true" : "false");
|
||||
}
|
||||
|
||||
long CreateExecutionPlanRequest::getStartTime()const
|
||||
@@ -99,7 +101,7 @@ long CreateExecutionPlanRequest::getStartTime()const
|
||||
void CreateExecutionPlanRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::vector<CreateExecutionPlanRequest::BootstrapAction> CreateExecutionPlanRequest::getBootstrapAction()const
|
||||
@@ -110,13 +112,12 @@ std::vector<CreateExecutionPlanRequest::BootstrapAction> CreateExecutionPlanRequ
|
||||
void CreateExecutionPlanRequest::setBootstrapAction(const std::vector<BootstrapAction>& bootstrapAction)
|
||||
{
|
||||
bootstrapAction_ = bootstrapAction;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= bootstrapAction.size(); i++) {
|
||||
auto obj = bootstrapAction.at(i);
|
||||
std::string str ="BootstrapAction."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Path", obj.path);
|
||||
setCoreParameter(str + ".Arg", obj.arg);
|
||||
setCoreParameter(str + ".Name", obj.name);
|
||||
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 + ".Arg", bootstrapActionObj.arg);
|
||||
setParameter(bootstrapActionObjStr + ".Name", bootstrapActionObj.name);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -128,7 +129,7 @@ std::string CreateExecutionPlanRequest::getEmrVer()const
|
||||
void CreateExecutionPlanRequest::setEmrVer(const std::string& emrVer)
|
||||
{
|
||||
emrVer_ = emrVer;
|
||||
setCoreParameter("EmrVer", emrVer);
|
||||
setParameter("EmrVer", emrVer);
|
||||
}
|
||||
|
||||
bool CreateExecutionPlanRequest::getIsOpenPublicIp()const
|
||||
@@ -139,7 +140,7 @@ bool CreateExecutionPlanRequest::getIsOpenPublicIp()const
|
||||
void CreateExecutionPlanRequest::setIsOpenPublicIp(bool isOpenPublicIp)
|
||||
{
|
||||
isOpenPublicIp_ = isOpenPublicIp;
|
||||
setCoreParameter("IsOpenPublicIp", isOpenPublicIp ? "true" : "false");
|
||||
setParameter("IsOpenPublicIp", isOpenPublicIp ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getInstanceGeneration()const
|
||||
@@ -150,7 +151,7 @@ std::string CreateExecutionPlanRequest::getInstanceGeneration()const
|
||||
void CreateExecutionPlanRequest::setInstanceGeneration(const std::string& instanceGeneration)
|
||||
{
|
||||
instanceGeneration_ = instanceGeneration;
|
||||
setCoreParameter("InstanceGeneration", instanceGeneration);
|
||||
setParameter("InstanceGeneration", instanceGeneration);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getClusterType()const
|
||||
@@ -161,7 +162,7 @@ std::string CreateExecutionPlanRequest::getClusterType()const
|
||||
void CreateExecutionPlanRequest::setClusterType(const std::string& clusterType)
|
||||
{
|
||||
clusterType_ = clusterType;
|
||||
setCoreParameter("ClusterType", clusterType);
|
||||
setParameter("ClusterType", clusterType);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getVSwitchId()const
|
||||
@@ -172,7 +173,7 @@ std::string CreateExecutionPlanRequest::getVSwitchId()const
|
||||
void CreateExecutionPlanRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setCoreParameter("VSwitchId", vSwitchId);
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateExecutionPlanRequest::getOptionSoftWareList()const
|
||||
@@ -183,8 +184,9 @@ std::vector<std::string> CreateExecutionPlanRequest::getOptionSoftWareList()cons
|
||||
void CreateExecutionPlanRequest::setOptionSoftWareList(const std::vector<std::string>& optionSoftWareList)
|
||||
{
|
||||
optionSoftWareList_ = optionSoftWareList;
|
||||
for(int i = 0; i!= optionSoftWareList.size(); i++)
|
||||
setCoreParameter("OptionSoftWareList."+ std::to_string(i), optionSoftWareList.at(i));
|
||||
for(int dep1 = 0; dep1!= optionSoftWareList.size(); dep1++) {
|
||||
setParameter("OptionSoftWareList."+ std::to_string(dep1), optionSoftWareList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getNetType()const
|
||||
@@ -195,7 +197,7 @@ std::string CreateExecutionPlanRequest::getNetType()const
|
||||
void CreateExecutionPlanRequest::setNetType(const std::string& netType)
|
||||
{
|
||||
netType_ = netType;
|
||||
setCoreParameter("NetType", netType);
|
||||
setParameter("NetType", netType);
|
||||
}
|
||||
|
||||
std::vector<CreateExecutionPlanRequest::EcsOrder> CreateExecutionPlanRequest::getEcsOrder()const
|
||||
@@ -206,17 +208,16 @@ std::vector<CreateExecutionPlanRequest::EcsOrder> CreateExecutionPlanRequest::ge
|
||||
void CreateExecutionPlanRequest::setEcsOrder(const std::vector<EcsOrder>& ecsOrder)
|
||||
{
|
||||
ecsOrder_ = ecsOrder;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= ecsOrder.size(); i++) {
|
||||
auto obj = ecsOrder.at(i);
|
||||
std::string str ="EcsOrder."+ std::to_string(i);
|
||||
setCoreParameter(str + ".NodeType", obj.nodeType);
|
||||
setCoreParameter(str + ".DiskCount", std::to_string(obj.diskCount));
|
||||
setCoreParameter(str + ".NodeCount", std::to_string(obj.nodeCount));
|
||||
setCoreParameter(str + ".DiskCapacity", std::to_string(obj.diskCapacity));
|
||||
setCoreParameter(str + ".Index", std::to_string(obj.index));
|
||||
setCoreParameter(str + ".InstanceType", obj.instanceType);
|
||||
setCoreParameter(str + ".DiskType", obj.diskType);
|
||||
for(int dep1 = 0; dep1!= ecsOrder.size(); dep1++) {
|
||||
auto ecsOrderObj = ecsOrder.at(dep1);
|
||||
std::string ecsOrderObjStr = "EcsOrder." + std::to_string(dep1 + 1);
|
||||
setParameter(ecsOrderObjStr + ".NodeType", ecsOrderObj.nodeType);
|
||||
setParameter(ecsOrderObjStr + ".DiskCount", std::to_string(ecsOrderObj.diskCount));
|
||||
setParameter(ecsOrderObjStr + ".NodeCount", std::to_string(ecsOrderObj.nodeCount));
|
||||
setParameter(ecsOrderObjStr + ".DiskCapacity", std::to_string(ecsOrderObj.diskCapacity));
|
||||
setParameter(ecsOrderObjStr + ".Index", std::to_string(ecsOrderObj.index));
|
||||
setParameter(ecsOrderObjStr + ".InstanceType", ecsOrderObj.instanceType);
|
||||
setParameter(ecsOrderObjStr + ".DiskType", ecsOrderObj.diskType);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -228,7 +229,7 @@ std::string CreateExecutionPlanRequest::getName()const
|
||||
void CreateExecutionPlanRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getZoneId()const
|
||||
@@ -239,7 +240,7 @@ std::string CreateExecutionPlanRequest::getZoneId()const
|
||||
void CreateExecutionPlanRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setCoreParameter("ZoneId", zoneId);
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
bool CreateExecutionPlanRequest::getUseCustomHiveMetaDB()const
|
||||
@@ -250,7 +251,7 @@ bool CreateExecutionPlanRequest::getUseCustomHiveMetaDB()const
|
||||
void CreateExecutionPlanRequest::setUseCustomHiveMetaDB(bool useCustomHiveMetaDB)
|
||||
{
|
||||
useCustomHiveMetaDB_ = useCustomHiveMetaDB;
|
||||
setCoreParameter("UseCustomHiveMetaDB", useCustomHiveMetaDB ? "true" : "false");
|
||||
setParameter("UseCustomHiveMetaDB", useCustomHiveMetaDB ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateExecutionPlanRequest::getInitCustomHiveMetaDB()const
|
||||
@@ -261,7 +262,7 @@ bool CreateExecutionPlanRequest::getInitCustomHiveMetaDB()const
|
||||
void CreateExecutionPlanRequest::setInitCustomHiveMetaDB(bool initCustomHiveMetaDB)
|
||||
{
|
||||
initCustomHiveMetaDB_ = initCustomHiveMetaDB;
|
||||
setCoreParameter("InitCustomHiveMetaDB", initCustomHiveMetaDB ? "true" : "false");
|
||||
setParameter("InitCustomHiveMetaDB", initCustomHiveMetaDB ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateExecutionPlanRequest::getIoOptimized()const
|
||||
@@ -272,7 +273,7 @@ bool CreateExecutionPlanRequest::getIoOptimized()const
|
||||
void CreateExecutionPlanRequest::setIoOptimized(bool ioOptimized)
|
||||
{
|
||||
ioOptimized_ = ioOptimized;
|
||||
setCoreParameter("IoOptimized", ioOptimized ? "true" : "false");
|
||||
setParameter("IoOptimized", ioOptimized ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getSecurityGroupId()const
|
||||
@@ -283,7 +284,7 @@ std::string CreateExecutionPlanRequest::getSecurityGroupId()const
|
||||
void CreateExecutionPlanRequest::setSecurityGroupId(const std::string& securityGroupId)
|
||||
{
|
||||
securityGroupId_ = securityGroupId;
|
||||
setCoreParameter("SecurityGroupId", securityGroupId);
|
||||
setParameter("SecurityGroupId", securityGroupId);
|
||||
}
|
||||
|
||||
bool CreateExecutionPlanRequest::getEasEnable()const
|
||||
@@ -294,7 +295,7 @@ bool CreateExecutionPlanRequest::getEasEnable()const
|
||||
void CreateExecutionPlanRequest::setEasEnable(bool easEnable)
|
||||
{
|
||||
easEnable_ = easEnable;
|
||||
setCoreParameter("EasEnable", easEnable ? "true" : "false");
|
||||
setParameter("EasEnable", easEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateExecutionPlanRequest::getJobIdList()const
|
||||
@@ -305,8 +306,9 @@ std::vector<std::string> CreateExecutionPlanRequest::getJobIdList()const
|
||||
void CreateExecutionPlanRequest::setJobIdList(const std::vector<std::string>& jobIdList)
|
||||
{
|
||||
jobIdList_ = jobIdList;
|
||||
for(int i = 0; i!= jobIdList.size(); i++)
|
||||
setCoreParameter("JobIdList."+ std::to_string(i), jobIdList.at(i));
|
||||
for(int dep1 = 0; dep1!= jobIdList.size(); dep1++) {
|
||||
setParameter("JobIdList."+ std::to_string(dep1), jobIdList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getAccessKeyId()const
|
||||
@@ -317,7 +319,7 @@ std::string CreateExecutionPlanRequest::getAccessKeyId()const
|
||||
void CreateExecutionPlanRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getDayOfMonth()const
|
||||
@@ -328,7 +330,7 @@ std::string CreateExecutionPlanRequest::getDayOfMonth()const
|
||||
void CreateExecutionPlanRequest::setDayOfMonth(const std::string& dayOfMonth)
|
||||
{
|
||||
dayOfMonth_ = dayOfMonth;
|
||||
setCoreParameter("DayOfMonth", dayOfMonth);
|
||||
setParameter("DayOfMonth", dayOfMonth);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getRegionId()const
|
||||
@@ -339,7 +341,7 @@ std::string CreateExecutionPlanRequest::getRegionId()const
|
||||
void CreateExecutionPlanRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool CreateExecutionPlanRequest::getUseLocalMetaDb()const
|
||||
@@ -350,7 +352,7 @@ bool CreateExecutionPlanRequest::getUseLocalMetaDb()const
|
||||
void CreateExecutionPlanRequest::setUseLocalMetaDb(bool useLocalMetaDb)
|
||||
{
|
||||
useLocalMetaDb_ = useLocalMetaDb;
|
||||
setCoreParameter("UseLocalMetaDb", useLocalMetaDb ? "true" : "false");
|
||||
setParameter("UseLocalMetaDb", useLocalMetaDb ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getUserDefinedEmrEcsRole()const
|
||||
@@ -361,7 +363,7 @@ std::string CreateExecutionPlanRequest::getUserDefinedEmrEcsRole()const
|
||||
void CreateExecutionPlanRequest::setUserDefinedEmrEcsRole(const std::string& userDefinedEmrEcsRole)
|
||||
{
|
||||
userDefinedEmrEcsRole_ = userDefinedEmrEcsRole;
|
||||
setCoreParameter("UserDefinedEmrEcsRole", userDefinedEmrEcsRole);
|
||||
setParameter("UserDefinedEmrEcsRole", userDefinedEmrEcsRole);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getClusterId()const
|
||||
@@ -372,7 +374,7 @@ std::string CreateExecutionPlanRequest::getClusterId()const
|
||||
void CreateExecutionPlanRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getTimeUnit()const
|
||||
@@ -383,7 +385,7 @@ std::string CreateExecutionPlanRequest::getTimeUnit()const
|
||||
void CreateExecutionPlanRequest::setTimeUnit(const std::string& timeUnit)
|
||||
{
|
||||
timeUnit_ = timeUnit;
|
||||
setCoreParameter("TimeUnit", timeUnit);
|
||||
setParameter("TimeUnit", timeUnit);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getVpcId()const
|
||||
@@ -394,7 +396,7 @@ std::string CreateExecutionPlanRequest::getVpcId()const
|
||||
void CreateExecutionPlanRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setCoreParameter("VpcId", vpcId);
|
||||
setParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getWorkflowDefinition()const
|
||||
@@ -405,7 +407,7 @@ std::string CreateExecutionPlanRequest::getWorkflowDefinition()const
|
||||
void CreateExecutionPlanRequest::setWorkflowDefinition(const std::string& workflowDefinition)
|
||||
{
|
||||
workflowDefinition_ = workflowDefinition;
|
||||
setCoreParameter("WorkflowDefinition", workflowDefinition);
|
||||
setParameter("WorkflowDefinition", workflowDefinition);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getDayOfWeek()const
|
||||
@@ -416,7 +418,7 @@ std::string CreateExecutionPlanRequest::getDayOfWeek()const
|
||||
void CreateExecutionPlanRequest::setDayOfWeek(const std::string& dayOfWeek)
|
||||
{
|
||||
dayOfWeek_ = dayOfWeek;
|
||||
setCoreParameter("DayOfWeek", dayOfWeek);
|
||||
setParameter("DayOfWeek", dayOfWeek);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getStrategy()const
|
||||
@@ -427,7 +429,7 @@ std::string CreateExecutionPlanRequest::getStrategy()const
|
||||
void CreateExecutionPlanRequest::setStrategy(const std::string& strategy)
|
||||
{
|
||||
strategy_ = strategy;
|
||||
setCoreParameter("Strategy", strategy);
|
||||
setParameter("Strategy", strategy);
|
||||
}
|
||||
|
||||
std::vector<CreateExecutionPlanRequest::Config> CreateExecutionPlanRequest::getConfig()const
|
||||
@@ -438,16 +440,15 @@ std::vector<CreateExecutionPlanRequest::Config> CreateExecutionPlanRequest::getC
|
||||
void CreateExecutionPlanRequest::setConfig(const std::vector<Config>& config)
|
||||
{
|
||||
config_ = config;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= config.size(); i++) {
|
||||
auto obj = config.at(i);
|
||||
std::string str ="Config."+ std::to_string(i);
|
||||
setCoreParameter(str + ".ConfigKey", obj.configKey);
|
||||
setCoreParameter(str + ".FileName", obj.fileName);
|
||||
setCoreParameter(str + ".Encrypt", obj.encrypt);
|
||||
setCoreParameter(str + ".Replace", obj.replace);
|
||||
setCoreParameter(str + ".ConfigValue", obj.configValue);
|
||||
setCoreParameter(str + ".ServiceName", obj.serviceName);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -459,7 +460,7 @@ bool CreateExecutionPlanRequest::getHighAvailabilityEnable()const
|
||||
void CreateExecutionPlanRequest::setHighAvailabilityEnable(bool highAvailabilityEnable)
|
||||
{
|
||||
highAvailabilityEnable_ = highAvailabilityEnable;
|
||||
setCoreParameter("HighAvailabilityEnable", highAvailabilityEnable ? "true" : "false");
|
||||
setParameter("HighAvailabilityEnable", highAvailabilityEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateExecutionPlanRequest::getLogEnable()const
|
||||
@@ -470,6 +471,6 @@ bool CreateExecutionPlanRequest::getLogEnable()const
|
||||
void CreateExecutionPlanRequest::setLogEnable(bool logEnable)
|
||||
{
|
||||
logEnable_ = logEnable;
|
||||
setCoreParameter("LogEnable", logEnable ? "true" : "false");
|
||||
setParameter("LogEnable", logEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::CreateFlowCategoryRequest;
|
||||
|
||||
CreateFlowCategoryRequest::CreateFlowCategoryRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateFlowCategory")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateFlowCategoryRequest::~CreateFlowCategoryRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string CreateFlowCategoryRequest::getType()const
|
||||
void CreateFlowCategoryRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setCoreParameter("Type", type);
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateFlowCategoryRequest::getParentId()const
|
||||
@@ -44,7 +46,7 @@ std::string CreateFlowCategoryRequest::getParentId()const
|
||||
void CreateFlowCategoryRequest::setParentId(const std::string& parentId)
|
||||
{
|
||||
parentId_ = parentId;
|
||||
setCoreParameter("ParentId", parentId);
|
||||
setParameter("ParentId", parentId);
|
||||
}
|
||||
|
||||
std::string CreateFlowCategoryRequest::getRegionId()const
|
||||
@@ -55,7 +57,7 @@ std::string CreateFlowCategoryRequest::getRegionId()const
|
||||
void CreateFlowCategoryRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateFlowCategoryRequest::getName()const
|
||||
@@ -66,7 +68,7 @@ std::string CreateFlowCategoryRequest::getName()const
|
||||
void CreateFlowCategoryRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateFlowCategoryRequest::getProjectId()const
|
||||
@@ -77,6 +79,6 @@ std::string CreateFlowCategoryRequest::getProjectId()const
|
||||
void CreateFlowCategoryRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
|
||||
84
emr/src/model/CreateFlowEditLockRequest.cc
Normal file
84
emr/src/model/CreateFlowEditLockRequest.cc
Normal 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/CreateFlowEditLockRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::CreateFlowEditLockRequest;
|
||||
|
||||
CreateFlowEditLockRequest::CreateFlowEditLockRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateFlowEditLock")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateFlowEditLockRequest::~CreateFlowEditLockRequest()
|
||||
{}
|
||||
|
||||
long CreateFlowEditLockRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateFlowEditLockRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateFlowEditLockRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateFlowEditLockRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateFlowEditLockRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateFlowEditLockRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateFlowEditLockRequest::getEntityId()const
|
||||
{
|
||||
return entityId_;
|
||||
}
|
||||
|
||||
void CreateFlowEditLockRequest::setEntityId(const std::string& entityId)
|
||||
{
|
||||
entityId_ = entityId;
|
||||
setParameter("EntityId", entityId);
|
||||
}
|
||||
|
||||
bool CreateFlowEditLockRequest::getForce()const
|
||||
{
|
||||
return force_;
|
||||
}
|
||||
|
||||
void CreateFlowEditLockRequest::setForce(bool force)
|
||||
{
|
||||
force_ = force;
|
||||
setParameter("Force", force ? "true" : "false");
|
||||
}
|
||||
|
||||
79
emr/src/model/CreateFlowEditLockResult.cc
Normal file
79
emr/src/model/CreateFlowEditLockResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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/CreateFlowEditLockResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
CreateFlowEditLockResult::CreateFlowEditLockResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateFlowEditLockResult::CreateFlowEditLockResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateFlowEditLockResult::~CreateFlowEditLockResult()
|
||||
{}
|
||||
|
||||
void CreateFlowEditLockResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["BizId"].isNull())
|
||||
bizId_ = value["BizId"].asString();
|
||||
if(!value["EntityId"].isNull())
|
||||
entityId_ = value["EntityId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["OwnerId"].isNull())
|
||||
ownerId_ = value["OwnerId"].asString();
|
||||
if(!value["UserId"].isNull())
|
||||
userId_ = value["UserId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateFlowEditLockResult::getEntityId()const
|
||||
{
|
||||
return entityId_;
|
||||
}
|
||||
|
||||
std::string CreateFlowEditLockResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string CreateFlowEditLockResult::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
std::string CreateFlowEditLockResult::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
std::string CreateFlowEditLockResult::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::CreateFlowForWebRequest;
|
||||
|
||||
CreateFlowForWebRequest::CreateFlowForWebRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateFlowForWeb")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateFlowForWebRequest::~CreateFlowForWebRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string CreateFlowForWebRequest::getCronExpr()const
|
||||
void CreateFlowForWebRequest::setCronExpr(const std::string& cronExpr)
|
||||
{
|
||||
cronExpr_ = cronExpr;
|
||||
setCoreParameter("CronExpr", cronExpr);
|
||||
setParameter("CronExpr", cronExpr);
|
||||
}
|
||||
|
||||
std::string CreateFlowForWebRequest::getDescription()const
|
||||
@@ -44,7 +46,7 @@ std::string CreateFlowForWebRequest::getDescription()const
|
||||
void CreateFlowForWebRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateFlowForWebRequest::getAlertUserGroupBizId()const
|
||||
@@ -55,7 +57,7 @@ std::string CreateFlowForWebRequest::getAlertUserGroupBizId()const
|
||||
void CreateFlowForWebRequest::setAlertUserGroupBizId(const std::string& alertUserGroupBizId)
|
||||
{
|
||||
alertUserGroupBizId_ = alertUserGroupBizId;
|
||||
setCoreParameter("AlertUserGroupBizId", alertUserGroupBizId);
|
||||
setParameter("AlertUserGroupBizId", alertUserGroupBizId);
|
||||
}
|
||||
|
||||
std::string CreateFlowForWebRequest::getHostName()const
|
||||
@@ -66,7 +68,7 @@ std::string CreateFlowForWebRequest::getHostName()const
|
||||
void CreateFlowForWebRequest::setHostName(const std::string& hostName)
|
||||
{
|
||||
hostName_ = hostName;
|
||||
setCoreParameter("HostName", hostName);
|
||||
setParameter("HostName", hostName);
|
||||
}
|
||||
|
||||
std::string CreateFlowForWebRequest::getRegionId()const
|
||||
@@ -77,7 +79,7 @@ std::string CreateFlowForWebRequest::getRegionId()const
|
||||
void CreateFlowForWebRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool CreateFlowForWebRequest::getCreateCluster()const
|
||||
@@ -88,7 +90,7 @@ bool CreateFlowForWebRequest::getCreateCluster()const
|
||||
void CreateFlowForWebRequest::setCreateCluster(bool createCluster)
|
||||
{
|
||||
createCluster_ = createCluster;
|
||||
setCoreParameter("CreateCluster", createCluster ? "true" : "false");
|
||||
setParameter("CreateCluster", createCluster ? "true" : "false");
|
||||
}
|
||||
|
||||
long CreateFlowForWebRequest::getEndSchedule()const
|
||||
@@ -99,7 +101,7 @@ long CreateFlowForWebRequest::getEndSchedule()const
|
||||
void CreateFlowForWebRequest::setEndSchedule(long endSchedule)
|
||||
{
|
||||
endSchedule_ = endSchedule;
|
||||
setCoreParameter("EndSchedule", std::to_string(endSchedule));
|
||||
setParameter("EndSchedule", std::to_string(endSchedule));
|
||||
}
|
||||
|
||||
std::string CreateFlowForWebRequest::getAlertConf()const
|
||||
@@ -110,7 +112,7 @@ std::string CreateFlowForWebRequest::getAlertConf()const
|
||||
void CreateFlowForWebRequest::setAlertConf(const std::string& alertConf)
|
||||
{
|
||||
alertConf_ = alertConf;
|
||||
setCoreParameter("AlertConf", alertConf);
|
||||
setParameter("AlertConf", alertConf);
|
||||
}
|
||||
|
||||
std::string CreateFlowForWebRequest::getProjectId()const
|
||||
@@ -121,7 +123,7 @@ std::string CreateFlowForWebRequest::getProjectId()const
|
||||
void CreateFlowForWebRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string CreateFlowForWebRequest::getParentFlowList()const
|
||||
@@ -132,7 +134,7 @@ std::string CreateFlowForWebRequest::getParentFlowList()const
|
||||
void CreateFlowForWebRequest::setParentFlowList(const std::string& parentFlowList)
|
||||
{
|
||||
parentFlowList_ = parentFlowList;
|
||||
setCoreParameter("ParentFlowList", parentFlowList);
|
||||
setParameter("ParentFlowList", parentFlowList);
|
||||
}
|
||||
|
||||
std::string CreateFlowForWebRequest::getAlertDingDingGroupBizId()const
|
||||
@@ -143,7 +145,7 @@ std::string CreateFlowForWebRequest::getAlertDingDingGroupBizId()const
|
||||
void CreateFlowForWebRequest::setAlertDingDingGroupBizId(const std::string& alertDingDingGroupBizId)
|
||||
{
|
||||
alertDingDingGroupBizId_ = alertDingDingGroupBizId;
|
||||
setCoreParameter("AlertDingDingGroupBizId", alertDingDingGroupBizId);
|
||||
setParameter("AlertDingDingGroupBizId", alertDingDingGroupBizId);
|
||||
}
|
||||
|
||||
long CreateFlowForWebRequest::getStartSchedule()const
|
||||
@@ -154,7 +156,7 @@ long CreateFlowForWebRequest::getStartSchedule()const
|
||||
void CreateFlowForWebRequest::setStartSchedule(long startSchedule)
|
||||
{
|
||||
startSchedule_ = startSchedule;
|
||||
setCoreParameter("StartSchedule", std::to_string(startSchedule));
|
||||
setParameter("StartSchedule", std::to_string(startSchedule));
|
||||
}
|
||||
|
||||
std::string CreateFlowForWebRequest::getClusterId()const
|
||||
@@ -165,7 +167,7 @@ std::string CreateFlowForWebRequest::getClusterId()const
|
||||
void CreateFlowForWebRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateFlowForWebRequest::getGraph()const
|
||||
@@ -176,7 +178,7 @@ std::string CreateFlowForWebRequest::getGraph()const
|
||||
void CreateFlowForWebRequest::setGraph(const std::string& graph)
|
||||
{
|
||||
graph_ = graph;
|
||||
setCoreParameter("Graph", graph);
|
||||
setParameter("Graph", graph);
|
||||
}
|
||||
|
||||
std::string CreateFlowForWebRequest::getName()const
|
||||
@@ -187,7 +189,7 @@ std::string CreateFlowForWebRequest::getName()const
|
||||
void CreateFlowForWebRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateFlowForWebRequest::getParentCategory()const
|
||||
@@ -198,6 +200,6 @@ std::string CreateFlowForWebRequest::getParentCategory()const
|
||||
void CreateFlowForWebRequest::setParentCategory(const std::string& parentCategory)
|
||||
{
|
||||
parentCategory_ = parentCategory;
|
||||
setCoreParameter("ParentCategory", parentCategory);
|
||||
setParameter("ParentCategory", parentCategory);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::CreateFlowJobRequest;
|
||||
|
||||
CreateFlowJobRequest::CreateFlowJobRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateFlowJob")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateFlowJobRequest::~CreateFlowJobRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string CreateFlowJobRequest::getRunConf()const
|
||||
void CreateFlowJobRequest::setRunConf(const std::string& runConf)
|
||||
{
|
||||
runConf_ = runConf;
|
||||
setCoreParameter("RunConf", runConf);
|
||||
setParameter("RunConf", runConf);
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getDescription()const
|
||||
@@ -44,7 +46,7 @@ std::string CreateFlowJobRequest::getDescription()const
|
||||
void CreateFlowJobRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getType()const
|
||||
@@ -55,7 +57,7 @@ std::string CreateFlowJobRequest::getType()const
|
||||
void CreateFlowJobRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setCoreParameter("Type", type);
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getParamConf()const
|
||||
@@ -66,7 +68,7 @@ std::string CreateFlowJobRequest::getParamConf()const
|
||||
void CreateFlowJobRequest::setParamConf(const std::string& paramConf)
|
||||
{
|
||||
paramConf_ = paramConf;
|
||||
setCoreParameter("ParamConf", paramConf);
|
||||
setParameter("ParamConf", paramConf);
|
||||
}
|
||||
|
||||
std::vector<CreateFlowJobRequest::ResourceList> CreateFlowJobRequest::getResourceList()const
|
||||
@@ -77,12 +79,11 @@ std::vector<CreateFlowJobRequest::ResourceList> CreateFlowJobRequest::getResourc
|
||||
void CreateFlowJobRequest::setResourceList(const std::vector<ResourceList>& resourceList)
|
||||
{
|
||||
resourceList_ = resourceList;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= resourceList.size(); i++) {
|
||||
auto obj = resourceList.at(i);
|
||||
std::string str ="ResourceList."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Path", obj.path);
|
||||
setCoreParameter(str + ".Alias", obj.alias);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,7 +95,7 @@ std::string CreateFlowJobRequest::getFailAct()const
|
||||
void CreateFlowJobRequest::setFailAct(const std::string& failAct)
|
||||
{
|
||||
failAct_ = failAct;
|
||||
setCoreParameter("FailAct", failAct);
|
||||
setParameter("FailAct", failAct);
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getMode()const
|
||||
@@ -105,7 +106,7 @@ std::string CreateFlowJobRequest::getMode()const
|
||||
void CreateFlowJobRequest::setMode(const std::string& mode)
|
||||
{
|
||||
mode_ = mode;
|
||||
setCoreParameter("Mode", mode);
|
||||
setParameter("Mode", mode);
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getMonitorConf()const
|
||||
@@ -116,7 +117,7 @@ std::string CreateFlowJobRequest::getMonitorConf()const
|
||||
void CreateFlowJobRequest::setMonitorConf(const std::string& monitorConf)
|
||||
{
|
||||
monitorConf_ = monitorConf;
|
||||
setCoreParameter("MonitorConf", monitorConf);
|
||||
setParameter("MonitorConf", monitorConf);
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getRegionId()const
|
||||
@@ -127,7 +128,7 @@ std::string CreateFlowJobRequest::getRegionId()const
|
||||
void CreateFlowJobRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int CreateFlowJobRequest::getMaxRetry()const
|
||||
@@ -138,7 +139,7 @@ int CreateFlowJobRequest::getMaxRetry()const
|
||||
void CreateFlowJobRequest::setMaxRetry(int maxRetry)
|
||||
{
|
||||
maxRetry_ = maxRetry;
|
||||
setCoreParameter("MaxRetry", std::to_string(maxRetry));
|
||||
setParameter("MaxRetry", std::to_string(maxRetry));
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getAlertConf()const
|
||||
@@ -149,7 +150,7 @@ std::string CreateFlowJobRequest::getAlertConf()const
|
||||
void CreateFlowJobRequest::setAlertConf(const std::string& alertConf)
|
||||
{
|
||||
alertConf_ = alertConf;
|
||||
setCoreParameter("AlertConf", alertConf);
|
||||
setParameter("AlertConf", alertConf);
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getProjectId()const
|
||||
@@ -160,7 +161,7 @@ std::string CreateFlowJobRequest::getProjectId()const
|
||||
void CreateFlowJobRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getEnvConf()const
|
||||
@@ -171,7 +172,18 @@ std::string CreateFlowJobRequest::getEnvConf()const
|
||||
void CreateFlowJobRequest::setEnvConf(const std::string& envConf)
|
||||
{
|
||||
envConf_ = envConf;
|
||||
setCoreParameter("EnvConf", envConf);
|
||||
setParameter("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
|
||||
@@ -182,7 +194,7 @@ std::string CreateFlowJobRequest::getClusterId()const
|
||||
void CreateFlowJobRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getParams()const
|
||||
@@ -193,7 +205,18 @@ std::string CreateFlowJobRequest::getParams()const
|
||||
void CreateFlowJobRequest::setParams(const std::string& params)
|
||||
{
|
||||
params_ = params;
|
||||
setCoreParameter("Params", params);
|
||||
setParameter("Params", params);
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getCustomVariables()const
|
||||
{
|
||||
return customVariables_;
|
||||
}
|
||||
|
||||
void CreateFlowJobRequest::setCustomVariables(const std::string& customVariables)
|
||||
{
|
||||
customVariables_ = customVariables;
|
||||
setParameter("CustomVariables", customVariables);
|
||||
}
|
||||
|
||||
long CreateFlowJobRequest::getRetryInterval()const
|
||||
@@ -204,7 +227,7 @@ long CreateFlowJobRequest::getRetryInterval()const
|
||||
void CreateFlowJobRequest::setRetryInterval(long retryInterval)
|
||||
{
|
||||
retryInterval_ = retryInterval;
|
||||
setCoreParameter("RetryInterval", std::to_string(retryInterval));
|
||||
setParameter("RetryInterval", std::to_string(retryInterval));
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getName()const
|
||||
@@ -215,7 +238,7 @@ std::string CreateFlowJobRequest::getName()const
|
||||
void CreateFlowJobRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
bool CreateFlowJobRequest::getAdhoc()const
|
||||
@@ -226,7 +249,7 @@ bool CreateFlowJobRequest::getAdhoc()const
|
||||
void CreateFlowJobRequest::setAdhoc(bool adhoc)
|
||||
{
|
||||
adhoc_ = adhoc;
|
||||
setCoreParameter("Adhoc", adhoc ? "true" : "false");
|
||||
setParameter("Adhoc", adhoc ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getParentCategory()const
|
||||
@@ -237,6 +260,6 @@ std::string CreateFlowJobRequest::getParentCategory()const
|
||||
void CreateFlowJobRequest::setParentCategory(const std::string& parentCategory)
|
||||
{
|
||||
parentCategory_ = parentCategory;
|
||||
setCoreParameter("ParentCategory", parentCategory);
|
||||
setParameter("ParentCategory", parentCategory);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::CreateFlowProjectClusterSettingRequest;
|
||||
|
||||
CreateFlowProjectClusterSettingRequest::CreateFlowProjectClusterSettingRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateFlowProjectClusterSetting")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateFlowProjectClusterSettingRequest::~CreateFlowProjectClusterSettingRequest()
|
||||
{}
|
||||
@@ -33,8 +35,9 @@ std::vector<std::string> CreateFlowProjectClusterSettingRequest::getUserList()co
|
||||
void CreateFlowProjectClusterSettingRequest::setUserList(const std::vector<std::string>& userList)
|
||||
{
|
||||
userList_ = userList;
|
||||
for(int i = 0; i!= userList.size(); i++)
|
||||
setCoreParameter("UserList."+ std::to_string(i), userList.at(i));
|
||||
for(int dep1 = 0; dep1!= userList.size(); dep1++) {
|
||||
setParameter("UserList."+ std::to_string(dep1), userList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateFlowProjectClusterSettingRequest::getHostList()const
|
||||
@@ -45,8 +48,9 @@ std::vector<std::string> CreateFlowProjectClusterSettingRequest::getHostList()co
|
||||
void CreateFlowProjectClusterSettingRequest::setHostList(const std::vector<std::string>& hostList)
|
||||
{
|
||||
hostList_ = hostList;
|
||||
for(int i = 0; i!= hostList.size(); i++)
|
||||
setCoreParameter("HostList."+ std::to_string(i), hostList.at(i));
|
||||
for(int dep1 = 0; dep1!= hostList.size(); dep1++) {
|
||||
setParameter("HostList."+ std::to_string(dep1), hostList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateFlowProjectClusterSettingRequest::getClusterId()const
|
||||
@@ -57,7 +61,7 @@ std::string CreateFlowProjectClusterSettingRequest::getClusterId()const
|
||||
void CreateFlowProjectClusterSettingRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateFlowProjectClusterSettingRequest::getDefaultQueue()const
|
||||
@@ -68,7 +72,7 @@ std::string CreateFlowProjectClusterSettingRequest::getDefaultQueue()const
|
||||
void CreateFlowProjectClusterSettingRequest::setDefaultQueue(const std::string& defaultQueue)
|
||||
{
|
||||
defaultQueue_ = defaultQueue;
|
||||
setCoreParameter("DefaultQueue", defaultQueue);
|
||||
setParameter("DefaultQueue", defaultQueue);
|
||||
}
|
||||
|
||||
std::string CreateFlowProjectClusterSettingRequest::getDefaultUser()const
|
||||
@@ -79,7 +83,7 @@ std::string CreateFlowProjectClusterSettingRequest::getDefaultUser()const
|
||||
void CreateFlowProjectClusterSettingRequest::setDefaultUser(const std::string& defaultUser)
|
||||
{
|
||||
defaultUser_ = defaultUser;
|
||||
setCoreParameter("DefaultUser", defaultUser);
|
||||
setParameter("DefaultUser", defaultUser);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateFlowProjectClusterSettingRequest::getQueueList()const
|
||||
@@ -90,8 +94,9 @@ std::vector<std::string> CreateFlowProjectClusterSettingRequest::getQueueList()c
|
||||
void CreateFlowProjectClusterSettingRequest::setQueueList(const std::vector<std::string>& queueList)
|
||||
{
|
||||
queueList_ = queueList;
|
||||
for(int i = 0; i!= queueList.size(); i++)
|
||||
setCoreParameter("QueueList."+ std::to_string(i), queueList.at(i));
|
||||
for(int dep1 = 0; dep1!= queueList.size(); dep1++) {
|
||||
setParameter("QueueList."+ std::to_string(dep1), queueList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateFlowProjectClusterSettingRequest::getRegionId()const
|
||||
@@ -102,7 +107,7 @@ std::string CreateFlowProjectClusterSettingRequest::getRegionId()const
|
||||
void CreateFlowProjectClusterSettingRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateFlowProjectClusterSettingRequest::getProjectId()const
|
||||
@@ -113,6 +118,6 @@ std::string CreateFlowProjectClusterSettingRequest::getProjectId()const
|
||||
void CreateFlowProjectClusterSettingRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::CreateFlowProjectRequest;
|
||||
|
||||
CreateFlowProjectRequest::CreateFlowProjectRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateFlowProject")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateFlowProjectRequest::~CreateFlowProjectRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string CreateFlowProjectRequest::getDescription()const
|
||||
void CreateFlowProjectRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateFlowProjectRequest::getRegionId()const
|
||||
@@ -44,7 +46,7 @@ std::string CreateFlowProjectRequest::getRegionId()const
|
||||
void CreateFlowProjectRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateFlowProjectRequest::getName()const
|
||||
@@ -55,6 +57,6 @@ std::string CreateFlowProjectRequest::getName()const
|
||||
void CreateFlowProjectRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::CreateFlowProjectUserRequest;
|
||||
|
||||
CreateFlowProjectUserRequest::CreateFlowProjectUserRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateFlowProjectUser")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateFlowProjectUserRequest::~CreateFlowProjectUserRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string CreateFlowProjectUserRequest::getRegionId()const
|
||||
void CreateFlowProjectUserRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateFlowProjectUserRequest::getProjectId()const
|
||||
@@ -44,7 +46,7 @@ std::string CreateFlowProjectUserRequest::getProjectId()const
|
||||
void CreateFlowProjectUserRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::vector<CreateFlowProjectUserRequest::User> CreateFlowProjectUserRequest::getUser()const
|
||||
@@ -55,12 +57,11 @@ std::vector<CreateFlowProjectUserRequest::User> CreateFlowProjectUserRequest::ge
|
||||
void CreateFlowProjectUserRequest::setUser(const std::vector<User>& user)
|
||||
{
|
||||
user_ = user;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= user.size(); i++) {
|
||||
auto obj = user.at(i);
|
||||
std::string str ="User."+ std::to_string(i);
|
||||
setCoreParameter(str + ".UserId", obj.userId);
|
||||
setCoreParameter(str + ".UserName", obj.userName);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::CreateFlowRequest;
|
||||
|
||||
CreateFlowRequest::CreateFlowRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateFlow")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateFlowRequest::~CreateFlowRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string CreateFlowRequest::getCronExpr()const
|
||||
void CreateFlowRequest::setCronExpr(const std::string& cronExpr)
|
||||
{
|
||||
cronExpr_ = cronExpr;
|
||||
setCoreParameter("CronExpr", cronExpr);
|
||||
setParameter("CronExpr", cronExpr);
|
||||
}
|
||||
|
||||
std::string CreateFlowRequest::getDescription()const
|
||||
@@ -44,7 +46,7 @@ std::string CreateFlowRequest::getDescription()const
|
||||
void CreateFlowRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateFlowRequest::getAlertUserGroupBizId()const
|
||||
@@ -55,7 +57,7 @@ std::string CreateFlowRequest::getAlertUserGroupBizId()const
|
||||
void CreateFlowRequest::setAlertUserGroupBizId(const std::string& alertUserGroupBizId)
|
||||
{
|
||||
alertUserGroupBizId_ = alertUserGroupBizId;
|
||||
setCoreParameter("AlertUserGroupBizId", alertUserGroupBizId);
|
||||
setParameter("AlertUserGroupBizId", alertUserGroupBizId);
|
||||
}
|
||||
|
||||
std::string CreateFlowRequest::getHostName()const
|
||||
@@ -66,7 +68,7 @@ std::string CreateFlowRequest::getHostName()const
|
||||
void CreateFlowRequest::setHostName(const std::string& hostName)
|
||||
{
|
||||
hostName_ = hostName;
|
||||
setCoreParameter("HostName", hostName);
|
||||
setParameter("HostName", hostName);
|
||||
}
|
||||
|
||||
std::string CreateFlowRequest::getRegionId()const
|
||||
@@ -77,7 +79,7 @@ std::string CreateFlowRequest::getRegionId()const
|
||||
void CreateFlowRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool CreateFlowRequest::getCreateCluster()const
|
||||
@@ -88,7 +90,7 @@ bool CreateFlowRequest::getCreateCluster()const
|
||||
void CreateFlowRequest::setCreateCluster(bool createCluster)
|
||||
{
|
||||
createCluster_ = createCluster;
|
||||
setCoreParameter("CreateCluster", createCluster ? "true" : "false");
|
||||
setParameter("CreateCluster", createCluster ? "true" : "false");
|
||||
}
|
||||
|
||||
long CreateFlowRequest::getEndSchedule()const
|
||||
@@ -99,7 +101,7 @@ long CreateFlowRequest::getEndSchedule()const
|
||||
void CreateFlowRequest::setEndSchedule(long endSchedule)
|
||||
{
|
||||
endSchedule_ = endSchedule;
|
||||
setCoreParameter("EndSchedule", std::to_string(endSchedule));
|
||||
setParameter("EndSchedule", std::to_string(endSchedule));
|
||||
}
|
||||
|
||||
std::string CreateFlowRequest::getAlertConf()const
|
||||
@@ -110,7 +112,7 @@ std::string CreateFlowRequest::getAlertConf()const
|
||||
void CreateFlowRequest::setAlertConf(const std::string& alertConf)
|
||||
{
|
||||
alertConf_ = alertConf;
|
||||
setCoreParameter("AlertConf", alertConf);
|
||||
setParameter("AlertConf", alertConf);
|
||||
}
|
||||
|
||||
std::string CreateFlowRequest::getProjectId()const
|
||||
@@ -121,7 +123,7 @@ std::string CreateFlowRequest::getProjectId()const
|
||||
void CreateFlowRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string CreateFlowRequest::getParentFlowList()const
|
||||
@@ -132,7 +134,7 @@ std::string CreateFlowRequest::getParentFlowList()const
|
||||
void CreateFlowRequest::setParentFlowList(const std::string& parentFlowList)
|
||||
{
|
||||
parentFlowList_ = parentFlowList;
|
||||
setCoreParameter("ParentFlowList", parentFlowList);
|
||||
setParameter("ParentFlowList", parentFlowList);
|
||||
}
|
||||
|
||||
std::string CreateFlowRequest::getAlertDingDingGroupBizId()const
|
||||
@@ -143,7 +145,7 @@ std::string CreateFlowRequest::getAlertDingDingGroupBizId()const
|
||||
void CreateFlowRequest::setAlertDingDingGroupBizId(const std::string& alertDingDingGroupBizId)
|
||||
{
|
||||
alertDingDingGroupBizId_ = alertDingDingGroupBizId;
|
||||
setCoreParameter("AlertDingDingGroupBizId", alertDingDingGroupBizId);
|
||||
setParameter("AlertDingDingGroupBizId", alertDingDingGroupBizId);
|
||||
}
|
||||
|
||||
long CreateFlowRequest::getStartSchedule()const
|
||||
@@ -154,7 +156,7 @@ long CreateFlowRequest::getStartSchedule()const
|
||||
void CreateFlowRequest::setStartSchedule(long startSchedule)
|
||||
{
|
||||
startSchedule_ = startSchedule;
|
||||
setCoreParameter("StartSchedule", std::to_string(startSchedule));
|
||||
setParameter("StartSchedule", std::to_string(startSchedule));
|
||||
}
|
||||
|
||||
std::string CreateFlowRequest::getClusterId()const
|
||||
@@ -165,7 +167,7 @@ std::string CreateFlowRequest::getClusterId()const
|
||||
void CreateFlowRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateFlowRequest::getApplication()const
|
||||
@@ -176,7 +178,7 @@ std::string CreateFlowRequest::getApplication()const
|
||||
void CreateFlowRequest::setApplication(const std::string& application)
|
||||
{
|
||||
application_ = application;
|
||||
setCoreParameter("Application", application);
|
||||
setParameter("Application", application);
|
||||
}
|
||||
|
||||
std::string CreateFlowRequest::getName()const
|
||||
@@ -187,7 +189,7 @@ std::string CreateFlowRequest::getName()const
|
||||
void CreateFlowRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateFlowRequest::getParentCategory()const
|
||||
@@ -198,6 +200,6 @@ std::string CreateFlowRequest::getParentCategory()const
|
||||
void CreateFlowRequest::setParentCategory(const std::string& parentCategory)
|
||||
{
|
||||
parentCategory_ = parentCategory;
|
||||
setCoreParameter("ParentCategory", parentCategory);
|
||||
setParameter("ParentCategory", parentCategory);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::CreateJobRequest;
|
||||
|
||||
CreateJobRequest::CreateJobRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateJob")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateJobRequest::~CreateJobRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long CreateJobRequest::getResourceOwnerId()const
|
||||
void CreateJobRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getType()const
|
||||
@@ -44,7 +46,7 @@ std::string CreateJobRequest::getType()const
|
||||
void CreateJobRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setCoreParameter("Type", type);
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getAccessKeyId()const
|
||||
@@ -55,7 +57,7 @@ std::string CreateJobRequest::getAccessKeyId()const
|
||||
void CreateJobRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getFailAct()const
|
||||
@@ -66,7 +68,7 @@ std::string CreateJobRequest::getFailAct()const
|
||||
void CreateJobRequest::setFailAct(const std::string& failAct)
|
||||
{
|
||||
failAct_ = failAct;
|
||||
setCoreParameter("FailAct", failAct);
|
||||
setParameter("FailAct", failAct);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getRunParameter()const
|
||||
@@ -77,7 +79,7 @@ std::string CreateJobRequest::getRunParameter()const
|
||||
void CreateJobRequest::setRunParameter(const std::string& runParameter)
|
||||
{
|
||||
runParameter_ = runParameter;
|
||||
setCoreParameter("RunParameter", runParameter);
|
||||
setParameter("RunParameter", runParameter);
|
||||
}
|
||||
|
||||
int CreateJobRequest::getRetryInterval()const
|
||||
@@ -88,7 +90,7 @@ int CreateJobRequest::getRetryInterval()const
|
||||
void CreateJobRequest::setRetryInterval(int retryInterval)
|
||||
{
|
||||
retryInterval_ = retryInterval;
|
||||
setCoreParameter("RetryInterval", std::to_string(retryInterval));
|
||||
setParameter("RetryInterval", std::to_string(retryInterval));
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getRegionId()const
|
||||
@@ -99,7 +101,7 @@ std::string CreateJobRequest::getRegionId()const
|
||||
void CreateJobRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getName()const
|
||||
@@ -110,7 +112,7 @@ std::string CreateJobRequest::getName()const
|
||||
void CreateJobRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
int CreateJobRequest::getMaxRetry()const
|
||||
@@ -121,6 +123,6 @@ int CreateJobRequest::getMaxRetry()const
|
||||
void CreateJobRequest::setMaxRetry(int maxRetry)
|
||||
{
|
||||
maxRetry_ = maxRetry;
|
||||
setCoreParameter("MaxRetry", std::to_string(maxRetry));
|
||||
setParameter("MaxRetry", std::to_string(maxRetry));
|
||||
}
|
||||
|
||||
|
||||
117
emr/src/model/CreateMetaTablePreviewTaskRequest.cc
Normal file
117
emr/src/model/CreateMetaTablePreviewTaskRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CreateMetaTablePreviewTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::CreateMetaTablePreviewTaskRequest;
|
||||
|
||||
CreateMetaTablePreviewTaskRequest::CreateMetaTablePreviewTaskRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateMetaTablePreviewTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateMetaTablePreviewTaskRequest::~CreateMetaTablePreviewTaskRequest()
|
||||
{}
|
||||
|
||||
long CreateMetaTablePreviewTaskRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateMetaTablePreviewTaskRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateMetaTablePreviewTaskRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateMetaTablePreviewTaskRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateMetaTablePreviewTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateMetaTablePreviewTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateMetaTablePreviewTaskRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
}
|
||||
|
||||
void CreateMetaTablePreviewTaskRequest::setPassword(const std::string& password)
|
||||
{
|
||||
password_ = password;
|
||||
setParameter("Password", password);
|
||||
}
|
||||
|
||||
std::string CreateMetaTablePreviewTaskRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateMetaTablePreviewTaskRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateMetaTablePreviewTaskRequest::getTableId()const
|
||||
{
|
||||
return tableId_;
|
||||
}
|
||||
|
||||
void CreateMetaTablePreviewTaskRequest::setTableId(const std::string& tableId)
|
||||
{
|
||||
tableId_ = tableId;
|
||||
setParameter("TableId", tableId);
|
||||
}
|
||||
|
||||
std::string CreateMetaTablePreviewTaskRequest::getDatabaseId()const
|
||||
{
|
||||
return databaseId_;
|
||||
}
|
||||
|
||||
void CreateMetaTablePreviewTaskRequest::setDatabaseId(const std::string& databaseId)
|
||||
{
|
||||
databaseId_ = databaseId;
|
||||
setParameter("DatabaseId", databaseId);
|
||||
}
|
||||
|
||||
std::string CreateMetaTablePreviewTaskRequest::getUser()const
|
||||
{
|
||||
return user_;
|
||||
}
|
||||
|
||||
void CreateMetaTablePreviewTaskRequest::setUser(const std::string& user)
|
||||
{
|
||||
user_ = user;
|
||||
setParameter("User", user);
|
||||
}
|
||||
|
||||
51
emr/src/model/CreateMetaTablePreviewTaskResult.cc
Normal file
51
emr/src/model/CreateMetaTablePreviewTaskResult.cc
Normal 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/CreateMetaTablePreviewTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
CreateMetaTablePreviewTaskResult::CreateMetaTablePreviewTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMetaTablePreviewTaskResult::CreateMetaTablePreviewTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMetaTablePreviewTaskResult::~CreateMetaTablePreviewTaskResult()
|
||||
{}
|
||||
|
||||
void CreateMetaTablePreviewTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateMetaTablePreviewTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::CreateNoteRequest;
|
||||
|
||||
CreateNoteRequest::CreateNoteRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateNote")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateNoteRequest::~CreateNoteRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long CreateNoteRequest::getResourceOwnerId()const
|
||||
void CreateNoteRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateNoteRequest::getClusterId()const
|
||||
@@ -44,7 +46,7 @@ std::string CreateNoteRequest::getClusterId()const
|
||||
void CreateNoteRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateNoteRequest::getType()const
|
||||
@@ -55,7 +57,7 @@ std::string CreateNoteRequest::getType()const
|
||||
void CreateNoteRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setCoreParameter("Type", type);
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateNoteRequest::getAccessKeyId()const
|
||||
@@ -66,7 +68,7 @@ std::string CreateNoteRequest::getAccessKeyId()const
|
||||
void CreateNoteRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateNoteRequest::getRegionId()const
|
||||
@@ -77,7 +79,7 @@ std::string CreateNoteRequest::getRegionId()const
|
||||
void CreateNoteRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateNoteRequest::getName()const
|
||||
@@ -88,6 +90,6 @@ std::string CreateNoteRequest::getName()const
|
||||
void CreateNoteRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::CreateParagraphRequest;
|
||||
|
||||
CreateParagraphRequest::CreateParagraphRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateParagraph")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateParagraphRequest::~CreateParagraphRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long CreateParagraphRequest::getResourceOwnerId()const
|
||||
void CreateParagraphRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateParagraphRequest::getNoteId()const
|
||||
@@ -44,7 +46,7 @@ std::string CreateParagraphRequest::getNoteId()const
|
||||
void CreateParagraphRequest::setNoteId(const std::string& noteId)
|
||||
{
|
||||
noteId_ = noteId;
|
||||
setCoreParameter("NoteId", noteId);
|
||||
setParameter("NoteId", noteId);
|
||||
}
|
||||
|
||||
std::string CreateParagraphRequest::getAccessKeyId()const
|
||||
@@ -55,7 +57,7 @@ std::string CreateParagraphRequest::getAccessKeyId()const
|
||||
void CreateParagraphRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateParagraphRequest::getRegionId()const
|
||||
@@ -66,7 +68,7 @@ std::string CreateParagraphRequest::getRegionId()const
|
||||
void CreateParagraphRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateParagraphRequest::getText()const
|
||||
@@ -77,6 +79,6 @@ std::string CreateParagraphRequest::getText()const
|
||||
void CreateParagraphRequest::setText(const std::string& text)
|
||||
{
|
||||
text_ = text;
|
||||
setCoreParameter("Text", text);
|
||||
setParameter("Text", text);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::CreateResourcePoolRequest;
|
||||
|
||||
CreateResourcePoolRequest::CreateResourcePoolRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateResourcePool")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateResourcePoolRequest::~CreateResourcePoolRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string CreateResourcePoolRequest::getNote()const
|
||||
void CreateResourcePoolRequest::setNote(const std::string& note)
|
||||
{
|
||||
note_ = note;
|
||||
setCoreParameter("Note", note);
|
||||
setParameter("Note", note);
|
||||
}
|
||||
|
||||
long CreateResourcePoolRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +46,7 @@ long CreateResourcePoolRequest::getResourceOwnerId()const
|
||||
void CreateResourcePoolRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
bool CreateResourcePoolRequest::getActive()const
|
||||
@@ -55,7 +57,7 @@ bool CreateResourcePoolRequest::getActive()const
|
||||
void CreateResourcePoolRequest::setActive(bool active)
|
||||
{
|
||||
active_ = active;
|
||||
setCoreParameter("Active", active ? "true" : "false");
|
||||
setParameter("Active", active ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateResourcePoolRequest::getClusterId()const
|
||||
@@ -66,7 +68,7 @@ std::string CreateResourcePoolRequest::getClusterId()const
|
||||
void CreateResourcePoolRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateResourcePoolRequest::getYarnSiteConfig()const
|
||||
@@ -77,7 +79,7 @@ std::string CreateResourcePoolRequest::getYarnSiteConfig()const
|
||||
void CreateResourcePoolRequest::setYarnSiteConfig(const std::string& yarnSiteConfig)
|
||||
{
|
||||
yarnSiteConfig_ = yarnSiteConfig;
|
||||
setCoreParameter("YarnSiteConfig", yarnSiteConfig);
|
||||
setParameter("YarnSiteConfig", yarnSiteConfig);
|
||||
}
|
||||
|
||||
std::string CreateResourcePoolRequest::getAccessKeyId()const
|
||||
@@ -88,7 +90,7 @@ std::string CreateResourcePoolRequest::getAccessKeyId()const
|
||||
void CreateResourcePoolRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateResourcePoolRequest::getRegionId()const
|
||||
@@ -99,7 +101,7 @@ std::string CreateResourcePoolRequest::getRegionId()const
|
||||
void CreateResourcePoolRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateResourcePoolRequest::getName()const
|
||||
@@ -110,7 +112,7 @@ std::string CreateResourcePoolRequest::getName()const
|
||||
void CreateResourcePoolRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::vector<CreateResourcePoolRequest::Config> CreateResourcePoolRequest::getConfig()const
|
||||
@@ -121,16 +123,15 @@ std::vector<CreateResourcePoolRequest::Config> CreateResourcePoolRequest::getCon
|
||||
void CreateResourcePoolRequest::setConfig(const std::vector<Config>& config)
|
||||
{
|
||||
config_ = config;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= config.size(); i++) {
|
||||
auto obj = config.at(i);
|
||||
std::string str ="Config."+ std::to_string(i);
|
||||
setCoreParameter(str + ".ConfigKey", obj.configKey);
|
||||
setCoreParameter(str + ".Note", obj.note);
|
||||
setCoreParameter(str + ".configType", obj.configType);
|
||||
setCoreParameter(str + ".TargetId", obj.targetId);
|
||||
setCoreParameter(str + ".ConfigValue", obj.configValue);
|
||||
setCoreParameter(str + ".Category", obj.category);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -142,6 +143,6 @@ std::string CreateResourcePoolRequest::getPoolType()const
|
||||
void CreateResourcePoolRequest::setPoolType(const std::string& poolType)
|
||||
{
|
||||
poolType_ = poolType;
|
||||
setCoreParameter("PoolType", poolType);
|
||||
setParameter("PoolType", poolType);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::CreateResourceQueueRequest;
|
||||
|
||||
CreateResourceQueueRequest::CreateResourceQueueRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateResourceQueue")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateResourceQueueRequest::~CreateResourceQueueRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long CreateResourceQueueRequest::getResourceOwnerId()const
|
||||
void CreateResourceQueueRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateResourceQueueRequest::getQualifiedName()const
|
||||
@@ -44,7 +46,7 @@ std::string CreateResourceQueueRequest::getQualifiedName()const
|
||||
void CreateResourceQueueRequest::setQualifiedName(const std::string& qualifiedName)
|
||||
{
|
||||
qualifiedName_ = qualifiedName;
|
||||
setCoreParameter("QualifiedName", qualifiedName);
|
||||
setParameter("QualifiedName", qualifiedName);
|
||||
}
|
||||
|
||||
long CreateResourceQueueRequest::getResourcePoolId()const
|
||||
@@ -55,7 +57,7 @@ long CreateResourceQueueRequest::getResourcePoolId()const
|
||||
void CreateResourceQueueRequest::setResourcePoolId(long resourcePoolId)
|
||||
{
|
||||
resourcePoolId_ = resourcePoolId;
|
||||
setCoreParameter("ResourcePoolId", std::to_string(resourcePoolId));
|
||||
setParameter("ResourcePoolId", std::to_string(resourcePoolId));
|
||||
}
|
||||
|
||||
std::string CreateResourceQueueRequest::getClusterId()const
|
||||
@@ -66,7 +68,7 @@ std::string CreateResourceQueueRequest::getClusterId()const
|
||||
void CreateResourceQueueRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
bool CreateResourceQueueRequest::getLeaf()const
|
||||
@@ -77,7 +79,7 @@ bool CreateResourceQueueRequest::getLeaf()const
|
||||
void CreateResourceQueueRequest::setLeaf(bool leaf)
|
||||
{
|
||||
leaf_ = leaf;
|
||||
setCoreParameter("Leaf", leaf ? "true" : "false");
|
||||
setParameter("Leaf", leaf ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateResourceQueueRequest::getAccessKeyId()const
|
||||
@@ -88,7 +90,7 @@ std::string CreateResourceQueueRequest::getAccessKeyId()const
|
||||
void CreateResourceQueueRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long CreateResourceQueueRequest::getParentQueueId()const
|
||||
@@ -99,7 +101,7 @@ long CreateResourceQueueRequest::getParentQueueId()const
|
||||
void CreateResourceQueueRequest::setParentQueueId(long parentQueueId)
|
||||
{
|
||||
parentQueueId_ = parentQueueId;
|
||||
setCoreParameter("ParentQueueId", std::to_string(parentQueueId));
|
||||
setParameter("ParentQueueId", std::to_string(parentQueueId));
|
||||
}
|
||||
|
||||
std::string CreateResourceQueueRequest::getRegionId()const
|
||||
@@ -110,7 +112,7 @@ std::string CreateResourceQueueRequest::getRegionId()const
|
||||
void CreateResourceQueueRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateResourceQueueRequest::getName()const
|
||||
@@ -121,7 +123,7 @@ std::string CreateResourceQueueRequest::getName()const
|
||||
void CreateResourceQueueRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::vector<CreateResourceQueueRequest::Config> CreateResourceQueueRequest::getConfig()const
|
||||
@@ -132,14 +134,13 @@ std::vector<CreateResourceQueueRequest::Config> CreateResourceQueueRequest::getC
|
||||
void CreateResourceQueueRequest::setConfig(const std::vector<Config>& config)
|
||||
{
|
||||
config_ = config;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= config.size(); i++) {
|
||||
auto obj = config.at(i);
|
||||
std::string str ="Config."+ std::to_string(i);
|
||||
setCoreParameter(str + ".ConfigKey", obj.configKey);
|
||||
setCoreParameter(str + ".Note", obj.note);
|
||||
setCoreParameter(str + ".ConfigValue", obj.configValue);
|
||||
setCoreParameter(str + ".Category", obj.category);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::CreateScalingRuleRequest;
|
||||
|
||||
CreateScalingRuleRequest::CreateScalingRuleRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateScalingRule")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateScalingRuleRequest::~CreateScalingRuleRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long CreateScalingRuleRequest::getResourceOwnerId()const
|
||||
void CreateScalingRuleRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getRuleName()const
|
||||
@@ -44,7 +46,7 @@ std::string CreateScalingRuleRequest::getRuleName()const
|
||||
void CreateScalingRuleRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setCoreParameter("RuleName", ruleName);
|
||||
setParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getRecurrenceEndTime()const
|
||||
@@ -55,7 +57,7 @@ std::string CreateScalingRuleRequest::getRecurrenceEndTime()const
|
||||
void CreateScalingRuleRequest::setRecurrenceEndTime(const std::string& recurrenceEndTime)
|
||||
{
|
||||
recurrenceEndTime_ = recurrenceEndTime;
|
||||
setCoreParameter("RecurrenceEndTime", recurrenceEndTime);
|
||||
setParameter("RecurrenceEndTime", recurrenceEndTime);
|
||||
}
|
||||
|
||||
std::vector<CreateScalingRuleRequest::CloudWatchTrigger> CreateScalingRuleRequest::getCloudWatchTrigger()const
|
||||
@@ -66,16 +68,15 @@ std::vector<CreateScalingRuleRequest::CloudWatchTrigger> CreateScalingRuleReques
|
||||
void CreateScalingRuleRequest::setCloudWatchTrigger(const std::vector<CloudWatchTrigger>& cloudWatchTrigger)
|
||||
{
|
||||
cloudWatchTrigger_ = cloudWatchTrigger;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= cloudWatchTrigger.size(); i++) {
|
||||
auto obj = cloudWatchTrigger.at(i);
|
||||
std::string str ="CloudWatchTrigger."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Period", std::to_string(obj.period));
|
||||
setCoreParameter(str + ".EvaluationCount", obj.evaluationCount);
|
||||
setCoreParameter(str + ".Threshold", obj.threshold);
|
||||
setCoreParameter(str + ".MetricName", obj.metricName);
|
||||
setCoreParameter(str + ".ComparisonOperator", obj.comparisonOperator);
|
||||
setCoreParameter(str + ".Statistics", obj.statistics);
|
||||
for(int dep1 = 0; dep1!= cloudWatchTrigger.size(); dep1++) {
|
||||
auto cloudWatchTriggerObj = cloudWatchTrigger.at(dep1);
|
||||
std::string cloudWatchTriggerObjStr = "CloudWatchTrigger." + std::to_string(dep1 + 1);
|
||||
setParameter(cloudWatchTriggerObjStr + ".Period", std::to_string(cloudWatchTriggerObj.period));
|
||||
setParameter(cloudWatchTriggerObjStr + ".EvaluationCount", cloudWatchTriggerObj.evaluationCount);
|
||||
setParameter(cloudWatchTriggerObjStr + ".Threshold", cloudWatchTriggerObj.threshold);
|
||||
setParameter(cloudWatchTriggerObjStr + ".MetricName", cloudWatchTriggerObj.metricName);
|
||||
setParameter(cloudWatchTriggerObjStr + ".ComparisonOperator", cloudWatchTriggerObj.comparisonOperator);
|
||||
setParameter(cloudWatchTriggerObjStr + ".Statistics", cloudWatchTriggerObj.statistics);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,7 +88,7 @@ std::string CreateScalingRuleRequest::getAccessKeyId()const
|
||||
void CreateScalingRuleRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getRegionId()const
|
||||
@@ -98,7 +99,7 @@ std::string CreateScalingRuleRequest::getRegionId()const
|
||||
void CreateScalingRuleRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int CreateScalingRuleRequest::getCooldown()const
|
||||
@@ -109,7 +110,7 @@ int CreateScalingRuleRequest::getCooldown()const
|
||||
void CreateScalingRuleRequest::setCooldown(int cooldown)
|
||||
{
|
||||
cooldown_ = cooldown;
|
||||
setCoreParameter("Cooldown", std::to_string(cooldown));
|
||||
setParameter("Cooldown", std::to_string(cooldown));
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getLaunchTime()const
|
||||
@@ -120,7 +121,7 @@ std::string CreateScalingRuleRequest::getLaunchTime()const
|
||||
void CreateScalingRuleRequest::setLaunchTime(const std::string& launchTime)
|
||||
{
|
||||
launchTime_ = launchTime;
|
||||
setCoreParameter("LaunchTime", launchTime);
|
||||
setParameter("LaunchTime", launchTime);
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getRuleCategory()const
|
||||
@@ -131,7 +132,7 @@ std::string CreateScalingRuleRequest::getRuleCategory()const
|
||||
void CreateScalingRuleRequest::setRuleCategory(const std::string& ruleCategory)
|
||||
{
|
||||
ruleCategory_ = ruleCategory;
|
||||
setCoreParameter("RuleCategory", ruleCategory);
|
||||
setParameter("RuleCategory", ruleCategory);
|
||||
}
|
||||
|
||||
int CreateScalingRuleRequest::getAdjustmentValue()const
|
||||
@@ -142,7 +143,7 @@ int CreateScalingRuleRequest::getAdjustmentValue()const
|
||||
void CreateScalingRuleRequest::setAdjustmentValue(int adjustmentValue)
|
||||
{
|
||||
adjustmentValue_ = adjustmentValue;
|
||||
setCoreParameter("AdjustmentValue", std::to_string(adjustmentValue));
|
||||
setParameter("AdjustmentValue", std::to_string(adjustmentValue));
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getAdjustmentType()const
|
||||
@@ -153,7 +154,7 @@ std::string CreateScalingRuleRequest::getAdjustmentType()const
|
||||
void CreateScalingRuleRequest::setAdjustmentType(const std::string& adjustmentType)
|
||||
{
|
||||
adjustmentType_ = adjustmentType;
|
||||
setCoreParameter("AdjustmentType", adjustmentType);
|
||||
setParameter("AdjustmentType", adjustmentType);
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getClusterId()const
|
||||
@@ -164,7 +165,7 @@ std::string CreateScalingRuleRequest::getClusterId()const
|
||||
void CreateScalingRuleRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int CreateScalingRuleRequest::getLaunchExpirationTime()const
|
||||
@@ -175,7 +176,7 @@ int CreateScalingRuleRequest::getLaunchExpirationTime()const
|
||||
void CreateScalingRuleRequest::setLaunchExpirationTime(int launchExpirationTime)
|
||||
{
|
||||
launchExpirationTime_ = launchExpirationTime;
|
||||
setCoreParameter("LaunchExpirationTime", std::to_string(launchExpirationTime));
|
||||
setParameter("LaunchExpirationTime", std::to_string(launchExpirationTime));
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getRecurrenceValue()const
|
||||
@@ -186,7 +187,7 @@ std::string CreateScalingRuleRequest::getRecurrenceValue()const
|
||||
void CreateScalingRuleRequest::setRecurrenceValue(const std::string& recurrenceValue)
|
||||
{
|
||||
recurrenceValue_ = recurrenceValue;
|
||||
setCoreParameter("RecurrenceValue", recurrenceValue);
|
||||
setParameter("RecurrenceValue", recurrenceValue);
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getHostGroupId()const
|
||||
@@ -197,7 +198,7 @@ std::string CreateScalingRuleRequest::getHostGroupId()const
|
||||
void CreateScalingRuleRequest::setHostGroupId(const std::string& hostGroupId)
|
||||
{
|
||||
hostGroupId_ = hostGroupId;
|
||||
setCoreParameter("HostGroupId", hostGroupId);
|
||||
setParameter("HostGroupId", hostGroupId);
|
||||
}
|
||||
|
||||
std::vector<CreateScalingRuleRequest::SchedulerTrigger> CreateScalingRuleRequest::getSchedulerTrigger()const
|
||||
@@ -208,15 +209,14 @@ std::vector<CreateScalingRuleRequest::SchedulerTrigger> CreateScalingRuleRequest
|
||||
void CreateScalingRuleRequest::setSchedulerTrigger(const std::vector<SchedulerTrigger>& schedulerTrigger)
|
||||
{
|
||||
schedulerTrigger_ = schedulerTrigger;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= schedulerTrigger.size(); i++) {
|
||||
auto obj = schedulerTrigger.at(i);
|
||||
std::string str ="SchedulerTrigger."+ std::to_string(i);
|
||||
setCoreParameter(str + ".LaunchTime", obj.launchTime);
|
||||
setCoreParameter(str + ".LaunchExpirationTime", std::to_string(obj.launchExpirationTime));
|
||||
setCoreParameter(str + ".RecurrenceValue", obj.recurrenceValue);
|
||||
setCoreParameter(str + ".RecurrenceEndTime", obj.recurrenceEndTime);
|
||||
setCoreParameter(str + ".RecurrenceType", obj.recurrenceType);
|
||||
for(int dep1 = 0; dep1!= schedulerTrigger.size(); dep1++) {
|
||||
auto schedulerTriggerObj = schedulerTrigger.at(dep1);
|
||||
std::string schedulerTriggerObjStr = "SchedulerTrigger." + std::to_string(dep1 + 1);
|
||||
setParameter(schedulerTriggerObjStr + ".LaunchTime", schedulerTriggerObj.launchTime);
|
||||
setParameter(schedulerTriggerObjStr + ".LaunchExpirationTime", std::to_string(schedulerTriggerObj.launchExpirationTime));
|
||||
setParameter(schedulerTriggerObjStr + ".RecurrenceValue", schedulerTriggerObj.recurrenceValue);
|
||||
setParameter(schedulerTriggerObjStr + ".RecurrenceEndTime", schedulerTriggerObj.recurrenceEndTime);
|
||||
setParameter(schedulerTriggerObjStr + ".RecurrenceType", schedulerTriggerObj.recurrenceType);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -228,6 +228,6 @@ std::string CreateScalingRuleRequest::getRecurrenceType()const
|
||||
void CreateScalingRuleRequest::setRecurrenceType(const std::string& recurrenceType)
|
||||
{
|
||||
recurrenceType_ = recurrenceType;
|
||||
setCoreParameter("RecurrenceType", recurrenceType);
|
||||
setParameter("RecurrenceType", recurrenceType);
|
||||
}
|
||||
|
||||
|
||||
106
emr/src/model/CreateTagRequest.cc
Normal file
106
emr/src/model/CreateTagRequest.cc
Normal 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/CreateTagRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::CreateTagRequest;
|
||||
|
||||
CreateTagRequest::CreateTagRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateTag")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateTagRequest::~CreateTagRequest()
|
||||
{}
|
||||
|
||||
long CreateTagRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
long CreateTagRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getCategory()const
|
||||
{
|
||||
return category_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setCategory(const std::string& category)
|
||||
{
|
||||
category_ = category;
|
||||
setParameter("Category", category);
|
||||
}
|
||||
|
||||
51
emr/src/model/CreateTagResult.cc
Normal file
51
emr/src/model/CreateTagResult.cc
Normal 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/CreateTagResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
CreateTagResult::CreateTagResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTagResult::CreateTagResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTagResult::~CreateTagResult()
|
||||
{}
|
||||
|
||||
void CreateTagResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateTagResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -20,138 +20,141 @@ using AlibabaCloud::Emr::Model::CreateUserRequest;
|
||||
|
||||
CreateUserRequest::CreateUserRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateUser")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateUserRequest::~CreateUserRequest()
|
||||
{}
|
||||
|
||||
long CreateUserRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getUserType()const
|
||||
{
|
||||
return userType_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setUserType(const std::string& userType)
|
||||
{
|
||||
userType_ = userType;
|
||||
setCoreParameter("UserType", userType);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::vector<CreateUserRequest::UserAccountParamList> CreateUserRequest::getUserAccountParamList()const
|
||||
{
|
||||
return userAccountParamList_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setUserAccountParamList(const std::vector<UserAccountParamList>& userAccountParamList)
|
||||
{
|
||||
userAccountParamList_ = userAccountParamList;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= userAccountParamList.size(); i++) {
|
||||
auto obj = userAccountParamList.at(i);
|
||||
std::string str ="UserAccountParamList."+ std::to_string(i);
|
||||
setCoreParameter(str + ".AccountType", obj.accountType);
|
||||
setCoreParameter(str + ".AuthType", obj.authType);
|
||||
setCoreParameter(str + ".AccountPassword", obj.accountPassword);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<long> CreateUserRequest::getGroupIdList()const
|
||||
{
|
||||
return groupIdList_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setGroupIdList(const std::vector<long>& groupIdList)
|
||||
{
|
||||
groupIdList_ = groupIdList;
|
||||
for(int i = 0; i!= groupIdList.size(); i++)
|
||||
setCoreParameter("GroupIdList."+ std::to_string(i), std::to_string(groupIdList.at(i)));
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<long> CreateUserRequest::getRoleIdList()const
|
||||
{
|
||||
return roleIdList_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setRoleIdList(const std::vector<long>& roleIdList)
|
||||
{
|
||||
roleIdList_ = roleIdList;
|
||||
for(int i = 0; i!= roleIdList.size(); i++)
|
||||
setCoreParameter("RoleIdList."+ std::to_string(i), std::to_string(roleIdList.at(i)));
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getAliyunUserId()const
|
||||
{
|
||||
return aliyunUserId_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setAliyunUserId(const std::string& aliyunUserId)
|
||||
{
|
||||
aliyunUserId_ = aliyunUserId;
|
||||
setCoreParameter("AliyunUserId", aliyunUserId);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getUserName()const
|
||||
{
|
||||
return userName_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setUserName(const std::string& userName)
|
||||
{
|
||||
userName_ = userName;
|
||||
setCoreParameter("UserName", userName);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setCoreParameter("Status", status);
|
||||
}
|
||||
|
||||
long CreateUserRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getUserType()const
|
||||
{
|
||||
return userType_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setUserType(const std::string& userType)
|
||||
{
|
||||
userType_ = userType;
|
||||
setParameter("UserType", userType);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::vector<CreateUserRequest::UserAccountParamList> CreateUserRequest::getUserAccountParamList()const
|
||||
{
|
||||
return userAccountParamList_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setUserAccountParamList(const std::vector<UserAccountParamList>& userAccountParamList)
|
||||
{
|
||||
userAccountParamList_ = userAccountParamList;
|
||||
for(int dep1 = 0; dep1!= userAccountParamList.size(); dep1++) {
|
||||
auto userAccountParamListObj = userAccountParamList.at(dep1);
|
||||
std::string userAccountParamListObjStr = "UserAccountParamList." + std::to_string(dep1 + 1);
|
||||
setParameter(userAccountParamListObjStr + ".AccountType", userAccountParamListObj.accountType);
|
||||
setParameter(userAccountParamListObjStr + ".AuthType", userAccountParamListObj.authType);
|
||||
setParameter(userAccountParamListObjStr + ".AccountPassword", userAccountParamListObj.accountPassword);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<long> CreateUserRequest::getGroupIdList()const
|
||||
{
|
||||
return groupIdList_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setGroupIdList(const std::vector<long>& groupIdList)
|
||||
{
|
||||
groupIdList_ = groupIdList;
|
||||
for(int dep1 = 0; dep1!= groupIdList.size(); dep1++) {
|
||||
setParameter("GroupIdList."+ std::to_string(dep1), std::to_string(groupIdList.at(dep1)));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<long> CreateUserRequest::getRoleIdList()const
|
||||
{
|
||||
return roleIdList_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setRoleIdList(const std::vector<long>& roleIdList)
|
||||
{
|
||||
roleIdList_ = roleIdList;
|
||||
for(int dep1 = 0; dep1!= roleIdList.size(); dep1++) {
|
||||
setParameter("RoleIdList."+ std::to_string(dep1), std::to_string(roleIdList.at(dep1)));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getAliyunUserId()const
|
||||
{
|
||||
return aliyunUserId_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setAliyunUserId(const std::string& aliyunUserId)
|
||||
{
|
||||
aliyunUserId_ = aliyunUserId;
|
||||
setParameter("AliyunUserId", aliyunUserId);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getUserName()const
|
||||
{
|
||||
return userName_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setUserName(const std::string& userName)
|
||||
{
|
||||
userName_ = userName;
|
||||
setParameter("UserName", userName);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::CreateUsersRequest;
|
||||
|
||||
CreateUsersRequest::CreateUsersRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateUsers")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateUsersRequest::~CreateUsersRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long CreateUsersRequest::getResourceOwnerId()const
|
||||
void CreateUsersRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateUsersRequest::getClusterId()const
|
||||
@@ -44,7 +46,7 @@ std::string CreateUsersRequest::getClusterId()const
|
||||
void CreateUsersRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateUsersRequest::getAccessKeyId()const
|
||||
@@ -55,7 +57,7 @@ std::string CreateUsersRequest::getAccessKeyId()const
|
||||
void CreateUsersRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateUsersRequest::getRegionId()const
|
||||
@@ -66,7 +68,7 @@ std::string CreateUsersRequest::getRegionId()const
|
||||
void CreateUsersRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<CreateUsersRequest::UserInfo> CreateUsersRequest::getUserInfo()const
|
||||
@@ -77,13 +79,12 @@ std::vector<CreateUsersRequest::UserInfo> CreateUsersRequest::getUserInfo()const
|
||||
void CreateUsersRequest::setUserInfo(const std::vector<UserInfo>& userInfo)
|
||||
{
|
||||
userInfo_ = userInfo;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= userInfo.size(); i++) {
|
||||
auto obj = userInfo.at(i);
|
||||
std::string str ="UserInfo."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Type", obj.type);
|
||||
setCoreParameter(str + ".UserId", obj.userId);
|
||||
setCoreParameter(str + ".UserName", obj.userName);
|
||||
for(int dep1 = 0; dep1!= userInfo.size(); dep1++) {
|
||||
auto userInfoObj = userInfo.at(dep1);
|
||||
std::string userInfoObjStr = "UserInfo." + std::to_string(dep1 + 1);
|
||||
setParameter(userInfoObjStr + ".Type", userInfoObj.type);
|
||||
setParameter(userInfoObjStr + ".UserId", userInfoObj.userId);
|
||||
setParameter(userInfoObjStr + ".UserName", userInfoObj.userName);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DeleteClusterTemplateRequest;
|
||||
|
||||
DeleteClusterTemplateRequest::DeleteClusterTemplateRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DeleteClusterTemplate")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteClusterTemplateRequest::~DeleteClusterTemplateRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DeleteClusterTemplateRequest::getResourceOwnerId()const
|
||||
void DeleteClusterTemplateRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteClusterTemplateRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string DeleteClusterTemplateRequest::getAccessKeyId()const
|
||||
void DeleteClusterTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteClusterTemplateRequest::getRegionId()const
|
||||
@@ -55,7 +57,7 @@ std::string DeleteClusterTemplateRequest::getRegionId()const
|
||||
void DeleteClusterTemplateRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteClusterTemplateRequest::getBizId()const
|
||||
@@ -66,6 +68,6 @@ std::string DeleteClusterTemplateRequest::getBizId()const
|
||||
void DeleteClusterTemplateRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setCoreParameter("BizId", bizId);
|
||||
setParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DeleteExecutionPlanRequest;
|
||||
|
||||
DeleteExecutionPlanRequest::DeleteExecutionPlanRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DeleteExecutionPlan")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteExecutionPlanRequest::~DeleteExecutionPlanRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DeleteExecutionPlanRequest::getResourceOwnerId()const
|
||||
void DeleteExecutionPlanRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteExecutionPlanRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string DeleteExecutionPlanRequest::getAccessKeyId()const
|
||||
void DeleteExecutionPlanRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteExecutionPlanRequest::getRegionId()const
|
||||
@@ -55,7 +57,7 @@ std::string DeleteExecutionPlanRequest::getRegionId()const
|
||||
void DeleteExecutionPlanRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteExecutionPlanRequest::getId()const
|
||||
@@ -66,6 +68,6 @@ std::string DeleteExecutionPlanRequest::getId()const
|
||||
void DeleteExecutionPlanRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", id);
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DeleteFlowCategoryRequest;
|
||||
|
||||
DeleteFlowCategoryRequest::DeleteFlowCategoryRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DeleteFlowCategory")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteFlowCategoryRequest::~DeleteFlowCategoryRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DeleteFlowCategoryRequest::getRegionId()const
|
||||
void DeleteFlowCategoryRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteFlowCategoryRequest::getId()const
|
||||
@@ -44,7 +46,7 @@ std::string DeleteFlowCategoryRequest::getId()const
|
||||
void DeleteFlowCategoryRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", id);
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
std::string DeleteFlowCategoryRequest::getProjectId()const
|
||||
@@ -55,6 +57,6 @@ std::string DeleteFlowCategoryRequest::getProjectId()const
|
||||
void DeleteFlowCategoryRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
|
||||
73
emr/src/model/DeleteFlowEditLockRequest.cc
Normal file
73
emr/src/model/DeleteFlowEditLockRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DeleteFlowEditLockRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DeleteFlowEditLockRequest;
|
||||
|
||||
DeleteFlowEditLockRequest::DeleteFlowEditLockRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DeleteFlowEditLock")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteFlowEditLockRequest::~DeleteFlowEditLockRequest()
|
||||
{}
|
||||
|
||||
long DeleteFlowEditLockRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteFlowEditLockRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteFlowEditLockRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteFlowEditLockRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteFlowEditLockRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteFlowEditLockRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteFlowEditLockRequest::getEntityId()const
|
||||
{
|
||||
return entityId_;
|
||||
}
|
||||
|
||||
void DeleteFlowEditLockRequest::setEntityId(const std::string& entityId)
|
||||
{
|
||||
entityId_ = entityId;
|
||||
setParameter("EntityId", entityId);
|
||||
}
|
||||
|
||||
51
emr/src/model/DeleteFlowEditLockResult.cc
Normal file
51
emr/src/model/DeleteFlowEditLockResult.cc
Normal 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/DeleteFlowEditLockResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DeleteFlowEditLockResult::DeleteFlowEditLockResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteFlowEditLockResult::DeleteFlowEditLockResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteFlowEditLockResult::~DeleteFlowEditLockResult()
|
||||
{}
|
||||
|
||||
void DeleteFlowEditLockResult::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 DeleteFlowEditLockResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DeleteFlowJobRequest;
|
||||
|
||||
DeleteFlowJobRequest::DeleteFlowJobRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DeleteFlowJob")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteFlowJobRequest::~DeleteFlowJobRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DeleteFlowJobRequest::getRegionId()const
|
||||
void DeleteFlowJobRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteFlowJobRequest::getId()const
|
||||
@@ -44,7 +46,7 @@ std::string DeleteFlowJobRequest::getId()const
|
||||
void DeleteFlowJobRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", id);
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
std::string DeleteFlowJobRequest::getProjectId()const
|
||||
@@ -55,6 +57,6 @@ std::string DeleteFlowJobRequest::getProjectId()const
|
||||
void DeleteFlowJobRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DeleteFlowProjectClusterSettingRequest;
|
||||
|
||||
DeleteFlowProjectClusterSettingRequest::DeleteFlowProjectClusterSettingRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DeleteFlowProjectClusterSetting")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteFlowProjectClusterSettingRequest::~DeleteFlowProjectClusterSettingRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DeleteFlowProjectClusterSettingRequest::getClusterId()const
|
||||
void DeleteFlowProjectClusterSettingRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DeleteFlowProjectClusterSettingRequest::getRegionId()const
|
||||
@@ -44,7 +46,7 @@ std::string DeleteFlowProjectClusterSettingRequest::getRegionId()const
|
||||
void DeleteFlowProjectClusterSettingRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteFlowProjectClusterSettingRequest::getProjectId()const
|
||||
@@ -55,6 +57,6 @@ std::string DeleteFlowProjectClusterSettingRequest::getProjectId()const
|
||||
void DeleteFlowProjectClusterSettingRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DeleteFlowProjectRequest;
|
||||
|
||||
DeleteFlowProjectRequest::DeleteFlowProjectRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DeleteFlowProject")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteFlowProjectRequest::~DeleteFlowProjectRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DeleteFlowProjectRequest::getRegionId()const
|
||||
void DeleteFlowProjectRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteFlowProjectRequest::getProjectId()const
|
||||
@@ -44,6 +46,6 @@ std::string DeleteFlowProjectRequest::getProjectId()const
|
||||
void DeleteFlowProjectRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DeleteFlowProjectUserRequest;
|
||||
|
||||
DeleteFlowProjectUserRequest::DeleteFlowProjectUserRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DeleteFlowProjectUser")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteFlowProjectUserRequest::~DeleteFlowProjectUserRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DeleteFlowProjectUserRequest::getRegionId()const
|
||||
void DeleteFlowProjectUserRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteFlowProjectUserRequest::getProjectId()const
|
||||
@@ -44,7 +46,7 @@ std::string DeleteFlowProjectUserRequest::getProjectId()const
|
||||
void DeleteFlowProjectUserRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string DeleteFlowProjectUserRequest::getUserName()const
|
||||
@@ -55,6 +57,6 @@ std::string DeleteFlowProjectUserRequest::getUserName()const
|
||||
void DeleteFlowProjectUserRequest::setUserName(const std::string& userName)
|
||||
{
|
||||
userName_ = userName;
|
||||
setCoreParameter("UserName", userName);
|
||||
setParameter("UserName", userName);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DeleteFlowRequest;
|
||||
|
||||
DeleteFlowRequest::DeleteFlowRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DeleteFlow")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteFlowRequest::~DeleteFlowRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DeleteFlowRequest::getRegionId()const
|
||||
void DeleteFlowRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteFlowRequest::getId()const
|
||||
@@ -44,7 +46,7 @@ std::string DeleteFlowRequest::getId()const
|
||||
void DeleteFlowRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", id);
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
std::string DeleteFlowRequest::getProjectId()const
|
||||
@@ -55,6 +57,6 @@ std::string DeleteFlowRequest::getProjectId()const
|
||||
void DeleteFlowRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DeleteJobRequest;
|
||||
|
||||
DeleteJobRequest::DeleteJobRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DeleteJob")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteJobRequest::~DeleteJobRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DeleteJobRequest::getResourceOwnerId()const
|
||||
void DeleteJobRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteJobRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string DeleteJobRequest::getAccessKeyId()const
|
||||
void DeleteJobRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteJobRequest::getRegionId()const
|
||||
@@ -55,7 +57,7 @@ std::string DeleteJobRequest::getRegionId()const
|
||||
void DeleteJobRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteJobRequest::getId()const
|
||||
@@ -66,6 +68,6 @@ std::string DeleteJobRequest::getId()const
|
||||
void DeleteJobRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", id);
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DeleteNoteRequest;
|
||||
|
||||
DeleteNoteRequest::DeleteNoteRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DeleteNote")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteNoteRequest::~DeleteNoteRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DeleteNoteRequest::getResourceOwnerId()const
|
||||
void DeleteNoteRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteNoteRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string DeleteNoteRequest::getAccessKeyId()const
|
||||
void DeleteNoteRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteNoteRequest::getRegionId()const
|
||||
@@ -55,7 +57,7 @@ std::string DeleteNoteRequest::getRegionId()const
|
||||
void DeleteNoteRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteNoteRequest::getId()const
|
||||
@@ -66,6 +68,6 @@ std::string DeleteNoteRequest::getId()const
|
||||
void DeleteNoteRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", id);
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DeleteResourcePoolRequest;
|
||||
|
||||
DeleteResourcePoolRequest::DeleteResourcePoolRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DeleteResourcePool")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteResourcePoolRequest::~DeleteResourcePoolRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DeleteResourcePoolRequest::getResourceOwnerId()const
|
||||
void DeleteResourcePoolRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteResourcePoolRequest::getResourcePoolId()const
|
||||
@@ -44,7 +46,7 @@ std::string DeleteResourcePoolRequest::getResourcePoolId()const
|
||||
void DeleteResourcePoolRequest::setResourcePoolId(const std::string& resourcePoolId)
|
||||
{
|
||||
resourcePoolId_ = resourcePoolId;
|
||||
setCoreParameter("ResourcePoolId", resourcePoolId);
|
||||
setParameter("ResourcePoolId", resourcePoolId);
|
||||
}
|
||||
|
||||
std::string DeleteResourcePoolRequest::getClusterId()const
|
||||
@@ -55,7 +57,7 @@ std::string DeleteResourcePoolRequest::getClusterId()const
|
||||
void DeleteResourcePoolRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DeleteResourcePoolRequest::getAccessKeyId()const
|
||||
@@ -66,7 +68,7 @@ std::string DeleteResourcePoolRequest::getAccessKeyId()const
|
||||
void DeleteResourcePoolRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteResourcePoolRequest::getRegionId()const
|
||||
@@ -77,6 +79,6 @@ std::string DeleteResourcePoolRequest::getRegionId()const
|
||||
void DeleteResourcePoolRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DeleteResourceQueueRequest;
|
||||
|
||||
DeleteResourceQueueRequest::DeleteResourceQueueRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DeleteResourceQueue")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteResourceQueueRequest::~DeleteResourceQueueRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DeleteResourceQueueRequest::getResourceOwnerId()const
|
||||
void DeleteResourceQueueRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteResourceQueueRequest::getClusterId()const
|
||||
@@ -44,7 +46,7 @@ std::string DeleteResourceQueueRequest::getClusterId()const
|
||||
void DeleteResourceQueueRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DeleteResourceQueueRequest::getAccessKeyId()const
|
||||
@@ -55,7 +57,7 @@ std::string DeleteResourceQueueRequest::getAccessKeyId()const
|
||||
void DeleteResourceQueueRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteResourceQueueRequest::getResourceQueueId()const
|
||||
@@ -66,7 +68,7 @@ std::string DeleteResourceQueueRequest::getResourceQueueId()const
|
||||
void DeleteResourceQueueRequest::setResourceQueueId(const std::string& resourceQueueId)
|
||||
{
|
||||
resourceQueueId_ = resourceQueueId;
|
||||
setCoreParameter("ResourceQueueId", resourceQueueId);
|
||||
setParameter("ResourceQueueId", resourceQueueId);
|
||||
}
|
||||
|
||||
std::string DeleteResourceQueueRequest::getRegionId()const
|
||||
@@ -77,6 +79,6 @@ std::string DeleteResourceQueueRequest::getRegionId()const
|
||||
void DeleteResourceQueueRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DeleteScalingRuleRequest;
|
||||
|
||||
DeleteScalingRuleRequest::DeleteScalingRuleRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DeleteScalingRule")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteScalingRuleRequest::~DeleteScalingRuleRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DeleteScalingRuleRequest::getResourceOwnerId()const
|
||||
void DeleteScalingRuleRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteScalingRuleRequest::getClusterId()const
|
||||
@@ -44,7 +46,7 @@ std::string DeleteScalingRuleRequest::getClusterId()const
|
||||
void DeleteScalingRuleRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DeleteScalingRuleRequest::getScalingRuleId()const
|
||||
@@ -55,7 +57,7 @@ std::string DeleteScalingRuleRequest::getScalingRuleId()const
|
||||
void DeleteScalingRuleRequest::setScalingRuleId(const std::string& scalingRuleId)
|
||||
{
|
||||
scalingRuleId_ = scalingRuleId;
|
||||
setCoreParameter("ScalingRuleId", scalingRuleId);
|
||||
setParameter("ScalingRuleId", scalingRuleId);
|
||||
}
|
||||
|
||||
std::string DeleteScalingRuleRequest::getAccessKeyId()const
|
||||
@@ -66,7 +68,7 @@ std::string DeleteScalingRuleRequest::getAccessKeyId()const
|
||||
void DeleteScalingRuleRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteScalingRuleRequest::getRegionId()const
|
||||
@@ -77,7 +79,7 @@ std::string DeleteScalingRuleRequest::getRegionId()const
|
||||
void DeleteScalingRuleRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteScalingRuleRequest::getHostGroupId()const
|
||||
@@ -88,6 +90,6 @@ std::string DeleteScalingRuleRequest::getHostGroupId()const
|
||||
void DeleteScalingRuleRequest::setHostGroupId(const std::string& hostGroupId)
|
||||
{
|
||||
hostGroupId_ = hostGroupId;
|
||||
setCoreParameter("HostGroupId", hostGroupId);
|
||||
setParameter("HostGroupId", hostGroupId);
|
||||
}
|
||||
|
||||
|
||||
106
emr/src/model/DeleteTagRequest.cc
Normal file
106
emr/src/model/DeleteTagRequest.cc
Normal 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/DeleteTagRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DeleteTagRequest;
|
||||
|
||||
DeleteTagRequest::DeleteTagRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DeleteTag")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteTagRequest::~DeleteTagRequest()
|
||||
{}
|
||||
|
||||
long DeleteTagRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteTagRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string DeleteTagRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteTagRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteTagRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
long DeleteTagRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
std::string DeleteTagRequest::getCategory()const
|
||||
{
|
||||
return category_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setCategory(const std::string& category)
|
||||
{
|
||||
category_ = category;
|
||||
setParameter("Category", category);
|
||||
}
|
||||
|
||||
51
emr/src/model/DeleteTagResult.cc
Normal file
51
emr/src/model/DeleteTagResult.cc
Normal 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/DeleteTagResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DeleteTagResult::DeleteTagResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteTagResult::DeleteTagResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteTagResult::~DeleteTagResult()
|
||||
{}
|
||||
|
||||
void DeleteTagResult::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 DeleteTagResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DeleteUserRequest;
|
||||
|
||||
DeleteUserRequest::DeleteUserRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DeleteUser")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteUserRequest::~DeleteUserRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DeleteUserRequest::getResourceOwnerId()const
|
||||
void DeleteUserRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteUserRequest::getClusterId()const
|
||||
@@ -44,7 +46,7 @@ std::string DeleteUserRequest::getClusterId()const
|
||||
void DeleteUserRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DeleteUserRequest::getType()const
|
||||
@@ -55,7 +57,7 @@ std::string DeleteUserRequest::getType()const
|
||||
void DeleteUserRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setCoreParameter("Type", type);
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string DeleteUserRequest::getUserId()const
|
||||
@@ -66,7 +68,7 @@ std::string DeleteUserRequest::getUserId()const
|
||||
void DeleteUserRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setCoreParameter("UserId", userId);
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string DeleteUserRequest::getAccessKeyId()const
|
||||
@@ -77,7 +79,7 @@ std::string DeleteUserRequest::getAccessKeyId()const
|
||||
void DeleteUserRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteUserRequest::getRegionId()const
|
||||
@@ -88,6 +90,6 @@ std::string DeleteUserRequest::getRegionId()const
|
||||
void DeleteUserRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeClusterBasicInfoRequest;
|
||||
|
||||
DescribeClusterBasicInfoRequest::DescribeClusterBasicInfoRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeClusterBasicInfo")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeClusterBasicInfoRequest::~DescribeClusterBasicInfoRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeClusterBasicInfoRequest::getResourceOwnerId()const
|
||||
void DescribeClusterBasicInfoRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeClusterBasicInfoRequest::getClusterId()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeClusterBasicInfoRequest::getClusterId()const
|
||||
void DescribeClusterBasicInfoRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterBasicInfoRequest::getAccessKeyId()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeClusterBasicInfoRequest::getAccessKeyId()const
|
||||
void DescribeClusterBasicInfoRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterBasicInfoRequest::getRegionId()const
|
||||
@@ -66,6 +68,6 @@ std::string DescribeClusterBasicInfoRequest::getRegionId()const
|
||||
void DescribeClusterBasicInfoRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,52 +20,54 @@ using AlibabaCloud::Emr::Model::DescribeClusterMetaCollectRequest;
|
||||
|
||||
DescribeClusterMetaCollectRequest::DescribeClusterMetaCollectRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeClusterMetaCollect")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeClusterMetaCollectRequest::~DescribeClusterMetaCollectRequest()
|
||||
{}
|
||||
|
||||
long DescribeClusterMetaCollectRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeClusterMetaCollectRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeClusterMetaCollectRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeClusterMetaCollectRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterMetaCollectRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeClusterMetaCollectRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterMetaCollectRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeClusterMetaCollectRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
long DescribeClusterMetaCollectRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeClusterMetaCollectRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeClusterMetaCollectRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeClusterMetaCollectRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterMetaCollectRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeClusterMetaCollectRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterMetaCollectRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeClusterMetaCollectRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeClusterOperationHostTaskLogRequest;
|
||||
|
||||
DescribeClusterOperationHostTaskLogRequest::DescribeClusterOperationHostTaskLogRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeClusterOperationHostTaskLog")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeClusterOperationHostTaskLogRequest::~DescribeClusterOperationHostTaskLogRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeClusterOperationHostTaskLogRequest::getResourceOwnerId()const
|
||||
void DescribeClusterOperationHostTaskLogRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeClusterOperationHostTaskLogRequest::getHostId()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeClusterOperationHostTaskLogRequest::getHostId()const
|
||||
void DescribeClusterOperationHostTaskLogRequest::setHostId(const std::string& hostId)
|
||||
{
|
||||
hostId_ = hostId;
|
||||
setCoreParameter("HostId", hostId);
|
||||
setParameter("HostId", hostId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterOperationHostTaskLogRequest::getClusterId()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeClusterOperationHostTaskLogRequest::getClusterId()const
|
||||
void DescribeClusterOperationHostTaskLogRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterOperationHostTaskLogRequest::getAccessKeyId()const
|
||||
@@ -66,7 +68,7 @@ std::string DescribeClusterOperationHostTaskLogRequest::getAccessKeyId()const
|
||||
void DescribeClusterOperationHostTaskLogRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterOperationHostTaskLogRequest::getRegionId()const
|
||||
@@ -77,7 +79,7 @@ std::string DescribeClusterOperationHostTaskLogRequest::getRegionId()const
|
||||
void DescribeClusterOperationHostTaskLogRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterOperationHostTaskLogRequest::getOperationId()const
|
||||
@@ -88,7 +90,7 @@ std::string DescribeClusterOperationHostTaskLogRequest::getOperationId()const
|
||||
void DescribeClusterOperationHostTaskLogRequest::setOperationId(const std::string& operationId)
|
||||
{
|
||||
operationId_ = operationId;
|
||||
setCoreParameter("OperationId", operationId);
|
||||
setParameter("OperationId", operationId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterOperationHostTaskLogRequest::getTaskId()const
|
||||
@@ -99,7 +101,7 @@ std::string DescribeClusterOperationHostTaskLogRequest::getTaskId()const
|
||||
void DescribeClusterOperationHostTaskLogRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", taskId);
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterOperationHostTaskLogRequest::getStatus()const
|
||||
@@ -110,6 +112,6 @@ std::string DescribeClusterOperationHostTaskLogRequest::getStatus()const
|
||||
void DescribeClusterOperationHostTaskLogRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setCoreParameter("Status", status);
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeClusterResourcePoolSchedulerTypeRequest;
|
||||
|
||||
DescribeClusterResourcePoolSchedulerTypeRequest::DescribeClusterResourcePoolSchedulerTypeRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeClusterResourcePoolSchedulerType")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeClusterResourcePoolSchedulerTypeRequest::~DescribeClusterResourcePoolSchedulerTypeRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeClusterResourcePoolSchedulerTypeRequest::getResourceOwnerId()const
|
||||
void DescribeClusterResourcePoolSchedulerTypeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeClusterResourcePoolSchedulerTypeRequest::getClusterId()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeClusterResourcePoolSchedulerTypeRequest::getClusterId()const
|
||||
void DescribeClusterResourcePoolSchedulerTypeRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterResourcePoolSchedulerTypeRequest::getAccessKeyId()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeClusterResourcePoolSchedulerTypeRequest::getAccessKeyId()con
|
||||
void DescribeClusterResourcePoolSchedulerTypeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterResourcePoolSchedulerTypeRequest::getRegionId()const
|
||||
@@ -66,6 +68,6 @@ std::string DescribeClusterResourcePoolSchedulerTypeRequest::getRegionId()const
|
||||
void DescribeClusterResourcePoolSchedulerTypeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeClusterServiceConfigHistoryRequest;
|
||||
|
||||
DescribeClusterServiceConfigHistoryRequest::DescribeClusterServiceConfigHistoryRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeClusterServiceConfigHistory")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeClusterServiceConfigHistoryRequest::~DescribeClusterServiceConfigHistoryRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeClusterServiceConfigHistoryRequest::getResourceOwnerId()const
|
||||
void DescribeClusterServiceConfigHistoryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceConfigHistoryRequest::getClusterId()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeClusterServiceConfigHistoryRequest::getClusterId()const
|
||||
void DescribeClusterServiceConfigHistoryRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceConfigHistoryRequest::getAccessKeyId()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeClusterServiceConfigHistoryRequest::getAccessKeyId()const
|
||||
void DescribeClusterServiceConfigHistoryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceConfigHistoryRequest::getConfigVersion()const
|
||||
@@ -66,7 +68,7 @@ std::string DescribeClusterServiceConfigHistoryRequest::getConfigVersion()const
|
||||
void DescribeClusterServiceConfigHistoryRequest::setConfigVersion(const std::string& configVersion)
|
||||
{
|
||||
configVersion_ = configVersion;
|
||||
setCoreParameter("ConfigVersion", configVersion);
|
||||
setParameter("ConfigVersion", configVersion);
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceConfigHistoryRequest::getRegionId()const
|
||||
@@ -77,7 +79,7 @@ std::string DescribeClusterServiceConfigHistoryRequest::getRegionId()const
|
||||
void DescribeClusterServiceConfigHistoryRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceConfigHistoryRequest::getServiceName()const
|
||||
@@ -88,6 +90,6 @@ std::string DescribeClusterServiceConfigHistoryRequest::getServiceName()const
|
||||
void DescribeClusterServiceConfigHistoryRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setCoreParameter("ServiceName", serviceName);
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeClusterServiceConfigRequest;
|
||||
|
||||
DescribeClusterServiceConfigRequest::DescribeClusterServiceConfigRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeClusterServiceConfig")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeClusterServiceConfigRequest::~DescribeClusterServiceConfigRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeClusterServiceConfigRequest::getResourceOwnerId()const
|
||||
void DescribeClusterServiceConfigRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceConfigRequest::getHostInstanceId()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeClusterServiceConfigRequest::getHostInstanceId()const
|
||||
void DescribeClusterServiceConfigRequest::setHostInstanceId(const std::string& hostInstanceId)
|
||||
{
|
||||
hostInstanceId_ = hostInstanceId;
|
||||
setCoreParameter("HostInstanceId", hostInstanceId);
|
||||
setParameter("HostInstanceId", hostInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceConfigRequest::getTagValue()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeClusterServiceConfigRequest::getTagValue()const
|
||||
void DescribeClusterServiceConfigRequest::setTagValue(const std::string& tagValue)
|
||||
{
|
||||
tagValue_ = tagValue;
|
||||
setCoreParameter("TagValue", tagValue);
|
||||
setParameter("TagValue", tagValue);
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceConfigRequest::getGroupId()const
|
||||
@@ -66,7 +68,7 @@ std::string DescribeClusterServiceConfigRequest::getGroupId()const
|
||||
void DescribeClusterServiceConfigRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceConfigRequest::getClusterId()const
|
||||
@@ -77,7 +79,7 @@ std::string DescribeClusterServiceConfigRequest::getClusterId()const
|
||||
void DescribeClusterServiceConfigRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceConfigRequest::getAccessKeyId()const
|
||||
@@ -88,7 +90,7 @@ std::string DescribeClusterServiceConfigRequest::getAccessKeyId()const
|
||||
void DescribeClusterServiceConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceConfigRequest::getConfigVersion()const
|
||||
@@ -99,7 +101,7 @@ std::string DescribeClusterServiceConfigRequest::getConfigVersion()const
|
||||
void DescribeClusterServiceConfigRequest::setConfigVersion(const std::string& configVersion)
|
||||
{
|
||||
configVersion_ = configVersion;
|
||||
setCoreParameter("ConfigVersion", configVersion);
|
||||
setParameter("ConfigVersion", configVersion);
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceConfigRequest::getRegionId()const
|
||||
@@ -110,7 +112,7 @@ std::string DescribeClusterServiceConfigRequest::getRegionId()const
|
||||
void DescribeClusterServiceConfigRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceConfigRequest::getServiceName()const
|
||||
@@ -121,6 +123,6 @@ std::string DescribeClusterServiceConfigRequest::getServiceName()const
|
||||
void DescribeClusterServiceConfigRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setCoreParameter("ServiceName", serviceName);
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeClusterServiceConfigTagRequest;
|
||||
|
||||
DescribeClusterServiceConfigTagRequest::DescribeClusterServiceConfigTagRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeClusterServiceConfigTag")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeClusterServiceConfigTagRequest::~DescribeClusterServiceConfigTagRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeClusterServiceConfigTagRequest::getResourceOwnerId()const
|
||||
void DescribeClusterServiceConfigTagRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceConfigTagRequest::getClusterId()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeClusterServiceConfigTagRequest::getClusterId()const
|
||||
void DescribeClusterServiceConfigTagRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceConfigTagRequest::getAccessKeyId()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeClusterServiceConfigTagRequest::getAccessKeyId()const
|
||||
void DescribeClusterServiceConfigTagRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceConfigTagRequest::getRegionId()const
|
||||
@@ -66,7 +68,7 @@ std::string DescribeClusterServiceConfigTagRequest::getRegionId()const
|
||||
void DescribeClusterServiceConfigTagRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceConfigTagRequest::getConfigTag()const
|
||||
@@ -77,7 +79,7 @@ std::string DescribeClusterServiceConfigTagRequest::getConfigTag()const
|
||||
void DescribeClusterServiceConfigTagRequest::setConfigTag(const std::string& configTag)
|
||||
{
|
||||
configTag_ = configTag;
|
||||
setCoreParameter("ConfigTag", configTag);
|
||||
setParameter("ConfigTag", configTag);
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceConfigTagRequest::getServiceName()const
|
||||
@@ -88,6 +90,6 @@ std::string DescribeClusterServiceConfigTagRequest::getServiceName()const
|
||||
void DescribeClusterServiceConfigTagRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setCoreParameter("ServiceName", serviceName);
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeClusterServiceRequest;
|
||||
|
||||
DescribeClusterServiceRequest::DescribeClusterServiceRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeClusterService")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeClusterServiceRequest::~DescribeClusterServiceRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeClusterServiceRequest::getResourceOwnerId()const
|
||||
void DescribeClusterServiceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceRequest::getClusterId()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeClusterServiceRequest::getClusterId()const
|
||||
void DescribeClusterServiceRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceRequest::getAccessKeyId()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeClusterServiceRequest::getAccessKeyId()const
|
||||
void DescribeClusterServiceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceRequest::getRegionId()const
|
||||
@@ -66,7 +68,7 @@ std::string DescribeClusterServiceRequest::getRegionId()const
|
||||
void DescribeClusterServiceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceRequest::getServiceName()const
|
||||
@@ -77,6 +79,6 @@ std::string DescribeClusterServiceRequest::getServiceName()const
|
||||
void DescribeClusterServiceRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setCoreParameter("ServiceName", serviceName);
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeClusterTemplateRequest;
|
||||
|
||||
DescribeClusterTemplateRequest::DescribeClusterTemplateRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeClusterTemplate")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeClusterTemplateRequest::~DescribeClusterTemplateRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeClusterTemplateRequest::getResourceOwnerId()const
|
||||
void DescribeClusterTemplateRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeClusterTemplateRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeClusterTemplateRequest::getAccessKeyId()const
|
||||
void DescribeClusterTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterTemplateRequest::getBizId()const
|
||||
@@ -55,6 +57,6 @@ std::string DescribeClusterTemplateRequest::getBizId()const
|
||||
void DescribeClusterTemplateRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setCoreParameter("BizId", bizId);
|
||||
setParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeClusterV2Request;
|
||||
|
||||
DescribeClusterV2Request::DescribeClusterV2Request() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeClusterV2")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeClusterV2Request::~DescribeClusterV2Request()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeClusterV2Request::getResourceOwnerId()const
|
||||
void DescribeClusterV2Request::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeClusterV2Request::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeClusterV2Request::getAccessKeyId()const
|
||||
void DescribeClusterV2Request::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterV2Request::getRegionId()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeClusterV2Request::getRegionId()const
|
||||
void DescribeClusterV2Request::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterV2Request::getId()const
|
||||
@@ -66,6 +68,6 @@ std::string DescribeClusterV2Request::getId()const
|
||||
void DescribeClusterV2Request::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", id);
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeDataSourceRequest;
|
||||
|
||||
DescribeDataSourceRequest::DescribeDataSourceRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeDataSource")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDataSourceRequest::~DescribeDataSourceRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeDataSourceRequest::getResourceOwnerId()const
|
||||
void DescribeDataSourceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDataSourceRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeDataSourceRequest::getAccessKeyId()const
|
||||
void DescribeDataSourceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDataSourceRequest::getRegionId()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeDataSourceRequest::getRegionId()const
|
||||
void DescribeDataSourceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDataSourceRequest::getId()const
|
||||
@@ -66,6 +68,6 @@ std::string DescribeDataSourceRequest::getId()const
|
||||
void DescribeDataSourceRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", id);
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeEmrMainVersionRequest;
|
||||
|
||||
DescribeEmrMainVersionRequest::DescribeEmrMainVersionRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeEmrMainVersion")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeEmrMainVersionRequest::~DescribeEmrMainVersionRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeEmrMainVersionRequest::getResourceOwnerId()const
|
||||
void DescribeEmrMainVersionRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeEmrMainVersionRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeEmrMainVersionRequest::getAccessKeyId()const
|
||||
void DescribeEmrMainVersionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeEmrMainVersionRequest::getRegionId()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeEmrMainVersionRequest::getRegionId()const
|
||||
void DescribeEmrMainVersionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeEmrMainVersionRequest::getEmrVersion()const
|
||||
@@ -66,6 +68,6 @@ std::string DescribeEmrMainVersionRequest::getEmrVersion()const
|
||||
void DescribeEmrMainVersionRequest::setEmrVersion(const std::string& emrVersion)
|
||||
{
|
||||
emrVersion_ = emrVersion;
|
||||
setCoreParameter("EmrVersion", emrVersion);
|
||||
setParameter("EmrVersion", emrVersion);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeExecutionPlanRequest;
|
||||
|
||||
DescribeExecutionPlanRequest::DescribeExecutionPlanRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeExecutionPlan")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeExecutionPlanRequest::~DescribeExecutionPlanRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeExecutionPlanRequest::getResourceOwnerId()const
|
||||
void DescribeExecutionPlanRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeExecutionPlanRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeExecutionPlanRequest::getAccessKeyId()const
|
||||
void DescribeExecutionPlanRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeExecutionPlanRequest::getRegionId()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeExecutionPlanRequest::getRegionId()const
|
||||
void DescribeExecutionPlanRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeExecutionPlanRequest::getId()const
|
||||
@@ -66,6 +68,6 @@ std::string DescribeExecutionPlanRequest::getId()const
|
||||
void DescribeExecutionPlanRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", id);
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeFlowCategoryRequest;
|
||||
|
||||
DescribeFlowCategoryRequest::DescribeFlowCategoryRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeFlowCategory")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeFlowCategoryRequest::~DescribeFlowCategoryRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DescribeFlowCategoryRequest::getRegionId()const
|
||||
void DescribeFlowCategoryRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeFlowCategoryRequest::getId()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeFlowCategoryRequest::getId()const
|
||||
void DescribeFlowCategoryRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", id);
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
std::string DescribeFlowCategoryRequest::getProjectId()const
|
||||
@@ -55,6 +57,6 @@ std::string DescribeFlowCategoryRequest::getProjectId()const
|
||||
void DescribeFlowCategoryRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeFlowCategoryTreeRequest;
|
||||
|
||||
DescribeFlowCategoryTreeRequest::DescribeFlowCategoryTreeRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeFlowCategoryTree")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeFlowCategoryTreeRequest::~DescribeFlowCategoryTreeRequest()
|
||||
{}
|
||||
@@ -33,7 +35,18 @@ std::string DescribeFlowCategoryTreeRequest::getType()const
|
||||
void DescribeFlowCategoryTreeRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setCoreParameter("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
|
||||
@@ -44,7 +57,18 @@ std::string DescribeFlowCategoryTreeRequest::getRegionId()const
|
||||
void DescribeFlowCategoryTreeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("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
|
||||
@@ -55,6 +79,17 @@ std::string DescribeFlowCategoryTreeRequest::getProjectId()const
|
||||
void DescribeFlowCategoryTreeRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string DescribeFlowCategoryTreeRequest::getCategoryId()const
|
||||
{
|
||||
return categoryId_;
|
||||
}
|
||||
|
||||
void DescribeFlowCategoryTreeRequest::setCategoryId(const std::string& categoryId)
|
||||
{
|
||||
categoryId_ = categoryId;
|
||||
setParameter("CategoryId", categoryId);
|
||||
}
|
||||
|
||||
|
||||
194
emr/src/model/DescribeFlowEntitySnapshotRequest.cc
Normal file
194
emr/src/model/DescribeFlowEntitySnapshotRequest.cc
Normal file
@@ -0,0 +1,194 @@
|
||||
/*
|
||||
* 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/DescribeFlowEntitySnapshotRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DescribeFlowEntitySnapshotRequest;
|
||||
|
||||
DescribeFlowEntitySnapshotRequest::DescribeFlowEntitySnapshotRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeFlowEntitySnapshot")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeFlowEntitySnapshotRequest::~DescribeFlowEntitySnapshotRequest()
|
||||
{}
|
||||
|
||||
long DescribeFlowEntitySnapshotRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeFlowEntitySnapshotRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int DescribeFlowEntitySnapshotRequest::getPageCount()const
|
||||
{
|
||||
return pageCount_;
|
||||
}
|
||||
|
||||
void DescribeFlowEntitySnapshotRequest::setPageCount(int pageCount)
|
||||
{
|
||||
pageCount_ = pageCount;
|
||||
setParameter("PageCount", std::to_string(pageCount));
|
||||
}
|
||||
|
||||
std::string DescribeFlowEntitySnapshotRequest::getOrderMode()const
|
||||
{
|
||||
return orderMode_;
|
||||
}
|
||||
|
||||
void DescribeFlowEntitySnapshotRequest::setOrderMode(const std::string& orderMode)
|
||||
{
|
||||
orderMode_ = orderMode;
|
||||
setParameter("OrderMode", orderMode);
|
||||
}
|
||||
|
||||
std::string DescribeFlowEntitySnapshotRequest::getEntityId()const
|
||||
{
|
||||
return entityId_;
|
||||
}
|
||||
|
||||
void DescribeFlowEntitySnapshotRequest::setEntityId(const std::string& entityId)
|
||||
{
|
||||
entityId_ = entityId;
|
||||
setParameter("EntityId", entityId);
|
||||
}
|
||||
|
||||
int DescribeFlowEntitySnapshotRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeFlowEntitySnapshotRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeFlowEntitySnapshotRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeFlowEntitySnapshotRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeFlowEntitySnapshotRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeFlowEntitySnapshotRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeFlowEntitySnapshotRequest::getLimit()const
|
||||
{
|
||||
return limit_;
|
||||
}
|
||||
|
||||
void DescribeFlowEntitySnapshotRequest::setLimit(int limit)
|
||||
{
|
||||
limit_ = limit;
|
||||
setParameter("Limit", std::to_string(limit));
|
||||
}
|
||||
|
||||
int DescribeFlowEntitySnapshotRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeFlowEntitySnapshotRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeFlowEntitySnapshotRequest::getCommitterId()const
|
||||
{
|
||||
return committerId_;
|
||||
}
|
||||
|
||||
void DescribeFlowEntitySnapshotRequest::setCommitterId(const std::string& committerId)
|
||||
{
|
||||
committerId_ = committerId;
|
||||
setParameter("CommitterId", committerId);
|
||||
}
|
||||
|
||||
int DescribeFlowEntitySnapshotRequest::getCurrentSize()const
|
||||
{
|
||||
return currentSize_;
|
||||
}
|
||||
|
||||
void DescribeFlowEntitySnapshotRequest::setCurrentSize(int currentSize)
|
||||
{
|
||||
currentSize_ = currentSize;
|
||||
setParameter("CurrentSize", std::to_string(currentSize));
|
||||
}
|
||||
|
||||
std::string DescribeFlowEntitySnapshotRequest::getOrderField()const
|
||||
{
|
||||
return orderField_;
|
||||
}
|
||||
|
||||
void DescribeFlowEntitySnapshotRequest::setOrderField(const std::string& orderField)
|
||||
{
|
||||
orderField_ = orderField;
|
||||
setParameter("OrderField", orderField);
|
||||
}
|
||||
|
||||
std::string DescribeFlowEntitySnapshotRequest::getEntityGroupId()const
|
||||
{
|
||||
return entityGroupId_;
|
||||
}
|
||||
|
||||
void DescribeFlowEntitySnapshotRequest::setEntityGroupId(const std::string& entityGroupId)
|
||||
{
|
||||
entityGroupId_ = entityGroupId;
|
||||
setParameter("EntityGroupId", entityGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeFlowEntitySnapshotRequest::getRevision()const
|
||||
{
|
||||
return revision_;
|
||||
}
|
||||
|
||||
void DescribeFlowEntitySnapshotRequest::setRevision(const std::string& revision)
|
||||
{
|
||||
revision_ = revision;
|
||||
setParameter("Revision", revision);
|
||||
}
|
||||
|
||||
std::string DescribeFlowEntitySnapshotRequest::getEntityType()const
|
||||
{
|
||||
return entityType_;
|
||||
}
|
||||
|
||||
void DescribeFlowEntitySnapshotRequest::setEntityType(const std::string& entityType)
|
||||
{
|
||||
entityType_ = entityType;
|
||||
setParameter("EntityType", entityType);
|
||||
}
|
||||
|
||||
114
emr/src/model/DescribeFlowEntitySnapshotResult.cc
Normal file
114
emr/src/model/DescribeFlowEntitySnapshotResult.cc
Normal file
@@ -0,0 +1,114 @@
|
||||
/*
|
||||
* 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/DescribeFlowEntitySnapshotResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DescribeFlowEntitySnapshotResult::DescribeFlowEntitySnapshotResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeFlowEntitySnapshotResult::DescribeFlowEntitySnapshotResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeFlowEntitySnapshotResult::~DescribeFlowEntitySnapshotResult()
|
||||
{}
|
||||
|
||||
void DescribeFlowEntitySnapshotResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["GmtCreate"].isNull())
|
||||
gmtCreate_ = std::stol(value["GmtCreate"].asString());
|
||||
if(!value["Revision"].isNull())
|
||||
revision_ = value["Revision"].asString();
|
||||
if(!value["UserId"].isNull())
|
||||
userId_ = value["UserId"].asString();
|
||||
if(!value["CommitterId"].isNull())
|
||||
committerId_ = value["CommitterId"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["EntityId"].isNull())
|
||||
entityId_ = value["EntityId"].asString();
|
||||
if(!value["EntityGroupId"].isNull())
|
||||
entityGroupId_ = value["EntityGroupId"].asString();
|
||||
if(!value["EntityType"].isNull())
|
||||
entityType_ = value["EntityType"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Active"].isNull())
|
||||
active_ = value["Active"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeFlowEntitySnapshotResult::getEntityId()const
|
||||
{
|
||||
return entityId_;
|
||||
}
|
||||
|
||||
std::string DescribeFlowEntitySnapshotResult::getEntityType()const
|
||||
{
|
||||
return entityType_;
|
||||
}
|
||||
|
||||
long DescribeFlowEntitySnapshotResult::getGmtCreate()const
|
||||
{
|
||||
return gmtCreate_;
|
||||
}
|
||||
|
||||
bool DescribeFlowEntitySnapshotResult::getActive()const
|
||||
{
|
||||
return active_;
|
||||
}
|
||||
|
||||
std::string DescribeFlowEntitySnapshotResult::getRevision()const
|
||||
{
|
||||
return revision_;
|
||||
}
|
||||
|
||||
std::string DescribeFlowEntitySnapshotResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeFlowEntitySnapshotResult::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
std::string DescribeFlowEntitySnapshotResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeFlowEntitySnapshotResult::getEntityGroupId()const
|
||||
{
|
||||
return entityGroupId_;
|
||||
}
|
||||
|
||||
std::string DescribeFlowEntitySnapshotResult::getCommitterId()const
|
||||
{
|
||||
return committerId_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeFlowInstanceRequest;
|
||||
|
||||
DescribeFlowInstanceRequest::DescribeFlowInstanceRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeFlowInstance")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeFlowInstanceRequest::~DescribeFlowInstanceRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DescribeFlowInstanceRequest::getRegionId()const
|
||||
void DescribeFlowInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeFlowInstanceRequest::getId()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeFlowInstanceRequest::getId()const
|
||||
void DescribeFlowInstanceRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", id);
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
std::string DescribeFlowInstanceRequest::getProjectId()const
|
||||
@@ -55,6 +57,6 @@ std::string DescribeFlowInstanceRequest::getProjectId()const
|
||||
void DescribeFlowInstanceRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
|
||||
@@ -57,6 +57,8 @@ void DescribeFlowInstanceResult::parse(const std::string &payload)
|
||||
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"];
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeFlowJobRequest;
|
||||
|
||||
DescribeFlowJobRequest::DescribeFlowJobRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeFlowJob")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeFlowJobRequest::~DescribeFlowJobRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DescribeFlowJobRequest::getRegionId()const
|
||||
void DescribeFlowJobRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeFlowJobRequest::getId()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeFlowJobRequest::getId()const
|
||||
void DescribeFlowJobRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", id);
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
std::string DescribeFlowJobRequest::getProjectId()const
|
||||
@@ -55,6 +57,6 @@ std::string DescribeFlowJobRequest::getProjectId()const
|
||||
void DescribeFlowJobRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
|
||||
@@ -89,6 +89,10 @@ void DescribeFlowJobResult::parse(const std::string &payload)
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
@@ -132,6 +136,16 @@ 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_;
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeFlowNodeInstanceContainerLogRequest;
|
||||
|
||||
DescribeFlowNodeInstanceContainerLogRequest::DescribeFlowNodeInstanceContainerLogRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeFlowNodeInstanceContainerLog")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeFlowNodeInstanceContainerLogRequest::~DescribeFlowNodeInstanceContainerLogRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ int DescribeFlowNodeInstanceContainerLogRequest::getOffset()const
|
||||
void DescribeFlowNodeInstanceContainerLogRequest::setOffset(int offset)
|
||||
{
|
||||
offset_ = offset;
|
||||
setCoreParameter("Offset", std::to_string(offset));
|
||||
setParameter("Offset", std::to_string(offset));
|
||||
}
|
||||
|
||||
std::string DescribeFlowNodeInstanceContainerLogRequest::getLogName()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeFlowNodeInstanceContainerLogRequest::getLogName()const
|
||||
void DescribeFlowNodeInstanceContainerLogRequest::setLogName(const std::string& logName)
|
||||
{
|
||||
logName_ = logName;
|
||||
setCoreParameter("LogName", logName);
|
||||
setParameter("LogName", logName);
|
||||
}
|
||||
|
||||
int DescribeFlowNodeInstanceContainerLogRequest::getLength()const
|
||||
@@ -55,7 +57,7 @@ int DescribeFlowNodeInstanceContainerLogRequest::getLength()const
|
||||
void DescribeFlowNodeInstanceContainerLogRequest::setLength(int length)
|
||||
{
|
||||
length_ = length;
|
||||
setCoreParameter("Length", std::to_string(length));
|
||||
setParameter("Length", std::to_string(length));
|
||||
}
|
||||
|
||||
std::string DescribeFlowNodeInstanceContainerLogRequest::getNodeInstanceId()const
|
||||
@@ -66,7 +68,7 @@ std::string DescribeFlowNodeInstanceContainerLogRequest::getNodeInstanceId()cons
|
||||
void DescribeFlowNodeInstanceContainerLogRequest::setNodeInstanceId(const std::string& nodeInstanceId)
|
||||
{
|
||||
nodeInstanceId_ = nodeInstanceId;
|
||||
setCoreParameter("NodeInstanceId", nodeInstanceId);
|
||||
setParameter("NodeInstanceId", nodeInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeFlowNodeInstanceContainerLogRequest::getRegionId()const
|
||||
@@ -77,7 +79,7 @@ std::string DescribeFlowNodeInstanceContainerLogRequest::getRegionId()const
|
||||
void DescribeFlowNodeInstanceContainerLogRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeFlowNodeInstanceContainerLogRequest::getAppId()const
|
||||
@@ -88,7 +90,7 @@ std::string DescribeFlowNodeInstanceContainerLogRequest::getAppId()const
|
||||
void DescribeFlowNodeInstanceContainerLogRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setCoreParameter("AppId", appId);
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DescribeFlowNodeInstanceContainerLogRequest::getContainerId()const
|
||||
@@ -99,7 +101,7 @@ std::string DescribeFlowNodeInstanceContainerLogRequest::getContainerId()const
|
||||
void DescribeFlowNodeInstanceContainerLogRequest::setContainerId(const std::string& containerId)
|
||||
{
|
||||
containerId_ = containerId;
|
||||
setCoreParameter("ContainerId", containerId);
|
||||
setParameter("ContainerId", containerId);
|
||||
}
|
||||
|
||||
std::string DescribeFlowNodeInstanceContainerLogRequest::getProjectId()const
|
||||
@@ -110,6 +112,6 @@ std::string DescribeFlowNodeInstanceContainerLogRequest::getProjectId()const
|
||||
void DescribeFlowNodeInstanceContainerLogRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeFlowNodeInstanceLauncherLogRequest;
|
||||
|
||||
DescribeFlowNodeInstanceLauncherLogRequest::DescribeFlowNodeInstanceLauncherLogRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeFlowNodeInstanceLauncherLog")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeFlowNodeInstanceLauncherLogRequest::~DescribeFlowNodeInstanceLauncherLogRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ int DescribeFlowNodeInstanceLauncherLogRequest::getOffset()const
|
||||
void DescribeFlowNodeInstanceLauncherLogRequest::setOffset(int offset)
|
||||
{
|
||||
offset_ = offset;
|
||||
setCoreParameter("Offset", std::to_string(offset));
|
||||
setParameter("Offset", std::to_string(offset));
|
||||
}
|
||||
|
||||
int DescribeFlowNodeInstanceLauncherLogRequest::getStart()const
|
||||
@@ -44,7 +46,7 @@ int DescribeFlowNodeInstanceLauncherLogRequest::getStart()const
|
||||
void DescribeFlowNodeInstanceLauncherLogRequest::setStart(int start)
|
||||
{
|
||||
start_ = start;
|
||||
setCoreParameter("Start", std::to_string(start));
|
||||
setParameter("Start", std::to_string(start));
|
||||
}
|
||||
|
||||
int DescribeFlowNodeInstanceLauncherLogRequest::getLength()const
|
||||
@@ -55,7 +57,7 @@ int DescribeFlowNodeInstanceLauncherLogRequest::getLength()const
|
||||
void DescribeFlowNodeInstanceLauncherLogRequest::setLength(int length)
|
||||
{
|
||||
length_ = length;
|
||||
setCoreParameter("Length", std::to_string(length));
|
||||
setParameter("Length", std::to_string(length));
|
||||
}
|
||||
|
||||
long DescribeFlowNodeInstanceLauncherLogRequest::getEndTime()const
|
||||
@@ -66,7 +68,7 @@ long DescribeFlowNodeInstanceLauncherLogRequest::getEndTime()const
|
||||
void DescribeFlowNodeInstanceLauncherLogRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", std::to_string(endTime));
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
long DescribeFlowNodeInstanceLauncherLogRequest::getStartTime()const
|
||||
@@ -77,7 +79,7 @@ long DescribeFlowNodeInstanceLauncherLogRequest::getStartTime()const
|
||||
void DescribeFlowNodeInstanceLauncherLogRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
bool DescribeFlowNodeInstanceLauncherLogRequest::getReverse()const
|
||||
@@ -88,7 +90,7 @@ bool DescribeFlowNodeInstanceLauncherLogRequest::getReverse()const
|
||||
void DescribeFlowNodeInstanceLauncherLogRequest::setReverse(bool reverse)
|
||||
{
|
||||
reverse_ = reverse;
|
||||
setCoreParameter("Reverse", reverse ? "true" : "false");
|
||||
setParameter("Reverse", reverse ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeFlowNodeInstanceLauncherLogRequest::getNodeInstanceId()const
|
||||
@@ -99,7 +101,7 @@ std::string DescribeFlowNodeInstanceLauncherLogRequest::getNodeInstanceId()const
|
||||
void DescribeFlowNodeInstanceLauncherLogRequest::setNodeInstanceId(const std::string& nodeInstanceId)
|
||||
{
|
||||
nodeInstanceId_ = nodeInstanceId;
|
||||
setCoreParameter("NodeInstanceId", nodeInstanceId);
|
||||
setParameter("NodeInstanceId", nodeInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeFlowNodeInstanceLauncherLogRequest::getRegionId()const
|
||||
@@ -110,7 +112,7 @@ std::string DescribeFlowNodeInstanceLauncherLogRequest::getRegionId()const
|
||||
void DescribeFlowNodeInstanceLauncherLogRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeFlowNodeInstanceLauncherLogRequest::getLines()const
|
||||
@@ -121,7 +123,7 @@ int DescribeFlowNodeInstanceLauncherLogRequest::getLines()const
|
||||
void DescribeFlowNodeInstanceLauncherLogRequest::setLines(int lines)
|
||||
{
|
||||
lines_ = lines;
|
||||
setCoreParameter("Lines", std::to_string(lines));
|
||||
setParameter("Lines", std::to_string(lines));
|
||||
}
|
||||
|
||||
std::string DescribeFlowNodeInstanceLauncherLogRequest::getProjectId()const
|
||||
@@ -132,6 +134,6 @@ std::string DescribeFlowNodeInstanceLauncherLogRequest::getProjectId()const
|
||||
void DescribeFlowNodeInstanceLauncherLogRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeFlowNodeInstanceRequest;
|
||||
|
||||
DescribeFlowNodeInstanceRequest::DescribeFlowNodeInstanceRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeFlowNodeInstance")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeFlowNodeInstanceRequest::~DescribeFlowNodeInstanceRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DescribeFlowNodeInstanceRequest::getRegionId()const
|
||||
void DescribeFlowNodeInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeFlowNodeInstanceRequest::getId()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeFlowNodeInstanceRequest::getId()const
|
||||
void DescribeFlowNodeInstanceRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", id);
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
std::string DescribeFlowNodeInstanceRequest::getProjectId()const
|
||||
@@ -55,6 +57,6 @@ std::string DescribeFlowNodeInstanceRequest::getProjectId()const
|
||||
void DescribeFlowNodeInstanceRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeFlowProjectClusterSettingRequest;
|
||||
|
||||
DescribeFlowProjectClusterSettingRequest::DescribeFlowProjectClusterSettingRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeFlowProjectClusterSetting")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeFlowProjectClusterSettingRequest::~DescribeFlowProjectClusterSettingRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DescribeFlowProjectClusterSettingRequest::getClusterId()const
|
||||
void DescribeFlowProjectClusterSettingRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeFlowProjectClusterSettingRequest::getRegionId()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeFlowProjectClusterSettingRequest::getRegionId()const
|
||||
void DescribeFlowProjectClusterSettingRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeFlowProjectClusterSettingRequest::getProjectId()const
|
||||
@@ -55,6 +57,6 @@ std::string DescribeFlowProjectClusterSettingRequest::getProjectId()const
|
||||
void DescribeFlowProjectClusterSettingRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeFlowProjectRequest;
|
||||
|
||||
DescribeFlowProjectRequest::DescribeFlowProjectRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeFlowProject")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeFlowProjectRequest::~DescribeFlowProjectRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DescribeFlowProjectRequest::getRegionId()const
|
||||
void DescribeFlowProjectRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeFlowProjectRequest::getProjectId()const
|
||||
@@ -44,6 +46,6 @@ std::string DescribeFlowProjectRequest::getProjectId()const
|
||||
void DescribeFlowProjectRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeFlowRequest;
|
||||
|
||||
DescribeFlowRequest::DescribeFlowRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeFlow")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeFlowRequest::~DescribeFlowRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DescribeFlowRequest::getRegionId()const
|
||||
void DescribeFlowRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeFlowRequest::getId()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeFlowRequest::getId()const
|
||||
void DescribeFlowRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", id);
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
std::string DescribeFlowRequest::getProjectId()const
|
||||
@@ -55,6 +57,6 @@ std::string DescribeFlowRequest::getProjectId()const
|
||||
void DescribeFlowRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
|
||||
@@ -93,6 +93,8 @@ void DescribeFlowResult::parse(const std::string &payload)
|
||||
alertDingDingGroupBizId_ = value["AlertDingDingGroupBizId"].asString();
|
||||
if(!value["Application"].isNull())
|
||||
application_ = value["Application"].asString();
|
||||
if(!value["EditLockDetail"].isNull())
|
||||
editLockDetail_ = value["EditLockDetail"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -136,6 +138,11 @@ std::string DescribeFlowResult::getCronExpr()const
|
||||
return cronExpr_;
|
||||
}
|
||||
|
||||
std::string DescribeFlowResult::getEditLockDetail()const
|
||||
{
|
||||
return editLockDetail_;
|
||||
}
|
||||
|
||||
std::string DescribeFlowResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeJobRequest;
|
||||
|
||||
DescribeJobRequest::DescribeJobRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeJob")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeJobRequest::~DescribeJobRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeJobRequest::getResourceOwnerId()const
|
||||
void DescribeJobRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeJobRequest::getAccessKeyId()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeJobRequest::getAccessKeyId()const
|
||||
void DescribeJobRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeJobRequest::getRegionId()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeJobRequest::getRegionId()const
|
||||
void DescribeJobRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeJobRequest::getId()const
|
||||
@@ -66,6 +68,6 @@ std::string DescribeJobRequest::getId()const
|
||||
void DescribeJobRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", id);
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
|
||||
73
emr/src/model/DescribeMetaTablePreviewTaskRequest.cc
Normal file
73
emr/src/model/DescribeMetaTablePreviewTaskRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeMetaTablePreviewTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DescribeMetaTablePreviewTaskRequest;
|
||||
|
||||
DescribeMetaTablePreviewTaskRequest::DescribeMetaTablePreviewTaskRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeMetaTablePreviewTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeMetaTablePreviewTaskRequest::~DescribeMetaTablePreviewTaskRequest()
|
||||
{}
|
||||
|
||||
long DescribeMetaTablePreviewTaskRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeMetaTablePreviewTaskRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeMetaTablePreviewTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeMetaTablePreviewTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeMetaTablePreviewTaskRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeMetaTablePreviewTaskRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeMetaTablePreviewTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DescribeMetaTablePreviewTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
104
emr/src/model/DescribeMetaTablePreviewTaskResult.cc
Normal file
104
emr/src/model/DescribeMetaTablePreviewTaskResult.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeMetaTablePreviewTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DescribeMetaTablePreviewTaskResult::DescribeMetaTablePreviewTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeMetaTablePreviewTaskResult::DescribeMetaTablePreviewTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeMetaTablePreviewTaskResult::~DescribeMetaTablePreviewTaskResult()
|
||||
{}
|
||||
|
||||
void DescribeMetaTablePreviewTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allRowsNode = dataNode["Rows"]["Row"];
|
||||
for (auto dataNodeRowsRow : allRowsNode)
|
||||
{
|
||||
Data::Row rowObject;
|
||||
auto allColumns = value["Columns"]["Column"];
|
||||
for (auto value : allColumns)
|
||||
rowObject.columns.push_back(value.asString());
|
||||
data_.rows.push_back(rowObject);
|
||||
}
|
||||
auto allHeaders = dataNode["Headers"]["Header"];
|
||||
for (auto value : allHeaders)
|
||||
data_.headers.push_back(value.asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
if(!value["TaskStatus"].isNull())
|
||||
taskStatus_ = value["TaskStatus"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = std::stol(value["StartTime"].asString());
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = std::stol(value["EndTime"].asString());
|
||||
if(!value["ExecuteTime"].isNull())
|
||||
executeTime_ = std::stol(value["ExecuteTime"].asString());
|
||||
if(!value["TaskProcess"].isNull())
|
||||
taskProcess_ = std::stoi(value["TaskProcess"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeMetaTablePreviewTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
long DescribeMetaTablePreviewTaskResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
long DescribeMetaTablePreviewTaskResult::getExecuteTime()const
|
||||
{
|
||||
return executeTime_;
|
||||
}
|
||||
|
||||
int DescribeMetaTablePreviewTaskResult::getTaskProcess()const
|
||||
{
|
||||
return taskProcess_;
|
||||
}
|
||||
|
||||
long DescribeMetaTablePreviewTaskResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
DescribeMetaTablePreviewTaskResult::Data DescribeMetaTablePreviewTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeMetaTablePreviewTaskResult::getTaskStatus()const
|
||||
{
|
||||
return taskStatus_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeScalingActivityRequest;
|
||||
|
||||
DescribeScalingActivityRequest::DescribeScalingActivityRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeScalingActivity")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeScalingActivityRequest::~DescribeScalingActivityRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeScalingActivityRequest::getResourceOwnerId()const
|
||||
void DescribeScalingActivityRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeScalingActivityRequest::getClusterId()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeScalingActivityRequest::getClusterId()const
|
||||
void DescribeScalingActivityRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeScalingActivityRequest::getScalingActivityId()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeScalingActivityRequest::getScalingActivityId()const
|
||||
void DescribeScalingActivityRequest::setScalingActivityId(const std::string& scalingActivityId)
|
||||
{
|
||||
scalingActivityId_ = scalingActivityId;
|
||||
setCoreParameter("ScalingActivityId", scalingActivityId);
|
||||
setParameter("ScalingActivityId", scalingActivityId);
|
||||
}
|
||||
|
||||
std::string DescribeScalingActivityRequest::getAccessKeyId()const
|
||||
@@ -66,7 +68,7 @@ std::string DescribeScalingActivityRequest::getAccessKeyId()const
|
||||
void DescribeScalingActivityRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeScalingActivityRequest::getRegionId()const
|
||||
@@ -77,7 +79,7 @@ std::string DescribeScalingActivityRequest::getRegionId()const
|
||||
void DescribeScalingActivityRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeScalingActivityRequest::getHostGroupId()const
|
||||
@@ -88,6 +90,6 @@ std::string DescribeScalingActivityRequest::getHostGroupId()const
|
||||
void DescribeScalingActivityRequest::setHostGroupId(const std::string& hostGroupId)
|
||||
{
|
||||
hostGroupId_ = hostGroupId;
|
||||
setCoreParameter("HostGroupId", hostGroupId);
|
||||
setParameter("HostGroupId", hostGroupId);
|
||||
}
|
||||
|
||||
|
||||
62
emr/src/model/DescribeScalingCommonConfigRequest.cc
Normal file
62
emr/src/model/DescribeScalingCommonConfigRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/DescribeScalingCommonConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DescribeScalingCommonConfigRequest;
|
||||
|
||||
DescribeScalingCommonConfigRequest::DescribeScalingCommonConfigRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeScalingCommonConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeScalingCommonConfigRequest::~DescribeScalingCommonConfigRequest()
|
||||
{}
|
||||
|
||||
long DescribeScalingCommonConfigRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeScalingCommonConfigRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeScalingCommonConfigRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeScalingCommonConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeScalingCommonConfigRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeScalingCommonConfigRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
51
emr/src/model/DescribeScalingCommonConfigResult.cc
Normal file
51
emr/src/model/DescribeScalingCommonConfigResult.cc
Normal 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/DescribeScalingCommonConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DescribeScalingCommonConfigResult::DescribeScalingCommonConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeScalingCommonConfigResult::DescribeScalingCommonConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeScalingCommonConfigResult::~DescribeScalingCommonConfigResult()
|
||||
{}
|
||||
|
||||
void DescribeScalingCommonConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AutoScalingRuleMinDelayLimit"].isNull())
|
||||
autoScalingRuleMinDelayLimit_ = std::stoi(value["AutoScalingRuleMinDelayLimit"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeScalingCommonConfigResult::getAutoScalingRuleMinDelayLimit()const
|
||||
{
|
||||
return autoScalingRuleMinDelayLimit_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeScalingRuleRequest;
|
||||
|
||||
DescribeScalingRuleRequest::DescribeScalingRuleRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeScalingRule")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeScalingRuleRequest::~DescribeScalingRuleRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeScalingRuleRequest::getResourceOwnerId()const
|
||||
void DescribeScalingRuleRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeScalingRuleRequest::getClusterId()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeScalingRuleRequest::getClusterId()const
|
||||
void DescribeScalingRuleRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeScalingRuleRequest::getScalingRuleId()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeScalingRuleRequest::getScalingRuleId()const
|
||||
void DescribeScalingRuleRequest::setScalingRuleId(const std::string& scalingRuleId)
|
||||
{
|
||||
scalingRuleId_ = scalingRuleId;
|
||||
setCoreParameter("ScalingRuleId", scalingRuleId);
|
||||
setParameter("ScalingRuleId", scalingRuleId);
|
||||
}
|
||||
|
||||
std::string DescribeScalingRuleRequest::getAccessKeyId()const
|
||||
@@ -66,7 +68,7 @@ std::string DescribeScalingRuleRequest::getAccessKeyId()const
|
||||
void DescribeScalingRuleRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeScalingRuleRequest::getRegionId()const
|
||||
@@ -77,7 +79,7 @@ std::string DescribeScalingRuleRequest::getRegionId()const
|
||||
void DescribeScalingRuleRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeScalingRuleRequest::getHostGroupId()const
|
||||
@@ -88,6 +90,6 @@ std::string DescribeScalingRuleRequest::getHostGroupId()const
|
||||
void DescribeScalingRuleRequest::setHostGroupId(const std::string& hostGroupId)
|
||||
{
|
||||
hostGroupId_ = hostGroupId;
|
||||
setCoreParameter("HostGroupId", hostGroupId);
|
||||
setParameter("HostGroupId", hostGroupId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::DescribeSecurityGroupAttributeRequest;
|
||||
|
||||
DescribeSecurityGroupAttributeRequest::DescribeSecurityGroupAttributeRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeSecurityGroupAttribute")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSecurityGroupAttributeRequest::~DescribeSecurityGroupAttributeRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long DescribeSecurityGroupAttributeRequest::getResourceOwnerId()const
|
||||
void DescribeSecurityGroupAttributeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeSecurityGroupAttributeRequest::getClusterId()const
|
||||
@@ -44,7 +46,7 @@ std::string DescribeSecurityGroupAttributeRequest::getClusterId()const
|
||||
void DescribeSecurityGroupAttributeRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeSecurityGroupAttributeRequest::getAccessKeyId()const
|
||||
@@ -55,7 +57,7 @@ std::string DescribeSecurityGroupAttributeRequest::getAccessKeyId()const
|
||||
void DescribeSecurityGroupAttributeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeSecurityGroupAttributeRequest::getRegionId()const
|
||||
@@ -66,6 +68,6 @@ std::string DescribeSecurityGroupAttributeRequest::getRegionId()const
|
||||
void DescribeSecurityGroupAttributeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
|
||||
106
emr/src/model/DiffFlowEntitySnapshotRequest.cc
Normal file
106
emr/src/model/DiffFlowEntitySnapshotRequest.cc
Normal 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/DiffFlowEntitySnapshotRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DiffFlowEntitySnapshotRequest;
|
||||
|
||||
DiffFlowEntitySnapshotRequest::DiffFlowEntitySnapshotRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DiffFlowEntitySnapshot")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DiffFlowEntitySnapshotRequest::~DiffFlowEntitySnapshotRequest()
|
||||
{}
|
||||
|
||||
long DiffFlowEntitySnapshotRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DiffFlowEntitySnapshotRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DiffFlowEntitySnapshotRequest::getSrcRevision()const
|
||||
{
|
||||
return srcRevision_;
|
||||
}
|
||||
|
||||
void DiffFlowEntitySnapshotRequest::setSrcRevision(const std::string& srcRevision)
|
||||
{
|
||||
srcRevision_ = srcRevision;
|
||||
setParameter("SrcRevision", srcRevision);
|
||||
}
|
||||
|
||||
std::string DiffFlowEntitySnapshotRequest::getEntityId()const
|
||||
{
|
||||
return entityId_;
|
||||
}
|
||||
|
||||
void DiffFlowEntitySnapshotRequest::setEntityId(const std::string& entityId)
|
||||
{
|
||||
entityId_ = entityId;
|
||||
setParameter("EntityId", entityId);
|
||||
}
|
||||
|
||||
std::string DiffFlowEntitySnapshotRequest::getDstRevision()const
|
||||
{
|
||||
return dstRevision_;
|
||||
}
|
||||
|
||||
void DiffFlowEntitySnapshotRequest::setDstRevision(const std::string& dstRevision)
|
||||
{
|
||||
dstRevision_ = dstRevision;
|
||||
setParameter("DstRevision", dstRevision);
|
||||
}
|
||||
|
||||
std::string DiffFlowEntitySnapshotRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DiffFlowEntitySnapshotRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DiffFlowEntitySnapshotRequest::getEntityType()const
|
||||
{
|
||||
return entityType_;
|
||||
}
|
||||
|
||||
void DiffFlowEntitySnapshotRequest::setEntityType(const std::string& entityType)
|
||||
{
|
||||
entityType_ = entityType;
|
||||
setParameter("EntityType", entityType);
|
||||
}
|
||||
|
||||
std::string DiffFlowEntitySnapshotRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DiffFlowEntitySnapshotRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
51
emr/src/model/DiffFlowEntitySnapshotResult.cc
Normal file
51
emr/src/model/DiffFlowEntitySnapshotResult.cc
Normal 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/DiffFlowEntitySnapshotResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DiffFlowEntitySnapshotResult::DiffFlowEntitySnapshotResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DiffFlowEntitySnapshotResult::DiffFlowEntitySnapshotResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DiffFlowEntitySnapshotResult::~DiffFlowEntitySnapshotResult()
|
||||
{}
|
||||
|
||||
void DiffFlowEntitySnapshotResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string DiffFlowEntitySnapshotResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
152
emr/src/model/DumpMetaDataSourceForOuterRequest.cc
Normal file
152
emr/src/model/DumpMetaDataSourceForOuterRequest.cc
Normal file
@@ -0,0 +1,152 @@
|
||||
/*
|
||||
* 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/DumpMetaDataSourceForOuterRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DumpMetaDataSourceForOuterRequest;
|
||||
|
||||
DumpMetaDataSourceForOuterRequest::DumpMetaDataSourceForOuterRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DumpMetaDataSourceForOuter")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DumpMetaDataSourceForOuterRequest::~DumpMetaDataSourceForOuterRequest()
|
||||
{}
|
||||
|
||||
long DumpMetaDataSourceForOuterRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DumpMetaDataSourceForOuterRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
bool DumpMetaDataSourceForOuterRequest::getDumpAllDatabase()const
|
||||
{
|
||||
return dumpAllDatabase_;
|
||||
}
|
||||
|
||||
void DumpMetaDataSourceForOuterRequest::setDumpAllDatabase(bool dumpAllDatabase)
|
||||
{
|
||||
dumpAllDatabase_ = dumpAllDatabase;
|
||||
setParameter("DumpAllDatabase", dumpAllDatabase ? "true" : "false");
|
||||
}
|
||||
|
||||
int DumpMetaDataSourceForOuterRequest::getDumpLimit()const
|
||||
{
|
||||
return dumpLimit_;
|
||||
}
|
||||
|
||||
void DumpMetaDataSourceForOuterRequest::setDumpLimit(int dumpLimit)
|
||||
{
|
||||
dumpLimit_ = dumpLimit;
|
||||
setParameter("DumpLimit", std::to_string(dumpLimit));
|
||||
}
|
||||
|
||||
std::string DumpMetaDataSourceForOuterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DumpMetaDataSourceForOuterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DumpMetaDataSourceForOuterRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DumpMetaDataSourceForOuterRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool DumpMetaDataSourceForOuterRequest::getDumpAllTable()const
|
||||
{
|
||||
return dumpAllTable_;
|
||||
}
|
||||
|
||||
void DumpMetaDataSourceForOuterRequest::setDumpAllTable(bool dumpAllTable)
|
||||
{
|
||||
dumpAllTable_ = dumpAllTable;
|
||||
setParameter("DumpAllTable", dumpAllTable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DumpMetaDataSourceForOuterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DumpMetaDataSourceForOuterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<std::string> DumpMetaDataSourceForOuterRequest::getPartitionValues()const
|
||||
{
|
||||
return partitionValues_;
|
||||
}
|
||||
|
||||
void DumpMetaDataSourceForOuterRequest::setPartitionValues(const std::vector<std::string>& partitionValues)
|
||||
{
|
||||
partitionValues_ = partitionValues;
|
||||
for(int dep1 = 0; dep1!= partitionValues.size(); dep1++) {
|
||||
setParameter("PartitionValues."+ std::to_string(dep1), partitionValues.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string DumpMetaDataSourceForOuterRequest::getTableId()const
|
||||
{
|
||||
return tableId_;
|
||||
}
|
||||
|
||||
void DumpMetaDataSourceForOuterRequest::setTableId(const std::string& tableId)
|
||||
{
|
||||
tableId_ = tableId;
|
||||
setParameter("TableId", tableId);
|
||||
}
|
||||
|
||||
std::string DumpMetaDataSourceForOuterRequest::getDatabaseId()const
|
||||
{
|
||||
return databaseId_;
|
||||
}
|
||||
|
||||
void DumpMetaDataSourceForOuterRequest::setDatabaseId(const std::string& databaseId)
|
||||
{
|
||||
databaseId_ = databaseId;
|
||||
setParameter("DatabaseId", databaseId);
|
||||
}
|
||||
|
||||
bool DumpMetaDataSourceForOuterRequest::getDumpAllPartition()const
|
||||
{
|
||||
return dumpAllPartition_;
|
||||
}
|
||||
|
||||
void DumpMetaDataSourceForOuterRequest::setDumpAllPartition(bool dumpAllPartition)
|
||||
{
|
||||
dumpAllPartition_ = dumpAllPartition;
|
||||
setParameter("DumpAllPartition", dumpAllPartition ? "true" : "false");
|
||||
}
|
||||
|
||||
51
emr/src/model/DumpMetaDataSourceForOuterResult.cc
Normal file
51
emr/src/model/DumpMetaDataSourceForOuterResult.cc
Normal 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/DumpMetaDataSourceForOuterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DumpMetaDataSourceForOuterResult::DumpMetaDataSourceForOuterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DumpMetaDataSourceForOuterResult::DumpMetaDataSourceForOuterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DumpMetaDataSourceForOuterResult::~DumpMetaDataSourceForOuterResult()
|
||||
{}
|
||||
|
||||
void DumpMetaDataSourceForOuterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DumpMetaDataSourceForOuterResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
194
emr/src/model/GetFlowEntityRelationGraphRequest.cc
Normal file
194
emr/src/model/GetFlowEntityRelationGraphRequest.cc
Normal file
@@ -0,0 +1,194 @@
|
||||
/*
|
||||
* 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/GetFlowEntityRelationGraphRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::GetFlowEntityRelationGraphRequest;
|
||||
|
||||
GetFlowEntityRelationGraphRequest::GetFlowEntityRelationGraphRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "GetFlowEntityRelationGraph")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetFlowEntityRelationGraphRequest::~GetFlowEntityRelationGraphRequest()
|
||||
{}
|
||||
|
||||
long GetFlowEntityRelationGraphRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetFlowEntityRelationGraphRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int GetFlowEntityRelationGraphRequest::getPageCount()const
|
||||
{
|
||||
return pageCount_;
|
||||
}
|
||||
|
||||
void GetFlowEntityRelationGraphRequest::setPageCount(int pageCount)
|
||||
{
|
||||
pageCount_ = pageCount;
|
||||
setParameter("PageCount", std::to_string(pageCount));
|
||||
}
|
||||
|
||||
std::string GetFlowEntityRelationGraphRequest::getOrderMode()const
|
||||
{
|
||||
return orderMode_;
|
||||
}
|
||||
|
||||
void GetFlowEntityRelationGraphRequest::setOrderMode(const std::string& orderMode)
|
||||
{
|
||||
orderMode_ = orderMode;
|
||||
setParameter("OrderMode", orderMode);
|
||||
}
|
||||
|
||||
std::string GetFlowEntityRelationGraphRequest::getEntityId()const
|
||||
{
|
||||
return entityId_;
|
||||
}
|
||||
|
||||
void GetFlowEntityRelationGraphRequest::setEntityId(const std::string& entityId)
|
||||
{
|
||||
entityId_ = entityId;
|
||||
setParameter("EntityId", entityId);
|
||||
}
|
||||
|
||||
int GetFlowEntityRelationGraphRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void GetFlowEntityRelationGraphRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string GetFlowEntityRelationGraphRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetFlowEntityRelationGraphRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetFlowEntityRelationGraphRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetFlowEntityRelationGraphRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int GetFlowEntityRelationGraphRequest::getLimit()const
|
||||
{
|
||||
return limit_;
|
||||
}
|
||||
|
||||
void GetFlowEntityRelationGraphRequest::setLimit(int limit)
|
||||
{
|
||||
limit_ = limit;
|
||||
setParameter("Limit", std::to_string(limit));
|
||||
}
|
||||
|
||||
int GetFlowEntityRelationGraphRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void GetFlowEntityRelationGraphRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string GetFlowEntityRelationGraphRequest::getRelationship()const
|
||||
{
|
||||
return relationship_;
|
||||
}
|
||||
|
||||
void GetFlowEntityRelationGraphRequest::setRelationship(const std::string& relationship)
|
||||
{
|
||||
relationship_ = relationship;
|
||||
setParameter("Relationship", relationship);
|
||||
}
|
||||
|
||||
int GetFlowEntityRelationGraphRequest::getCurrentSize()const
|
||||
{
|
||||
return currentSize_;
|
||||
}
|
||||
|
||||
void GetFlowEntityRelationGraphRequest::setCurrentSize(int currentSize)
|
||||
{
|
||||
currentSize_ = currentSize;
|
||||
setParameter("CurrentSize", std::to_string(currentSize));
|
||||
}
|
||||
|
||||
std::string GetFlowEntityRelationGraphRequest::getOrderField()const
|
||||
{
|
||||
return orderField_;
|
||||
}
|
||||
|
||||
void GetFlowEntityRelationGraphRequest::setOrderField(const std::string& orderField)
|
||||
{
|
||||
orderField_ = orderField;
|
||||
setParameter("OrderField", orderField);
|
||||
}
|
||||
|
||||
std::string GetFlowEntityRelationGraphRequest::getDirection()const
|
||||
{
|
||||
return direction_;
|
||||
}
|
||||
|
||||
void GetFlowEntityRelationGraphRequest::setDirection(const std::string& direction)
|
||||
{
|
||||
direction_ = direction;
|
||||
setParameter("Direction", direction);
|
||||
}
|
||||
|
||||
std::string GetFlowEntityRelationGraphRequest::getEntityGroupId()const
|
||||
{
|
||||
return entityGroupId_;
|
||||
}
|
||||
|
||||
void GetFlowEntityRelationGraphRequest::setEntityGroupId(const std::string& entityGroupId)
|
||||
{
|
||||
entityGroupId_ = entityGroupId;
|
||||
setParameter("EntityGroupId", entityGroupId);
|
||||
}
|
||||
|
||||
std::string GetFlowEntityRelationGraphRequest::getEntityType()const
|
||||
{
|
||||
return entityType_;
|
||||
}
|
||||
|
||||
void GetFlowEntityRelationGraphRequest::setEntityType(const std::string& entityType)
|
||||
{
|
||||
entityType_ = entityType;
|
||||
setParameter("EntityType", entityType);
|
||||
}
|
||||
|
||||
51
emr/src/model/GetFlowEntityRelationGraphResult.cc
Normal file
51
emr/src/model/GetFlowEntityRelationGraphResult.cc
Normal 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/GetFlowEntityRelationGraphResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
GetFlowEntityRelationGraphResult::GetFlowEntityRelationGraphResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetFlowEntityRelationGraphResult::GetFlowEntityRelationGraphResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetFlowEntityRelationGraphResult::~GetFlowEntityRelationGraphResult()
|
||||
{}
|
||||
|
||||
void GetFlowEntityRelationGraphResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string GetFlowEntityRelationGraphResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::GetHdfsCapacityStatisticInfoRequest;
|
||||
|
||||
GetHdfsCapacityStatisticInfoRequest::GetHdfsCapacityStatisticInfoRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "GetHdfsCapacityStatisticInfo")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetHdfsCapacityStatisticInfoRequest::~GetHdfsCapacityStatisticInfoRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string GetHdfsCapacityStatisticInfoRequest::getFromDatetime()const
|
||||
void GetHdfsCapacityStatisticInfoRequest::setFromDatetime(const std::string& fromDatetime)
|
||||
{
|
||||
fromDatetime_ = fromDatetime;
|
||||
setCoreParameter("FromDatetime", fromDatetime);
|
||||
setParameter("FromDatetime", fromDatetime);
|
||||
}
|
||||
|
||||
long GetHdfsCapacityStatisticInfoRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +46,7 @@ long GetHdfsCapacityStatisticInfoRequest::getResourceOwnerId()const
|
||||
void GetHdfsCapacityStatisticInfoRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetHdfsCapacityStatisticInfoRequest::getClusterId()const
|
||||
@@ -55,7 +57,7 @@ std::string GetHdfsCapacityStatisticInfoRequest::getClusterId()const
|
||||
void GetHdfsCapacityStatisticInfoRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string GetHdfsCapacityStatisticInfoRequest::getToDatetime()const
|
||||
@@ -66,7 +68,7 @@ std::string GetHdfsCapacityStatisticInfoRequest::getToDatetime()const
|
||||
void GetHdfsCapacityStatisticInfoRequest::setToDatetime(const std::string& toDatetime)
|
||||
{
|
||||
toDatetime_ = toDatetime;
|
||||
setCoreParameter("ToDatetime", toDatetime);
|
||||
setParameter("ToDatetime", toDatetime);
|
||||
}
|
||||
|
||||
std::string GetHdfsCapacityStatisticInfoRequest::getAccessKeyId()const
|
||||
@@ -77,7 +79,7 @@ std::string GetHdfsCapacityStatisticInfoRequest::getAccessKeyId()const
|
||||
void GetHdfsCapacityStatisticInfoRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetHdfsCapacityStatisticInfoRequest::getRegionId()const
|
||||
@@ -88,6 +90,6 @@ std::string GetHdfsCapacityStatisticInfoRequest::getRegionId()const
|
||||
void GetHdfsCapacityStatisticInfoRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Emr::Model::GetJobInputStatisticInfoRequest;
|
||||
|
||||
GetJobInputStatisticInfoRequest::GetJobInputStatisticInfoRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "GetJobInputStatisticInfo")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetJobInputStatisticInfoRequest::~GetJobInputStatisticInfoRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string GetJobInputStatisticInfoRequest::getFromDatetime()const
|
||||
void GetJobInputStatisticInfoRequest::setFromDatetime(const std::string& fromDatetime)
|
||||
{
|
||||
fromDatetime_ = fromDatetime;
|
||||
setCoreParameter("FromDatetime", fromDatetime);
|
||||
setParameter("FromDatetime", fromDatetime);
|
||||
}
|
||||
|
||||
long GetJobInputStatisticInfoRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +46,7 @@ long GetJobInputStatisticInfoRequest::getResourceOwnerId()const
|
||||
void GetJobInputStatisticInfoRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetJobInputStatisticInfoRequest::getClusterId()const
|
||||
@@ -55,7 +57,7 @@ std::string GetJobInputStatisticInfoRequest::getClusterId()const
|
||||
void GetJobInputStatisticInfoRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string GetJobInputStatisticInfoRequest::getToDatetime()const
|
||||
@@ -66,7 +68,7 @@ std::string GetJobInputStatisticInfoRequest::getToDatetime()const
|
||||
void GetJobInputStatisticInfoRequest::setToDatetime(const std::string& toDatetime)
|
||||
{
|
||||
toDatetime_ = toDatetime;
|
||||
setCoreParameter("ToDatetime", toDatetime);
|
||||
setParameter("ToDatetime", toDatetime);
|
||||
}
|
||||
|
||||
int GetJobInputStatisticInfoRequest::getPageNumber()const
|
||||
@@ -77,7 +79,7 @@ int GetJobInputStatisticInfoRequest::getPageNumber()const
|
||||
void GetJobInputStatisticInfoRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string GetJobInputStatisticInfoRequest::getAccessKeyId()const
|
||||
@@ -88,7 +90,7 @@ std::string GetJobInputStatisticInfoRequest::getAccessKeyId()const
|
||||
void GetJobInputStatisticInfoRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetJobInputStatisticInfoRequest::getRegionId()const
|
||||
@@ -99,7 +101,7 @@ std::string GetJobInputStatisticInfoRequest::getRegionId()const
|
||||
void GetJobInputStatisticInfoRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int GetJobInputStatisticInfoRequest::getPageSize()const
|
||||
@@ -110,6 +112,6 @@ int GetJobInputStatisticInfoRequest::getPageSize()const
|
||||
void GetJobInputStatisticInfoRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user