Generated 2016-04-08 for Emr.
This commit is contained in:
3168
emr/src/EmrClient.cc
3168
emr/src/EmrClient.cc
File diff suppressed because it is too large
Load Diff
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/AuthorizeSecurityGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::AuthorizeSecurityGroupRequest;
|
||||
|
||||
AuthorizeSecurityGroupRequest::AuthorizeSecurityGroupRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "AuthorizeSecurityGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AuthorizeSecurityGroupRequest::~AuthorizeSecurityGroupRequest()
|
||||
{}
|
||||
|
||||
long AuthorizeSecurityGroupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AuthorizeSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void AuthorizeSecurityGroupRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AuthorizeSecurityGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupRequest::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
void AuthorizeSecurityGroupRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupRequest::getBizContent()const
|
||||
{
|
||||
return bizContent_;
|
||||
}
|
||||
|
||||
void AuthorizeSecurityGroupRequest::setBizContent(const std::string& bizContent)
|
||||
{
|
||||
bizContent_ = bizContent;
|
||||
setParameter("BizContent", bizContent);
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AuthorizeSecurityGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/AuthorizeSecurityGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
AuthorizeSecurityGroupResult::AuthorizeSecurityGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AuthorizeSecurityGroupResult::AuthorizeSecurityGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AuthorizeSecurityGroupResult::~AuthorizeSecurityGroupResult()
|
||||
{}
|
||||
|
||||
void AuthorizeSecurityGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CancelOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::CancelOrderRequest;
|
||||
|
||||
CancelOrderRequest::CancelOrderRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CancelOrder")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelOrderRequest::~CancelOrderRequest()
|
||||
{}
|
||||
|
||||
long CancelOrderRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CancelOrderRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CancelOrderRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CancelOrderRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CancelOrderRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CancelOrderRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CancelOrderRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CancelOrderRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CancelOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
CancelOrderResult::CancelOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancelOrderResult::CancelOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancelOrderResult::~CancelOrderResult()
|
||||
{}
|
||||
|
||||
void CancelOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["clusterId"].isNull())
|
||||
clusterId_ = value["clusterId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CancelOrderResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
@@ -1,106 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CreateBackupPlanRequest.h>
|
||||
|
||||
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;
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -1,79 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CreateBackupPlanResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
CreateBackupPlanResult::CreateBackupPlanResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateBackupPlanResult::CreateBackupPlanResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateBackupPlanResult::~CreateBackupPlanResult()
|
||||
{}
|
||||
|
||||
void CreateBackupPlanResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["RootPath"].isNull())
|
||||
rootPath_ = value["RootPath"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanResult::getRootPath()const
|
||||
{
|
||||
return rootPath_;
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanResult::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CreateBackupRequest.h>
|
||||
|
||||
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;
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -1,156 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CreateBackupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
CreateBackupResult::CreateBackupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateBackupResult::CreateBackupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateBackupResult::~CreateBackupResult()
|
||||
{}
|
||||
|
||||
void CreateBackupResult::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["DataSourceId"].isNull())
|
||||
dataSourceId_ = std::stol(value["DataSourceId"].asString());
|
||||
if(!value["TaskType"].isNull())
|
||||
taskType_ = value["TaskType"].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["TaskDetail"].isNull())
|
||||
taskDetail_ = value["TaskDetail"].asString();
|
||||
if(!value["TaskResultDetail"].isNull())
|
||||
taskResultDetail_ = value["TaskResultDetail"].asString();
|
||||
if(!value["TaskProcess"].isNull())
|
||||
taskProcess_ = std::stoi(value["TaskProcess"].asString());
|
||||
if(!value["TriggerUser"].isNull())
|
||||
triggerUser_ = value["TriggerUser"].asString();
|
||||
if(!value["TriggerType"].isNull())
|
||||
triggerType_ = value["TriggerType"].asString();
|
||||
if(!value["GmtCreate"].isNull())
|
||||
gmtCreate_ = std::stol(value["GmtCreate"].asString());
|
||||
if(!value["GmtModified"].isNull())
|
||||
gmtModified_ = std::stol(value["GmtModified"].asString());
|
||||
if(!value["ClusterBizId"].isNull())
|
||||
clusterBizId_ = value["ClusterBizId"].asString();
|
||||
if(!value["HostName"].isNull())
|
||||
hostName_ = value["HostName"].asString();
|
||||
if(!value["EcmTaskId"].isNull())
|
||||
ecmTaskId_ = std::stol(value["EcmTaskId"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string CreateBackupResult::getTriggerType()const
|
||||
{
|
||||
return triggerType_;
|
||||
}
|
||||
|
||||
long CreateBackupResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
long CreateBackupResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
long CreateBackupResult::getGmtModified()const
|
||||
{
|
||||
return gmtModified_;
|
||||
}
|
||||
|
||||
std::string CreateBackupResult::getTaskStatus()const
|
||||
{
|
||||
return taskStatus_;
|
||||
}
|
||||
|
||||
std::string CreateBackupResult::getTaskDetail()const
|
||||
{
|
||||
return taskDetail_;
|
||||
}
|
||||
|
||||
std::string CreateBackupResult::getTriggerUser()const
|
||||
{
|
||||
return triggerUser_;
|
||||
}
|
||||
|
||||
long CreateBackupResult::getGmtCreate()const
|
||||
{
|
||||
return gmtCreate_;
|
||||
}
|
||||
|
||||
int CreateBackupResult::getTaskProcess()const
|
||||
{
|
||||
return taskProcess_;
|
||||
}
|
||||
|
||||
std::string CreateBackupResult::getClusterBizId()const
|
||||
{
|
||||
return clusterBizId_;
|
||||
}
|
||||
|
||||
std::string CreateBackupResult::getTaskType()const
|
||||
{
|
||||
return taskType_;
|
||||
}
|
||||
|
||||
std::string CreateBackupResult::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
long CreateBackupResult::getDataSourceId()const
|
||||
{
|
||||
return dataSourceId_;
|
||||
}
|
||||
|
||||
std::string CreateBackupResult::getHostName()const
|
||||
{
|
||||
return hostName_;
|
||||
}
|
||||
|
||||
long CreateBackupResult::getEcmTaskId()const
|
||||
{
|
||||
return ecmTaskId_;
|
||||
}
|
||||
|
||||
std::string CreateBackupResult::getTaskResultDetail()const
|
||||
{
|
||||
return taskResultDetail_;
|
||||
}
|
||||
|
||||
@@ -1,93 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CreateClusterBootstrapActionRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::CreateClusterBootstrapActionRequest;
|
||||
|
||||
CreateClusterBootstrapActionRequest::CreateClusterBootstrapActionRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateClusterBootstrapAction")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateClusterBootstrapActionRequest::~CreateClusterBootstrapActionRequest()
|
||||
{}
|
||||
|
||||
long CreateClusterBootstrapActionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateClusterBootstrapActionRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateClusterBootstrapActionRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateClusterBootstrapActionRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateClusterBootstrapActionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateClusterBootstrapActionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::vector<CreateClusterBootstrapActionRequest::BootstrapAction> CreateClusterBootstrapActionRequest::getBootstrapAction()const
|
||||
{
|
||||
return bootstrapAction_;
|
||||
}
|
||||
|
||||
void CreateClusterBootstrapActionRequest::setBootstrapAction(const std::vector<BootstrapAction>& bootstrapAction)
|
||||
{
|
||||
bootstrapAction_ = bootstrapAction;
|
||||
for(int dep1 = 0; dep1!= bootstrapAction.size(); dep1++) {
|
||||
auto bootstrapActionObj = bootstrapAction.at(dep1);
|
||||
std::string bootstrapActionObjStr = "BootstrapAction." + std::to_string(dep1 + 1);
|
||||
setParameter(bootstrapActionObjStr + ".Path", bootstrapActionObj.path);
|
||||
setParameter(bootstrapActionObjStr + ".ExecutionTarget", bootstrapActionObj.executionTarget);
|
||||
setParameter(bootstrapActionObjStr + ".ExecutionMoment", bootstrapActionObj.executionMoment);
|
||||
setParameter(bootstrapActionObjStr + ".Arg", bootstrapActionObj.arg);
|
||||
setParameter(bootstrapActionObjStr + ".Name", bootstrapActionObj.name);
|
||||
setParameter(bootstrapActionObjStr + ".ExecutionFailStrategy", bootstrapActionObj.executionFailStrategy);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateClusterBootstrapActionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateClusterBootstrapActionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CreateClusterBootstrapActionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
CreateClusterBootstrapActionResult::CreateClusterBootstrapActionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateClusterBootstrapActionResult::CreateClusterBootstrapActionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateClusterBootstrapActionResult::~CreateClusterBootstrapActionResult()
|
||||
{}
|
||||
|
||||
void CreateClusterBootstrapActionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,150 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CreateClusterHostGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::CreateClusterHostGroupRequest;
|
||||
|
||||
CreateClusterHostGroupRequest::CreateClusterHostGroupRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateClusterHostGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateClusterHostGroupRequest::~CreateClusterHostGroupRequest()
|
||||
{}
|
||||
|
||||
long CreateClusterHostGroupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateClusterHostGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateClusterHostGroupRequest::getHostGroupParams()const
|
||||
{
|
||||
return hostGroupParams_;
|
||||
}
|
||||
|
||||
void CreateClusterHostGroupRequest::setHostGroupParams(const std::string& hostGroupParams)
|
||||
{
|
||||
hostGroupParams_ = hostGroupParams;
|
||||
setParameter("HostGroupParams", hostGroupParams);
|
||||
}
|
||||
|
||||
std::string CreateClusterHostGroupRequest::getSecurityGroupId()const
|
||||
{
|
||||
return securityGroupId_;
|
||||
}
|
||||
|
||||
void CreateClusterHostGroupRequest::setSecurityGroupId(const std::string& securityGroupId)
|
||||
{
|
||||
securityGroupId_ = securityGroupId;
|
||||
setParameter("SecurityGroupId", securityGroupId);
|
||||
}
|
||||
|
||||
std::string CreateClusterHostGroupRequest::getHostGroupName()const
|
||||
{
|
||||
return hostGroupName_;
|
||||
}
|
||||
|
||||
void CreateClusterHostGroupRequest::setHostGroupName(const std::string& hostGroupName)
|
||||
{
|
||||
hostGroupName_ = hostGroupName;
|
||||
setParameter("HostGroupName", hostGroupName);
|
||||
}
|
||||
|
||||
std::string CreateClusterHostGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateClusterHostGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateClusterHostGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateClusterHostGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateClusterHostGroupRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateClusterHostGroupRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateClusterHostGroupRequest::getVswitchId()const
|
||||
{
|
||||
return vswitchId_;
|
||||
}
|
||||
|
||||
void CreateClusterHostGroupRequest::setVswitchId(const std::string& vswitchId)
|
||||
{
|
||||
vswitchId_ = vswitchId;
|
||||
setParameter("VswitchId", vswitchId);
|
||||
}
|
||||
|
||||
std::string CreateClusterHostGroupRequest::getComment()const
|
||||
{
|
||||
return comment_;
|
||||
}
|
||||
|
||||
void CreateClusterHostGroupRequest::setComment(const std::string& comment)
|
||||
{
|
||||
comment_ = comment;
|
||||
setParameter("Comment", comment);
|
||||
}
|
||||
|
||||
std::string CreateClusterHostGroupRequest::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
}
|
||||
|
||||
void CreateClusterHostGroupRequest::setPayType(const std::string& payType)
|
||||
{
|
||||
payType_ = payType;
|
||||
setParameter("PayType", payType);
|
||||
}
|
||||
|
||||
std::string CreateClusterHostGroupRequest::getHostGroupType()const
|
||||
{
|
||||
return hostGroupType_;
|
||||
}
|
||||
|
||||
void CreateClusterHostGroupRequest::setHostGroupType(const std::string& hostGroupType)
|
||||
{
|
||||
hostGroupType_ = hostGroupType;
|
||||
setParameter("HostGroupType", hostGroupType);
|
||||
}
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CreateClusterHostGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
CreateClusterHostGroupResult::CreateClusterHostGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateClusterHostGroupResult::CreateClusterHostGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateClusterHostGroupResult::~CreateClusterHostGroupResult()
|
||||
{}
|
||||
|
||||
void CreateClusterHostGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["HostGroupId"].isNull())
|
||||
hostGroupId_ = value["HostGroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateClusterHostGroupResult::getHostGroupId()const
|
||||
{
|
||||
return hostGroupId_;
|
||||
}
|
||||
|
||||
std::string CreateClusterHostGroupResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
@@ -1,139 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CreateDataSourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::CreateDataSourceRequest;
|
||||
|
||||
CreateDataSourceRequest::CreateDataSourceRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateDataSource")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDataSourceRequest::~CreateDataSourceRequest()
|
||||
{}
|
||||
|
||||
long CreateDataSourceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateDataSourceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getNavParentId()const
|
||||
{
|
||||
return navParentId_;
|
||||
}
|
||||
|
||||
void CreateDataSourceRequest::setNavParentId(const std::string& navParentId)
|
||||
{
|
||||
navParentId_ = navParentId;
|
||||
setParameter("NavParentId", navParentId);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateDataSourceRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getConf()const
|
||||
{
|
||||
return conf_;
|
||||
}
|
||||
|
||||
void CreateDataSourceRequest::setConf(const std::string& conf)
|
||||
{
|
||||
conf_ = conf;
|
||||
setParameter("Conf", conf);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateDataSourceRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateDataSourceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateDataSourceRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateDataSourceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateDataSourceRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getSourceType()const
|
||||
{
|
||||
return sourceType_;
|
||||
}
|
||||
|
||||
void CreateDataSourceRequest::setSourceType(const std::string& sourceType)
|
||||
{
|
||||
sourceType_ = sourceType;
|
||||
setParameter("SourceType", sourceType);
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CreateDataSourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
CreateDataSourceResult::CreateDataSourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDataSourceResult::CreateDataSourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDataSourceResult::~CreateDataSourceResult()
|
||||
{}
|
||||
|
||||
void CreateDataSourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateDataSourceResult::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
@@ -1,479 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CreateExecutionPlanRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::CreateExecutionPlanRequest;
|
||||
|
||||
CreateExecutionPlanRequest::CreateExecutionPlanRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateExecutionPlan")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateExecutionPlanRequest::~CreateExecutionPlanRequest()
|
||||
{}
|
||||
|
||||
long CreateExecutionPlanRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int CreateExecutionPlanRequest::getTimeInterval()const
|
||||
{
|
||||
return timeInterval_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setTimeInterval(int timeInterval)
|
||||
{
|
||||
timeInterval_ = timeInterval;
|
||||
setParameter("TimeInterval", std::to_string(timeInterval));
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getLogPath()const
|
||||
{
|
||||
return logPath_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setLogPath(const std::string& logPath)
|
||||
{
|
||||
logPath_ = logPath;
|
||||
setParameter("LogPath", logPath);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getClusterName()const
|
||||
{
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setClusterName(const std::string& clusterName)
|
||||
{
|
||||
clusterName_ = clusterName;
|
||||
setParameter("ClusterName", clusterName);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getConfigurations()const
|
||||
{
|
||||
return configurations_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setConfigurations(const std::string& configurations)
|
||||
{
|
||||
configurations_ = configurations;
|
||||
setParameter("Configurations", configurations);
|
||||
}
|
||||
|
||||
bool CreateExecutionPlanRequest::getCreateClusterOnDemand()const
|
||||
{
|
||||
return createClusterOnDemand_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setCreateClusterOnDemand(bool createClusterOnDemand)
|
||||
{
|
||||
createClusterOnDemand_ = createClusterOnDemand;
|
||||
setParameter("CreateClusterOnDemand", createClusterOnDemand ? "true" : "false");
|
||||
}
|
||||
|
||||
long CreateExecutionPlanRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::vector<CreateExecutionPlanRequest::BootstrapAction> CreateExecutionPlanRequest::getBootstrapAction()const
|
||||
{
|
||||
return bootstrapAction_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setBootstrapAction(const std::vector<BootstrapAction>& bootstrapAction)
|
||||
{
|
||||
bootstrapAction_ = bootstrapAction;
|
||||
for(int dep1 = 0; dep1!= bootstrapAction.size(); dep1++) {
|
||||
auto bootstrapActionObj = bootstrapAction.at(dep1);
|
||||
std::string bootstrapActionObjStr = "BootstrapAction." + std::to_string(dep1 + 1);
|
||||
setParameter(bootstrapActionObjStr + ".Path", bootstrapActionObj.path);
|
||||
setParameter(bootstrapActionObjStr + ".ExecutionTarget", bootstrapActionObj.executionTarget);
|
||||
setParameter(bootstrapActionObjStr + ".ExecutionMoment", bootstrapActionObj.executionMoment);
|
||||
setParameter(bootstrapActionObjStr + ".Arg", bootstrapActionObj.arg);
|
||||
setParameter(bootstrapActionObjStr + ".Name", bootstrapActionObj.name);
|
||||
setParameter(bootstrapActionObjStr + ".ExecutionFailStrategy", bootstrapActionObj.executionFailStrategy);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getEmrVer()const
|
||||
{
|
||||
return emrVer_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setEmrVer(const std::string& emrVer)
|
||||
{
|
||||
emrVer_ = emrVer;
|
||||
setParameter("EmrVer", emrVer);
|
||||
}
|
||||
|
||||
bool CreateExecutionPlanRequest::getIsOpenPublicIp()const
|
||||
{
|
||||
return isOpenPublicIp_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setIsOpenPublicIp(bool isOpenPublicIp)
|
||||
{
|
||||
isOpenPublicIp_ = isOpenPublicIp;
|
||||
setParameter("IsOpenPublicIp", isOpenPublicIp ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getInstanceGeneration()const
|
||||
{
|
||||
return instanceGeneration_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setInstanceGeneration(const std::string& instanceGeneration)
|
||||
{
|
||||
instanceGeneration_ = instanceGeneration;
|
||||
setParameter("InstanceGeneration", instanceGeneration);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getClusterType()const
|
||||
{
|
||||
return clusterType_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setClusterType(const std::string& clusterType)
|
||||
{
|
||||
clusterType_ = clusterType;
|
||||
setParameter("ClusterType", clusterType);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateExecutionPlanRequest::getOptionSoftWareList()const
|
||||
{
|
||||
return optionSoftWareList_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setOptionSoftWareList(const std::vector<std::string>& optionSoftWareList)
|
||||
{
|
||||
optionSoftWareList_ = optionSoftWareList;
|
||||
for(int dep1 = 0; dep1!= optionSoftWareList.size(); dep1++) {
|
||||
setParameter("OptionSoftWareList."+ std::to_string(dep1), optionSoftWareList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getNetType()const
|
||||
{
|
||||
return netType_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setNetType(const std::string& netType)
|
||||
{
|
||||
netType_ = netType;
|
||||
setParameter("NetType", netType);
|
||||
}
|
||||
|
||||
std::vector<CreateExecutionPlanRequest::EcsOrder> CreateExecutionPlanRequest::getEcsOrder()const
|
||||
{
|
||||
return ecsOrder_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setEcsOrder(const std::vector<EcsOrder>& ecsOrder)
|
||||
{
|
||||
ecsOrder_ = ecsOrder;
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
bool CreateExecutionPlanRequest::getUseCustomHiveMetaDB()const
|
||||
{
|
||||
return useCustomHiveMetaDB_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setUseCustomHiveMetaDB(bool useCustomHiveMetaDB)
|
||||
{
|
||||
useCustomHiveMetaDB_ = useCustomHiveMetaDB;
|
||||
setParameter("UseCustomHiveMetaDB", useCustomHiveMetaDB ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateExecutionPlanRequest::getInitCustomHiveMetaDB()const
|
||||
{
|
||||
return initCustomHiveMetaDB_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setInitCustomHiveMetaDB(bool initCustomHiveMetaDB)
|
||||
{
|
||||
initCustomHiveMetaDB_ = initCustomHiveMetaDB;
|
||||
setParameter("InitCustomHiveMetaDB", initCustomHiveMetaDB ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateExecutionPlanRequest::getIoOptimized()const
|
||||
{
|
||||
return ioOptimized_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setIoOptimized(bool ioOptimized)
|
||||
{
|
||||
ioOptimized_ = ioOptimized;
|
||||
setParameter("IoOptimized", ioOptimized ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getSecurityGroupId()const
|
||||
{
|
||||
return securityGroupId_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setSecurityGroupId(const std::string& securityGroupId)
|
||||
{
|
||||
securityGroupId_ = securityGroupId;
|
||||
setParameter("SecurityGroupId", securityGroupId);
|
||||
}
|
||||
|
||||
bool CreateExecutionPlanRequest::getEasEnable()const
|
||||
{
|
||||
return easEnable_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setEasEnable(bool easEnable)
|
||||
{
|
||||
easEnable_ = easEnable;
|
||||
setParameter("EasEnable", easEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateExecutionPlanRequest::getJobIdList()const
|
||||
{
|
||||
return jobIdList_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setJobIdList(const std::vector<std::string>& jobIdList)
|
||||
{
|
||||
jobIdList_ = jobIdList;
|
||||
for(int dep1 = 0; dep1!= jobIdList.size(); dep1++) {
|
||||
setParameter("JobIdList."+ std::to_string(dep1), jobIdList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getDayOfMonth()const
|
||||
{
|
||||
return dayOfMonth_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setDayOfMonth(const std::string& dayOfMonth)
|
||||
{
|
||||
dayOfMonth_ = dayOfMonth;
|
||||
setParameter("DayOfMonth", dayOfMonth);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool CreateExecutionPlanRequest::getUseLocalMetaDb()const
|
||||
{
|
||||
return useLocalMetaDb_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setUseLocalMetaDb(bool useLocalMetaDb)
|
||||
{
|
||||
useLocalMetaDb_ = useLocalMetaDb;
|
||||
setParameter("UseLocalMetaDb", useLocalMetaDb ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getUserDefinedEmrEcsRole()const
|
||||
{
|
||||
return userDefinedEmrEcsRole_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setUserDefinedEmrEcsRole(const std::string& userDefinedEmrEcsRole)
|
||||
{
|
||||
userDefinedEmrEcsRole_ = userDefinedEmrEcsRole;
|
||||
setParameter("UserDefinedEmrEcsRole", userDefinedEmrEcsRole);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getTimeUnit()const
|
||||
{
|
||||
return timeUnit_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setTimeUnit(const std::string& timeUnit)
|
||||
{
|
||||
timeUnit_ = timeUnit;
|
||||
setParameter("TimeUnit", timeUnit);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getWorkflowDefinition()const
|
||||
{
|
||||
return workflowDefinition_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setWorkflowDefinition(const std::string& workflowDefinition)
|
||||
{
|
||||
workflowDefinition_ = workflowDefinition;
|
||||
setParameter("WorkflowDefinition", workflowDefinition);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getDayOfWeek()const
|
||||
{
|
||||
return dayOfWeek_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setDayOfWeek(const std::string& dayOfWeek)
|
||||
{
|
||||
dayOfWeek_ = dayOfWeek;
|
||||
setParameter("DayOfWeek", dayOfWeek);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getStrategy()const
|
||||
{
|
||||
return strategy_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setStrategy(const std::string& strategy)
|
||||
{
|
||||
strategy_ = strategy;
|
||||
setParameter("Strategy", strategy);
|
||||
}
|
||||
|
||||
std::vector<CreateExecutionPlanRequest::Config> CreateExecutionPlanRequest::getConfig()const
|
||||
{
|
||||
return config_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setConfig(const std::vector<Config>& config)
|
||||
{
|
||||
config_ = config;
|
||||
for(int dep1 = 0; dep1!= config.size(); dep1++) {
|
||||
auto configObj = config.at(dep1);
|
||||
std::string configObjStr = "Config." + std::to_string(dep1 + 1);
|
||||
setParameter(configObjStr + ".ConfigKey", configObj.configKey);
|
||||
setParameter(configObjStr + ".FileName", configObj.fileName);
|
||||
setParameter(configObjStr + ".Encrypt", configObj.encrypt);
|
||||
setParameter(configObjStr + ".Replace", configObj.replace);
|
||||
setParameter(configObjStr + ".ConfigValue", configObj.configValue);
|
||||
setParameter(configObjStr + ".ServiceName", configObj.serviceName);
|
||||
}
|
||||
}
|
||||
|
||||
bool CreateExecutionPlanRequest::getHighAvailabilityEnable()const
|
||||
{
|
||||
return highAvailabilityEnable_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setHighAvailabilityEnable(bool highAvailabilityEnable)
|
||||
{
|
||||
highAvailabilityEnable_ = highAvailabilityEnable;
|
||||
setParameter("HighAvailabilityEnable", highAvailabilityEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateExecutionPlanRequest::getLogEnable()const
|
||||
{
|
||||
return logEnable_;
|
||||
}
|
||||
|
||||
void CreateExecutionPlanRequest::setLogEnable(bool logEnable)
|
||||
{
|
||||
logEnable_ = logEnable;
|
||||
setParameter("LogEnable", logEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CreateExecutionPlanResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
CreateExecutionPlanResult::CreateExecutionPlanResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateExecutionPlanResult::CreateExecutionPlanResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateExecutionPlanResult::~CreateExecutionPlanResult()
|
||||
{}
|
||||
|
||||
void CreateExecutionPlanResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanResult::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
@@ -1,139 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CreateJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::CreateJobRequest;
|
||||
|
||||
CreateJobRequest::CreateJobRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateJobRequest::~CreateJobRequest()
|
||||
{}
|
||||
|
||||
long CreateJobRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getFailAct()const
|
||||
{
|
||||
return failAct_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setFailAct(const std::string& failAct)
|
||||
{
|
||||
failAct_ = failAct;
|
||||
setParameter("FailAct", failAct);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getRunParameter()const
|
||||
{
|
||||
return runParameter_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setRunParameter(const std::string& runParameter)
|
||||
{
|
||||
runParameter_ = runParameter;
|
||||
setParameter("RunParameter", runParameter);
|
||||
}
|
||||
|
||||
int CreateJobRequest::getRetryInterval()const
|
||||
{
|
||||
return retryInterval_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setRetryInterval(int retryInterval)
|
||||
{
|
||||
retryInterval_ = retryInterval;
|
||||
setParameter("RetryInterval", std::to_string(retryInterval));
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
int CreateJobRequest::getMaxRetry()const
|
||||
{
|
||||
return maxRetry_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setMaxRetry(int maxRetry)
|
||||
{
|
||||
maxRetry_ = maxRetry;
|
||||
setParameter("MaxRetry", std::to_string(maxRetry));
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CreateJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
CreateJobResult::CreateJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateJobResult::CreateJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateJobResult::~CreateJobResult()
|
||||
{}
|
||||
|
||||
void CreateJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateJobResult::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
@@ -1,139 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CreateLibraryRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::CreateLibraryRequest;
|
||||
|
||||
CreateLibraryRequest::CreateLibraryRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateLibrary")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateLibraryRequest::~CreateLibraryRequest()
|
||||
{}
|
||||
|
||||
long CreateLibraryRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateLibraryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateLibraryRequest::getLibraryVersion()const
|
||||
{
|
||||
return libraryVersion_;
|
||||
}
|
||||
|
||||
void CreateLibraryRequest::setLibraryVersion(const std::string& libraryVersion)
|
||||
{
|
||||
libraryVersion_ = libraryVersion;
|
||||
setParameter("LibraryVersion", libraryVersion);
|
||||
}
|
||||
|
||||
std::string CreateLibraryRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateLibraryRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateLibraryRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateLibraryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateLibraryRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateLibraryRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateLibraryRequest::getScope()const
|
||||
{
|
||||
return scope_;
|
||||
}
|
||||
|
||||
void CreateLibraryRequest::setScope(const std::string& scope)
|
||||
{
|
||||
scope_ = scope;
|
||||
setParameter("Scope", scope);
|
||||
}
|
||||
|
||||
std::string CreateLibraryRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateLibraryRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateLibraryRequest::getSourceType()const
|
||||
{
|
||||
return sourceType_;
|
||||
}
|
||||
|
||||
void CreateLibraryRequest::setSourceType(const std::string& sourceType)
|
||||
{
|
||||
sourceType_ = sourceType;
|
||||
setParameter("SourceType", sourceType);
|
||||
}
|
||||
|
||||
std::string CreateLibraryRequest::getProperties()const
|
||||
{
|
||||
return properties_;
|
||||
}
|
||||
|
||||
void CreateLibraryRequest::setProperties(const std::string& properties)
|
||||
{
|
||||
properties_ = properties;
|
||||
setParameter("Properties", properties);
|
||||
}
|
||||
|
||||
std::string CreateLibraryRequest::getSourceLocation()const
|
||||
{
|
||||
return sourceLocation_;
|
||||
}
|
||||
|
||||
void CreateLibraryRequest::setSourceLocation(const std::string& sourceLocation)
|
||||
{
|
||||
sourceLocation_ = sourceLocation;
|
||||
setParameter("SourceLocation", sourceLocation);
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CreateLibraryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
CreateLibraryResult::CreateLibraryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateLibraryResult::CreateLibraryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateLibraryResult::~CreateLibraryResult()
|
||||
{}
|
||||
|
||||
void CreateLibraryResult::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 CreateLibraryResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -1,128 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/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::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateMetaTablePreviewTaskRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/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_;
|
||||
}
|
||||
|
||||
@@ -1,255 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CreateScalingRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::CreateScalingRuleRequest;
|
||||
|
||||
CreateScalingRuleRequest::CreateScalingRuleRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateScalingRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateScalingRuleRequest::~CreateScalingRuleRequest()
|
||||
{}
|
||||
|
||||
long CreateScalingRuleRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateScalingRuleRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getRuleName()const
|
||||
{
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void CreateScalingRuleRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getRecurrenceEndTime()const
|
||||
{
|
||||
return recurrenceEndTime_;
|
||||
}
|
||||
|
||||
void CreateScalingRuleRequest::setRecurrenceEndTime(const std::string& recurrenceEndTime)
|
||||
{
|
||||
recurrenceEndTime_ = recurrenceEndTime;
|
||||
setParameter("RecurrenceEndTime", recurrenceEndTime);
|
||||
}
|
||||
|
||||
std::vector<CreateScalingRuleRequest::CloudWatchTrigger> CreateScalingRuleRequest::getCloudWatchTrigger()const
|
||||
{
|
||||
return cloudWatchTrigger_;
|
||||
}
|
||||
|
||||
void CreateScalingRuleRequest::setCloudWatchTrigger(const std::vector<CloudWatchTrigger>& cloudWatchTrigger)
|
||||
{
|
||||
cloudWatchTrigger_ = cloudWatchTrigger;
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateScalingRuleRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long CreateScalingRuleRequest::getTimeoutWithGrace()const
|
||||
{
|
||||
return timeoutWithGrace_;
|
||||
}
|
||||
|
||||
void CreateScalingRuleRequest::setTimeoutWithGrace(long timeoutWithGrace)
|
||||
{
|
||||
timeoutWithGrace_ = timeoutWithGrace;
|
||||
setParameter("TimeoutWithGrace", std::to_string(timeoutWithGrace));
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateScalingRuleRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int CreateScalingRuleRequest::getCooldown()const
|
||||
{
|
||||
return cooldown_;
|
||||
}
|
||||
|
||||
void CreateScalingRuleRequest::setCooldown(int cooldown)
|
||||
{
|
||||
cooldown_ = cooldown;
|
||||
setParameter("Cooldown", std::to_string(cooldown));
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getLaunchTime()const
|
||||
{
|
||||
return launchTime_;
|
||||
}
|
||||
|
||||
void CreateScalingRuleRequest::setLaunchTime(const std::string& launchTime)
|
||||
{
|
||||
launchTime_ = launchTime;
|
||||
setParameter("LaunchTime", launchTime);
|
||||
}
|
||||
|
||||
bool CreateScalingRuleRequest::getWithGrace()const
|
||||
{
|
||||
return withGrace_;
|
||||
}
|
||||
|
||||
void CreateScalingRuleRequest::setWithGrace(bool withGrace)
|
||||
{
|
||||
withGrace_ = withGrace;
|
||||
setParameter("WithGrace", withGrace ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getRuleCategory()const
|
||||
{
|
||||
return ruleCategory_;
|
||||
}
|
||||
|
||||
void CreateScalingRuleRequest::setRuleCategory(const std::string& ruleCategory)
|
||||
{
|
||||
ruleCategory_ = ruleCategory;
|
||||
setParameter("RuleCategory", ruleCategory);
|
||||
}
|
||||
|
||||
int CreateScalingRuleRequest::getAdjustmentValue()const
|
||||
{
|
||||
return adjustmentValue_;
|
||||
}
|
||||
|
||||
void CreateScalingRuleRequest::setAdjustmentValue(int adjustmentValue)
|
||||
{
|
||||
adjustmentValue_ = adjustmentValue;
|
||||
setParameter("AdjustmentValue", std::to_string(adjustmentValue));
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getAdjustmentType()const
|
||||
{
|
||||
return adjustmentType_;
|
||||
}
|
||||
|
||||
void CreateScalingRuleRequest::setAdjustmentType(const std::string& adjustmentType)
|
||||
{
|
||||
adjustmentType_ = adjustmentType;
|
||||
setParameter("AdjustmentType", adjustmentType);
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateScalingRuleRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int CreateScalingRuleRequest::getLaunchExpirationTime()const
|
||||
{
|
||||
return launchExpirationTime_;
|
||||
}
|
||||
|
||||
void CreateScalingRuleRequest::setLaunchExpirationTime(int launchExpirationTime)
|
||||
{
|
||||
launchExpirationTime_ = launchExpirationTime;
|
||||
setParameter("LaunchExpirationTime", std::to_string(launchExpirationTime));
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getRecurrenceValue()const
|
||||
{
|
||||
return recurrenceValue_;
|
||||
}
|
||||
|
||||
void CreateScalingRuleRequest::setRecurrenceValue(const std::string& recurrenceValue)
|
||||
{
|
||||
recurrenceValue_ = recurrenceValue;
|
||||
setParameter("RecurrenceValue", recurrenceValue);
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getHostGroupId()const
|
||||
{
|
||||
return hostGroupId_;
|
||||
}
|
||||
|
||||
void CreateScalingRuleRequest::setHostGroupId(const std::string& hostGroupId)
|
||||
{
|
||||
hostGroupId_ = hostGroupId;
|
||||
setParameter("HostGroupId", hostGroupId);
|
||||
}
|
||||
|
||||
std::vector<CreateScalingRuleRequest::SchedulerTrigger> CreateScalingRuleRequest::getSchedulerTrigger()const
|
||||
{
|
||||
return schedulerTrigger_;
|
||||
}
|
||||
|
||||
void CreateScalingRuleRequest::setSchedulerTrigger(const std::vector<SchedulerTrigger>& schedulerTrigger)
|
||||
{
|
||||
schedulerTrigger_ = schedulerTrigger;
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getRecurrenceType()const
|
||||
{
|
||||
return recurrenceType_;
|
||||
}
|
||||
|
||||
void CreateScalingRuleRequest::setRecurrenceType(const std::string& recurrenceType)
|
||||
{
|
||||
recurrenceType_ = recurrenceType;
|
||||
setParameter("RecurrenceType", recurrenceType);
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CreateScalingRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
CreateScalingRuleResult::CreateScalingRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateScalingRuleResult::CreateScalingRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateScalingRuleResult::~CreateScalingRuleResult()
|
||||
{}
|
||||
|
||||
void CreateScalingRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ScalingRuleId"].isNull())
|
||||
scalingRuleId_ = value["ScalingRuleId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleResult::getScalingRuleId()const
|
||||
{
|
||||
return scalingRuleId_;
|
||||
}
|
||||
|
||||
@@ -1,106 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/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);
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/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_;
|
||||
}
|
||||
|
||||
@@ -1,160 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CreateUserRequest.h>
|
||||
|
||||
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;
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CreateUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
CreateUserResult::CreateUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateUserResult::CreateUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateUserResult::~CreateUserResult()
|
||||
{}
|
||||
|
||||
void CreateUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Paging"].isNull())
|
||||
paging_ = value["Paging"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool CreateUserResult::getPaging()const
|
||||
{
|
||||
return paging_;
|
||||
}
|
||||
|
||||
bool CreateUserResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -1,90 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CreateUsersRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::CreateUsersRequest;
|
||||
|
||||
CreateUsersRequest::CreateUsersRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateUsers")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateUsersRequest::~CreateUsersRequest()
|
||||
{}
|
||||
|
||||
long CreateUsersRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateUsersRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateUsersRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateUsersRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateUsersRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateUsersRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateUsersRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateUsersRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<CreateUsersRequest::UserInfo> CreateUsersRequest::getUserInfo()const
|
||||
{
|
||||
return userInfo_;
|
||||
}
|
||||
|
||||
void CreateUsersRequest::setUserInfo(const std::vector<UserInfo>& userInfo)
|
||||
{
|
||||
userInfo_ = userInfo;
|
||||
for(int dep1 = 0; dep1!= userInfo.size(); dep1++) {
|
||||
auto userInfoObj = userInfo.at(dep1);
|
||||
std::string userInfoObjStr = "UserInfo." + std::to_string(dep1 + 1);
|
||||
setParameter(userInfoObjStr + ".Type", userInfoObj.type);
|
||||
setParameter(userInfoObjStr + ".UserId", userInfoObj.userId);
|
||||
setParameter(userInfoObjStr + ".UserName", userInfoObj.userName);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CreateUsersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
CreateUsersResult::CreateUsersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateUsersResult::CreateUsersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateUsersResult::~CreateUsersResult()
|
||||
{}
|
||||
|
||||
void CreateUsersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DecommissionHostComponentRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DecommissionHostComponentRequest;
|
||||
|
||||
DecommissionHostComponentRequest::DecommissionHostComponentRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DecommissionHostComponent")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DecommissionHostComponentRequest::~DecommissionHostComponentRequest()
|
||||
{}
|
||||
|
||||
long DecommissionHostComponentRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DecommissionHostComponentRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DecommissionHostComponentRequest::getHostInstanceId()const
|
||||
{
|
||||
return hostInstanceId_;
|
||||
}
|
||||
|
||||
void DecommissionHostComponentRequest::setHostInstanceId(const std::string& hostInstanceId)
|
||||
{
|
||||
hostInstanceId_ = hostInstanceId;
|
||||
setParameter("HostInstanceId", hostInstanceId);
|
||||
}
|
||||
|
||||
std::string DecommissionHostComponentRequest::getComponentName()const
|
||||
{
|
||||
return componentName_;
|
||||
}
|
||||
|
||||
void DecommissionHostComponentRequest::setComponentName(const std::string& componentName)
|
||||
{
|
||||
componentName_ = componentName;
|
||||
setParameter("ComponentName", componentName);
|
||||
}
|
||||
|
||||
std::string DecommissionHostComponentRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DecommissionHostComponentRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DecommissionHostComponentRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DecommissionHostComponentRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long DecommissionHostComponentRequest::getTimeoutSeconds()const
|
||||
{
|
||||
return timeoutSeconds_;
|
||||
}
|
||||
|
||||
void DecommissionHostComponentRequest::setTimeoutSeconds(long timeoutSeconds)
|
||||
{
|
||||
timeoutSeconds_ = timeoutSeconds;
|
||||
setParameter("TimeoutSeconds", std::to_string(timeoutSeconds));
|
||||
}
|
||||
|
||||
std::string DecommissionHostComponentRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DecommissionHostComponentRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DecommissionHostComponentRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void DecommissionHostComponentRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DecommissionHostComponentResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DecommissionHostComponentResult::DecommissionHostComponentResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DecommissionHostComponentResult::DecommissionHostComponentResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DecommissionHostComponentResult::~DecommissionHostComponentResult()
|
||||
{}
|
||||
|
||||
void DecommissionHostComponentResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DeleteExecutionPlanRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DeleteExecutionPlanRequest;
|
||||
|
||||
DeleteExecutionPlanRequest::DeleteExecutionPlanRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DeleteExecutionPlan")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteExecutionPlanRequest::~DeleteExecutionPlanRequest()
|
||||
{}
|
||||
|
||||
long DeleteExecutionPlanRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteExecutionPlanRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteExecutionPlanRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteExecutionPlanRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteExecutionPlanRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteExecutionPlanRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteExecutionPlanRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteExecutionPlanRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DeleteExecutionPlanResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DeleteExecutionPlanResult::DeleteExecutionPlanResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteExecutionPlanResult::DeleteExecutionPlanResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteExecutionPlanResult::~DeleteExecutionPlanResult()
|
||||
{}
|
||||
|
||||
void DeleteExecutionPlanResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DeleteJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DeleteJobRequest;
|
||||
|
||||
DeleteJobRequest::DeleteJobRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DeleteJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteJobRequest::~DeleteJobRequest()
|
||||
{}
|
||||
|
||||
long DeleteJobRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteJobRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteJobRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteJobRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteJobRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DeleteJobRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DeleteJobRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteJobRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteJobRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteJobRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DeleteJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DeleteJobResult::DeleteJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteJobResult::DeleteJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteJobResult::~DeleteJobResult()
|
||||
{}
|
||||
|
||||
void DeleteJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DeleteLibrariesRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DeleteLibrariesRequest;
|
||||
|
||||
DeleteLibrariesRequest::DeleteLibrariesRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DeleteLibraries")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteLibrariesRequest::~DeleteLibrariesRequest()
|
||||
{}
|
||||
|
||||
long DeleteLibrariesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteLibrariesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteLibrariesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteLibrariesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteLibrariesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteLibrariesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<std::string> DeleteLibrariesRequest::getLibraryBizIdList()const
|
||||
{
|
||||
return libraryBizIdList_;
|
||||
}
|
||||
|
||||
void DeleteLibrariesRequest::setLibraryBizIdList(const std::vector<std::string>& libraryBizIdList)
|
||||
{
|
||||
libraryBizIdList_ = libraryBizIdList;
|
||||
for(int dep1 = 0; dep1!= libraryBizIdList.size(); dep1++) {
|
||||
setParameter("LibraryBizIdList."+ std::to_string(dep1), libraryBizIdList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DeleteLibrariesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DeleteLibrariesResult::DeleteLibrariesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteLibrariesResult::DeleteLibrariesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteLibrariesResult::~DeleteLibrariesResult()
|
||||
{}
|
||||
|
||||
void DeleteLibrariesResult::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 DeleteLibrariesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DeleteScalingRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DeleteScalingRuleRequest;
|
||||
|
||||
DeleteScalingRuleRequest::DeleteScalingRuleRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DeleteScalingRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteScalingRuleRequest::~DeleteScalingRuleRequest()
|
||||
{}
|
||||
|
||||
long DeleteScalingRuleRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteScalingRuleRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteScalingRuleRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteScalingRuleRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DeleteScalingRuleRequest::getScalingRuleId()const
|
||||
{
|
||||
return scalingRuleId_;
|
||||
}
|
||||
|
||||
void DeleteScalingRuleRequest::setScalingRuleId(const std::string& scalingRuleId)
|
||||
{
|
||||
scalingRuleId_ = scalingRuleId;
|
||||
setParameter("ScalingRuleId", scalingRuleId);
|
||||
}
|
||||
|
||||
std::string DeleteScalingRuleRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteScalingRuleRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteScalingRuleRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteScalingRuleRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteScalingRuleRequest::getHostGroupId()const
|
||||
{
|
||||
return hostGroupId_;
|
||||
}
|
||||
|
||||
void DeleteScalingRuleRequest::setHostGroupId(const std::string& hostGroupId)
|
||||
{
|
||||
hostGroupId_ = hostGroupId;
|
||||
setParameter("HostGroupId", hostGroupId);
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DeleteScalingRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DeleteScalingRuleResult::DeleteScalingRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteScalingRuleResult::DeleteScalingRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteScalingRuleResult::~DeleteScalingRuleResult()
|
||||
{}
|
||||
|
||||
void DeleteScalingRuleResult::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 DeleteScalingRuleResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -1,106 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/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);
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/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_;
|
||||
}
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DeleteUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DeleteUserRequest;
|
||||
|
||||
DeleteUserRequest::DeleteUserRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DeleteUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteUserRequest::~DeleteUserRequest()
|
||||
{}
|
||||
|
||||
long DeleteUserRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteUserRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteUserRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteUserRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DeleteUserRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DeleteUserRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string DeleteUserRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void DeleteUserRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string DeleteUserRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteUserRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteUserRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteUserRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DeleteUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DeleteUserResult::DeleteUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteUserResult::DeleteUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteUserResult::~DeleteUserResult()
|
||||
{}
|
||||
|
||||
void DeleteUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeClusterMetaCollectRequest.h>
|
||||
|
||||
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;
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeClusterMetaCollectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DescribeClusterMetaCollectResult::DescribeClusterMetaCollectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeClusterMetaCollectResult::DescribeClusterMetaCollectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeClusterMetaCollectResult::~DescribeClusterMetaCollectResult()
|
||||
{}
|
||||
|
||||
void DescribeClusterMetaCollectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["MetaStoreType"].isNull())
|
||||
metaStoreType_ = value["MetaStoreType"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeClusterMetaCollectResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterMetaCollectResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterMetaCollectResult::getMetaStoreType()const
|
||||
{
|
||||
return metaStoreType_;
|
||||
}
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeClusterServiceConfigHistoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DescribeClusterServiceConfigHistoryRequest;
|
||||
|
||||
DescribeClusterServiceConfigHistoryRequest::DescribeClusterServiceConfigHistoryRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeClusterServiceConfigHistory")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeClusterServiceConfigHistoryRequest::~DescribeClusterServiceConfigHistoryRequest()
|
||||
{}
|
||||
|
||||
long DescribeClusterServiceConfigHistoryRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeClusterServiceConfigHistoryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceConfigHistoryRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeClusterServiceConfigHistoryRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceConfigHistoryRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeClusterServiceConfigHistoryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceConfigHistoryRequest::getConfigVersion()const
|
||||
{
|
||||
return configVersion_;
|
||||
}
|
||||
|
||||
void DescribeClusterServiceConfigHistoryRequest::setConfigVersion(const std::string& configVersion)
|
||||
{
|
||||
configVersion_ = configVersion;
|
||||
setParameter("ConfigVersion", configVersion);
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceConfigHistoryRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeClusterServiceConfigHistoryRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterServiceConfigHistoryRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void DescribeClusterServiceConfigHistoryRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeClusterServiceConfigHistoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DescribeClusterServiceConfigHistoryResult::DescribeClusterServiceConfigHistoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeClusterServiceConfigHistoryResult::DescribeClusterServiceConfigHistoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeClusterServiceConfigHistoryResult::~DescribeClusterServiceConfigHistoryResult()
|
||||
{}
|
||||
|
||||
void DescribeClusterServiceConfigHistoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto configNode = value["Config"];
|
||||
if(!configNode["ServiceName"].isNull())
|
||||
config_.serviceName = configNode["ServiceName"].asString();
|
||||
if(!configNode["ConfigVersion"].isNull())
|
||||
config_.configVersion = configNode["ConfigVersion"].asString();
|
||||
if(!configNode["Applied"].isNull())
|
||||
config_.applied = configNode["Applied"].asString() == "true";
|
||||
if(!configNode["CreateTime"].isNull())
|
||||
config_.createTime = configNode["CreateTime"].asString();
|
||||
if(!configNode["Author"].isNull())
|
||||
config_.author = configNode["Author"].asString();
|
||||
if(!configNode["Comment"].isNull())
|
||||
config_.comment = configNode["Comment"].asString();
|
||||
auto allConfigValueListNode = configNode["ConfigValueList"]["ConfigValue"];
|
||||
for (auto configNodeConfigValueListConfigValue : allConfigValueListNode)
|
||||
{
|
||||
Config::ConfigValue configValueObject;
|
||||
if(!configNodeConfigValueListConfigValue["ConfigName"].isNull())
|
||||
configValueObject.configName = configNodeConfigValueListConfigValue["ConfigName"].asString();
|
||||
auto allConfigItemValueListNode = configNodeConfigValueListConfigValue["ConfigItemValueList"]["ConfigItemValue"];
|
||||
for (auto configNodeConfigValueListConfigValueConfigItemValueListConfigItemValue : allConfigItemValueListNode)
|
||||
{
|
||||
Config::ConfigValue::ConfigItemValue configItemValueListObject;
|
||||
if(!configNodeConfigValueListConfigValueConfigItemValueListConfigItemValue["ItemName"].isNull())
|
||||
configItemValueListObject.itemName = configNodeConfigValueListConfigValueConfigItemValueListConfigItemValue["ItemName"].asString();
|
||||
if(!configNodeConfigValueListConfigValueConfigItemValueListConfigItemValue["Value"].isNull())
|
||||
configItemValueListObject.value = configNodeConfigValueListConfigValueConfigItemValueListConfigItemValue["Value"].asString();
|
||||
if(!configNodeConfigValueListConfigValueConfigItemValueListConfigItemValue["OldValue"].isNull())
|
||||
configItemValueListObject.oldValue = configNodeConfigValueListConfigValueConfigItemValueListConfigItemValue["OldValue"].asString();
|
||||
if(!configNodeConfigValueListConfigValueConfigItemValueListConfigItemValue["ChangeType"].isNull())
|
||||
configItemValueListObject.changeType = configNodeConfigValueListConfigValueConfigItemValueListConfigItemValue["ChangeType"].asString();
|
||||
configValueObject.configItemValueList.push_back(configItemValueListObject);
|
||||
}
|
||||
config_.configValueList.push_back(configValueObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeClusterServiceConfigHistoryResult::Config DescribeClusterServiceConfigHistoryResult::getConfig()const
|
||||
{
|
||||
return config_;
|
||||
}
|
||||
|
||||
@@ -76,6 +76,8 @@ void DescribeClusterServiceConfigResult::parse(const std::string &payload)
|
||||
configItemValueListObject.isCustom = configNodeConfigValueListConfigValueConfigItemValueListConfigItemValue["IsCustom"].asString() == "true";
|
||||
if(!configNodeConfigValueListConfigValueConfigItemValueListConfigItemValue["Description"].isNull())
|
||||
configItemValueListObject.description = configNodeConfigValueListConfigValueConfigItemValueListConfigItemValue["Description"].asString();
|
||||
if(!configNodeConfigValueListConfigValueConfigItemValueListConfigItemValue["ValueScope"].isNull())
|
||||
configItemValueListObject.valueScope = configNodeConfigValueListConfigValueConfigItemValueListConfigItemValue["ValueScope"].asString();
|
||||
configValueObject.configItemValueList.push_back(configItemValueListObject);
|
||||
}
|
||||
config_.configValueList.push_back(configValueObject);
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeDataSourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DescribeDataSourceRequest;
|
||||
|
||||
DescribeDataSourceRequest::DescribeDataSourceRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeDataSource")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDataSourceRequest::~DescribeDataSourceRequest()
|
||||
{}
|
||||
|
||||
long DescribeDataSourceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDataSourceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDataSourceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDataSourceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDataSourceRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeDataSourceRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeDataSourceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDataSourceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDataSourceRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DescribeDataSourceRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
@@ -1,135 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeDataSourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DescribeDataSourceResult::DescribeDataSourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataSourceResult::DescribeDataSourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataSourceResult::~DescribeDataSourceResult()
|
||||
{}
|
||||
|
||||
void DescribeDataSourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["CategoryId"].isNull())
|
||||
categoryId_ = value["CategoryId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["SourceType"].isNull())
|
||||
sourceType_ = value["SourceType"].asString();
|
||||
if(!value["CreateFrom"].isNull())
|
||||
createFrom_ = value["CreateFrom"].asString();
|
||||
if(!value["Conf"].isNull())
|
||||
conf_ = value["Conf"].asString();
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["Creator"].isNull())
|
||||
creator_ = value["Creator"].asString();
|
||||
if(!value["Modifier"].isNull())
|
||||
modifier_ = value["Modifier"].asString();
|
||||
if(!value["GmtCreate"].isNull())
|
||||
gmtCreate_ = std::stol(value["GmtCreate"].asString());
|
||||
if(!value["GmtModified"].isNull())
|
||||
gmtModified_ = std::stol(value["GmtModified"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDataSourceResult::getCategoryId()const
|
||||
{
|
||||
return categoryId_;
|
||||
}
|
||||
|
||||
std::string DescribeDataSourceResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string DescribeDataSourceResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string DescribeDataSourceResult::getConf()const
|
||||
{
|
||||
return conf_;
|
||||
}
|
||||
|
||||
std::string DescribeDataSourceResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
std::string DescribeDataSourceResult::getSourceType()const
|
||||
{
|
||||
return sourceType_;
|
||||
}
|
||||
|
||||
long DescribeDataSourceResult::getGmtModified()const
|
||||
{
|
||||
return gmtModified_;
|
||||
}
|
||||
|
||||
std::string DescribeDataSourceResult::getCreator()const
|
||||
{
|
||||
return creator_;
|
||||
}
|
||||
|
||||
std::string DescribeDataSourceResult::getCreateFrom()const
|
||||
{
|
||||
return createFrom_;
|
||||
}
|
||||
|
||||
std::string DescribeDataSourceResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
long DescribeDataSourceResult::getGmtCreate()const
|
||||
{
|
||||
return gmtCreate_;
|
||||
}
|
||||
|
||||
std::string DescribeDataSourceResult::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
std::string DescribeDataSourceResult::getModifier()const
|
||||
{
|
||||
return modifier_;
|
||||
}
|
||||
|
||||
@@ -1,128 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeDiskOpsActivityRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DescribeDiskOpsActivityRequest;
|
||||
|
||||
DescribeDiskOpsActivityRequest::DescribeDiskOpsActivityRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeDiskOpsActivity")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDiskOpsActivityRequest::~DescribeDiskOpsActivityRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDiskOpsActivityRequest::getEventId()const
|
||||
{
|
||||
return eventId_;
|
||||
}
|
||||
|
||||
void DescribeDiskOpsActivityRequest::setEventId(const std::string& eventId)
|
||||
{
|
||||
eventId_ = eventId;
|
||||
setParameter("EventId", eventId);
|
||||
}
|
||||
|
||||
long DescribeDiskOpsActivityRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDiskOpsActivityRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDiskOpsActivityRequest::getCurrentStage()const
|
||||
{
|
||||
return currentStage_;
|
||||
}
|
||||
|
||||
void DescribeDiskOpsActivityRequest::setCurrentStage(const std::string& currentStage)
|
||||
{
|
||||
currentStage_ = currentStage;
|
||||
setParameter("CurrentStage", currentStage);
|
||||
}
|
||||
|
||||
std::string DescribeDiskOpsActivityRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeDiskOpsActivityRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeDiskOpsActivityRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDiskOpsActivityRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDiskOpsActivityRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeDiskOpsActivityRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeDiskOpsActivityRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDiskOpsActivityRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDiskOpsActivityRequest::getDiskId()const
|
||||
{
|
||||
return diskId_;
|
||||
}
|
||||
|
||||
void DescribeDiskOpsActivityRequest::setDiskId(const std::string& diskId)
|
||||
{
|
||||
diskId_ = diskId;
|
||||
setParameter("DiskId", diskId);
|
||||
}
|
||||
|
||||
std::string DescribeDiskOpsActivityRequest::getCurrentState()const
|
||||
{
|
||||
return currentState_;
|
||||
}
|
||||
|
||||
void DescribeDiskOpsActivityRequest::setCurrentState(const std::string& currentState)
|
||||
{
|
||||
currentState_ = currentState;
|
||||
setParameter("CurrentState", currentState);
|
||||
}
|
||||
|
||||
@@ -1,79 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeDiskOpsActivityResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DescribeDiskOpsActivityResult::DescribeDiskOpsActivityResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDiskOpsActivityResult::DescribeDiskOpsActivityResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDiskOpsActivityResult::~DescribeDiskOpsActivityResult()
|
||||
{}
|
||||
|
||||
void DescribeDiskOpsActivityResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClusterType"].isNull())
|
||||
clusterType_ = value["ClusterType"].asString();
|
||||
if(!value["CurrentActivity"].isNull())
|
||||
currentActivity_ = value["CurrentActivity"].asString();
|
||||
if(!value["ActivityState"].isNull())
|
||||
activityState_ = value["ActivityState"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["NeedReboot"].isNull())
|
||||
needReboot_ = value["NeedReboot"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDiskOpsActivityResult::getActivityState()const
|
||||
{
|
||||
return activityState_;
|
||||
}
|
||||
|
||||
std::string DescribeDiskOpsActivityResult::getCurrentActivity()const
|
||||
{
|
||||
return currentActivity_;
|
||||
}
|
||||
|
||||
std::string DescribeDiskOpsActivityResult::getClusterType()const
|
||||
{
|
||||
return clusterType_;
|
||||
}
|
||||
|
||||
bool DescribeDiskOpsActivityResult::getNeedReboot()const
|
||||
{
|
||||
return needReboot_;
|
||||
}
|
||||
|
||||
std::string DescribeDiskOpsActivityResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeEmrMainVersionRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DescribeEmrMainVersionRequest;
|
||||
|
||||
DescribeEmrMainVersionRequest::DescribeEmrMainVersionRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeEmrMainVersion")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeEmrMainVersionRequest::~DescribeEmrMainVersionRequest()
|
||||
{}
|
||||
|
||||
long DescribeEmrMainVersionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeEmrMainVersionRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeEmrMainVersionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeEmrMainVersionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeEmrMainVersionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeEmrMainVersionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeEmrMainVersionRequest::getEmrVersion()const
|
||||
{
|
||||
return emrVersion_;
|
||||
}
|
||||
|
||||
void DescribeEmrMainVersionRequest::setEmrVersion(const std::string& emrVersion)
|
||||
{
|
||||
emrVersion_ = emrVersion;
|
||||
setParameter("EmrVersion", emrVersion);
|
||||
}
|
||||
|
||||
@@ -1,105 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeEmrMainVersionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DescribeEmrMainVersionResult::DescribeEmrMainVersionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeEmrMainVersionResult::DescribeEmrMainVersionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeEmrMainVersionResult::~DescribeEmrMainVersionResult()
|
||||
{}
|
||||
|
||||
void DescribeEmrMainVersionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto emrMainVersionNode = value["EmrMainVersion"];
|
||||
if(!emrMainVersionNode["RegionId"].isNull())
|
||||
emrMainVersion_.regionId = emrMainVersionNode["RegionId"].asString();
|
||||
if(!emrMainVersionNode["EmrVersion"].isNull())
|
||||
emrMainVersion_.emrVersion = emrMainVersionNode["EmrVersion"].asString();
|
||||
if(!emrMainVersionNode["EcmVersion"].isNull())
|
||||
emrMainVersion_.ecmVersion = emrMainVersionNode["EcmVersion"].asString() == "true";
|
||||
if(!emrMainVersionNode["ImageId"].isNull())
|
||||
emrMainVersion_.imageId = emrMainVersionNode["ImageId"].asString();
|
||||
if(!emrMainVersionNode["Display"].isNull())
|
||||
emrMainVersion_.display = emrMainVersionNode["Display"].asString() == "true";
|
||||
if(!emrMainVersionNode["StackName"].isNull())
|
||||
emrMainVersion_.stackName = emrMainVersionNode["StackName"].asString();
|
||||
if(!emrMainVersionNode["StackVersion"].isNull())
|
||||
emrMainVersion_.stackVersion = emrMainVersionNode["StackVersion"].asString();
|
||||
if(!emrMainVersionNode["PublishType"].isNull())
|
||||
emrMainVersion_.publishType = emrMainVersionNode["PublishType"].asString();
|
||||
auto allClusterTypeInfoListNode = emrMainVersionNode["ClusterTypeInfoList"]["ClusterTypeInfo"];
|
||||
for (auto emrMainVersionNodeClusterTypeInfoListClusterTypeInfo : allClusterTypeInfoListNode)
|
||||
{
|
||||
EmrMainVersion::ClusterTypeInfo clusterTypeInfoObject;
|
||||
if(!emrMainVersionNodeClusterTypeInfoListClusterTypeInfo["ClusterType"].isNull())
|
||||
clusterTypeInfoObject.clusterType = emrMainVersionNodeClusterTypeInfoListClusterTypeInfo["ClusterType"].asString();
|
||||
auto allServiceInfoListNode = emrMainVersionNodeClusterTypeInfoListClusterTypeInfo["ServiceInfoList"]["ServiceInfo"];
|
||||
for (auto emrMainVersionNodeClusterTypeInfoListClusterTypeInfoServiceInfoListServiceInfo : allServiceInfoListNode)
|
||||
{
|
||||
EmrMainVersion::ClusterTypeInfo::ServiceInfo serviceInfoListObject;
|
||||
if(!emrMainVersionNodeClusterTypeInfoListClusterTypeInfoServiceInfoListServiceInfo["ServiceName"].isNull())
|
||||
serviceInfoListObject.serviceName = emrMainVersionNodeClusterTypeInfoListClusterTypeInfoServiceInfoListServiceInfo["ServiceName"].asString();
|
||||
if(!emrMainVersionNodeClusterTypeInfoListClusterTypeInfoServiceInfoListServiceInfo["ServiceDisplayName"].isNull())
|
||||
serviceInfoListObject.serviceDisplayName = emrMainVersionNodeClusterTypeInfoListClusterTypeInfoServiceInfoListServiceInfo["ServiceDisplayName"].asString();
|
||||
if(!emrMainVersionNodeClusterTypeInfoListClusterTypeInfoServiceInfoListServiceInfo["ServiceVersion"].isNull())
|
||||
serviceInfoListObject.serviceVersion = emrMainVersionNodeClusterTypeInfoListClusterTypeInfoServiceInfoListServiceInfo["ServiceVersion"].asString();
|
||||
if(!emrMainVersionNodeClusterTypeInfoListClusterTypeInfoServiceInfoListServiceInfo["ServiceDisplayVersion"].isNull())
|
||||
serviceInfoListObject.serviceDisplayVersion = emrMainVersionNodeClusterTypeInfoListClusterTypeInfoServiceInfoListServiceInfo["ServiceDisplayVersion"].asString();
|
||||
if(!emrMainVersionNodeClusterTypeInfoListClusterTypeInfoServiceInfoListServiceInfo["Mandatory"].isNull())
|
||||
serviceInfoListObject.mandatory = emrMainVersionNodeClusterTypeInfoListClusterTypeInfoServiceInfoListServiceInfo["Mandatory"].asString() == "true";
|
||||
if(!emrMainVersionNodeClusterTypeInfoListClusterTypeInfoServiceInfoListServiceInfo["Display"].isNull())
|
||||
serviceInfoListObject.display = emrMainVersionNodeClusterTypeInfoListClusterTypeInfoServiceInfoListServiceInfo["Display"].asString() == "true";
|
||||
clusterTypeInfoObject.serviceInfoList.push_back(serviceInfoListObject);
|
||||
}
|
||||
emrMainVersion_.clusterTypeInfoList.push_back(clusterTypeInfoObject);
|
||||
}
|
||||
auto allClusterTypeWhiteUserListNode = emrMainVersionNode["ClusterTypeWhiteUserList"]["ClusterTypeWhiteUser"];
|
||||
for (auto emrMainVersionNodeClusterTypeWhiteUserListClusterTypeWhiteUser : allClusterTypeWhiteUserListNode)
|
||||
{
|
||||
EmrMainVersion::ClusterTypeWhiteUser clusterTypeWhiteUserObject;
|
||||
if(!emrMainVersionNodeClusterTypeWhiteUserListClusterTypeWhiteUser["ClusterType"].isNull())
|
||||
clusterTypeWhiteUserObject.clusterType = emrMainVersionNodeClusterTypeWhiteUserListClusterTypeWhiteUser["ClusterType"].asString();
|
||||
if(!emrMainVersionNodeClusterTypeWhiteUserListClusterTypeWhiteUser["UserId"].isNull())
|
||||
clusterTypeWhiteUserObject.userId = emrMainVersionNodeClusterTypeWhiteUserListClusterTypeWhiteUser["UserId"].asString();
|
||||
emrMainVersion_.clusterTypeWhiteUserList.push_back(clusterTypeWhiteUserObject);
|
||||
}
|
||||
auto allWhiteUserList = emrMainVersionNode["WhiteUserList"]["WwhiteUser"];
|
||||
for (auto value : allWhiteUserList)
|
||||
emrMainVersion_.whiteUserList.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
DescribeEmrMainVersionResult::EmrMainVersion DescribeEmrMainVersionResult::getEmrMainVersion()const
|
||||
{
|
||||
return emrMainVersion_;
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeExecutionPlanRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DescribeExecutionPlanRequest;
|
||||
|
||||
DescribeExecutionPlanRequest::DescribeExecutionPlanRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeExecutionPlan")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeExecutionPlanRequest::~DescribeExecutionPlanRequest()
|
||||
{}
|
||||
|
||||
long DescribeExecutionPlanRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeExecutionPlanRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeExecutionPlanRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeExecutionPlanRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeExecutionPlanRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeExecutionPlanRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeExecutionPlanRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DescribeExecutionPlanRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
@@ -1,278 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeExecutionPlanResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DescribeExecutionPlanResult::DescribeExecutionPlanResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeExecutionPlanResult::DescribeExecutionPlanResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeExecutionPlanResult::~DescribeExecutionPlanResult()
|
||||
{}
|
||||
|
||||
void DescribeExecutionPlanResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allJobInfoListNode = value["JobInfoList"]["JobInfo"];
|
||||
for (auto valueJobInfoListJobInfo : allJobInfoListNode)
|
||||
{
|
||||
JobInfo jobInfoListObject;
|
||||
if(!valueJobInfoListJobInfo["Id"].isNull())
|
||||
jobInfoListObject.id = valueJobInfoListJobInfo["Id"].asString();
|
||||
if(!valueJobInfoListJobInfo["Name"].isNull())
|
||||
jobInfoListObject.name = valueJobInfoListJobInfo["Name"].asString();
|
||||
if(!valueJobInfoListJobInfo["Type"].isNull())
|
||||
jobInfoListObject.type = valueJobInfoListJobInfo["Type"].asString();
|
||||
if(!valueJobInfoListJobInfo["RunParameter"].isNull())
|
||||
jobInfoListObject.runParameter = valueJobInfoListJobInfo["RunParameter"].asString();
|
||||
if(!valueJobInfoListJobInfo["FailAct"].isNull())
|
||||
jobInfoListObject.failAct = valueJobInfoListJobInfo["FailAct"].asString();
|
||||
jobInfoList_.push_back(jobInfoListObject);
|
||||
}
|
||||
auto clusterInfoNode = value["ClusterInfo"];
|
||||
if(!clusterInfoNode["Name"].isNull())
|
||||
clusterInfo_.name = clusterInfoNode["Name"].asString();
|
||||
if(!clusterInfoNode["ZoneId"].isNull())
|
||||
clusterInfo_.zoneId = clusterInfoNode["ZoneId"].asString();
|
||||
if(!clusterInfoNode["LogEnable"].isNull())
|
||||
clusterInfo_.logEnable = clusterInfoNode["LogEnable"].asString() == "true";
|
||||
if(!clusterInfoNode["LogPath"].isNull())
|
||||
clusterInfo_.logPath = clusterInfoNode["LogPath"].asString();
|
||||
if(!clusterInfoNode["SecurityGroupId"].isNull())
|
||||
clusterInfo_.securityGroupId = clusterInfoNode["SecurityGroupId"].asString();
|
||||
if(!clusterInfoNode["EmrVer"].isNull())
|
||||
clusterInfo_.emrVer = clusterInfoNode["EmrVer"].asString();
|
||||
if(!clusterInfoNode["ClusterType"].isNull())
|
||||
clusterInfo_.clusterType = clusterInfoNode["ClusterType"].asString();
|
||||
if(!clusterInfoNode["HighAvailabilityEnable"].isNull())
|
||||
clusterInfo_.highAvailabilityEnable = clusterInfoNode["HighAvailabilityEnable"].asString() == "true";
|
||||
if(!clusterInfoNode["VpcId"].isNull())
|
||||
clusterInfo_.vpcId = clusterInfoNode["VpcId"].asString();
|
||||
if(!clusterInfoNode["VSwitchId"].isNull())
|
||||
clusterInfo_.vSwitchId = clusterInfoNode["VSwitchId"].asString();
|
||||
if(!clusterInfoNode["NetType"].isNull())
|
||||
clusterInfo_.netType = clusterInfoNode["NetType"].asString();
|
||||
if(!clusterInfoNode["IoOptimized"].isNull())
|
||||
clusterInfo_.ioOptimized = clusterInfoNode["IoOptimized"].asString() == "true";
|
||||
if(!clusterInfoNode["InstanceGeneration"].isNull())
|
||||
clusterInfo_.instanceGeneration = clusterInfoNode["InstanceGeneration"].asString();
|
||||
if(!clusterInfoNode["Configurations"].isNull())
|
||||
clusterInfo_.configurations = clusterInfoNode["Configurations"].asString();
|
||||
if(!clusterInfoNode["EasEnable"].isNull())
|
||||
clusterInfo_.easEnable = clusterInfoNode["EasEnable"].asString() == "true";
|
||||
if(!clusterInfoNode["UseCustomHiveMetaDB"].isNull())
|
||||
clusterInfo_.useCustomHiveMetaDB = clusterInfoNode["UseCustomHiveMetaDB"].asString() == "true";
|
||||
if(!clusterInfoNode["InitCustomHiveMetaDB"].isNull())
|
||||
clusterInfo_.initCustomHiveMetaDB = clusterInfoNode["InitCustomHiveMetaDB"].asString() == "true";
|
||||
if(!clusterInfoNode["UserDefinedEmrEcsRole"].isNull())
|
||||
clusterInfo_.userDefinedEmrEcsRole = clusterInfoNode["UserDefinedEmrEcsRole"].asString();
|
||||
if(!clusterInfoNode["UseLocalMetaDb"].isNull())
|
||||
clusterInfo_.useLocalMetaDb = clusterInfoNode["UseLocalMetaDb"].asString() == "true";
|
||||
auto allEcsOrdersNode = clusterInfoNode["EcsOrders"]["EcsOrderInfo"];
|
||||
for (auto clusterInfoNodeEcsOrdersEcsOrderInfo : allEcsOrdersNode)
|
||||
{
|
||||
ClusterInfo::EcsOrderInfo ecsOrderInfoObject;
|
||||
if(!clusterInfoNodeEcsOrdersEcsOrderInfo["Index"].isNull())
|
||||
ecsOrderInfoObject.index = std::stoi(clusterInfoNodeEcsOrdersEcsOrderInfo["Index"].asString());
|
||||
if(!clusterInfoNodeEcsOrdersEcsOrderInfo["NodeCount"].isNull())
|
||||
ecsOrderInfoObject.nodeCount = std::stoi(clusterInfoNodeEcsOrdersEcsOrderInfo["NodeCount"].asString());
|
||||
if(!clusterInfoNodeEcsOrdersEcsOrderInfo["InstanceType"].isNull())
|
||||
ecsOrderInfoObject.instanceType = clusterInfoNodeEcsOrdersEcsOrderInfo["InstanceType"].asString();
|
||||
if(!clusterInfoNodeEcsOrdersEcsOrderInfo["DiskType"].isNull())
|
||||
ecsOrderInfoObject.diskType = clusterInfoNodeEcsOrdersEcsOrderInfo["DiskType"].asString();
|
||||
if(!clusterInfoNodeEcsOrdersEcsOrderInfo["DiskCapacity"].isNull())
|
||||
ecsOrderInfoObject.diskCapacity = std::stoi(clusterInfoNodeEcsOrdersEcsOrderInfo["DiskCapacity"].asString());
|
||||
if(!clusterInfoNodeEcsOrdersEcsOrderInfo["NodeType"].isNull())
|
||||
ecsOrderInfoObject.nodeType = clusterInfoNodeEcsOrdersEcsOrderInfo["NodeType"].asString();
|
||||
if(!clusterInfoNodeEcsOrdersEcsOrderInfo["DiskCount"].isNull())
|
||||
ecsOrderInfoObject.diskCount = std::stoi(clusterInfoNodeEcsOrdersEcsOrderInfo["DiskCount"].asString());
|
||||
clusterInfo_.ecsOrders.push_back(ecsOrderInfoObject);
|
||||
}
|
||||
auto allBootstrapActionListNode = clusterInfoNode["BootstrapActionList"]["BootstrapAction"];
|
||||
for (auto clusterInfoNodeBootstrapActionListBootstrapAction : allBootstrapActionListNode)
|
||||
{
|
||||
ClusterInfo::BootstrapAction bootstrapActionObject;
|
||||
if(!clusterInfoNodeBootstrapActionListBootstrapAction["Name"].isNull())
|
||||
bootstrapActionObject.name = clusterInfoNodeBootstrapActionListBootstrapAction["Name"].asString();
|
||||
if(!clusterInfoNodeBootstrapActionListBootstrapAction["Path"].isNull())
|
||||
bootstrapActionObject.path = clusterInfoNodeBootstrapActionListBootstrapAction["Path"].asString();
|
||||
if(!clusterInfoNodeBootstrapActionListBootstrapAction["Arg"].isNull())
|
||||
bootstrapActionObject.arg = clusterInfoNodeBootstrapActionListBootstrapAction["Arg"].asString();
|
||||
clusterInfo_.bootstrapActionList.push_back(bootstrapActionObject);
|
||||
}
|
||||
auto allConfigListNode = clusterInfoNode["ConfigList"]["Config"];
|
||||
for (auto clusterInfoNodeConfigListConfig : allConfigListNode)
|
||||
{
|
||||
ClusterInfo::Config configObject;
|
||||
if(!clusterInfoNodeConfigListConfig["ServiceName"].isNull())
|
||||
configObject.serviceName = clusterInfoNodeConfigListConfig["ServiceName"].asString();
|
||||
if(!clusterInfoNodeConfigListConfig["FileName"].isNull())
|
||||
configObject.fileName = clusterInfoNodeConfigListConfig["FileName"].asString();
|
||||
if(!clusterInfoNodeConfigListConfig["ConfigKey"].isNull())
|
||||
configObject.configKey = clusterInfoNodeConfigListConfig["ConfigKey"].asString();
|
||||
if(!clusterInfoNodeConfigListConfig["ConfigValue"].isNull())
|
||||
configObject.configValue = clusterInfoNodeConfigListConfig["ConfigValue"].asString();
|
||||
if(!clusterInfoNodeConfigListConfig["Encrypt"].isNull())
|
||||
configObject.encrypt = clusterInfoNodeConfigListConfig["Encrypt"].asString();
|
||||
clusterInfo_.configList.push_back(configObject);
|
||||
}
|
||||
auto softwareInfoNode = clusterInfoNode["SoftwareInfo"];
|
||||
if(!softwareInfoNode["EmrVer"].isNull())
|
||||
clusterInfo_.softwareInfo.emrVer = softwareInfoNode["EmrVer"].asString();
|
||||
if(!softwareInfoNode["ClusterType"].isNull())
|
||||
clusterInfo_.softwareInfo.clusterType = softwareInfoNode["ClusterType"].asString();
|
||||
auto allSoftwaresNode = softwareInfoNode["Softwares"]["Software"];
|
||||
for (auto softwareInfoNodeSoftwaresSoftware : allSoftwaresNode)
|
||||
{
|
||||
ClusterInfo::SoftwareInfo::Software softwareObject;
|
||||
if(!softwareInfoNodeSoftwaresSoftware["DisplayName"].isNull())
|
||||
softwareObject.displayName = softwareInfoNodeSoftwaresSoftware["DisplayName"].asString();
|
||||
if(!softwareInfoNodeSoftwaresSoftware["Name"].isNull())
|
||||
softwareObject.name = softwareInfoNodeSoftwaresSoftware["Name"].asString();
|
||||
if(!softwareInfoNodeSoftwaresSoftware["OnlyDisplay"].isNull())
|
||||
softwareObject.onlyDisplay = softwareInfoNodeSoftwaresSoftware["OnlyDisplay"].asString() == "true";
|
||||
if(!softwareInfoNodeSoftwaresSoftware["StartTpe"].isNull())
|
||||
softwareObject.startTpe = std::stoi(softwareInfoNodeSoftwaresSoftware["StartTpe"].asString());
|
||||
if(!softwareInfoNodeSoftwaresSoftware["Version"].isNull())
|
||||
softwareObject.version = softwareInfoNodeSoftwaresSoftware["Version"].asString();
|
||||
if(!softwareInfoNodeSoftwaresSoftware["Optional"].isNull())
|
||||
softwareObject.optional = softwareInfoNodeSoftwaresSoftware["Optional"].asString() == "true";
|
||||
clusterInfo_.softwareInfo.softwares.push_back(softwareObject);
|
||||
}
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["Strategy"].isNull())
|
||||
strategy_ = value["Strategy"].asString();
|
||||
if(!value["TimeInterval"].isNull())
|
||||
timeInterval_ = std::stoi(value["TimeInterval"].asString());
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = std::stol(value["StartTime"].asString());
|
||||
if(!value["TimeUnit"].isNull())
|
||||
timeUnit_ = value["TimeUnit"].asString();
|
||||
if(!value["DayOfWeek"].isNull())
|
||||
dayOfWeek_ = value["DayOfWeek"].asString();
|
||||
if(!value["DayOfMonth"].isNull())
|
||||
dayOfMonth_ = value["DayOfMonth"].asString();
|
||||
if(!value["CreateClusterOnDemand"].isNull())
|
||||
createClusterOnDemand_ = value["CreateClusterOnDemand"].asString() == "true";
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["ClusterName"].isNull())
|
||||
clusterName_ = value["ClusterName"].asString();
|
||||
if(!value["WorkflowApp"].isNull())
|
||||
workflowApp_ = value["WorkflowApp"].asString();
|
||||
if(!value["ExecutionPlanVersion"].isNull())
|
||||
executionPlanVersion_ = std::stol(value["ExecutionPlanVersion"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeExecutionPlanResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string DescribeExecutionPlanResult::getWorkflowApp()const
|
||||
{
|
||||
return workflowApp_;
|
||||
}
|
||||
|
||||
std::string DescribeExecutionPlanResult::getDayOfWeek()const
|
||||
{
|
||||
return dayOfWeek_;
|
||||
}
|
||||
|
||||
int DescribeExecutionPlanResult::getTimeInterval()const
|
||||
{
|
||||
return timeInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeExecutionPlanResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
std::string DescribeExecutionPlanResult::getDayOfMonth()const
|
||||
{
|
||||
return dayOfMonth_;
|
||||
}
|
||||
|
||||
long DescribeExecutionPlanResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
long DescribeExecutionPlanResult::getExecutionPlanVersion()const
|
||||
{
|
||||
return executionPlanVersion_;
|
||||
}
|
||||
|
||||
std::string DescribeExecutionPlanResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
std::vector<DescribeExecutionPlanResult::JobInfo> DescribeExecutionPlanResult::getJobInfoList()const
|
||||
{
|
||||
return jobInfoList_;
|
||||
}
|
||||
|
||||
DescribeExecutionPlanResult::ClusterInfo DescribeExecutionPlanResult::getClusterInfo()const
|
||||
{
|
||||
return clusterInfo_;
|
||||
}
|
||||
|
||||
std::string DescribeExecutionPlanResult::getStrategy()const
|
||||
{
|
||||
return strategy_;
|
||||
}
|
||||
|
||||
std::string DescribeExecutionPlanResult::getTimeUnit()const
|
||||
{
|
||||
return timeUnit_;
|
||||
}
|
||||
|
||||
std::string DescribeExecutionPlanResult::getClusterName()const
|
||||
{
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
std::string DescribeExecutionPlanResult::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
bool DescribeExecutionPlanResult::getCreateClusterOnDemand()const
|
||||
{
|
||||
return createClusterOnDemand_;
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DescribeJobRequest;
|
||||
|
||||
DescribeJobRequest::DescribeJobRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeJobRequest::~DescribeJobRequest()
|
||||
{}
|
||||
|
||||
long DescribeJobRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeJobRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeJobRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeJobRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeJobRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeJobRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeJobRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeJobRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeJobRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DescribeJobRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
@@ -1,93 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DescribeJobResult::DescribeJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeJobResult::DescribeJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeJobResult::~DescribeJobResult()
|
||||
{}
|
||||
|
||||
void DescribeJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["FailAct"].isNull())
|
||||
failAct_ = value["FailAct"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
type_ = value["Type"].asString();
|
||||
if(!value["MaxRetry"].isNull())
|
||||
maxRetry_ = std::stoi(value["MaxRetry"].asString());
|
||||
if(!value["RetryInterval"].isNull())
|
||||
retryInterval_ = std::stoi(value["RetryInterval"].asString());
|
||||
if(!value["RunParameter"].isNull())
|
||||
runParameter_ = value["RunParameter"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeJobResult::getFailAct()const
|
||||
{
|
||||
return failAct_;
|
||||
}
|
||||
|
||||
std::string DescribeJobResult::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
std::string DescribeJobResult::getRunParameter()const
|
||||
{
|
||||
return runParameter_;
|
||||
}
|
||||
|
||||
std::string DescribeJobResult::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
int DescribeJobResult::getMaxRetry()const
|
||||
{
|
||||
return maxRetry_;
|
||||
}
|
||||
|
||||
int DescribeJobResult::getRetryInterval()const
|
||||
{
|
||||
return retryInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeJobResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeLibraryDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DescribeLibraryDetailRequest;
|
||||
|
||||
DescribeLibraryDetailRequest::DescribeLibraryDetailRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeLibraryDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLibraryDetailRequest::~DescribeLibraryDetailRequest()
|
||||
{}
|
||||
|
||||
long DescribeLibraryDetailRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeLibraryDetailRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeLibraryDetailRequest::getLibraryBizId()const
|
||||
{
|
||||
return libraryBizId_;
|
||||
}
|
||||
|
||||
void DescribeLibraryDetailRequest::setLibraryBizId(const std::string& libraryBizId)
|
||||
{
|
||||
libraryBizId_ = libraryBizId;
|
||||
setParameter("LibraryBizId", libraryBizId);
|
||||
}
|
||||
|
||||
std::string DescribeLibraryDetailRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeLibraryDetailRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeLibraryDetailRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeLibraryDetailRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
@@ -1,114 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeLibraryDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DescribeLibraryDetailResult::DescribeLibraryDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeLibraryDetailResult::DescribeLibraryDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeLibraryDetailResult::~DescribeLibraryDetailResult()
|
||||
{}
|
||||
|
||||
void DescribeLibraryDetailResult::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["CreateTime"].isNull())
|
||||
createTime_ = std::stol(value["CreateTime"].asString());
|
||||
if(!value["Type"].isNull())
|
||||
type_ = value["Type"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["LibraryVersion"].isNull())
|
||||
libraryVersion_ = value["LibraryVersion"].asString();
|
||||
if(!value["SourceType"].isNull())
|
||||
sourceType_ = value["SourceType"].asString();
|
||||
if(!value["SourceLocation"].isNull())
|
||||
sourceLocation_ = value["SourceLocation"].asString();
|
||||
if(!value["Scope"].isNull())
|
||||
scope_ = value["Scope"].asString();
|
||||
if(!value["Properties"].isNull())
|
||||
properties_ = value["Properties"].asString();
|
||||
if(!value["UserId"].isNull())
|
||||
userId_ = value["UserId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeLibraryDetailResult::getSourceLocation()const
|
||||
{
|
||||
return sourceLocation_;
|
||||
}
|
||||
|
||||
std::string DescribeLibraryDetailResult::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
std::string DescribeLibraryDetailResult::getScope()const
|
||||
{
|
||||
return scope_;
|
||||
}
|
||||
|
||||
std::string DescribeLibraryDetailResult::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
long DescribeLibraryDetailResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::string DescribeLibraryDetailResult::getSourceType()const
|
||||
{
|
||||
return sourceType_;
|
||||
}
|
||||
|
||||
std::string DescribeLibraryDetailResult::getLibraryVersion()const
|
||||
{
|
||||
return libraryVersion_;
|
||||
}
|
||||
|
||||
std::string DescribeLibraryDetailResult::getProperties()const
|
||||
{
|
||||
return properties_;
|
||||
}
|
||||
|
||||
std::string DescribeLibraryDetailResult::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
std::string DescribeLibraryDetailResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeLibraryInstallTaskDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DescribeLibraryInstallTaskDetailRequest;
|
||||
|
||||
DescribeLibraryInstallTaskDetailRequest::DescribeLibraryInstallTaskDetailRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeLibraryInstallTaskDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLibraryInstallTaskDetailRequest::~DescribeLibraryInstallTaskDetailRequest()
|
||||
{}
|
||||
|
||||
long DescribeLibraryInstallTaskDetailRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeLibraryInstallTaskDetailRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeLibraryInstallTaskDetailRequest::getTaskBizId()const
|
||||
{
|
||||
return taskBizId_;
|
||||
}
|
||||
|
||||
void DescribeLibraryInstallTaskDetailRequest::setTaskBizId(const std::string& taskBizId)
|
||||
{
|
||||
taskBizId_ = taskBizId;
|
||||
setParameter("TaskBizId", taskBizId);
|
||||
}
|
||||
|
||||
std::string DescribeLibraryInstallTaskDetailRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeLibraryInstallTaskDetailRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeLibraryInstallTaskDetailRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeLibraryInstallTaskDetailRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
@@ -1,128 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeLibraryInstallTaskDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DescribeLibraryInstallTaskDetailResult::DescribeLibraryInstallTaskDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeLibraryInstallTaskDetailResult::DescribeLibraryInstallTaskDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeLibraryInstallTaskDetailResult::~DescribeLibraryInstallTaskDetailResult()
|
||||
{}
|
||||
|
||||
void DescribeLibraryInstallTaskDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["LibraryBizId"].isNull())
|
||||
libraryBizId_ = value["LibraryBizId"].asString();
|
||||
if(!value["TaskGroupId"].isNull())
|
||||
taskGroupId_ = value["TaskGroupId"].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());
|
||||
if(!value["TaskType"].isNull())
|
||||
taskType_ = value["TaskType"].asString();
|
||||
if(!value["Detail"].isNull())
|
||||
detail_ = value["Detail"].asString();
|
||||
if(!value["ClusterBizId"].isNull())
|
||||
clusterBizId_ = value["ClusterBizId"].asString();
|
||||
if(!value["Hostname"].isNull())
|
||||
hostname_ = value["Hostname"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeLibraryInstallTaskDetailResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
std::string DescribeLibraryInstallTaskDetailResult::getLibraryBizId()const
|
||||
{
|
||||
return libraryBizId_;
|
||||
}
|
||||
|
||||
long DescribeLibraryInstallTaskDetailResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeLibraryInstallTaskDetailResult::getTaskGroupId()const
|
||||
{
|
||||
return taskGroupId_;
|
||||
}
|
||||
|
||||
long DescribeLibraryInstallTaskDetailResult::getExecuteTime()const
|
||||
{
|
||||
return executeTime_;
|
||||
}
|
||||
|
||||
int DescribeLibraryInstallTaskDetailResult::getTaskProcess()const
|
||||
{
|
||||
return taskProcess_;
|
||||
}
|
||||
|
||||
std::string DescribeLibraryInstallTaskDetailResult::getClusterBizId()const
|
||||
{
|
||||
return clusterBizId_;
|
||||
}
|
||||
|
||||
std::string DescribeLibraryInstallTaskDetailResult::getTaskType()const
|
||||
{
|
||||
return taskType_;
|
||||
}
|
||||
|
||||
long DescribeLibraryInstallTaskDetailResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeLibraryInstallTaskDetailResult::getHostname()const
|
||||
{
|
||||
return hostname_;
|
||||
}
|
||||
|
||||
std::string DescribeLibraryInstallTaskDetailResult::getTaskStatus()const
|
||||
{
|
||||
return taskStatus_;
|
||||
}
|
||||
|
||||
std::string DescribeLibraryInstallTaskDetailResult::getDetail()const
|
||||
{
|
||||
return detail_;
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/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::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeMetaTablePreviewTaskRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -1,104 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/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_;
|
||||
}
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeScalingActivityRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DescribeScalingActivityRequest;
|
||||
|
||||
DescribeScalingActivityRequest::DescribeScalingActivityRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeScalingActivity")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeScalingActivityRequest::~DescribeScalingActivityRequest()
|
||||
{}
|
||||
|
||||
long DescribeScalingActivityRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeScalingActivityRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeScalingActivityRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeScalingActivityRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeScalingActivityRequest::getScalingActivityId()const
|
||||
{
|
||||
return scalingActivityId_;
|
||||
}
|
||||
|
||||
void DescribeScalingActivityRequest::setScalingActivityId(const std::string& scalingActivityId)
|
||||
{
|
||||
scalingActivityId_ = scalingActivityId;
|
||||
setParameter("ScalingActivityId", scalingActivityId);
|
||||
}
|
||||
|
||||
std::string DescribeScalingActivityRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeScalingActivityRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeScalingActivityRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeScalingActivityRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeScalingActivityRequest::getHostGroupId()const
|
||||
{
|
||||
return hostGroupId_;
|
||||
}
|
||||
|
||||
void DescribeScalingActivityRequest::setHostGroupId(const std::string& hostGroupId)
|
||||
{
|
||||
hostGroupId_ = hostGroupId;
|
||||
setParameter("HostGroupId", hostGroupId);
|
||||
}
|
||||
|
||||
@@ -1,121 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeScalingActivityResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DescribeScalingActivityResult::DescribeScalingActivityResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeScalingActivityResult::DescribeScalingActivityResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeScalingActivityResult::~DescribeScalingActivityResult()
|
||||
{}
|
||||
|
||||
void DescribeScalingActivityResult::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["StartTime"].isNull())
|
||||
startTime_ = std::stol(value["StartTime"].asString());
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = std::stol(value["EndTime"].asString());
|
||||
if(!value["InstanceIds"].isNull())
|
||||
instanceIds_ = value["InstanceIds"].asString();
|
||||
if(!value["TotalCapacity"].isNull())
|
||||
totalCapacity_ = std::stoi(value["TotalCapacity"].asString());
|
||||
if(!value["Cause"].isNull())
|
||||
cause_ = value["Cause"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["Transition"].isNull())
|
||||
transition_ = value["Transition"].asString();
|
||||
if(!value["ScalingRuleId"].isNull())
|
||||
scalingRuleId_ = value["ScalingRuleId"].asString();
|
||||
if(!value["ExpectNum"].isNull())
|
||||
expectNum_ = std::stoi(value["ExpectNum"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeScalingActivityResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string DescribeScalingActivityResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
long DescribeScalingActivityResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
int DescribeScalingActivityResult::getExpectNum()const
|
||||
{
|
||||
return expectNum_;
|
||||
}
|
||||
|
||||
std::string DescribeScalingActivityResult::getCause()const
|
||||
{
|
||||
return cause_;
|
||||
}
|
||||
|
||||
long DescribeScalingActivityResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeScalingActivityResult::getTransition()const
|
||||
{
|
||||
return transition_;
|
||||
}
|
||||
|
||||
std::string DescribeScalingActivityResult::getScalingRuleId()const
|
||||
{
|
||||
return scalingRuleId_;
|
||||
}
|
||||
|
||||
int DescribeScalingActivityResult::getTotalCapacity()const
|
||||
{
|
||||
return totalCapacity_;
|
||||
}
|
||||
|
||||
std::string DescribeScalingActivityResult::getInstanceIds()const
|
||||
{
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
std::string DescribeScalingActivityResult::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeScalingRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DescribeScalingRuleRequest;
|
||||
|
||||
DescribeScalingRuleRequest::DescribeScalingRuleRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeScalingRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeScalingRuleRequest::~DescribeScalingRuleRequest()
|
||||
{}
|
||||
|
||||
long DescribeScalingRuleRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeScalingRuleRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeScalingRuleRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeScalingRuleRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeScalingRuleRequest::getScalingRuleId()const
|
||||
{
|
||||
return scalingRuleId_;
|
||||
}
|
||||
|
||||
void DescribeScalingRuleRequest::setScalingRuleId(const std::string& scalingRuleId)
|
||||
{
|
||||
scalingRuleId_ = scalingRuleId;
|
||||
setParameter("ScalingRuleId", scalingRuleId);
|
||||
}
|
||||
|
||||
std::string DescribeScalingRuleRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeScalingRuleRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeScalingRuleRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeScalingRuleRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeScalingRuleRequest::getHostGroupId()const
|
||||
{
|
||||
return hostGroupId_;
|
||||
}
|
||||
|
||||
void DescribeScalingRuleRequest::setHostGroupId(const std::string& hostGroupId)
|
||||
{
|
||||
hostGroupId_ = hostGroupId;
|
||||
setParameter("HostGroupId", hostGroupId);
|
||||
}
|
||||
|
||||
@@ -1,159 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeScalingRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DescribeScalingRuleResult::DescribeScalingRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeScalingRuleResult::DescribeScalingRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeScalingRuleResult::~DescribeScalingRuleResult()
|
||||
{}
|
||||
|
||||
void DescribeScalingRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto schedulerTriggerNode = value["SchedulerTrigger"];
|
||||
if(!schedulerTriggerNode["LaunchTime"].isNull())
|
||||
schedulerTrigger_.launchTime = std::stol(schedulerTriggerNode["LaunchTime"].asString());
|
||||
if(!schedulerTriggerNode["LaunchExpirationTime"].isNull())
|
||||
schedulerTrigger_.launchExpirationTime = std::stoi(schedulerTriggerNode["LaunchExpirationTime"].asString());
|
||||
if(!schedulerTriggerNode["RecurrenceType"].isNull())
|
||||
schedulerTrigger_.recurrenceType = schedulerTriggerNode["RecurrenceType"].asString();
|
||||
if(!schedulerTriggerNode["RecurrenceValue"].isNull())
|
||||
schedulerTrigger_.recurrenceValue = schedulerTriggerNode["RecurrenceValue"].asString();
|
||||
if(!schedulerTriggerNode["RecurrenceEndTime"].isNull())
|
||||
schedulerTrigger_.recurrenceEndTime = std::stol(schedulerTriggerNode["RecurrenceEndTime"].asString());
|
||||
auto cloudWatchTriggerNode = value["CloudWatchTrigger"];
|
||||
if(!cloudWatchTriggerNode["MetricName"].isNull())
|
||||
cloudWatchTrigger_.metricName = cloudWatchTriggerNode["MetricName"].asString();
|
||||
if(!cloudWatchTriggerNode["Period"].isNull())
|
||||
cloudWatchTrigger_.period = std::stoi(cloudWatchTriggerNode["Period"].asString());
|
||||
if(!cloudWatchTriggerNode["Statistics"].isNull())
|
||||
cloudWatchTrigger_.statistics = cloudWatchTriggerNode["Statistics"].asString();
|
||||
if(!cloudWatchTriggerNode["ComparisonOperator"].isNull())
|
||||
cloudWatchTrigger_.comparisonOperator = cloudWatchTriggerNode["ComparisonOperator"].asString();
|
||||
if(!cloudWatchTriggerNode["Threshold"].isNull())
|
||||
cloudWatchTrigger_.threshold = cloudWatchTriggerNode["Threshold"].asString();
|
||||
if(!cloudWatchTriggerNode["EvaluationCount"].isNull())
|
||||
cloudWatchTrigger_.evaluationCount = cloudWatchTriggerNode["EvaluationCount"].asString();
|
||||
if(!cloudWatchTriggerNode["Unit"].isNull())
|
||||
cloudWatchTrigger_.unit = cloudWatchTriggerNode["Unit"].asString();
|
||||
if(!cloudWatchTriggerNode["MetricDisplayName"].isNull())
|
||||
cloudWatchTrigger_.metricDisplayName = cloudWatchTriggerNode["MetricDisplayName"].asString();
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
if(!value["GmtCreate"].isNull())
|
||||
gmtCreate_ = value["GmtCreate"].asString();
|
||||
if(!value["GmtModified"].isNull())
|
||||
gmtModified_ = value["GmtModified"].asString();
|
||||
if(!value["RuleName"].isNull())
|
||||
ruleName_ = value["RuleName"].asString();
|
||||
if(!value["RuleCategory"].isNull())
|
||||
ruleCategory_ = value["RuleCategory"].asString();
|
||||
if(!value["AdjustmentType"].isNull())
|
||||
adjustmentType_ = value["AdjustmentType"].asString();
|
||||
if(!value["AdjustmentValue"].isNull())
|
||||
adjustmentValue_ = std::stoi(value["AdjustmentValue"].asString());
|
||||
if(!value["Cooldown"].isNull())
|
||||
cooldown_ = std::stoi(value["Cooldown"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["WithGrace"].isNull())
|
||||
withGrace_ = value["WithGrace"].asString() == "true";
|
||||
if(!value["TimeoutWithGrace"].isNull())
|
||||
timeoutWithGrace_ = std::stol(value["TimeoutWithGrace"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeScalingRuleResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
long DescribeScalingRuleResult::getTimeoutWithGrace()const
|
||||
{
|
||||
return timeoutWithGrace_;
|
||||
}
|
||||
|
||||
DescribeScalingRuleResult::CloudWatchTrigger DescribeScalingRuleResult::getCloudWatchTrigger()const
|
||||
{
|
||||
return cloudWatchTrigger_;
|
||||
}
|
||||
|
||||
int DescribeScalingRuleResult::getCooldown()const
|
||||
{
|
||||
return cooldown_;
|
||||
}
|
||||
|
||||
std::string DescribeScalingRuleResult::getGmtModified()const
|
||||
{
|
||||
return gmtModified_;
|
||||
}
|
||||
|
||||
std::string DescribeScalingRuleResult::getAdjustmentType()const
|
||||
{
|
||||
return adjustmentType_;
|
||||
}
|
||||
|
||||
std::string DescribeScalingRuleResult::getGmtCreate()const
|
||||
{
|
||||
return gmtCreate_;
|
||||
}
|
||||
|
||||
int DescribeScalingRuleResult::getAdjustmentValue()const
|
||||
{
|
||||
return adjustmentValue_;
|
||||
}
|
||||
|
||||
DescribeScalingRuleResult::SchedulerTrigger DescribeScalingRuleResult::getSchedulerTrigger()const
|
||||
{
|
||||
return schedulerTrigger_;
|
||||
}
|
||||
|
||||
bool DescribeScalingRuleResult::getWithGrace()const
|
||||
{
|
||||
return withGrace_;
|
||||
}
|
||||
|
||||
std::string DescribeScalingRuleResult::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
std::string DescribeScalingRuleResult::getRuleName()const
|
||||
{
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
std::string DescribeScalingRuleResult::getRuleCategory()const
|
||||
{
|
||||
return ruleCategory_;
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeSecurityGroupAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DescribeSecurityGroupAttributeRequest;
|
||||
|
||||
DescribeSecurityGroupAttributeRequest::DescribeSecurityGroupAttributeRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DescribeSecurityGroupAttribute")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSecurityGroupAttributeRequest::~DescribeSecurityGroupAttributeRequest()
|
||||
{}
|
||||
|
||||
long DescribeSecurityGroupAttributeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeSecurityGroupAttributeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeSecurityGroupAttributeRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeSecurityGroupAttributeRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeSecurityGroupAttributeRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeSecurityGroupAttributeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeSecurityGroupAttributeRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeSecurityGroupAttributeRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeSecurityGroupAttributeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeSecurityGroupAttributeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DescribeSecurityGroupAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DescribeSecurityGroupAttributeResult::DescribeSecurityGroupAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSecurityGroupAttributeResult::DescribeSecurityGroupAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSecurityGroupAttributeResult::~DescribeSecurityGroupAttributeResult()
|
||||
{}
|
||||
|
||||
void DescribeSecurityGroupAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAvailableGroupListNode = value["AvailableGroupList"]["SecurityGroup"];
|
||||
for (auto valueAvailableGroupListSecurityGroup : allAvailableGroupListNode)
|
||||
{
|
||||
SecurityGroup availableGroupListObject;
|
||||
if(!valueAvailableGroupListSecurityGroup["SecurityGroupId"].isNull())
|
||||
availableGroupListObject.securityGroupId = valueAvailableGroupListSecurityGroup["SecurityGroupId"].asString();
|
||||
if(!valueAvailableGroupListSecurityGroup["Description"].isNull())
|
||||
availableGroupListObject.description = valueAvailableGroupListSecurityGroup["Description"].asString();
|
||||
if(!valueAvailableGroupListSecurityGroup["SecurityGroupName"].isNull())
|
||||
availableGroupListObject.securityGroupName = valueAvailableGroupListSecurityGroup["SecurityGroupName"].asString();
|
||||
if(!valueAvailableGroupListSecurityGroup["VpcId"].isNull())
|
||||
availableGroupListObject.vpcId = valueAvailableGroupListSecurityGroup["VpcId"].asString();
|
||||
if(!valueAvailableGroupListSecurityGroup["CreationTime"].isNull())
|
||||
availableGroupListObject.creationTime = valueAvailableGroupListSecurityGroup["CreationTime"].asString();
|
||||
if(!valueAvailableGroupListSecurityGroup["AvailableInstanceAmount"].isNull())
|
||||
availableGroupListObject.availableInstanceAmount = std::stoi(valueAvailableGroupListSecurityGroup["AvailableInstanceAmount"].asString());
|
||||
if(!valueAvailableGroupListSecurityGroup["EcsCount"].isNull())
|
||||
availableGroupListObject.ecsCount = std::stoi(valueAvailableGroupListSecurityGroup["EcsCount"].asString());
|
||||
availableGroupList_.push_back(availableGroupListObject);
|
||||
}
|
||||
auto allSecurityGroupAttributeListNode = value["SecurityGroupAttributeList"]["SecurityGroupAttribute"];
|
||||
for (auto valueSecurityGroupAttributeListSecurityGroupAttribute : allSecurityGroupAttributeListNode)
|
||||
{
|
||||
SecurityGroupAttribute securityGroupAttributeListObject;
|
||||
if(!valueSecurityGroupAttributeListSecurityGroupAttribute["BizType"].isNull())
|
||||
securityGroupAttributeListObject.bizType = valueSecurityGroupAttributeListSecurityGroupAttribute["BizType"].asString();
|
||||
if(!valueSecurityGroupAttributeListSecurityGroupAttribute["BizContent"].isNull())
|
||||
securityGroupAttributeListObject.bizContent = valueSecurityGroupAttributeListSecurityGroupAttribute["BizContent"].asString();
|
||||
securityGroupAttributeList_.push_back(securityGroupAttributeListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeSecurityGroupAttributeResult::SecurityGroup> DescribeSecurityGroupAttributeResult::getAvailableGroupList()const
|
||||
{
|
||||
return availableGroupList_;
|
||||
}
|
||||
|
||||
std::vector<DescribeSecurityGroupAttributeResult::SecurityGroupAttribute> DescribeSecurityGroupAttributeResult::getSecurityGroupAttributeList()const
|
||||
{
|
||||
return securityGroupAttributeList_;
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DetachAndReleaseClusterEniRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::DetachAndReleaseClusterEniRequest;
|
||||
|
||||
DetachAndReleaseClusterEniRequest::DetachAndReleaseClusterEniRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "DetachAndReleaseClusterEni")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DetachAndReleaseClusterEniRequest::~DetachAndReleaseClusterEniRequest()
|
||||
{}
|
||||
|
||||
long DetachAndReleaseClusterEniRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DetachAndReleaseClusterEniRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DetachAndReleaseClusterEniRequest::getTargetClusterId()const
|
||||
{
|
||||
return targetClusterId_;
|
||||
}
|
||||
|
||||
void DetachAndReleaseClusterEniRequest::setTargetClusterId(const std::string& targetClusterId)
|
||||
{
|
||||
targetClusterId_ = targetClusterId;
|
||||
setParameter("TargetClusterId", targetClusterId);
|
||||
}
|
||||
|
||||
std::string DetachAndReleaseClusterEniRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DetachAndReleaseClusterEniRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DetachAndReleaseClusterEniRequest::getVswitchId()const
|
||||
{
|
||||
return vswitchId_;
|
||||
}
|
||||
|
||||
void DetachAndReleaseClusterEniRequest::setVswitchId(const std::string& vswitchId)
|
||||
{
|
||||
vswitchId_ = vswitchId;
|
||||
setParameter("VswitchId", vswitchId);
|
||||
}
|
||||
|
||||
std::string DetachAndReleaseClusterEniRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DetachAndReleaseClusterEniRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/DetachAndReleaseClusterEniResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
DetachAndReleaseClusterEniResult::DetachAndReleaseClusterEniResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DetachAndReleaseClusterEniResult::DetachAndReleaseClusterEniResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DetachAndReleaseClusterEniResult::~DetachAndReleaseClusterEniResult()
|
||||
{}
|
||||
|
||||
void DetachAndReleaseClusterEniResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/GetHdfsCapacityStatisticInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::GetHdfsCapacityStatisticInfoRequest;
|
||||
|
||||
GetHdfsCapacityStatisticInfoRequest::GetHdfsCapacityStatisticInfoRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "GetHdfsCapacityStatisticInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetHdfsCapacityStatisticInfoRequest::~GetHdfsCapacityStatisticInfoRequest()
|
||||
{}
|
||||
|
||||
std::string GetHdfsCapacityStatisticInfoRequest::getFromDatetime()const
|
||||
{
|
||||
return fromDatetime_;
|
||||
}
|
||||
|
||||
void GetHdfsCapacityStatisticInfoRequest::setFromDatetime(const std::string& fromDatetime)
|
||||
{
|
||||
fromDatetime_ = fromDatetime;
|
||||
setParameter("FromDatetime", fromDatetime);
|
||||
}
|
||||
|
||||
long GetHdfsCapacityStatisticInfoRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetHdfsCapacityStatisticInfoRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetHdfsCapacityStatisticInfoRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetHdfsCapacityStatisticInfoRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string GetHdfsCapacityStatisticInfoRequest::getToDatetime()const
|
||||
{
|
||||
return toDatetime_;
|
||||
}
|
||||
|
||||
void GetHdfsCapacityStatisticInfoRequest::setToDatetime(const std::string& toDatetime)
|
||||
{
|
||||
toDatetime_ = toDatetime;
|
||||
setParameter("ToDatetime", toDatetime);
|
||||
}
|
||||
|
||||
std::string GetHdfsCapacityStatisticInfoRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetHdfsCapacityStatisticInfoRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetHdfsCapacityStatisticInfoRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetHdfsCapacityStatisticInfoRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/GetHdfsCapacityStatisticInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
GetHdfsCapacityStatisticInfoResult::GetHdfsCapacityStatisticInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetHdfsCapacityStatisticInfoResult::GetHdfsCapacityStatisticInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetHdfsCapacityStatisticInfoResult::~GetHdfsCapacityStatisticInfoResult()
|
||||
{}
|
||||
|
||||
void GetHdfsCapacityStatisticInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allHdfsCapacityListNode = value["HdfsCapacityList"]["ClusterStatHdfsCapacity"];
|
||||
for (auto valueHdfsCapacityListClusterStatHdfsCapacity : allHdfsCapacityListNode)
|
||||
{
|
||||
ClusterStatHdfsCapacity hdfsCapacityListObject;
|
||||
if(!valueHdfsCapacityListClusterStatHdfsCapacity["CapacityTotal"].isNull())
|
||||
hdfsCapacityListObject.capacityTotal = std::stol(valueHdfsCapacityListClusterStatHdfsCapacity["CapacityTotal"].asString());
|
||||
if(!valueHdfsCapacityListClusterStatHdfsCapacity["CapacityTotalGB"].isNull())
|
||||
hdfsCapacityListObject.capacityTotalGB = std::stol(valueHdfsCapacityListClusterStatHdfsCapacity["CapacityTotalGB"].asString());
|
||||
if(!valueHdfsCapacityListClusterStatHdfsCapacity["CapacityUsed"].isNull())
|
||||
hdfsCapacityListObject.capacityUsed = std::stol(valueHdfsCapacityListClusterStatHdfsCapacity["CapacityUsed"].asString());
|
||||
if(!valueHdfsCapacityListClusterStatHdfsCapacity["CapacityUsedGB"].isNull())
|
||||
hdfsCapacityListObject.capacityUsedGB = std::stol(valueHdfsCapacityListClusterStatHdfsCapacity["CapacityUsedGB"].asString());
|
||||
if(!valueHdfsCapacityListClusterStatHdfsCapacity["CapacityRemaining"].isNull())
|
||||
hdfsCapacityListObject.capacityRemaining = std::stol(valueHdfsCapacityListClusterStatHdfsCapacity["CapacityRemaining"].asString());
|
||||
if(!valueHdfsCapacityListClusterStatHdfsCapacity["CapacityRemainingGB"].isNull())
|
||||
hdfsCapacityListObject.capacityRemainingGB = std::stol(valueHdfsCapacityListClusterStatHdfsCapacity["CapacityRemainingGB"].asString());
|
||||
if(!valueHdfsCapacityListClusterStatHdfsCapacity["CapacityUsedNonDfs"].isNull())
|
||||
hdfsCapacityListObject.capacityUsedNonDfs = std::stol(valueHdfsCapacityListClusterStatHdfsCapacity["CapacityUsedNonDfs"].asString());
|
||||
if(!valueHdfsCapacityListClusterStatHdfsCapacity["ClusterBizId"].isNull())
|
||||
hdfsCapacityListObject.clusterBizId = valueHdfsCapacityListClusterStatHdfsCapacity["ClusterBizId"].asString();
|
||||
if(!valueHdfsCapacityListClusterStatHdfsCapacity["DateTime"].isNull())
|
||||
hdfsCapacityListObject.dateTime = valueHdfsCapacityListClusterStatHdfsCapacity["DateTime"].asString();
|
||||
hdfsCapacityList_.push_back(hdfsCapacityListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetHdfsCapacityStatisticInfoResult::ClusterStatHdfsCapacity> GetHdfsCapacityStatisticInfoResult::getHdfsCapacityList()const
|
||||
{
|
||||
return hdfsCapacityList_;
|
||||
}
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/GetJobInputStatisticInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::GetJobInputStatisticInfoRequest;
|
||||
|
||||
GetJobInputStatisticInfoRequest::GetJobInputStatisticInfoRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "GetJobInputStatisticInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetJobInputStatisticInfoRequest::~GetJobInputStatisticInfoRequest()
|
||||
{}
|
||||
|
||||
std::string GetJobInputStatisticInfoRequest::getFromDatetime()const
|
||||
{
|
||||
return fromDatetime_;
|
||||
}
|
||||
|
||||
void GetJobInputStatisticInfoRequest::setFromDatetime(const std::string& fromDatetime)
|
||||
{
|
||||
fromDatetime_ = fromDatetime;
|
||||
setParameter("FromDatetime", fromDatetime);
|
||||
}
|
||||
|
||||
long GetJobInputStatisticInfoRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetJobInputStatisticInfoRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetJobInputStatisticInfoRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetJobInputStatisticInfoRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string GetJobInputStatisticInfoRequest::getToDatetime()const
|
||||
{
|
||||
return toDatetime_;
|
||||
}
|
||||
|
||||
void GetJobInputStatisticInfoRequest::setToDatetime(const std::string& toDatetime)
|
||||
{
|
||||
toDatetime_ = toDatetime;
|
||||
setParameter("ToDatetime", toDatetime);
|
||||
}
|
||||
|
||||
int GetJobInputStatisticInfoRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void GetJobInputStatisticInfoRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string GetJobInputStatisticInfoRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetJobInputStatisticInfoRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetJobInputStatisticInfoRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetJobInputStatisticInfoRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int GetJobInputStatisticInfoRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void GetJobInputStatisticInfoRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
@@ -1,94 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/GetJobInputStatisticInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
GetJobInputStatisticInfoResult::GetJobInputStatisticInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetJobInputStatisticInfoResult::GetJobInputStatisticInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetJobInputStatisticInfoResult::~GetJobInputStatisticInfoResult()
|
||||
{}
|
||||
|
||||
void GetJobInputStatisticInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allJobInputListNode = value["JobInputList"]["ClusterStatJobInput"];
|
||||
for (auto valueJobInputListClusterStatJobInput : allJobInputListNode)
|
||||
{
|
||||
ClusterStatJobInput jobInputListObject;
|
||||
if(!valueJobInputListClusterStatJobInput["ApplicationId"].isNull())
|
||||
jobInputListObject.applicationId = valueJobInputListClusterStatJobInput["ApplicationId"].asString();
|
||||
if(!valueJobInputListClusterStatJobInput["JobId"].isNull())
|
||||
jobInputListObject.jobId = valueJobInputListClusterStatJobInput["JobId"].asString();
|
||||
if(!valueJobInputListClusterStatJobInput["StartTime"].isNull())
|
||||
jobInputListObject.startTime = std::stol(valueJobInputListClusterStatJobInput["StartTime"].asString());
|
||||
if(!valueJobInputListClusterStatJobInput["FinishTime"].isNull())
|
||||
jobInputListObject.finishTime = std::stol(valueJobInputListClusterStatJobInput["FinishTime"].asString());
|
||||
if(!valueJobInputListClusterStatJobInput["Name"].isNull())
|
||||
jobInputListObject.name = valueJobInputListClusterStatJobInput["Name"].asString();
|
||||
if(!valueJobInputListClusterStatJobInput["Queue"].isNull())
|
||||
jobInputListObject.queue = valueJobInputListClusterStatJobInput["Queue"].asString();
|
||||
if(!valueJobInputListClusterStatJobInput["User"].isNull())
|
||||
jobInputListObject.user = valueJobInputListClusterStatJobInput["User"].asString();
|
||||
if(!valueJobInputListClusterStatJobInput["State"].isNull())
|
||||
jobInputListObject.state = valueJobInputListClusterStatJobInput["State"].asString();
|
||||
if(!valueJobInputListClusterStatJobInput["BytesInput"].isNull())
|
||||
jobInputListObject.bytesInput = std::stol(valueJobInputListClusterStatJobInput["BytesInput"].asString());
|
||||
jobInputList_.push_back(jobInputListObject);
|
||||
}
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stoi(value["Total"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int GetJobInputStatisticInfoResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int GetJobInputStatisticInfoResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<GetJobInputStatisticInfoResult::ClusterStatJobInput> GetJobInputStatisticInfoResult::getJobInputList()const
|
||||
{
|
||||
return jobInputList_;
|
||||
}
|
||||
|
||||
int GetJobInputStatisticInfoResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/GetJobOutputStatisticInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::GetJobOutputStatisticInfoRequest;
|
||||
|
||||
GetJobOutputStatisticInfoRequest::GetJobOutputStatisticInfoRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "GetJobOutputStatisticInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetJobOutputStatisticInfoRequest::~GetJobOutputStatisticInfoRequest()
|
||||
{}
|
||||
|
||||
std::string GetJobOutputStatisticInfoRequest::getFromDatetime()const
|
||||
{
|
||||
return fromDatetime_;
|
||||
}
|
||||
|
||||
void GetJobOutputStatisticInfoRequest::setFromDatetime(const std::string& fromDatetime)
|
||||
{
|
||||
fromDatetime_ = fromDatetime;
|
||||
setParameter("FromDatetime", fromDatetime);
|
||||
}
|
||||
|
||||
long GetJobOutputStatisticInfoRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetJobOutputStatisticInfoRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetJobOutputStatisticInfoRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetJobOutputStatisticInfoRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string GetJobOutputStatisticInfoRequest::getToDatetime()const
|
||||
{
|
||||
return toDatetime_;
|
||||
}
|
||||
|
||||
void GetJobOutputStatisticInfoRequest::setToDatetime(const std::string& toDatetime)
|
||||
{
|
||||
toDatetime_ = toDatetime;
|
||||
setParameter("ToDatetime", toDatetime);
|
||||
}
|
||||
|
||||
int GetJobOutputStatisticInfoRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void GetJobOutputStatisticInfoRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string GetJobOutputStatisticInfoRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetJobOutputStatisticInfoRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetJobOutputStatisticInfoRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetJobOutputStatisticInfoRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int GetJobOutputStatisticInfoRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void GetJobOutputStatisticInfoRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
@@ -1,94 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/GetJobOutputStatisticInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
GetJobOutputStatisticInfoResult::GetJobOutputStatisticInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetJobOutputStatisticInfoResult::GetJobOutputStatisticInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetJobOutputStatisticInfoResult::~GetJobOutputStatisticInfoResult()
|
||||
{}
|
||||
|
||||
void GetJobOutputStatisticInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allJobOutputListNode = value["JobOutputList"]["ClusterStatJobOutput"];
|
||||
for (auto valueJobOutputListClusterStatJobOutput : allJobOutputListNode)
|
||||
{
|
||||
ClusterStatJobOutput jobOutputListObject;
|
||||
if(!valueJobOutputListClusterStatJobOutput["ApplicationId"].isNull())
|
||||
jobOutputListObject.applicationId = valueJobOutputListClusterStatJobOutput["ApplicationId"].asString();
|
||||
if(!valueJobOutputListClusterStatJobOutput["JobId"].isNull())
|
||||
jobOutputListObject.jobId = valueJobOutputListClusterStatJobOutput["JobId"].asString();
|
||||
if(!valueJobOutputListClusterStatJobOutput["StartTime"].isNull())
|
||||
jobOutputListObject.startTime = std::stol(valueJobOutputListClusterStatJobOutput["StartTime"].asString());
|
||||
if(!valueJobOutputListClusterStatJobOutput["FinishTime"].isNull())
|
||||
jobOutputListObject.finishTime = std::stol(valueJobOutputListClusterStatJobOutput["FinishTime"].asString());
|
||||
if(!valueJobOutputListClusterStatJobOutput["Name"].isNull())
|
||||
jobOutputListObject.name = valueJobOutputListClusterStatJobOutput["Name"].asString();
|
||||
if(!valueJobOutputListClusterStatJobOutput["Queue"].isNull())
|
||||
jobOutputListObject.queue = valueJobOutputListClusterStatJobOutput["Queue"].asString();
|
||||
if(!valueJobOutputListClusterStatJobOutput["User"].isNull())
|
||||
jobOutputListObject.user = valueJobOutputListClusterStatJobOutput["User"].asString();
|
||||
if(!valueJobOutputListClusterStatJobOutput["State"].isNull())
|
||||
jobOutputListObject.state = valueJobOutputListClusterStatJobOutput["State"].asString();
|
||||
if(!valueJobOutputListClusterStatJobOutput["BytesOutput"].isNull())
|
||||
jobOutputListObject.bytesOutput = std::stol(valueJobOutputListClusterStatJobOutput["BytesOutput"].asString());
|
||||
jobOutputList_.push_back(jobOutputListObject);
|
||||
}
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stoi(value["Total"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int GetJobOutputStatisticInfoResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int GetJobOutputStatisticInfoResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int GetJobOutputStatisticInfoResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::vector<GetJobOutputStatisticInfoResult::ClusterStatJobOutput> GetJobOutputStatisticInfoResult::getJobOutputList()const
|
||||
{
|
||||
return jobOutputList_;
|
||||
}
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/GetJobRunningTimeStatisticInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::GetJobRunningTimeStatisticInfoRequest;
|
||||
|
||||
GetJobRunningTimeStatisticInfoRequest::GetJobRunningTimeStatisticInfoRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "GetJobRunningTimeStatisticInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetJobRunningTimeStatisticInfoRequest::~GetJobRunningTimeStatisticInfoRequest()
|
||||
{}
|
||||
|
||||
std::string GetJobRunningTimeStatisticInfoRequest::getFromDatetime()const
|
||||
{
|
||||
return fromDatetime_;
|
||||
}
|
||||
|
||||
void GetJobRunningTimeStatisticInfoRequest::setFromDatetime(const std::string& fromDatetime)
|
||||
{
|
||||
fromDatetime_ = fromDatetime;
|
||||
setParameter("FromDatetime", fromDatetime);
|
||||
}
|
||||
|
||||
long GetJobRunningTimeStatisticInfoRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetJobRunningTimeStatisticInfoRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetJobRunningTimeStatisticInfoRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetJobRunningTimeStatisticInfoRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string GetJobRunningTimeStatisticInfoRequest::getToDatetime()const
|
||||
{
|
||||
return toDatetime_;
|
||||
}
|
||||
|
||||
void GetJobRunningTimeStatisticInfoRequest::setToDatetime(const std::string& toDatetime)
|
||||
{
|
||||
toDatetime_ = toDatetime;
|
||||
setParameter("ToDatetime", toDatetime);
|
||||
}
|
||||
|
||||
int GetJobRunningTimeStatisticInfoRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void GetJobRunningTimeStatisticInfoRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string GetJobRunningTimeStatisticInfoRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetJobRunningTimeStatisticInfoRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetJobRunningTimeStatisticInfoRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetJobRunningTimeStatisticInfoRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int GetJobRunningTimeStatisticInfoRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void GetJobRunningTimeStatisticInfoRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
@@ -1,94 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/GetJobRunningTimeStatisticInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
GetJobRunningTimeStatisticInfoResult::GetJobRunningTimeStatisticInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetJobRunningTimeStatisticInfoResult::GetJobRunningTimeStatisticInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetJobRunningTimeStatisticInfoResult::~GetJobRunningTimeStatisticInfoResult()
|
||||
{}
|
||||
|
||||
void GetJobRunningTimeStatisticInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRunningTimeListNode = value["RunningTimeList"]["ClusterStatJobRunningTime"];
|
||||
for (auto valueRunningTimeListClusterStatJobRunningTime : allRunningTimeListNode)
|
||||
{
|
||||
ClusterStatJobRunningTime runningTimeListObject;
|
||||
if(!valueRunningTimeListClusterStatJobRunningTime["ApplicationId"].isNull())
|
||||
runningTimeListObject.applicationId = valueRunningTimeListClusterStatJobRunningTime["ApplicationId"].asString();
|
||||
if(!valueRunningTimeListClusterStatJobRunningTime["JobId"].isNull())
|
||||
runningTimeListObject.jobId = valueRunningTimeListClusterStatJobRunningTime["JobId"].asString();
|
||||
if(!valueRunningTimeListClusterStatJobRunningTime["StartTime"].isNull())
|
||||
runningTimeListObject.startTime = std::stol(valueRunningTimeListClusterStatJobRunningTime["StartTime"].asString());
|
||||
if(!valueRunningTimeListClusterStatJobRunningTime["FinishTime"].isNull())
|
||||
runningTimeListObject.finishTime = std::stol(valueRunningTimeListClusterStatJobRunningTime["FinishTime"].asString());
|
||||
if(!valueRunningTimeListClusterStatJobRunningTime["Name"].isNull())
|
||||
runningTimeListObject.name = valueRunningTimeListClusterStatJobRunningTime["Name"].asString();
|
||||
if(!valueRunningTimeListClusterStatJobRunningTime["Queue"].isNull())
|
||||
runningTimeListObject.queue = valueRunningTimeListClusterStatJobRunningTime["Queue"].asString();
|
||||
if(!valueRunningTimeListClusterStatJobRunningTime["User"].isNull())
|
||||
runningTimeListObject.user = valueRunningTimeListClusterStatJobRunningTime["User"].asString();
|
||||
if(!valueRunningTimeListClusterStatJobRunningTime["State"].isNull())
|
||||
runningTimeListObject.state = valueRunningTimeListClusterStatJobRunningTime["State"].asString();
|
||||
if(!valueRunningTimeListClusterStatJobRunningTime["RunningTime"].isNull())
|
||||
runningTimeListObject.runningTime = std::stol(valueRunningTimeListClusterStatJobRunningTime["RunningTime"].asString());
|
||||
runningTimeList_.push_back(runningTimeListObject);
|
||||
}
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stoi(value["Total"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int GetJobRunningTimeStatisticInfoResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int GetJobRunningTimeStatisticInfoResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int GetJobRunningTimeStatisticInfoResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::vector<GetJobRunningTimeStatisticInfoResult::ClusterStatJobRunningTime> GetJobRunningTimeStatisticInfoResult::getRunningTimeList()const
|
||||
{
|
||||
return runningTimeList_;
|
||||
}
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/GetQueueInputStatisticInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::GetQueueInputStatisticInfoRequest;
|
||||
|
||||
GetQueueInputStatisticInfoRequest::GetQueueInputStatisticInfoRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "GetQueueInputStatisticInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetQueueInputStatisticInfoRequest::~GetQueueInputStatisticInfoRequest()
|
||||
{}
|
||||
|
||||
std::string GetQueueInputStatisticInfoRequest::getFromDatetime()const
|
||||
{
|
||||
return fromDatetime_;
|
||||
}
|
||||
|
||||
void GetQueueInputStatisticInfoRequest::setFromDatetime(const std::string& fromDatetime)
|
||||
{
|
||||
fromDatetime_ = fromDatetime;
|
||||
setParameter("FromDatetime", fromDatetime);
|
||||
}
|
||||
|
||||
long GetQueueInputStatisticInfoRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetQueueInputStatisticInfoRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetQueueInputStatisticInfoRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetQueueInputStatisticInfoRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string GetQueueInputStatisticInfoRequest::getToDatetime()const
|
||||
{
|
||||
return toDatetime_;
|
||||
}
|
||||
|
||||
void GetQueueInputStatisticInfoRequest::setToDatetime(const std::string& toDatetime)
|
||||
{
|
||||
toDatetime_ = toDatetime;
|
||||
setParameter("ToDatetime", toDatetime);
|
||||
}
|
||||
|
||||
std::string GetQueueInputStatisticInfoRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetQueueInputStatisticInfoRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetQueueInputStatisticInfoRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetQueueInputStatisticInfoRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/GetQueueInputStatisticInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
GetQueueInputStatisticInfoResult::GetQueueInputStatisticInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetQueueInputStatisticInfoResult::GetQueueInputStatisticInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetQueueInputStatisticInfoResult::~GetQueueInputStatisticInfoResult()
|
||||
{}
|
||||
|
||||
void GetQueueInputStatisticInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allQueueInputListNode = value["QueueInputList"]["ClusterStatQueueInput"];
|
||||
for (auto valueQueueInputListClusterStatQueueInput : allQueueInputListNode)
|
||||
{
|
||||
ClusterStatQueueInput queueInputListObject;
|
||||
if(!valueQueueInputListClusterStatQueueInput["Queue"].isNull())
|
||||
queueInputListObject.queue = valueQueueInputListClusterStatQueueInput["Queue"].asString();
|
||||
if(!valueQueueInputListClusterStatQueueInput["BytesInput"].isNull())
|
||||
queueInputListObject.bytesInput = std::stol(valueQueueInputListClusterStatQueueInput["BytesInput"].asString());
|
||||
queueInputList_.push_back(queueInputListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetQueueInputStatisticInfoResult::ClusterStatQueueInput> GetQueueInputStatisticInfoResult::getQueueInputList()const
|
||||
{
|
||||
return queueInputList_;
|
||||
}
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/GetQueueOutputStatisticInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::GetQueueOutputStatisticInfoRequest;
|
||||
|
||||
GetQueueOutputStatisticInfoRequest::GetQueueOutputStatisticInfoRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "GetQueueOutputStatisticInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetQueueOutputStatisticInfoRequest::~GetQueueOutputStatisticInfoRequest()
|
||||
{}
|
||||
|
||||
std::string GetQueueOutputStatisticInfoRequest::getFromDatetime()const
|
||||
{
|
||||
return fromDatetime_;
|
||||
}
|
||||
|
||||
void GetQueueOutputStatisticInfoRequest::setFromDatetime(const std::string& fromDatetime)
|
||||
{
|
||||
fromDatetime_ = fromDatetime;
|
||||
setParameter("FromDatetime", fromDatetime);
|
||||
}
|
||||
|
||||
long GetQueueOutputStatisticInfoRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetQueueOutputStatisticInfoRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetQueueOutputStatisticInfoRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetQueueOutputStatisticInfoRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string GetQueueOutputStatisticInfoRequest::getToDatetime()const
|
||||
{
|
||||
return toDatetime_;
|
||||
}
|
||||
|
||||
void GetQueueOutputStatisticInfoRequest::setToDatetime(const std::string& toDatetime)
|
||||
{
|
||||
toDatetime_ = toDatetime;
|
||||
setParameter("ToDatetime", toDatetime);
|
||||
}
|
||||
|
||||
std::string GetQueueOutputStatisticInfoRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetQueueOutputStatisticInfoRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetQueueOutputStatisticInfoRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetQueueOutputStatisticInfoRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/GetQueueOutputStatisticInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
GetQueueOutputStatisticInfoResult::GetQueueOutputStatisticInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetQueueOutputStatisticInfoResult::GetQueueOutputStatisticInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetQueueOutputStatisticInfoResult::~GetQueueOutputStatisticInfoResult()
|
||||
{}
|
||||
|
||||
void GetQueueOutputStatisticInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allQueueOutputListNode = value["QueueOutputList"]["ClusterStatQueueOutput"];
|
||||
for (auto valueQueueOutputListClusterStatQueueOutput : allQueueOutputListNode)
|
||||
{
|
||||
ClusterStatQueueOutput queueOutputListObject;
|
||||
if(!valueQueueOutputListClusterStatQueueOutput["Queue"].isNull())
|
||||
queueOutputListObject.queue = valueQueueOutputListClusterStatQueueOutput["Queue"].asString();
|
||||
if(!valueQueueOutputListClusterStatQueueOutput["BytesOutput"].isNull())
|
||||
queueOutputListObject.bytesOutput = std::stol(valueQueueOutputListClusterStatQueueOutput["BytesOutput"].asString());
|
||||
queueOutputList_.push_back(queueOutputListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetQueueOutputStatisticInfoResult::ClusterStatQueueOutput> GetQueueOutputStatisticInfoResult::getQueueOutputList()const
|
||||
{
|
||||
return queueOutputList_;
|
||||
}
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/GetQueueSubmissionStatisticInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::GetQueueSubmissionStatisticInfoRequest;
|
||||
|
||||
GetQueueSubmissionStatisticInfoRequest::GetQueueSubmissionStatisticInfoRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "GetQueueSubmissionStatisticInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetQueueSubmissionStatisticInfoRequest::~GetQueueSubmissionStatisticInfoRequest()
|
||||
{}
|
||||
|
||||
std::string GetQueueSubmissionStatisticInfoRequest::getFromDatetime()const
|
||||
{
|
||||
return fromDatetime_;
|
||||
}
|
||||
|
||||
void GetQueueSubmissionStatisticInfoRequest::setFromDatetime(const std::string& fromDatetime)
|
||||
{
|
||||
fromDatetime_ = fromDatetime;
|
||||
setParameter("FromDatetime", fromDatetime);
|
||||
}
|
||||
|
||||
long GetQueueSubmissionStatisticInfoRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetQueueSubmissionStatisticInfoRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetQueueSubmissionStatisticInfoRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetQueueSubmissionStatisticInfoRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string GetQueueSubmissionStatisticInfoRequest::getToDatetime()const
|
||||
{
|
||||
return toDatetime_;
|
||||
}
|
||||
|
||||
void GetQueueSubmissionStatisticInfoRequest::setToDatetime(const std::string& toDatetime)
|
||||
{
|
||||
toDatetime_ = toDatetime;
|
||||
setParameter("ToDatetime", toDatetime);
|
||||
}
|
||||
|
||||
std::string GetQueueSubmissionStatisticInfoRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetQueueSubmissionStatisticInfoRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetQueueSubmissionStatisticInfoRequest::getFinalStatus()const
|
||||
{
|
||||
return finalStatus_;
|
||||
}
|
||||
|
||||
void GetQueueSubmissionStatisticInfoRequest::setFinalStatus(const std::string& finalStatus)
|
||||
{
|
||||
finalStatus_ = finalStatus;
|
||||
setParameter("FinalStatus", finalStatus);
|
||||
}
|
||||
|
||||
std::string GetQueueSubmissionStatisticInfoRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetQueueSubmissionStatisticInfoRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetQueueSubmissionStatisticInfoRequest::getApplicationType()const
|
||||
{
|
||||
return applicationType_;
|
||||
}
|
||||
|
||||
void GetQueueSubmissionStatisticInfoRequest::setApplicationType(const std::string& applicationType)
|
||||
{
|
||||
applicationType_ = applicationType;
|
||||
setParameter("ApplicationType", applicationType);
|
||||
}
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/GetQueueSubmissionStatisticInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
GetQueueSubmissionStatisticInfoResult::GetQueueSubmissionStatisticInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetQueueSubmissionStatisticInfoResult::GetQueueSubmissionStatisticInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetQueueSubmissionStatisticInfoResult::~GetQueueSubmissionStatisticInfoResult()
|
||||
{}
|
||||
|
||||
void GetQueueSubmissionStatisticInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allQueueSubmissionListNode = value["QueueSubmissionList"]["ClusterStatQueueSubmission"];
|
||||
for (auto valueQueueSubmissionListClusterStatQueueSubmission : allQueueSubmissionListNode)
|
||||
{
|
||||
ClusterStatQueueSubmission queueSubmissionListObject;
|
||||
if(!valueQueueSubmissionListClusterStatQueueSubmission["Queue"].isNull())
|
||||
queueSubmissionListObject.queue = valueQueueSubmissionListClusterStatQueueSubmission["Queue"].asString();
|
||||
if(!valueQueueSubmissionListClusterStatQueueSubmission["Submission"].isNull())
|
||||
queueSubmissionListObject.submission = std::stol(valueQueueSubmissionListClusterStatQueueSubmission["Submission"].asString());
|
||||
queueSubmissionList_.push_back(queueSubmissionListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetQueueSubmissionStatisticInfoResult::ClusterStatQueueSubmission> GetQueueSubmissionStatisticInfoResult::getQueueSubmissionList()const
|
||||
{
|
||||
return queueSubmissionList_;
|
||||
}
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/GetUserInputStatisticInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::GetUserInputStatisticInfoRequest;
|
||||
|
||||
GetUserInputStatisticInfoRequest::GetUserInputStatisticInfoRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "GetUserInputStatisticInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetUserInputStatisticInfoRequest::~GetUserInputStatisticInfoRequest()
|
||||
{}
|
||||
|
||||
std::string GetUserInputStatisticInfoRequest::getFromDatetime()const
|
||||
{
|
||||
return fromDatetime_;
|
||||
}
|
||||
|
||||
void GetUserInputStatisticInfoRequest::setFromDatetime(const std::string& fromDatetime)
|
||||
{
|
||||
fromDatetime_ = fromDatetime;
|
||||
setParameter("FromDatetime", fromDatetime);
|
||||
}
|
||||
|
||||
long GetUserInputStatisticInfoRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetUserInputStatisticInfoRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetUserInputStatisticInfoRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetUserInputStatisticInfoRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string GetUserInputStatisticInfoRequest::getToDatetime()const
|
||||
{
|
||||
return toDatetime_;
|
||||
}
|
||||
|
||||
void GetUserInputStatisticInfoRequest::setToDatetime(const std::string& toDatetime)
|
||||
{
|
||||
toDatetime_ = toDatetime;
|
||||
setParameter("ToDatetime", toDatetime);
|
||||
}
|
||||
|
||||
std::string GetUserInputStatisticInfoRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetUserInputStatisticInfoRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetUserInputStatisticInfoRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetUserInputStatisticInfoRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/GetUserInputStatisticInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
GetUserInputStatisticInfoResult::GetUserInputStatisticInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetUserInputStatisticInfoResult::GetUserInputStatisticInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetUserInputStatisticInfoResult::~GetUserInputStatisticInfoResult()
|
||||
{}
|
||||
|
||||
void GetUserInputStatisticInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allUserInputListNode = value["UserInputList"]["ClusterStatUserInput"];
|
||||
for (auto valueUserInputListClusterStatUserInput : allUserInputListNode)
|
||||
{
|
||||
ClusterStatUserInput userInputListObject;
|
||||
if(!valueUserInputListClusterStatUserInput["User"].isNull())
|
||||
userInputListObject.user = valueUserInputListClusterStatUserInput["User"].asString();
|
||||
if(!valueUserInputListClusterStatUserInput["BytesInput"].isNull())
|
||||
userInputListObject.bytesInput = std::stol(valueUserInputListClusterStatUserInput["BytesInput"].asString());
|
||||
userInputList_.push_back(userInputListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetUserInputStatisticInfoResult::ClusterStatUserInput> GetUserInputStatisticInfoResult::getUserInputList()const
|
||||
{
|
||||
return userInputList_;
|
||||
}
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/GetUserOutputStatisticInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::GetUserOutputStatisticInfoRequest;
|
||||
|
||||
GetUserOutputStatisticInfoRequest::GetUserOutputStatisticInfoRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "GetUserOutputStatisticInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetUserOutputStatisticInfoRequest::~GetUserOutputStatisticInfoRequest()
|
||||
{}
|
||||
|
||||
std::string GetUserOutputStatisticInfoRequest::getFromDatetime()const
|
||||
{
|
||||
return fromDatetime_;
|
||||
}
|
||||
|
||||
void GetUserOutputStatisticInfoRequest::setFromDatetime(const std::string& fromDatetime)
|
||||
{
|
||||
fromDatetime_ = fromDatetime;
|
||||
setParameter("FromDatetime", fromDatetime);
|
||||
}
|
||||
|
||||
long GetUserOutputStatisticInfoRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetUserOutputStatisticInfoRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetUserOutputStatisticInfoRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetUserOutputStatisticInfoRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string GetUserOutputStatisticInfoRequest::getToDatetime()const
|
||||
{
|
||||
return toDatetime_;
|
||||
}
|
||||
|
||||
void GetUserOutputStatisticInfoRequest::setToDatetime(const std::string& toDatetime)
|
||||
{
|
||||
toDatetime_ = toDatetime;
|
||||
setParameter("ToDatetime", toDatetime);
|
||||
}
|
||||
|
||||
std::string GetUserOutputStatisticInfoRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetUserOutputStatisticInfoRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetUserOutputStatisticInfoRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetUserOutputStatisticInfoRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/GetUserOutputStatisticInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
GetUserOutputStatisticInfoResult::GetUserOutputStatisticInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetUserOutputStatisticInfoResult::GetUserOutputStatisticInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetUserOutputStatisticInfoResult::~GetUserOutputStatisticInfoResult()
|
||||
{}
|
||||
|
||||
void GetUserOutputStatisticInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allUserOutputListNode = value["UserOutputList"]["ClusterStatUserOutput"];
|
||||
for (auto valueUserOutputListClusterStatUserOutput : allUserOutputListNode)
|
||||
{
|
||||
ClusterStatUserOutput userOutputListObject;
|
||||
if(!valueUserOutputListClusterStatUserOutput["User"].isNull())
|
||||
userOutputListObject.user = valueUserOutputListClusterStatUserOutput["User"].asString();
|
||||
if(!valueUserOutputListClusterStatUserOutput["BytesOutput"].isNull())
|
||||
userOutputListObject.bytesOutput = std::stol(valueUserOutputListClusterStatUserOutput["BytesOutput"].asString());
|
||||
userOutputList_.push_back(userOutputListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetUserOutputStatisticInfoResult::ClusterStatUserOutput> GetUserOutputStatisticInfoResult::getUserOutputList()const
|
||||
{
|
||||
return userOutputList_;
|
||||
}
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/GetUserSubmissionStatisticInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::GetUserSubmissionStatisticInfoRequest;
|
||||
|
||||
GetUserSubmissionStatisticInfoRequest::GetUserSubmissionStatisticInfoRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "GetUserSubmissionStatisticInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetUserSubmissionStatisticInfoRequest::~GetUserSubmissionStatisticInfoRequest()
|
||||
{}
|
||||
|
||||
std::string GetUserSubmissionStatisticInfoRequest::getFromDatetime()const
|
||||
{
|
||||
return fromDatetime_;
|
||||
}
|
||||
|
||||
void GetUserSubmissionStatisticInfoRequest::setFromDatetime(const std::string& fromDatetime)
|
||||
{
|
||||
fromDatetime_ = fromDatetime;
|
||||
setParameter("FromDatetime", fromDatetime);
|
||||
}
|
||||
|
||||
long GetUserSubmissionStatisticInfoRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetUserSubmissionStatisticInfoRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetUserSubmissionStatisticInfoRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetUserSubmissionStatisticInfoRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string GetUserSubmissionStatisticInfoRequest::getToDatetime()const
|
||||
{
|
||||
return toDatetime_;
|
||||
}
|
||||
|
||||
void GetUserSubmissionStatisticInfoRequest::setToDatetime(const std::string& toDatetime)
|
||||
{
|
||||
toDatetime_ = toDatetime;
|
||||
setParameter("ToDatetime", toDatetime);
|
||||
}
|
||||
|
||||
std::string GetUserSubmissionStatisticInfoRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetUserSubmissionStatisticInfoRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetUserSubmissionStatisticInfoRequest::getFinalStatus()const
|
||||
{
|
||||
return finalStatus_;
|
||||
}
|
||||
|
||||
void GetUserSubmissionStatisticInfoRequest::setFinalStatus(const std::string& finalStatus)
|
||||
{
|
||||
finalStatus_ = finalStatus;
|
||||
setParameter("FinalStatus", finalStatus);
|
||||
}
|
||||
|
||||
std::string GetUserSubmissionStatisticInfoRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetUserSubmissionStatisticInfoRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetUserSubmissionStatisticInfoRequest::getApplicationType()const
|
||||
{
|
||||
return applicationType_;
|
||||
}
|
||||
|
||||
void GetUserSubmissionStatisticInfoRequest::setApplicationType(const std::string& applicationType)
|
||||
{
|
||||
applicationType_ = applicationType;
|
||||
setParameter("ApplicationType", applicationType);
|
||||
}
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/GetUserSubmissionStatisticInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
GetUserSubmissionStatisticInfoResult::GetUserSubmissionStatisticInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetUserSubmissionStatisticInfoResult::GetUserSubmissionStatisticInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetUserSubmissionStatisticInfoResult::~GetUserSubmissionStatisticInfoResult()
|
||||
{}
|
||||
|
||||
void GetUserSubmissionStatisticInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allUserSubmissionListNode = value["UserSubmissionList"]["ClusterStatUserSubmission"];
|
||||
for (auto valueUserSubmissionListClusterStatUserSubmission : allUserSubmissionListNode)
|
||||
{
|
||||
ClusterStatUserSubmission userSubmissionListObject;
|
||||
if(!valueUserSubmissionListClusterStatUserSubmission["User"].isNull())
|
||||
userSubmissionListObject.user = valueUserSubmissionListClusterStatUserSubmission["User"].asString();
|
||||
if(!valueUserSubmissionListClusterStatUserSubmission["Submission"].isNull())
|
||||
userSubmissionListObject.submission = std::stol(valueUserSubmissionListClusterStatUserSubmission["Submission"].asString());
|
||||
userSubmissionList_.push_back(userSubmissionListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetUserSubmissionStatisticInfoResult::ClusterStatUserSubmission> GetUserSubmissionStatisticInfoResult::getUserSubmissionList()const
|
||||
{
|
||||
return userSubmissionList_;
|
||||
}
|
||||
|
||||
@@ -1,86 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/InstallLibrariesRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::InstallLibrariesRequest;
|
||||
|
||||
InstallLibrariesRequest::InstallLibrariesRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "InstallLibraries")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
InstallLibrariesRequest::~InstallLibrariesRequest()
|
||||
{}
|
||||
|
||||
long InstallLibrariesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void InstallLibrariesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string InstallLibrariesRequest::getLibraryBizId()const
|
||||
{
|
||||
return libraryBizId_;
|
||||
}
|
||||
|
||||
void InstallLibrariesRequest::setLibraryBizId(const std::string& libraryBizId)
|
||||
{
|
||||
libraryBizId_ = libraryBizId;
|
||||
setParameter("LibraryBizId", libraryBizId);
|
||||
}
|
||||
|
||||
std::string InstallLibrariesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void InstallLibrariesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string InstallLibrariesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void InstallLibrariesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<std::string> InstallLibrariesRequest::getClusterBizIdList()const
|
||||
{
|
||||
return clusterBizIdList_;
|
||||
}
|
||||
|
||||
void InstallLibrariesRequest::setClusterBizIdList(const std::vector<std::string>& clusterBizIdList)
|
||||
{
|
||||
clusterBizIdList_ = clusterBizIdList;
|
||||
for(int dep1 = 0; dep1!= clusterBizIdList.size(); dep1++) {
|
||||
setParameter("ClusterBizIdList."+ std::to_string(dep1), clusterBizIdList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/InstallLibrariesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
InstallLibrariesResult::InstallLibrariesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
InstallLibrariesResult::InstallLibrariesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
InstallLibrariesResult::~InstallLibrariesResult()
|
||||
{}
|
||||
|
||||
void InstallLibrariesResult::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 InstallLibrariesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/ListAdviceActionRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::ListAdviceActionRequest;
|
||||
|
||||
ListAdviceActionRequest::ListAdviceActionRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "ListAdviceAction")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListAdviceActionRequest::~ListAdviceActionRequest()
|
||||
{}
|
||||
|
||||
long ListAdviceActionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ListAdviceActionRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ListAdviceActionRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListAdviceActionRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int ListAdviceActionRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListAdviceActionRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListAdviceActionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ListAdviceActionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ListAdviceActionRequest::getComponent()const
|
||||
{
|
||||
return component_;
|
||||
}
|
||||
|
||||
void ListAdviceActionRequest::setComponent(const std::string& component)
|
||||
{
|
||||
component_ = component;
|
||||
setParameter("Component", component);
|
||||
}
|
||||
|
||||
std::string ListAdviceActionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListAdviceActionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int ListAdviceActionRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListAdviceActionRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListAdviceActionRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void ListAdviceActionRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
@@ -1,96 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/ListAdviceActionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
ListAdviceActionResult::ListAdviceActionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAdviceActionResult::ListAdviceActionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAdviceActionResult::~ListAdviceActionResult()
|
||||
{}
|
||||
|
||||
void ListAdviceActionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItemsNode = value["Items"]["Item"];
|
||||
for (auto valueItemsItem : allItemsNode)
|
||||
{
|
||||
Item itemsObject;
|
||||
if(!valueItemsItem["ConfigName"].isNull())
|
||||
itemsObject.configName = valueItemsItem["ConfigName"].asString();
|
||||
if(!valueItemsItem["ConfigItemKey"].isNull())
|
||||
itemsObject.configItemKey = valueItemsItem["ConfigItemKey"].asString();
|
||||
if(!valueItemsItem["Command"].isNull())
|
||||
itemsObject.command = valueItemsItem["Command"].asString();
|
||||
if(!valueItemsItem["ClusterId"].isNull())
|
||||
itemsObject.clusterId = valueItemsItem["ClusterId"].asString();
|
||||
if(!valueItemsItem["HostgroupName"].isNull())
|
||||
itemsObject.hostgroupName = valueItemsItem["HostgroupName"].asString();
|
||||
if(!valueItemsItem["ServiceName"].isNull())
|
||||
itemsObject.serviceName = valueItemsItem["ServiceName"].asString();
|
||||
if(!valueItemsItem["Component"].isNull())
|
||||
itemsObject.component = valueItemsItem["Component"].asString();
|
||||
if(!valueItemsItem["ActionType"].isNull())
|
||||
itemsObject.actionType = valueItemsItem["ActionType"].asString();
|
||||
if(!valueItemsItem["GmtCreate"].isNull())
|
||||
itemsObject.gmtCreate = std::stol(valueItemsItem["GmtCreate"].asString());
|
||||
if(!valueItemsItem["GmtModified"].isNull())
|
||||
itemsObject.gmtModified = std::stol(valueItemsItem["GmtModified"].asString());
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListAdviceActionResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListAdviceActionResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListAdviceActionResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListAdviceActionResult::Item> ListAdviceActionResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
@@ -1,218 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/ListBackupsRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::ListBackupsRequest;
|
||||
|
||||
ListBackupsRequest::ListBackupsRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "ListBackups")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListBackupsRequest::~ListBackupsRequest()
|
||||
{}
|
||||
|
||||
long ListBackupsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ListBackupsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int ListBackupsRequest::getPageCount()const
|
||||
{
|
||||
return pageCount_;
|
||||
}
|
||||
|
||||
void ListBackupsRequest::setPageCount(int pageCount)
|
||||
{
|
||||
pageCount_ = pageCount;
|
||||
setParameter("PageCount", std::to_string(pageCount));
|
||||
}
|
||||
|
||||
std::string ListBackupsRequest::getOrderMode()const
|
||||
{
|
||||
return orderMode_;
|
||||
}
|
||||
|
||||
void ListBackupsRequest::setOrderMode(const std::string& orderMode)
|
||||
{
|
||||
orderMode_ = orderMode;
|
||||
setParameter("OrderMode", orderMode);
|
||||
}
|
||||
|
||||
std::string ListBackupsRequest::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
void ListBackupsRequest::setBackupPlanId(const std::string& backupPlanId)
|
||||
{
|
||||
backupPlanId_ = backupPlanId;
|
||||
setParameter("BackupPlanId", backupPlanId);
|
||||
}
|
||||
|
||||
int ListBackupsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListBackupsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListBackupsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ListBackupsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ListBackupsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListBackupsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int ListBackupsRequest::getLimit()const
|
||||
{
|
||||
return limit_;
|
||||
}
|
||||
|
||||
void ListBackupsRequest::setLimit(int limit)
|
||||
{
|
||||
limit_ = limit;
|
||||
setParameter("Limit", std::to_string(limit));
|
||||
}
|
||||
|
||||
int ListBackupsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListBackupsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListBackupsRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void ListBackupsRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
long ListBackupsRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void ListBackupsRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
int ListBackupsRequest::getCurrentSize()const
|
||||
{
|
||||
return currentSize_;
|
||||
}
|
||||
|
||||
void ListBackupsRequest::setCurrentSize(int currentSize)
|
||||
{
|
||||
currentSize_ = currentSize;
|
||||
setParameter("CurrentSize", std::to_string(currentSize));
|
||||
}
|
||||
|
||||
std::vector<std::string> ListBackupsRequest::getBackupId()const
|
||||
{
|
||||
return backupId_;
|
||||
}
|
||||
|
||||
void ListBackupsRequest::setBackupId(const std::vector<std::string>& backupId)
|
||||
{
|
||||
backupId_ = backupId;
|
||||
for(int dep1 = 0; dep1!= backupId.size(); dep1++) {
|
||||
setParameter("BackupId."+ std::to_string(dep1), backupId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListBackupsRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListBackupsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ListBackupsRequest::getMetadataType()const
|
||||
{
|
||||
return metadataType_;
|
||||
}
|
||||
|
||||
void ListBackupsRequest::setMetadataType(const std::string& metadataType)
|
||||
{
|
||||
metadataType_ = metadataType;
|
||||
setParameter("MetadataType", metadataType);
|
||||
}
|
||||
|
||||
std::string ListBackupsRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
void ListBackupsRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
std::string ListBackupsRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void ListBackupsRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
@@ -1,97 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/ListBackupsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
ListBackupsResult::ListBackupsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListBackupsResult::ListBackupsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListBackupsResult::~ListBackupsResult()
|
||||
{}
|
||||
|
||||
void ListBackupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItemsNode = value["Items"]["Item"];
|
||||
for (auto valueItemsItem : allItemsNode)
|
||||
{
|
||||
Item itemsObject;
|
||||
if(!valueItemsItem["Id"].isNull())
|
||||
itemsObject.id = valueItemsItem["Id"].asString();
|
||||
if(!valueItemsItem["BackupPlanId"].isNull())
|
||||
itemsObject.backupPlanId = valueItemsItem["BackupPlanId"].asString();
|
||||
if(!valueItemsItem["ClusterId"].isNull())
|
||||
itemsObject.clusterId = valueItemsItem["ClusterId"].asString();
|
||||
if(!valueItemsItem["CreateTime"].isNull())
|
||||
itemsObject.createTime = std::stol(valueItemsItem["CreateTime"].asString());
|
||||
if(!valueItemsItem["Md5"].isNull())
|
||||
itemsObject.md5 = valueItemsItem["Md5"].asString();
|
||||
if(!valueItemsItem["TarFileName"].isNull())
|
||||
itemsObject.tarFileName = valueItemsItem["TarFileName"].asString();
|
||||
if(!valueItemsItem["StorePath"].isNull())
|
||||
itemsObject.storePath = valueItemsItem["StorePath"].asString();
|
||||
if(!valueItemsItem["Status"].isNull())
|
||||
itemsObject.status = valueItemsItem["Status"].asString();
|
||||
auto metadataInfoNode = value["MetadataInfo"];
|
||||
if(!metadataInfoNode["MetadataType"].isNull())
|
||||
itemsObject.metadataInfo.metadataType = metadataInfoNode["MetadataType"].asString();
|
||||
if(!metadataInfoNode["Properties"].isNull())
|
||||
itemsObject.metadataInfo.properties = metadataInfoNode["Properties"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListBackupsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListBackupsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListBackupsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListBackupsResult::Item> ListBackupsResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user