12978
emr/src/EmrClient.cc
12978
emr/src/EmrClient.cc
File diff suppressed because it is too large
Load Diff
104
emr/src/model/AddClusterServiceForAdminRequest.cc
Normal file
104
emr/src/model/AddClusterServiceForAdminRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/AddClusterServiceForAdminRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::AddClusterServiceForAdminRequest;
|
||||
|
||||
AddClusterServiceForAdminRequest::AddClusterServiceForAdminRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "AddClusterServiceForAdmin")
|
||||
{}
|
||||
|
||||
AddClusterServiceForAdminRequest::~AddClusterServiceForAdminRequest()
|
||||
{}
|
||||
|
||||
long AddClusterServiceForAdminRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AddClusterServiceForAdminRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AddClusterServiceForAdminRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AddClusterServiceForAdminRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AddClusterServiceForAdminRequest::getServiceList()const
|
||||
{
|
||||
return serviceList_;
|
||||
}
|
||||
|
||||
void AddClusterServiceForAdminRequest::setServiceList(const std::string& serviceList)
|
||||
{
|
||||
serviceList_ = serviceList;
|
||||
setCoreParameter("ServiceList", serviceList);
|
||||
}
|
||||
|
||||
std::string AddClusterServiceForAdminRequest::getComment()const
|
||||
{
|
||||
return comment_;
|
||||
}
|
||||
|
||||
void AddClusterServiceForAdminRequest::setComment(const std::string& comment)
|
||||
{
|
||||
comment_ = comment;
|
||||
setCoreParameter("Comment", comment);
|
||||
}
|
||||
|
||||
std::string AddClusterServiceForAdminRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void AddClusterServiceForAdminRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string AddClusterServiceForAdminRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void AddClusterServiceForAdminRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setCoreParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string AddClusterServiceForAdminRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddClusterServiceForAdminRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
48
emr/src/model/AddClusterServiceForAdminResult.cc
Normal file
48
emr/src/model/AddClusterServiceForAdminResult.cc
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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/AddClusterServiceForAdminResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
AddClusterServiceForAdminResult::AddClusterServiceForAdminResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddClusterServiceForAdminResult::AddClusterServiceForAdminResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddClusterServiceForAdminResult::~AddClusterServiceForAdminResult()
|
||||
{}
|
||||
|
||||
void AddClusterServiceForAdminResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long AddClusterServiceRequest::getResourceOwnerId()const
|
||||
void AddClusterServiceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AddClusterServiceRequest::getRegionId()const
|
||||
@@ -44,7 +44,7 @@ std::string AddClusterServiceRequest::getRegionId()const
|
||||
void AddClusterServiceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<AddClusterServiceRequest::Service> AddClusterServiceRequest::getService()const
|
||||
@@ -59,7 +59,7 @@ void AddClusterServiceRequest::setService(const std::vector<Service>& service)
|
||||
for(int i = 0; i!= service.size(); i++) {
|
||||
auto obj = service.at(i);
|
||||
std::string str ="Service."+ std::to_string(i);
|
||||
setParameter(str + ".ServiceName", obj.serviceName);
|
||||
setCoreParameter(str + ".ServiceName", obj.serviceName);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ std::string AddClusterServiceRequest::getComment()const
|
||||
void AddClusterServiceRequest::setComment(const std::string& comment)
|
||||
{
|
||||
comment_ = comment;
|
||||
setParameter("Comment", comment);
|
||||
setCoreParameter("Comment", comment);
|
||||
}
|
||||
|
||||
std::string AddClusterServiceRequest::getClusterId()const
|
||||
@@ -82,7 +82,7 @@ std::string AddClusterServiceRequest::getClusterId()const
|
||||
void AddClusterServiceRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string AddClusterServiceRequest::getAccessKeyId()const
|
||||
@@ -93,6 +93,6 @@ std::string AddClusterServiceRequest::getAccessKeyId()const
|
||||
void AddClusterServiceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AddClusterServiceResult::~AddClusterServiceResult()
|
||||
|
||||
void AddClusterServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
100
emr/src/model/AddHpHostRequest.cc
Normal file
100
emr/src/model/AddHpHostRequest.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* 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/AddHpHostRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::AddHpHostRequest;
|
||||
|
||||
AddHpHostRequest::AddHpHostRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "AddHpHost")
|
||||
{}
|
||||
|
||||
AddHpHostRequest::~AddHpHostRequest()
|
||||
{}
|
||||
|
||||
long AddHpHostRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AddHpHostRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::vector<AddHpHostRequest::HpHost> AddHpHostRequest::getHpHost()const
|
||||
{
|
||||
return hpHost_;
|
||||
}
|
||||
|
||||
void AddHpHostRequest::setHpHost(const std::vector<HpHost>& hpHost)
|
||||
{
|
||||
hpHost_ = hpHost;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= hpHost.size(); i++) {
|
||||
auto obj = hpHost.at(i);
|
||||
std::string str ="HpHost."+ std::to_string(i);
|
||||
setCoreParameter(str + ".CpuCore", std::to_string(obj.cpuCore));
|
||||
setCoreParameter(str + ".MemSize", std::to_string(obj.memSize));
|
||||
setCoreParameter(str + ".RackInfo", obj.rackInfo);
|
||||
setCoreParameter(str + ".Role", obj.role);
|
||||
setCoreParameter(str + ".SerialNumber", obj.serialNumber);
|
||||
setCoreParameter(str + ".HostType", obj.hostType);
|
||||
setCoreParameter(str + ".SecurityGroupId", obj.securityGroupId);
|
||||
setCoreParameter(str + ".HpHostDisk", std::to_string(obj.hpHostDisk));
|
||||
setCoreParameter(str + ".VswitchId", obj.vswitchId);
|
||||
setCoreParameter(str + ".ExternalKey", obj.externalKey);
|
||||
setCoreParameter(str + ".HostName", obj.hostName);
|
||||
setCoreParameter(str + ".VpcId", obj.vpcId);
|
||||
setCoreParameter(str + ".InnerIp", obj.innerIp);
|
||||
setCoreParameter(str + ".ExternalIp", obj.externalIp);
|
||||
}
|
||||
}
|
||||
|
||||
std::string AddHpHostRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AddHpHostRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AddHpHostRequest::getHpBizId()const
|
||||
{
|
||||
return hpBizId_;
|
||||
}
|
||||
|
||||
void AddHpHostRequest::setHpBizId(const std::string& hpBizId)
|
||||
{
|
||||
hpBizId_ = hpBizId;
|
||||
setCoreParameter("HpBizId", hpBizId);
|
||||
}
|
||||
|
||||
std::string AddHpHostRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddHpHostRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
55
emr/src/model/AddHpHostResult.cc
Normal file
55
emr/src/model/AddHpHostResult.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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/AddHpHostResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
AddHpHostResult::AddHpHostResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddHpHostResult::AddHpHostResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddHpHostResult::~AddHpHostResult()
|
||||
{}
|
||||
|
||||
void AddHpHostResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["BizId"].isNull())
|
||||
bizId_ = value["BizId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddHpHostResult::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
238
emr/src/model/AddResourceToUsersRequest.cc
Normal file
238
emr/src/model/AddResourceToUsersRequest.cc
Normal file
@@ -0,0 +1,238 @@
|
||||
/*
|
||||
* 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/AddResourceToUsersRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::AddResourceToUsersRequest;
|
||||
|
||||
AddResourceToUsersRequest::AddResourceToUsersRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "AddResourceToUsers")
|
||||
{}
|
||||
|
||||
AddResourceToUsersRequest::~AddResourceToUsersRequest()
|
||||
{}
|
||||
|
||||
std::string AddResourceToUsersRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void AddResourceToUsersRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
long AddResourceToUsersRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AddResourceToUsersRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AddResourceToUsersRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void AddResourceToUsersRequest::setResourceId(const std::string& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
setCoreParameter("ResourceId", resourceId);
|
||||
}
|
||||
|
||||
long AddResourceToUsersRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void AddResourceToUsersRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
std::vector<std::string> AddResourceToUsersRequest::getUserIdList()const
|
||||
{
|
||||
return userIdList_;
|
||||
}
|
||||
|
||||
void AddResourceToUsersRequest::setUserIdList(const std::vector<std::string>& userIdList)
|
||||
{
|
||||
userIdList_ = userIdList;
|
||||
for(int i = 0; i!= userIdList.size(); i++)
|
||||
setCoreParameter("UserIdList."+ std::to_string(i), userIdList.at(i));
|
||||
}
|
||||
|
||||
bool AddResourceToUsersRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void AddResourceToUsersRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AddResourceToUsersRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void AddResourceToUsersRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
std::string AddResourceToUsersRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void AddResourceToUsersRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string AddResourceToUsersRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void AddResourceToUsersRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setCoreParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
bool AddResourceToUsersRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void AddResourceToUsersRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool AddResourceToUsersRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void AddResourceToUsersRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AddResourceToUsersRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void AddResourceToUsersRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string AddResourceToUsersRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddResourceToUsersRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool AddResourceToUsersRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void AddResourceToUsersRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AddResourceToUsersRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void AddResourceToUsersRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string AddResourceToUsersRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AddResourceToUsersRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AddResourceToUsersRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void AddResourceToUsersRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::vector<long> AddResourceToUsersRequest::getRoleIdList()const
|
||||
{
|
||||
return roleIdList_;
|
||||
}
|
||||
|
||||
void AddResourceToUsersRequest::setRoleIdList(const std::vector<long>& roleIdList)
|
||||
{
|
||||
roleIdList_ = roleIdList;
|
||||
for(int i = 0; i!= roleIdList.size(); i++)
|
||||
setCoreParameter("RoleIdList."+ std::to_string(i), std::to_string(roleIdList.at(i)));
|
||||
}
|
||||
|
||||
long AddResourceToUsersRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void AddResourceToUsersRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
62
emr/src/model/AddResourceToUsersResult.cc
Normal file
62
emr/src/model/AddResourceToUsersResult.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/AddResourceToUsersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
AddResourceToUsersResult::AddResourceToUsersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddResourceToUsersResult::AddResourceToUsersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddResourceToUsersResult::~AddResourceToUsersResult()
|
||||
{}
|
||||
|
||||
void AddResourceToUsersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Paging"].isNull())
|
||||
paging_ = value["Paging"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool AddResourceToUsersResult::getPaging()const
|
||||
{
|
||||
return paging_;
|
||||
}
|
||||
|
||||
bool AddResourceToUsersResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
236
emr/src/model/AddUserResourceRoleRequest.cc
Normal file
236
emr/src/model/AddUserResourceRoleRequest.cc
Normal file
@@ -0,0 +1,236 @@
|
||||
/*
|
||||
* 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/AddUserResourceRoleRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::AddUserResourceRoleRequest;
|
||||
|
||||
AddUserResourceRoleRequest::AddUserResourceRoleRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "AddUserResourceRole")
|
||||
{}
|
||||
|
||||
AddUserResourceRoleRequest::~AddUserResourceRoleRequest()
|
||||
{}
|
||||
|
||||
std::string AddUserResourceRoleRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void AddUserResourceRoleRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
long AddUserResourceRoleRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AddUserResourceRoleRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AddUserResourceRoleRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void AddUserResourceRoleRequest::setResourceId(const std::string& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
setCoreParameter("ResourceId", resourceId);
|
||||
}
|
||||
|
||||
long AddUserResourceRoleRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void AddUserResourceRoleRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
long AddUserResourceRoleRequest::getRoleId()const
|
||||
{
|
||||
return roleId_;
|
||||
}
|
||||
|
||||
void AddUserResourceRoleRequest::setRoleId(long roleId)
|
||||
{
|
||||
roleId_ = roleId;
|
||||
setCoreParameter("RoleId", std::to_string(roleId));
|
||||
}
|
||||
|
||||
bool AddUserResourceRoleRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void AddUserResourceRoleRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AddUserResourceRoleRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void AddUserResourceRoleRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
std::string AddUserResourceRoleRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void AddUserResourceRoleRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string AddUserResourceRoleRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void AddUserResourceRoleRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setCoreParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
bool AddUserResourceRoleRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void AddUserResourceRoleRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool AddUserResourceRoleRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void AddUserResourceRoleRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AddUserResourceRoleRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void AddUserResourceRoleRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string AddUserResourceRoleRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddUserResourceRoleRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool AddUserResourceRoleRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void AddUserResourceRoleRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AddUserResourceRoleRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void AddUserResourceRoleRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string AddUserResourceRoleRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AddUserResourceRoleRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AddUserResourceRoleRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void AddUserResourceRoleRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long AddUserResourceRoleRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void AddUserResourceRoleRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string AddUserResourceRoleRequest::getAliyunUserId()const
|
||||
{
|
||||
return aliyunUserId_;
|
||||
}
|
||||
|
||||
void AddUserResourceRoleRequest::setAliyunUserId(const std::string& aliyunUserId)
|
||||
{
|
||||
aliyunUserId_ = aliyunUserId;
|
||||
setCoreParameter("AliyunUserId", aliyunUserId);
|
||||
}
|
||||
|
||||
62
emr/src/model/AddUserResourceRoleResult.cc
Normal file
62
emr/src/model/AddUserResourceRoleResult.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/AddUserResourceRoleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
AddUserResourceRoleResult::AddUserResourceRoleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddUserResourceRoleResult::AddUserResourceRoleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddUserResourceRoleResult::~AddUserResourceRoleResult()
|
||||
{}
|
||||
|
||||
void AddUserResourceRoleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Paging"].isNull())
|
||||
paging_ = value["Paging"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool AddUserResourceRoleResult::getPaging()const
|
||||
{
|
||||
return paging_;
|
||||
}
|
||||
|
||||
bool AddUserResourceRoleResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long AttachClusterForNoteRequest::getResourceOwnerId()const
|
||||
void AttachClusterForNoteRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AttachClusterForNoteRequest::getRegionId()const
|
||||
@@ -44,7 +44,7 @@ std::string AttachClusterForNoteRequest::getRegionId()const
|
||||
void AttachClusterForNoteRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AttachClusterForNoteRequest::getId()const
|
||||
@@ -55,7 +55,7 @@ std::string AttachClusterForNoteRequest::getId()const
|
||||
void AttachClusterForNoteRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
setCoreParameter("Id", id);
|
||||
}
|
||||
|
||||
std::string AttachClusterForNoteRequest::getClusterId()const
|
||||
@@ -66,7 +66,7 @@ std::string AttachClusterForNoteRequest::getClusterId()const
|
||||
void AttachClusterForNoteRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string AttachClusterForNoteRequest::getAccessKeyId()const
|
||||
@@ -77,6 +77,6 @@ std::string AttachClusterForNoteRequest::getAccessKeyId()const
|
||||
void AttachClusterForNoteRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AttachClusterForNoteResult::~AttachClusterForNoteResult()
|
||||
|
||||
void AttachClusterForNoteResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long AttachPubIpRequest::getResourceOwnerId()const
|
||||
void AttachPubIpRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AttachPubIpRequest::getRegionId()const
|
||||
@@ -44,7 +44,7 @@ std::string AttachPubIpRequest::getRegionId()const
|
||||
void AttachPubIpRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<std::string> AttachPubIpRequest::getInstanceIds()const
|
||||
@@ -56,7 +56,7 @@ void AttachPubIpRequest::setInstanceIds(const std::vector<std::string>& instance
|
||||
{
|
||||
instanceIds_ = instanceIds;
|
||||
for(int i = 0; i!= instanceIds.size(); i++)
|
||||
setParameter("InstanceIds."+ std::to_string(i), instanceIds.at(i));
|
||||
setCoreParameter("InstanceIds."+ std::to_string(i), instanceIds.at(i));
|
||||
}
|
||||
|
||||
std::string AttachPubIpRequest::getClusterId()const
|
||||
@@ -67,7 +67,7 @@ std::string AttachPubIpRequest::getClusterId()const
|
||||
void AttachPubIpRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string AttachPubIpRequest::getAccessKeyId()const
|
||||
@@ -78,6 +78,6 @@ std::string AttachPubIpRequest::getAccessKeyId()const
|
||||
void AttachPubIpRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AttachPubIpResult::~AttachPubIpResult()
|
||||
|
||||
void AttachPubIpResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string AuthorizeSecurityGroupRequest::getBizType()const
|
||||
void AuthorizeSecurityGroupRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setParameter("BizType", bizType);
|
||||
setCoreParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
long AuthorizeSecurityGroupRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long AuthorizeSecurityGroupRequest::getResourceOwnerId()const
|
||||
void AuthorizeSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupRequest::getBizContent()const
|
||||
@@ -55,7 +55,7 @@ std::string AuthorizeSecurityGroupRequest::getBizContent()const
|
||||
void AuthorizeSecurityGroupRequest::setBizContent(const std::string& bizContent)
|
||||
{
|
||||
bizContent_ = bizContent;
|
||||
setParameter("BizContent", bizContent);
|
||||
setCoreParameter("BizContent", bizContent);
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupRequest::getRegionId()const
|
||||
@@ -66,7 +66,7 @@ std::string AuthorizeSecurityGroupRequest::getRegionId()const
|
||||
void AuthorizeSecurityGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupRequest::getClusterId()const
|
||||
@@ -77,7 +77,7 @@ std::string AuthorizeSecurityGroupRequest::getClusterId()const
|
||||
void AuthorizeSecurityGroupRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string AuthorizeSecurityGroupRequest::getAccessKeyId()const
|
||||
@@ -88,6 +88,6 @@ std::string AuthorizeSecurityGroupRequest::getAccessKeyId()const
|
||||
void AuthorizeSecurityGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ AuthorizeSecurityGroupResult::~AuthorizeSecurityGroupResult()
|
||||
|
||||
void AuthorizeSecurityGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long CancelETLJobReleaseRequest::getResourceOwnerId()const
|
||||
void CancelETLJobReleaseRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CancelETLJobReleaseRequest::getRegionId()const
|
||||
@@ -44,7 +44,7 @@ std::string CancelETLJobReleaseRequest::getRegionId()const
|
||||
void CancelETLJobReleaseRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CancelETLJobReleaseRequest::getEtlJobId()const
|
||||
@@ -55,7 +55,7 @@ std::string CancelETLJobReleaseRequest::getEtlJobId()const
|
||||
void CancelETLJobReleaseRequest::setEtlJobId(const std::string& etlJobId)
|
||||
{
|
||||
etlJobId_ = etlJobId;
|
||||
setParameter("EtlJobId", etlJobId);
|
||||
setCoreParameter("EtlJobId", etlJobId);
|
||||
}
|
||||
|
||||
std::string CancelETLJobReleaseRequest::getReleaseId()const
|
||||
@@ -66,7 +66,7 @@ std::string CancelETLJobReleaseRequest::getReleaseId()const
|
||||
void CancelETLJobReleaseRequest::setReleaseId(const std::string& releaseId)
|
||||
{
|
||||
releaseId_ = releaseId;
|
||||
setParameter("ReleaseId", releaseId);
|
||||
setCoreParameter("ReleaseId", releaseId);
|
||||
}
|
||||
|
||||
std::string CancelETLJobReleaseRequest::getAccessKeyId()const
|
||||
@@ -77,6 +77,6 @@ std::string CancelETLJobReleaseRequest::getAccessKeyId()const
|
||||
void CancelETLJobReleaseRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CancelETLJobReleaseResult::~CancelETLJobReleaseResult()
|
||||
|
||||
void CancelETLJobReleaseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long CancelOrderRequest::getResourceOwnerId()const
|
||||
void CancelOrderRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CancelOrderRequest::getRegionId()const
|
||||
@@ -44,7 +44,7 @@ std::string CancelOrderRequest::getRegionId()const
|
||||
void CancelOrderRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CancelOrderRequest::getClusterId()const
|
||||
@@ -55,7 +55,7 @@ std::string CancelOrderRequest::getClusterId()const
|
||||
void CancelOrderRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CancelOrderRequest::getAccessKeyId()const
|
||||
@@ -66,6 +66,6 @@ std::string CancelOrderRequest::getAccessKeyId()const
|
||||
void CancelOrderRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CancelOrderResult::~CancelOrderResult()
|
||||
|
||||
void CancelOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["clusterId"].isNull())
|
||||
clusterId_ = value["clusterId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long CheckDataSourceRequest::getResourceOwnerId()const
|
||||
void CheckDataSourceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CheckDataSourceRequest::getRegionId()const
|
||||
@@ -44,7 +44,7 @@ std::string CheckDataSourceRequest::getRegionId()const
|
||||
void CheckDataSourceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CheckDataSourceRequest::getConf()const
|
||||
@@ -55,7 +55,7 @@ std::string CheckDataSourceRequest::getConf()const
|
||||
void CheckDataSourceRequest::setConf(const std::string& conf)
|
||||
{
|
||||
conf_ = conf;
|
||||
setParameter("Conf", conf);
|
||||
setCoreParameter("Conf", conf);
|
||||
}
|
||||
|
||||
std::string CheckDataSourceRequest::getId()const
|
||||
@@ -66,7 +66,7 @@ std::string CheckDataSourceRequest::getId()const
|
||||
void CheckDataSourceRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
setCoreParameter("Id", id);
|
||||
}
|
||||
|
||||
std::string CheckDataSourceRequest::getClusterId()const
|
||||
@@ -77,7 +77,7 @@ std::string CheckDataSourceRequest::getClusterId()const
|
||||
void CheckDataSourceRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CheckDataSourceRequest::getAccessKeyId()const
|
||||
@@ -88,6 +88,6 @@ std::string CheckDataSourceRequest::getAccessKeyId()const
|
||||
void CheckDataSourceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CheckDataSourceResult::~CheckDataSourceResult()
|
||||
|
||||
void CheckDataSourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CommandId"].isNull())
|
||||
commandId_ = value["CommandId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long CloneDataSourceRequest::getResourceOwnerId()const
|
||||
void CloneDataSourceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CloneDataSourceRequest::getRegionId()const
|
||||
@@ -44,7 +44,18 @@ std::string CloneDataSourceRequest::getRegionId()const
|
||||
void CloneDataSourceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CloneDataSourceRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CloneDataSourceRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CloneDataSourceRequest::getId()const
|
||||
@@ -55,7 +66,7 @@ std::string CloneDataSourceRequest::getId()const
|
||||
void CloneDataSourceRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
setCoreParameter("Id", id);
|
||||
}
|
||||
|
||||
std::string CloneDataSourceRequest::getAccessKeyId()const
|
||||
@@ -66,6 +77,6 @@ std::string CloneDataSourceRequest::getAccessKeyId()const
|
||||
void CloneDataSourceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CloneDataSourceResult::~CloneDataSourceResult()
|
||||
|
||||
void CloneDataSourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long CloneETLJobRequest::getResourceOwnerId()const
|
||||
void CloneETLJobRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CloneETLJobRequest::getRegionId()const
|
||||
@@ -44,7 +44,18 @@ std::string CloneETLJobRequest::getRegionId()const
|
||||
void CloneETLJobRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CloneETLJobRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CloneETLJobRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CloneETLJobRequest::getId()const
|
||||
@@ -55,7 +66,7 @@ std::string CloneETLJobRequest::getId()const
|
||||
void CloneETLJobRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
setCoreParameter("Id", id);
|
||||
}
|
||||
|
||||
std::string CloneETLJobRequest::getAccessKeyId()const
|
||||
@@ -66,6 +77,6 @@ std::string CloneETLJobRequest::getAccessKeyId()const
|
||||
void CloneETLJobRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CloneETLJobResult::~CloneETLJobResult()
|
||||
|
||||
void CloneETLJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CloneFlowJobRequest::getRegionId()const
|
||||
void CloneFlowJobRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CloneFlowJobRequest::getId()const
|
||||
@@ -44,7 +44,7 @@ std::string CloneFlowJobRequest::getId()const
|
||||
void CloneFlowJobRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
setCoreParameter("Id", id);
|
||||
}
|
||||
|
||||
std::string CloneFlowJobRequest::getProjectId()const
|
||||
@@ -55,6 +55,6 @@ std::string CloneFlowJobRequest::getProjectId()const
|
||||
void CloneFlowJobRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CloneFlowJobResult::~CloneFlowJobResult()
|
||||
|
||||
void CloneFlowJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CloneFlowRequest::getRegionId()const
|
||||
void CloneFlowRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CloneFlowRequest::getId()const
|
||||
@@ -44,7 +44,7 @@ std::string CloneFlowRequest::getId()const
|
||||
void CloneFlowRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
setCoreParameter("Id", id);
|
||||
}
|
||||
|
||||
std::string CloneFlowRequest::getProjectId()const
|
||||
@@ -55,6 +55,6 @@ std::string CloneFlowRequest::getProjectId()const
|
||||
void CloneFlowRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CloneFlowResult::~CloneFlowResult()
|
||||
|
||||
void CloneFlowResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long CommonApiWhiteListRequest::getResourceOwnerId()const
|
||||
void CommonApiWhiteListRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CommonApiWhiteListRequest::getRegionId()const
|
||||
@@ -44,7 +44,7 @@ std::string CommonApiWhiteListRequest::getRegionId()const
|
||||
void CommonApiWhiteListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CommonApiWhiteListRequest::getAccessKeyId()const
|
||||
@@ -55,6 +55,6 @@ std::string CommonApiWhiteListRequest::getAccessKeyId()const
|
||||
void CommonApiWhiteListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CommonApiWhiteListResult::~CommonApiWhiteListResult()
|
||||
|
||||
void CommonApiWhiteListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["WhiteList"].isNull())
|
||||
whiteList_ = value["WhiteList"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string ContextQueryLogRequest::getPackId()const
|
||||
void ContextQueryLogRequest::setPackId(const std::string& packId)
|
||||
{
|
||||
packId_ = packId;
|
||||
setParameter("PackId", packId);
|
||||
setCoreParameter("PackId", packId);
|
||||
}
|
||||
|
||||
long ContextQueryLogRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long ContextQueryLogRequest::getResourceOwnerId()const
|
||||
void ContextQueryLogRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int ContextQueryLogRequest::getTotalOffset()const
|
||||
@@ -55,7 +55,7 @@ int ContextQueryLogRequest::getTotalOffset()const
|
||||
void ContextQueryLogRequest::setTotalOffset(int totalOffset)
|
||||
{
|
||||
totalOffset_ = totalOffset;
|
||||
setParameter("TotalOffset", std::to_string(totalOffset));
|
||||
setCoreParameter("TotalOffset", std::to_string(totalOffset));
|
||||
}
|
||||
|
||||
int ContextQueryLogRequest::getSize()const
|
||||
@@ -66,7 +66,7 @@ int ContextQueryLogRequest::getSize()const
|
||||
void ContextQueryLogRequest::setSize(int size)
|
||||
{
|
||||
size_ = size;
|
||||
setParameter("Size", std::to_string(size));
|
||||
setCoreParameter("Size", std::to_string(size));
|
||||
}
|
||||
|
||||
std::string ContextQueryLogRequest::getRegionId()const
|
||||
@@ -77,7 +77,7 @@ std::string ContextQueryLogRequest::getRegionId()const
|
||||
void ContextQueryLogRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ContextQueryLogRequest::getPackMeta()const
|
||||
@@ -88,7 +88,7 @@ std::string ContextQueryLogRequest::getPackMeta()const
|
||||
void ContextQueryLogRequest::setPackMeta(const std::string& packMeta)
|
||||
{
|
||||
packMeta_ = packMeta;
|
||||
setParameter("PackMeta", packMeta);
|
||||
setCoreParameter("PackMeta", packMeta);
|
||||
}
|
||||
|
||||
int ContextQueryLogRequest::getFrom()const
|
||||
@@ -99,7 +99,7 @@ int ContextQueryLogRequest::getFrom()const
|
||||
void ContextQueryLogRequest::setFrom(int from)
|
||||
{
|
||||
from_ = from;
|
||||
setParameter("From", std::to_string(from));
|
||||
setCoreParameter("From", std::to_string(from));
|
||||
}
|
||||
|
||||
std::string ContextQueryLogRequest::getClusterId()const
|
||||
@@ -110,7 +110,7 @@ std::string ContextQueryLogRequest::getClusterId()const
|
||||
void ContextQueryLogRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int ContextQueryLogRequest::getTo()const
|
||||
@@ -121,7 +121,7 @@ int ContextQueryLogRequest::getTo()const
|
||||
void ContextQueryLogRequest::setTo(int to)
|
||||
{
|
||||
to_ = to;
|
||||
setParameter("To", std::to_string(to));
|
||||
setCoreParameter("To", std::to_string(to));
|
||||
}
|
||||
|
||||
bool ContextQueryLogRequest::getReverse()const
|
||||
@@ -132,7 +132,7 @@ bool ContextQueryLogRequest::getReverse()const
|
||||
void ContextQueryLogRequest::setReverse(bool reverse)
|
||||
{
|
||||
reverse_ = reverse;
|
||||
setParameter("Reverse", std::to_string(reverse));
|
||||
setCoreParameter("Reverse", reverse ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ContextQueryLogRequest::getLogStore()const
|
||||
@@ -143,7 +143,7 @@ std::string ContextQueryLogRequest::getLogStore()const
|
||||
void ContextQueryLogRequest::setLogStore(const std::string& logStore)
|
||||
{
|
||||
logStore_ = logStore;
|
||||
setParameter("LogStore", logStore);
|
||||
setCoreParameter("LogStore", logStore);
|
||||
}
|
||||
|
||||
std::string ContextQueryLogRequest::getAccessKeyId()const
|
||||
@@ -154,6 +154,6 @@ std::string ContextQueryLogRequest::getAccessKeyId()const
|
||||
void ContextQueryLogRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ ContextQueryLogResult::~ContextQueryLogResult()
|
||||
|
||||
void ContextQueryLogResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLogs = value["Logs"]["Item"];
|
||||
for (auto value : allLogs)
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateAlertContactRequest::getEmailVerificationCode()const
|
||||
void CreateAlertContactRequest::setEmailVerificationCode(const std::string& emailVerificationCode)
|
||||
{
|
||||
emailVerificationCode_ = emailVerificationCode;
|
||||
setParameter("EmailVerificationCode", emailVerificationCode);
|
||||
setCoreParameter("EmailVerificationCode", emailVerificationCode);
|
||||
}
|
||||
|
||||
long CreateAlertContactRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long CreateAlertContactRequest::getResourceOwnerId()const
|
||||
void CreateAlertContactRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateAlertContactRequest::getRegionId()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateAlertContactRequest::getRegionId()const
|
||||
void CreateAlertContactRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateAlertContactRequest::getPhoneNumberVerificationCode()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateAlertContactRequest::getPhoneNumberVerificationCode()const
|
||||
void CreateAlertContactRequest::setPhoneNumberVerificationCode(const std::string& phoneNumberVerificationCode)
|
||||
{
|
||||
phoneNumberVerificationCode_ = phoneNumberVerificationCode;
|
||||
setParameter("PhoneNumberVerificationCode", phoneNumberVerificationCode);
|
||||
setCoreParameter("PhoneNumberVerificationCode", phoneNumberVerificationCode);
|
||||
}
|
||||
|
||||
std::string CreateAlertContactRequest::getName()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateAlertContactRequest::getName()const
|
||||
void CreateAlertContactRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateAlertContactRequest::getPhoneNumber()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateAlertContactRequest::getPhoneNumber()const
|
||||
void CreateAlertContactRequest::setPhoneNumber(const std::string& phoneNumber)
|
||||
{
|
||||
phoneNumber_ = phoneNumber;
|
||||
setParameter("PhoneNumber", phoneNumber);
|
||||
setCoreParameter("PhoneNumber", phoneNumber);
|
||||
}
|
||||
|
||||
std::string CreateAlertContactRequest::getEmail()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateAlertContactRequest::getEmail()const
|
||||
void CreateAlertContactRequest::setEmail(const std::string& email)
|
||||
{
|
||||
email_ = email;
|
||||
setParameter("Email", email);
|
||||
setCoreParameter("Email", email);
|
||||
}
|
||||
|
||||
std::string CreateAlertContactRequest::getAccessKeyId()const
|
||||
@@ -110,6 +110,6 @@ std::string CreateAlertContactRequest::getAccessKeyId()const
|
||||
void CreateAlertContactRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateAlertContactResult::~CreateAlertContactResult()
|
||||
|
||||
void CreateAlertContactResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = std::stol(value["Id"].asString());
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateAlertDingDingGroupRequest::getResourceOwnerId()const
|
||||
void CreateAlertDingDingGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateAlertDingDingGroupRequest::getRegionId()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateAlertDingDingGroupRequest::getRegionId()const
|
||||
void CreateAlertDingDingGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateAlertDingDingGroupRequest::getName()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateAlertDingDingGroupRequest::getName()const
|
||||
void CreateAlertDingDingGroupRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateAlertDingDingGroupRequest::getDescription()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateAlertDingDingGroupRequest::getDescription()const
|
||||
void CreateAlertDingDingGroupRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateAlertDingDingGroupRequest::getAccessKeyId()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateAlertDingDingGroupRequest::getAccessKeyId()const
|
||||
void CreateAlertDingDingGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateAlertDingDingGroupRequest::getWebHookUrl()const
|
||||
@@ -88,6 +88,6 @@ std::string CreateAlertDingDingGroupRequest::getWebHookUrl()const
|
||||
void CreateAlertDingDingGroupRequest::setWebHookUrl(const std::string& webHookUrl)
|
||||
{
|
||||
webHookUrl_ = webHookUrl;
|
||||
setParameter("WebHookUrl", webHookUrl);
|
||||
setCoreParameter("WebHookUrl", webHookUrl);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateAlertDingDingGroupResult::~CreateAlertDingDingGroupResult()
|
||||
|
||||
void CreateAlertDingDingGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = std::stol(value["Id"].asString());
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateAlertUserGroupRequest::getUserList()const
|
||||
void CreateAlertUserGroupRequest::setUserList(const std::string& userList)
|
||||
{
|
||||
userList_ = userList;
|
||||
setParameter("UserList", userList);
|
||||
setCoreParameter("UserList", userList);
|
||||
}
|
||||
|
||||
long CreateAlertUserGroupRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long CreateAlertUserGroupRequest::getResourceOwnerId()const
|
||||
void CreateAlertUserGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateAlertUserGroupRequest::getRegionId()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateAlertUserGroupRequest::getRegionId()const
|
||||
void CreateAlertUserGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateAlertUserGroupRequest::getName()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateAlertUserGroupRequest::getName()const
|
||||
void CreateAlertUserGroupRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateAlertUserGroupRequest::getDescription()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateAlertUserGroupRequest::getDescription()const
|
||||
void CreateAlertUserGroupRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateAlertUserGroupRequest::getAccessKeyId()const
|
||||
@@ -88,6 +88,6 @@ std::string CreateAlertUserGroupRequest::getAccessKeyId()const
|
||||
void CreateAlertUserGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateAlertUserGroupResult::~CreateAlertUserGroupResult()
|
||||
|
||||
void CreateAlertUserGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = std::stol(value["Id"].asString());
|
||||
|
||||
236
emr/src/model/CreateBackupPlanRequest.cc
Normal file
236
emr/src/model/CreateBackupPlanRequest.cc
Normal file
@@ -0,0 +1,236 @@
|
||||
/*
|
||||
* 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")
|
||||
{}
|
||||
|
||||
CreateBackupPlanRequest::~CreateBackupPlanRequest()
|
||||
{}
|
||||
|
||||
std::string CreateBackupPlanRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
long CreateBackupPlanRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long CreateBackupPlanRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool CreateBackupPlanRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
bool CreateBackupPlanRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateBackupPlanRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool CreateBackupPlanRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getRootPath()const
|
||||
{
|
||||
return rootPath_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setRootPath(const std::string& rootPath)
|
||||
{
|
||||
rootPath_ = rootPath;
|
||||
setCoreParameter("RootPath", rootPath);
|
||||
}
|
||||
|
||||
long CreateBackupPlanRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
83
emr/src/model/CreateBackupPlanResult.cc
Normal file
83
emr/src/model/CreateBackupPlanResult.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* 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::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
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_;
|
||||
}
|
||||
|
||||
214
emr/src/model/CreateBackupRequest.cc
Normal file
214
emr/src/model/CreateBackupRequest.cc
Normal file
@@ -0,0 +1,214 @@
|
||||
/*
|
||||
* 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")
|
||||
{}
|
||||
|
||||
CreateBackupRequest::~CreateBackupRequest()
|
||||
{}
|
||||
|
||||
std::string CreateBackupRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
long CreateBackupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long CreateBackupRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool CreateBackupRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setBackupPlanId(const std::string& backupPlanId)
|
||||
{
|
||||
backupPlanId_ = backupPlanId;
|
||||
setCoreParameter("BackupPlanId", backupPlanId);
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getMetadataType()const
|
||||
{
|
||||
return metadataType_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setMetadataType(const std::string& metadataType)
|
||||
{
|
||||
metadataType_ = metadataType;
|
||||
setCoreParameter("MetadataType", metadataType);
|
||||
}
|
||||
|
||||
bool CreateBackupRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateBackupRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool CreateBackupRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long CreateBackupRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
160
emr/src/model/CreateBackupResult.cc
Normal file
160
emr/src/model/CreateBackupResult.cc
Normal file
@@ -0,0 +1,160 @@
|
||||
/*
|
||||
* 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::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
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_;
|
||||
}
|
||||
|
||||
247
emr/src/model/CreateBackupRuleRequest.cc
Normal file
247
emr/src/model/CreateBackupRuleRequest.cc
Normal file
@@ -0,0 +1,247 @@
|
||||
/*
|
||||
* 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/CreateBackupRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::CreateBackupRuleRequest;
|
||||
|
||||
CreateBackupRuleRequest::CreateBackupRuleRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateBackupRule")
|
||||
{}
|
||||
|
||||
CreateBackupRuleRequest::~CreateBackupRuleRequest()
|
||||
{}
|
||||
|
||||
std::string CreateBackupRuleRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void CreateBackupRuleRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
long CreateBackupRuleRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateBackupRuleRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateBackupRuleRequest::getBackupMethodType()const
|
||||
{
|
||||
return backupMethodType_;
|
||||
}
|
||||
|
||||
void CreateBackupRuleRequest::setBackupMethodType(const std::string& backupMethodType)
|
||||
{
|
||||
backupMethodType_ = backupMethodType;
|
||||
setCoreParameter("BackupMethodType", backupMethodType);
|
||||
}
|
||||
|
||||
long CreateBackupRuleRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void CreateBackupRuleRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool CreateBackupRuleRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void CreateBackupRuleRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateBackupRuleRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateBackupRuleRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateBackupRuleRequest::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
void CreateBackupRuleRequest::setBackupPlanId(const std::string& backupPlanId)
|
||||
{
|
||||
backupPlanId_ = backupPlanId;
|
||||
setCoreParameter("BackupPlanId", backupPlanId);
|
||||
}
|
||||
|
||||
std::string CreateBackupRuleRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CreateBackupRuleRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
std::string CreateBackupRuleRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void CreateBackupRuleRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CreateBackupRuleRequest::getMetadataType()const
|
||||
{
|
||||
return metadataType_;
|
||||
}
|
||||
|
||||
void CreateBackupRuleRequest::setMetadataType(const std::string& metadataType)
|
||||
{
|
||||
metadataType_ = metadataType;
|
||||
setCoreParameter("MetadataType", metadataType);
|
||||
}
|
||||
|
||||
bool CreateBackupRuleRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CreateBackupRuleRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateBackupRuleRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void CreateBackupRuleRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateBackupRuleRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void CreateBackupRuleRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CreateBackupRuleRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateBackupRuleRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool CreateBackupRuleRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CreateBackupRuleRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateBackupRuleRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateBackupRuleRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateBackupRuleRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateBackupRuleRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateBackupRuleRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CreateBackupRuleRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string CreateBackupRuleRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateBackupRuleRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
long CreateBackupRuleRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void CreateBackupRuleRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
90
emr/src/model/CreateBackupRuleResult.cc
Normal file
90
emr/src/model/CreateBackupRuleResult.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CreateBackupRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
CreateBackupRuleResult::CreateBackupRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateBackupRuleResult::CreateBackupRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateBackupRuleResult::~CreateBackupRuleResult()
|
||||
{}
|
||||
|
||||
void CreateBackupRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
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["MetadataType"].isNull())
|
||||
metadataType_ = value["MetadataType"].asString();
|
||||
if(!value["BackupMethodType"].isNull())
|
||||
backupMethodType_ = value["BackupMethodType"].asString();
|
||||
if(!value["BackupPlanId"].isNull())
|
||||
backupPlanId_ = value["BackupPlanId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateBackupRuleResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreateBackupRuleResult::getMetadataType()const
|
||||
{
|
||||
return metadataType_;
|
||||
}
|
||||
|
||||
std::string CreateBackupRuleResult::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
std::string CreateBackupRuleResult::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
std::string CreateBackupRuleResult::getBackupMethodType()const
|
||||
{
|
||||
return backupMethodType_;
|
||||
}
|
||||
|
||||
std::string CreateBackupRuleResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
246
emr/src/model/CreateBatchUsersRequest.cc
Normal file
246
emr/src/model/CreateBatchUsersRequest.cc
Normal file
@@ -0,0 +1,246 @@
|
||||
/*
|
||||
* 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/CreateBatchUsersRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::CreateBatchUsersRequest;
|
||||
|
||||
CreateBatchUsersRequest::CreateBatchUsersRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateBatchUsers")
|
||||
{}
|
||||
|
||||
CreateBatchUsersRequest::~CreateBatchUsersRequest()
|
||||
{}
|
||||
|
||||
std::string CreateBatchUsersRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void CreateBatchUsersRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
long CreateBatchUsersRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateBatchUsersRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::vector<CreateBatchUsersRequest::UserBaseParamList> CreateBatchUsersRequest::getUserBaseParamList()const
|
||||
{
|
||||
return userBaseParamList_;
|
||||
}
|
||||
|
||||
void CreateBatchUsersRequest::setUserBaseParamList(const std::vector<UserBaseParamList>& userBaseParamList)
|
||||
{
|
||||
userBaseParamList_ = userBaseParamList;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= userBaseParamList.size(); i++) {
|
||||
auto obj = userBaseParamList.at(i);
|
||||
std::string str ="UserBaseParamList."+ std::to_string(i);
|
||||
setCoreParameter(str + ".AliyunUserId", obj.aliyunUserId);
|
||||
setCoreParameter(str + ".UserName", obj.userName);
|
||||
setCoreParameter(str + ".UserType", obj.userType);
|
||||
setCoreParameter(str + ".IsSuperAdmin", obj.isSuperAdmin);
|
||||
}
|
||||
}
|
||||
|
||||
long CreateBatchUsersRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void CreateBatchUsersRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
std::vector<long> CreateBatchUsersRequest::getRoleId()const
|
||||
{
|
||||
return roleId_;
|
||||
}
|
||||
|
||||
void CreateBatchUsersRequest::setRoleId(const std::vector<long>& roleId)
|
||||
{
|
||||
roleId_ = roleId;
|
||||
for(int i = 0; i!= roleId.size(); i++)
|
||||
setCoreParameter("RoleId."+ std::to_string(i), std::to_string(roleId.at(i)));
|
||||
}
|
||||
|
||||
std::vector<long> CreateBatchUsersRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void CreateBatchUsersRequest::setGroupId(const std::vector<long>& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
for(int i = 0; i!= groupId.size(); i++)
|
||||
setCoreParameter("GroupId."+ std::to_string(i), std::to_string(groupId.at(i)));
|
||||
}
|
||||
|
||||
bool CreateBatchUsersRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void CreateBatchUsersRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateBatchUsersRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateBatchUsersRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateBatchUsersRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CreateBatchUsersRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
std::string CreateBatchUsersRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void CreateBatchUsersRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
bool CreateBatchUsersRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CreateBatchUsersRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateBatchUsersRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void CreateBatchUsersRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateBatchUsersRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void CreateBatchUsersRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CreateBatchUsersRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateBatchUsersRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool CreateBatchUsersRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CreateBatchUsersRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateBatchUsersRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateBatchUsersRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateBatchUsersRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateBatchUsersRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateBatchUsersRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CreateBatchUsersRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long CreateBatchUsersRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void CreateBatchUsersRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
62
emr/src/model/CreateBatchUsersResult.cc
Normal file
62
emr/src/model/CreateBatchUsersResult.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/CreateBatchUsersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
CreateBatchUsersResult::CreateBatchUsersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateBatchUsersResult::CreateBatchUsersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateBatchUsersResult::~CreateBatchUsersResult()
|
||||
{}
|
||||
|
||||
void CreateBatchUsersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Paging"].isNull())
|
||||
paging_ = value["Paging"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool CreateBatchUsersResult::getPaging()const
|
||||
{
|
||||
return paging_;
|
||||
}
|
||||
|
||||
bool CreateBatchUsersResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateClusterHostGroupRequest::getResourceOwnerId()const
|
||||
void CreateClusterHostGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateClusterHostGroupRequest::getRegionId()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateClusterHostGroupRequest::getRegionId()const
|
||||
void CreateClusterHostGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateClusterHostGroupRequest::getComment()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateClusterHostGroupRequest::getComment()const
|
||||
void CreateClusterHostGroupRequest::setComment(const std::string& comment)
|
||||
{
|
||||
comment_ = comment;
|
||||
setParameter("Comment", comment);
|
||||
setCoreParameter("Comment", comment);
|
||||
}
|
||||
|
||||
std::string CreateClusterHostGroupRequest::getClusterId()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateClusterHostGroupRequest::getClusterId()const
|
||||
void CreateClusterHostGroupRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateClusterHostGroupRequest::getHostGroupName()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateClusterHostGroupRequest::getHostGroupName()const
|
||||
void CreateClusterHostGroupRequest::setHostGroupName(const std::string& hostGroupName)
|
||||
{
|
||||
hostGroupName_ = hostGroupName;
|
||||
setParameter("HostGroupName", hostGroupName);
|
||||
setCoreParameter("HostGroupName", hostGroupName);
|
||||
}
|
||||
|
||||
std::string CreateClusterHostGroupRequest::getHostGroupType()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateClusterHostGroupRequest::getHostGroupType()const
|
||||
void CreateClusterHostGroupRequest::setHostGroupType(const std::string& hostGroupType)
|
||||
{
|
||||
hostGroupType_ = hostGroupType;
|
||||
setParameter("HostGroupType", hostGroupType);
|
||||
setCoreParameter("HostGroupType", hostGroupType);
|
||||
}
|
||||
|
||||
std::string CreateClusterHostGroupRequest::getAccessKeyId()const
|
||||
@@ -99,6 +99,6 @@ std::string CreateClusterHostGroupRequest::getAccessKeyId()const
|
||||
void CreateClusterHostGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateClusterHostGroupResult::~CreateClusterHostGroupResult()
|
||||
|
||||
void CreateClusterHostGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateClusterScriptRequest::getArgs()const
|
||||
void CreateClusterScriptRequest::setArgs(const std::string& args)
|
||||
{
|
||||
args_ = args;
|
||||
setParameter("Args", args);
|
||||
setCoreParameter("Args", args);
|
||||
}
|
||||
|
||||
std::string CreateClusterScriptRequest::getPath()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateClusterScriptRequest::getPath()const
|
||||
void CreateClusterScriptRequest::setPath(const std::string& path)
|
||||
{
|
||||
path_ = path;
|
||||
setParameter("Path", path);
|
||||
setCoreParameter("Path", path);
|
||||
}
|
||||
|
||||
long CreateClusterScriptRequest::getResourceOwnerId()const
|
||||
@@ -55,7 +55,7 @@ long CreateClusterScriptRequest::getResourceOwnerId()const
|
||||
void CreateClusterScriptRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateClusterScriptRequest::getRegionId()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateClusterScriptRequest::getRegionId()const
|
||||
void CreateClusterScriptRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateClusterScriptRequest::getName()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateClusterScriptRequest::getName()const
|
||||
void CreateClusterScriptRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateClusterScriptRequest::getClusterId()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateClusterScriptRequest::getClusterId()const
|
||||
void CreateClusterScriptRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateClusterScriptRequest::getNodeIdList()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateClusterScriptRequest::getNodeIdList()const
|
||||
void CreateClusterScriptRequest::setNodeIdList(const std::string& nodeIdList)
|
||||
{
|
||||
nodeIdList_ = nodeIdList;
|
||||
setParameter("NodeIdList", nodeIdList);
|
||||
setCoreParameter("NodeIdList", nodeIdList);
|
||||
}
|
||||
|
||||
std::string CreateClusterScriptRequest::getAccessKeyId()const
|
||||
@@ -110,6 +110,6 @@ std::string CreateClusterScriptRequest::getAccessKeyId()const
|
||||
void CreateClusterScriptRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateClusterScriptResult::~CreateClusterScriptResult()
|
||||
|
||||
void CreateClusterScriptResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateClusterTemplateRequest::getResourceOwnerId()const
|
||||
void CreateClusterTemplateRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getLogPath()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateClusterTemplateRequest::getLogPath()const
|
||||
void CreateClusterTemplateRequest::setLogPath(const std::string& logPath)
|
||||
{
|
||||
logPath_ = logPath;
|
||||
setParameter("LogPath", logPath);
|
||||
setCoreParameter("LogPath", logPath);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getMasterPwd()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateClusterTemplateRequest::getMasterPwd()const
|
||||
void CreateClusterTemplateRequest::setMasterPwd(const std::string& masterPwd)
|
||||
{
|
||||
masterPwd_ = masterPwd;
|
||||
setParameter("MasterPwd", masterPwd);
|
||||
setCoreParameter("MasterPwd", masterPwd);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getConfigurations()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateClusterTemplateRequest::getConfigurations()const
|
||||
void CreateClusterTemplateRequest::setConfigurations(const std::string& configurations)
|
||||
{
|
||||
configurations_ = configurations;
|
||||
setParameter("Configurations", configurations);
|
||||
setCoreParameter("Configurations", configurations);
|
||||
}
|
||||
|
||||
bool CreateClusterTemplateRequest::getIoOptimized()const
|
||||
@@ -77,7 +77,7 @@ bool CreateClusterTemplateRequest::getIoOptimized()const
|
||||
void CreateClusterTemplateRequest::setIoOptimized(bool ioOptimized)
|
||||
{
|
||||
ioOptimized_ = ioOptimized;
|
||||
setParameter("IoOptimized", std::to_string(ioOptimized));
|
||||
setCoreParameter("IoOptimized", ioOptimized ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getSecurityGroupId()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateClusterTemplateRequest::getSecurityGroupId()const
|
||||
void CreateClusterTemplateRequest::setSecurityGroupId(const std::string& securityGroupId)
|
||||
{
|
||||
securityGroupId_ = securityGroupId;
|
||||
setParameter("SecurityGroupId", securityGroupId);
|
||||
setCoreParameter("SecurityGroupId", securityGroupId);
|
||||
}
|
||||
|
||||
bool CreateClusterTemplateRequest::getSshEnable()const
|
||||
@@ -99,7 +99,7 @@ bool CreateClusterTemplateRequest::getSshEnable()const
|
||||
void CreateClusterTemplateRequest::setSshEnable(bool sshEnable)
|
||||
{
|
||||
sshEnable_ = sshEnable;
|
||||
setParameter("SshEnable", std::to_string(sshEnable));
|
||||
setCoreParameter("SshEnable", sshEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateClusterTemplateRequest::getEasEnable()const
|
||||
@@ -110,7 +110,29 @@ bool CreateClusterTemplateRequest::getEasEnable()const
|
||||
void CreateClusterTemplateRequest::setEasEnable(bool easEnable)
|
||||
{
|
||||
easEnable_ = easEnable;
|
||||
setParameter("EasEnable", std::to_string(easEnable));
|
||||
setCoreParameter("EasEnable", easEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getKeyPairName()const
|
||||
{
|
||||
return keyPairName_;
|
||||
}
|
||||
|
||||
void CreateClusterTemplateRequest::setKeyPairName(const std::string& keyPairName)
|
||||
{
|
||||
keyPairName_ = keyPairName;
|
||||
setCoreParameter("KeyPairName", keyPairName);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getMetaStoreType()const
|
||||
{
|
||||
return metaStoreType_;
|
||||
}
|
||||
|
||||
void CreateClusterTemplateRequest::setMetaStoreType(const std::string& metaStoreType)
|
||||
{
|
||||
metaStoreType_ = metaStoreType;
|
||||
setCoreParameter("MetaStoreType", metaStoreType);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getSecurityGroupName()const
|
||||
@@ -121,7 +143,7 @@ std::string CreateClusterTemplateRequest::getSecurityGroupName()const
|
||||
void CreateClusterTemplateRequest::setSecurityGroupName(const std::string& securityGroupName)
|
||||
{
|
||||
securityGroupName_ = securityGroupName;
|
||||
setParameter("SecurityGroupName", securityGroupName);
|
||||
setCoreParameter("SecurityGroupName", securityGroupName);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getDepositType()const
|
||||
@@ -132,7 +154,7 @@ std::string CreateClusterTemplateRequest::getDepositType()const
|
||||
void CreateClusterTemplateRequest::setDepositType(const std::string& depositType)
|
||||
{
|
||||
depositType_ = depositType;
|
||||
setParameter("DepositType", depositType);
|
||||
setCoreParameter("DepositType", depositType);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getAccessKeyId()const
|
||||
@@ -143,7 +165,7 @@ std::string CreateClusterTemplateRequest::getAccessKeyId()const
|
||||
void CreateClusterTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getMachineType()const
|
||||
@@ -154,7 +176,7 @@ std::string CreateClusterTemplateRequest::getMachineType()const
|
||||
void CreateClusterTemplateRequest::setMachineType(const std::string& machineType)
|
||||
{
|
||||
machineType_ = machineType;
|
||||
setParameter("MachineType", machineType);
|
||||
setCoreParameter("MachineType", machineType);
|
||||
}
|
||||
|
||||
std::vector<CreateClusterTemplateRequest::BootstrapAction> CreateClusterTemplateRequest::getBootstrapAction()const
|
||||
@@ -169,9 +191,9 @@ void CreateClusterTemplateRequest::setBootstrapAction(const std::vector<Bootstra
|
||||
for(int i = 0; i!= bootstrapAction.size(); i++) {
|
||||
auto obj = bootstrapAction.at(i);
|
||||
std::string str ="BootstrapAction."+ std::to_string(i);
|
||||
setParameter(str + ".Path", obj.path);
|
||||
setParameter(str + ".Arg", obj.arg);
|
||||
setParameter(str + ".Name", obj.name);
|
||||
setCoreParameter(str + ".Path", obj.path);
|
||||
setCoreParameter(str + ".Arg", obj.arg);
|
||||
setCoreParameter(str + ".Name", obj.name);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -183,7 +205,7 @@ std::string CreateClusterTemplateRequest::getRegionId()const
|
||||
void CreateClusterTemplateRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool CreateClusterTemplateRequest::getUseLocalMetaDb()const
|
||||
@@ -194,7 +216,18 @@ bool CreateClusterTemplateRequest::getUseLocalMetaDb()const
|
||||
void CreateClusterTemplateRequest::setUseLocalMetaDb(bool useLocalMetaDb)
|
||||
{
|
||||
useLocalMetaDb_ = useLocalMetaDb;
|
||||
setParameter("UseLocalMetaDb", std::to_string(useLocalMetaDb));
|
||||
setCoreParameter("UseLocalMetaDb", useLocalMetaDb ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getMetaStoreConf()const
|
||||
{
|
||||
return metaStoreConf_;
|
||||
}
|
||||
|
||||
void CreateClusterTemplateRequest::setMetaStoreConf(const std::string& metaStoreConf)
|
||||
{
|
||||
metaStoreConf_ = metaStoreConf;
|
||||
setCoreParameter("MetaStoreConf", metaStoreConf);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getEmrVer()const
|
||||
@@ -205,7 +238,7 @@ std::string CreateClusterTemplateRequest::getEmrVer()const
|
||||
void CreateClusterTemplateRequest::setEmrVer(const std::string& emrVer)
|
||||
{
|
||||
emrVer_ = emrVer;
|
||||
setParameter("EmrVer", emrVer);
|
||||
setCoreParameter("EmrVer", emrVer);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getTemplateName()const
|
||||
@@ -216,7 +249,7 @@ std::string CreateClusterTemplateRequest::getTemplateName()const
|
||||
void CreateClusterTemplateRequest::setTemplateName(const std::string& templateName)
|
||||
{
|
||||
templateName_ = templateName;
|
||||
setParameter("TemplateName", templateName);
|
||||
setCoreParameter("TemplateName", templateName);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getUserDefinedEmrEcsRole()const
|
||||
@@ -227,7 +260,7 @@ std::string CreateClusterTemplateRequest::getUserDefinedEmrEcsRole()const
|
||||
void CreateClusterTemplateRequest::setUserDefinedEmrEcsRole(const std::string& userDefinedEmrEcsRole)
|
||||
{
|
||||
userDefinedEmrEcsRole_ = userDefinedEmrEcsRole;
|
||||
setParameter("UserDefinedEmrEcsRole", userDefinedEmrEcsRole);
|
||||
setCoreParameter("UserDefinedEmrEcsRole", userDefinedEmrEcsRole);
|
||||
}
|
||||
|
||||
bool CreateClusterTemplateRequest::getIsOpenPublicIp()const
|
||||
@@ -238,7 +271,7 @@ bool CreateClusterTemplateRequest::getIsOpenPublicIp()const
|
||||
void CreateClusterTemplateRequest::setIsOpenPublicIp(bool isOpenPublicIp)
|
||||
{
|
||||
isOpenPublicIp_ = isOpenPublicIp;
|
||||
setParameter("IsOpenPublicIp", std::to_string(isOpenPublicIp));
|
||||
setCoreParameter("IsOpenPublicIp", isOpenPublicIp ? "true" : "false");
|
||||
}
|
||||
|
||||
int CreateClusterTemplateRequest::getPeriod()const
|
||||
@@ -249,7 +282,7 @@ int CreateClusterTemplateRequest::getPeriod()const
|
||||
void CreateClusterTemplateRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setParameter("Period", std::to_string(period));
|
||||
setCoreParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getInstanceGeneration()const
|
||||
@@ -260,7 +293,7 @@ std::string CreateClusterTemplateRequest::getInstanceGeneration()const
|
||||
void CreateClusterTemplateRequest::setInstanceGeneration(const std::string& instanceGeneration)
|
||||
{
|
||||
instanceGeneration_ = instanceGeneration;
|
||||
setParameter("InstanceGeneration", instanceGeneration);
|
||||
setCoreParameter("InstanceGeneration", instanceGeneration);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getVSwitchId()const
|
||||
@@ -271,7 +304,7 @@ std::string CreateClusterTemplateRequest::getVSwitchId()const
|
||||
void CreateClusterTemplateRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
setCoreParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getClusterType()const
|
||||
@@ -282,7 +315,7 @@ std::string CreateClusterTemplateRequest::getClusterType()const
|
||||
void CreateClusterTemplateRequest::setClusterType(const std::string& clusterType)
|
||||
{
|
||||
clusterType_ = clusterType;
|
||||
setParameter("ClusterType", clusterType);
|
||||
setCoreParameter("ClusterType", clusterType);
|
||||
}
|
||||
|
||||
bool CreateClusterTemplateRequest::getAutoRenew()const
|
||||
@@ -293,7 +326,7 @@ bool CreateClusterTemplateRequest::getAutoRenew()const
|
||||
void CreateClusterTemplateRequest::setAutoRenew(bool autoRenew)
|
||||
{
|
||||
autoRenew_ = autoRenew;
|
||||
setParameter("AutoRenew", std::to_string(autoRenew));
|
||||
setCoreParameter("AutoRenew", autoRenew ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateClusterTemplateRequest::getOptionSoftWareList()const
|
||||
@@ -305,7 +338,7 @@ void CreateClusterTemplateRequest::setOptionSoftWareList(const std::vector<std::
|
||||
{
|
||||
optionSoftWareList_ = optionSoftWareList;
|
||||
for(int i = 0; i!= optionSoftWareList.size(); i++)
|
||||
setParameter("OptionSoftWareList."+ std::to_string(i), optionSoftWareList.at(i));
|
||||
setCoreParameter("OptionSoftWareList."+ std::to_string(i), optionSoftWareList.at(i));
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getVpcId()const
|
||||
@@ -316,7 +349,7 @@ std::string CreateClusterTemplateRequest::getVpcId()const
|
||||
void CreateClusterTemplateRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
setCoreParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string CreateClusterTemplateRequest::getNetType()const
|
||||
@@ -327,7 +360,7 @@ std::string CreateClusterTemplateRequest::getNetType()const
|
||||
void CreateClusterTemplateRequest::setNetType(const std::string& netType)
|
||||
{
|
||||
netType_ = netType;
|
||||
setParameter("NetType", netType);
|
||||
setCoreParameter("NetType", netType);
|
||||
}
|
||||
|
||||
std::vector<CreateClusterTemplateRequest::HostGroup> CreateClusterTemplateRequest::getHostGroup()const
|
||||
@@ -342,24 +375,24 @@ void CreateClusterTemplateRequest::setHostGroup(const std::vector<HostGroup>& ho
|
||||
for(int i = 0; i!= hostGroup.size(); i++) {
|
||||
auto obj = hostGroup.at(i);
|
||||
std::string str ="HostGroup."+ std::to_string(i);
|
||||
setParameter(str + ".Period", std::to_string(obj.period));
|
||||
setParameter(str + ".SysDiskCapacity", std::to_string(obj.sysDiskCapacity));
|
||||
setParameter(str + ".DiskCapacity", std::to_string(obj.diskCapacity));
|
||||
setParameter(str + ".SysDiskType", obj.sysDiskType);
|
||||
setParameter(str + ".ClusterId", obj.clusterId);
|
||||
setParameter(str + ".DiskType", obj.diskType);
|
||||
setParameter(str + ".HostGroupName", obj.hostGroupName);
|
||||
setParameter(str + ".VSwitchId", obj.vSwitchId);
|
||||
setParameter(str + ".DiskCount", std::to_string(obj.diskCount));
|
||||
setParameter(str + ".AutoRenew", std::to_string(obj.autoRenew));
|
||||
setParameter(str + ".HostGroupId", obj.hostGroupId);
|
||||
setParameter(str + ".NodeCount", std::to_string(obj.nodeCount));
|
||||
setParameter(str + ".InstanceType", obj.instanceType);
|
||||
setParameter(str + ".Comment", obj.comment);
|
||||
setParameter(str + ".ChargeType", obj.chargeType);
|
||||
setParameter(str + ".MultiInstanceTypes", obj.multiInstanceTypes);
|
||||
setParameter(str + ".CreateType", obj.createType);
|
||||
setParameter(str + ".HostGroupType", obj.hostGroupType);
|
||||
setCoreParameter(str + ".Period", std::to_string(obj.period));
|
||||
setCoreParameter(str + ".SysDiskCapacity", std::to_string(obj.sysDiskCapacity));
|
||||
setCoreParameter(str + ".DiskCapacity", std::to_string(obj.diskCapacity));
|
||||
setCoreParameter(str + ".SysDiskType", obj.sysDiskType);
|
||||
setCoreParameter(str + ".ClusterId", obj.clusterId);
|
||||
setCoreParameter(str + ".DiskType", obj.diskType);
|
||||
setCoreParameter(str + ".HostGroupName", obj.hostGroupName);
|
||||
setCoreParameter(str + ".VSwitchId", obj.vSwitchId);
|
||||
setCoreParameter(str + ".DiskCount", std::to_string(obj.diskCount));
|
||||
setCoreParameter(str + ".AutoRenew", obj.autoRenew ? "true" : "false");
|
||||
setCoreParameter(str + ".HostGroupId", obj.hostGroupId);
|
||||
setCoreParameter(str + ".NodeCount", std::to_string(obj.nodeCount));
|
||||
setCoreParameter(str + ".InstanceType", obj.instanceType);
|
||||
setCoreParameter(str + ".Comment", obj.comment);
|
||||
setCoreParameter(str + ".ChargeType", obj.chargeType);
|
||||
setCoreParameter(str + ".MultiInstanceTypes", obj.multiInstanceTypes);
|
||||
setCoreParameter(str + ".CreateType", obj.createType);
|
||||
setCoreParameter(str + ".HostGroupType", obj.hostGroupType);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -371,7 +404,7 @@ std::string CreateClusterTemplateRequest::getZoneId()const
|
||||
void CreateClusterTemplateRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
setCoreParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
bool CreateClusterTemplateRequest::getUseCustomHiveMetaDb()const
|
||||
@@ -382,7 +415,7 @@ bool CreateClusterTemplateRequest::getUseCustomHiveMetaDb()const
|
||||
void CreateClusterTemplateRequest::setUseCustomHiveMetaDb(bool useCustomHiveMetaDb)
|
||||
{
|
||||
useCustomHiveMetaDb_ = useCustomHiveMetaDb;
|
||||
setParameter("UseCustomHiveMetaDb", std::to_string(useCustomHiveMetaDb));
|
||||
setCoreParameter("UseCustomHiveMetaDb", useCustomHiveMetaDb ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<CreateClusterTemplateRequest::Config> CreateClusterTemplateRequest::getConfig()const
|
||||
@@ -397,12 +430,12 @@ void CreateClusterTemplateRequest::setConfig(const std::vector<Config>& config)
|
||||
for(int i = 0; i!= config.size(); i++) {
|
||||
auto obj = config.at(i);
|
||||
std::string str ="Config."+ std::to_string(i);
|
||||
setParameter(str + ".ConfigKey", obj.configKey);
|
||||
setParameter(str + ".FileName", obj.fileName);
|
||||
setParameter(str + ".Encrypt", obj.encrypt);
|
||||
setParameter(str + ".Replace", obj.replace);
|
||||
setParameter(str + ".ConfigValue", obj.configValue);
|
||||
setParameter(str + ".ServiceName", obj.serviceName);
|
||||
setCoreParameter(str + ".ConfigKey", obj.configKey);
|
||||
setCoreParameter(str + ".FileName", obj.fileName);
|
||||
setCoreParameter(str + ".Encrypt", obj.encrypt);
|
||||
setCoreParameter(str + ".Replace", obj.replace);
|
||||
setCoreParameter(str + ".ConfigValue", obj.configValue);
|
||||
setCoreParameter(str + ".ServiceName", obj.serviceName);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -414,7 +447,7 @@ bool CreateClusterTemplateRequest::getHighAvailabilityEnable()const
|
||||
void CreateClusterTemplateRequest::setHighAvailabilityEnable(bool highAvailabilityEnable)
|
||||
{
|
||||
highAvailabilityEnable_ = highAvailabilityEnable;
|
||||
setParameter("HighAvailabilityEnable", std::to_string(highAvailabilityEnable));
|
||||
setCoreParameter("HighAvailabilityEnable", highAvailabilityEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateClusterTemplateRequest::getInitCustomHiveMetaDb()const
|
||||
@@ -425,6 +458,6 @@ bool CreateClusterTemplateRequest::getInitCustomHiveMetaDb()const
|
||||
void CreateClusterTemplateRequest::setInitCustomHiveMetaDb(bool initCustomHiveMetaDb)
|
||||
{
|
||||
initCustomHiveMetaDb_ = initCustomHiveMetaDb;
|
||||
setParameter("InitCustomHiveMetaDb", std::to_string(initCustomHiveMetaDb));
|
||||
setCoreParameter("InitCustomHiveMetaDb", initCustomHiveMetaDb ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateClusterTemplateResult::~CreateClusterTemplateResult()
|
||||
|
||||
void CreateClusterTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClusterTemplateId"].isNull())
|
||||
clusterTemplateId_ = value["ClusterTemplateId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ bool CreateClusterV2Request::getAutoPayOrder()const
|
||||
void CreateClusterV2Request::setAutoPayOrder(bool autoPayOrder)
|
||||
{
|
||||
autoPayOrder_ = autoPayOrder;
|
||||
setParameter("AutoPayOrder", std::to_string(autoPayOrder));
|
||||
setCoreParameter("AutoPayOrder", autoPayOrder ? "true" : "false");
|
||||
}
|
||||
|
||||
long CreateClusterV2Request::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long CreateClusterV2Request::getResourceOwnerId()const
|
||||
void CreateClusterV2Request::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getLogPath()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateClusterV2Request::getLogPath()const
|
||||
void CreateClusterV2Request::setLogPath(const std::string& logPath)
|
||||
{
|
||||
logPath_ = logPath;
|
||||
setParameter("LogPath", logPath);
|
||||
setCoreParameter("LogPath", logPath);
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getMasterPwd()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateClusterV2Request::getMasterPwd()const
|
||||
void CreateClusterV2Request::setMasterPwd(const std::string& masterPwd)
|
||||
{
|
||||
masterPwd_ = masterPwd;
|
||||
setParameter("MasterPwd", masterPwd);
|
||||
setCoreParameter("MasterPwd", masterPwd);
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getConfigurations()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateClusterV2Request::getConfigurations()const
|
||||
void CreateClusterV2Request::setConfigurations(const std::string& configurations)
|
||||
{
|
||||
configurations_ = configurations;
|
||||
setParameter("Configurations", configurations);
|
||||
setCoreParameter("Configurations", configurations);
|
||||
}
|
||||
|
||||
bool CreateClusterV2Request::getIoOptimized()const
|
||||
@@ -88,7 +88,7 @@ bool CreateClusterV2Request::getIoOptimized()const
|
||||
void CreateClusterV2Request::setIoOptimized(bool ioOptimized)
|
||||
{
|
||||
ioOptimized_ = ioOptimized;
|
||||
setParameter("IoOptimized", std::to_string(ioOptimized));
|
||||
setCoreParameter("IoOptimized", ioOptimized ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getSecurityGroupId()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateClusterV2Request::getSecurityGroupId()const
|
||||
void CreateClusterV2Request::setSecurityGroupId(const std::string& securityGroupId)
|
||||
{
|
||||
securityGroupId_ = securityGroupId;
|
||||
setParameter("SecurityGroupId", securityGroupId);
|
||||
setCoreParameter("SecurityGroupId", securityGroupId);
|
||||
}
|
||||
|
||||
bool CreateClusterV2Request::getSshEnable()const
|
||||
@@ -110,7 +110,7 @@ bool CreateClusterV2Request::getSshEnable()const
|
||||
void CreateClusterV2Request::setSshEnable(bool sshEnable)
|
||||
{
|
||||
sshEnable_ = sshEnable;
|
||||
setParameter("SshEnable", std::to_string(sshEnable));
|
||||
setCoreParameter("SshEnable", sshEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateClusterV2Request::getEasEnable()const
|
||||
@@ -121,7 +121,7 @@ bool CreateClusterV2Request::getEasEnable()const
|
||||
void CreateClusterV2Request::setEasEnable(bool easEnable)
|
||||
{
|
||||
easEnable_ = easEnable;
|
||||
setParameter("EasEnable", std::to_string(easEnable));
|
||||
setCoreParameter("EasEnable", easEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getKeyPairName()const
|
||||
@@ -132,7 +132,18 @@ std::string CreateClusterV2Request::getKeyPairName()const
|
||||
void CreateClusterV2Request::setKeyPairName(const std::string& keyPairName)
|
||||
{
|
||||
keyPairName_ = keyPairName;
|
||||
setParameter("KeyPairName", keyPairName);
|
||||
setCoreParameter("KeyPairName", keyPairName);
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getMetaStoreType()const
|
||||
{
|
||||
return metaStoreType_;
|
||||
}
|
||||
|
||||
void CreateClusterV2Request::setMetaStoreType(const std::string& metaStoreType)
|
||||
{
|
||||
metaStoreType_ = metaStoreType;
|
||||
setCoreParameter("MetaStoreType", metaStoreType);
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getSecurityGroupName()const
|
||||
@@ -143,7 +154,7 @@ std::string CreateClusterV2Request::getSecurityGroupName()const
|
||||
void CreateClusterV2Request::setSecurityGroupName(const std::string& securityGroupName)
|
||||
{
|
||||
securityGroupName_ = securityGroupName;
|
||||
setParameter("SecurityGroupName", securityGroupName);
|
||||
setCoreParameter("SecurityGroupName", securityGroupName);
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getDepositType()const
|
||||
@@ -154,7 +165,7 @@ std::string CreateClusterV2Request::getDepositType()const
|
||||
void CreateClusterV2Request::setDepositType(const std::string& depositType)
|
||||
{
|
||||
depositType_ = depositType;
|
||||
setParameter("DepositType", depositType);
|
||||
setCoreParameter("DepositType", depositType);
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getAccessKeyId()const
|
||||
@@ -165,7 +176,7 @@ std::string CreateClusterV2Request::getAccessKeyId()const
|
||||
void CreateClusterV2Request::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getMachineType()const
|
||||
@@ -176,7 +187,7 @@ std::string CreateClusterV2Request::getMachineType()const
|
||||
void CreateClusterV2Request::setMachineType(const std::string& machineType)
|
||||
{
|
||||
machineType_ = machineType;
|
||||
setParameter("MachineType", machineType);
|
||||
setCoreParameter("MachineType", machineType);
|
||||
}
|
||||
|
||||
std::vector<CreateClusterV2Request::HostComponentInfo> CreateClusterV2Request::getHostComponentInfo()const
|
||||
@@ -191,9 +202,9 @@ void CreateClusterV2Request::setHostComponentInfo(const std::vector<HostComponen
|
||||
for(int i = 0; i!= hostComponentInfo.size(); i++) {
|
||||
auto obj = hostComponentInfo.at(i);
|
||||
std::string str ="HostComponentInfo."+ std::to_string(i);
|
||||
setParameter(str + ".HostName", obj.hostName);
|
||||
for(int i = 0; i!= obj.componentNameList.size(); i++)
|
||||
setParameter(str + ".ComponentNameList."+ std::to_string(i), obj.componentNameList.at(i));
|
||||
setCoreParameter(str + ".HostName", obj.hostName);
|
||||
for(int i = 0; i!= obj.componentNameList.size(); i++)
|
||||
setCoreParameter(str + ".ComponentNameList."+ std::to_string(i), obj.componentNameList.at(i));
|
||||
setCoreParameter(str + ".ServiceName", obj.serviceName);
|
||||
}
|
||||
}
|
||||
@@ -209,9 +220,9 @@ void CreateClusterV2Request::setBootstrapAction(const std::vector<BootstrapActio
|
||||
int i = 0;
|
||||
for(int i = 0; i!= bootstrapAction.size(); i++) {
|
||||
auto obj = bootstrapAction.at(i);
|
||||
std::string str ="BootstrapAction."+ std::to_string(i);
|
||||
setParameter(str + ".Path", obj.path);
|
||||
setParameter(str + ".Arg", obj.arg);
|
||||
std::string str ="BootstrapAction."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Path", obj.path);
|
||||
setCoreParameter(str + ".Arg", obj.arg);
|
||||
setCoreParameter(str + ".Name", obj.name);
|
||||
}
|
||||
}
|
||||
@@ -223,7 +234,7 @@ std::string CreateClusterV2Request::getRegionId()const
|
||||
|
||||
void CreateClusterV2Request::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
@@ -234,7 +245,18 @@ bool CreateClusterV2Request::getUseLocalMetaDb()const
|
||||
|
||||
void CreateClusterV2Request::setUseLocalMetaDb(bool useLocalMetaDb)
|
||||
{
|
||||
useLocalMetaDb_ = useLocalMetaDb;
|
||||
useLocalMetaDb_ = useLocalMetaDb;
|
||||
setCoreParameter("UseLocalMetaDb", useLocalMetaDb ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateClusterV2Request::getMetaStoreConf()const
|
||||
{
|
||||
return metaStoreConf_;
|
||||
}
|
||||
|
||||
void CreateClusterV2Request::setMetaStoreConf(const std::string& metaStoreConf)
|
||||
{
|
||||
metaStoreConf_ = metaStoreConf;
|
||||
setCoreParameter("MetaStoreConf", metaStoreConf);
|
||||
}
|
||||
|
||||
@@ -245,7 +267,7 @@ std::string CreateClusterV2Request::getEmrVer()const
|
||||
|
||||
void CreateClusterV2Request::setEmrVer(const std::string& emrVer)
|
||||
{
|
||||
emrVer_ = emrVer;
|
||||
emrVer_ = emrVer;
|
||||
setCoreParameter("EmrVer", emrVer);
|
||||
}
|
||||
|
||||
@@ -260,9 +282,9 @@ void CreateClusterV2Request::setUserInfo(const std::vector<UserInfo>& userInfo)
|
||||
int i = 0;
|
||||
for(int i = 0; i!= userInfo.size(); i++) {
|
||||
auto obj = userInfo.at(i);
|
||||
std::string str ="UserInfo."+ std::to_string(i);
|
||||
setParameter(str + ".Password", obj.password);
|
||||
setParameter(str + ".UserId", obj.userId);
|
||||
std::string str ="UserInfo."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Password", obj.password);
|
||||
setCoreParameter(str + ".UserId", obj.userId);
|
||||
setCoreParameter(str + ".UserName", obj.userName);
|
||||
}
|
||||
}
|
||||
@@ -274,7 +296,7 @@ std::string CreateClusterV2Request::getUserDefinedEmrEcsRole()const
|
||||
|
||||
void CreateClusterV2Request::setUserDefinedEmrEcsRole(const std::string& userDefinedEmrEcsRole)
|
||||
{
|
||||
userDefinedEmrEcsRole_ = userDefinedEmrEcsRole;
|
||||
userDefinedEmrEcsRole_ = userDefinedEmrEcsRole;
|
||||
setCoreParameter("UserDefinedEmrEcsRole", userDefinedEmrEcsRole);
|
||||
}
|
||||
|
||||
@@ -285,7 +307,7 @@ std::string CreateClusterV2Request::getAuthorizeContent()const
|
||||
|
||||
void CreateClusterV2Request::setAuthorizeContent(const std::string& authorizeContent)
|
||||
{
|
||||
authorizeContent_ = authorizeContent;
|
||||
authorizeContent_ = authorizeContent;
|
||||
setCoreParameter("AuthorizeContent", authorizeContent);
|
||||
}
|
||||
|
||||
@@ -296,7 +318,7 @@ bool CreateClusterV2Request::getIsOpenPublicIp()const
|
||||
|
||||
void CreateClusterV2Request::setIsOpenPublicIp(bool isOpenPublicIp)
|
||||
{
|
||||
isOpenPublicIp_ = isOpenPublicIp;
|
||||
isOpenPublicIp_ = isOpenPublicIp;
|
||||
setCoreParameter("IsOpenPublicIp", isOpenPublicIp ? "true" : "false");
|
||||
}
|
||||
|
||||
@@ -307,7 +329,7 @@ int CreateClusterV2Request::getPeriod()const
|
||||
|
||||
void CreateClusterV2Request::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
period_ = period;
|
||||
setCoreParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
@@ -318,7 +340,7 @@ std::string CreateClusterV2Request::getWhiteListType()const
|
||||
|
||||
void CreateClusterV2Request::setWhiteListType(const std::string& whiteListType)
|
||||
{
|
||||
whiteListType_ = whiteListType;
|
||||
whiteListType_ = whiteListType;
|
||||
setCoreParameter("WhiteListType", whiteListType);
|
||||
}
|
||||
|
||||
@@ -329,7 +351,7 @@ std::string CreateClusterV2Request::getRelatedClusterId()const
|
||||
|
||||
void CreateClusterV2Request::setRelatedClusterId(const std::string& relatedClusterId)
|
||||
{
|
||||
relatedClusterId_ = relatedClusterId;
|
||||
relatedClusterId_ = relatedClusterId;
|
||||
setCoreParameter("RelatedClusterId", relatedClusterId);
|
||||
}
|
||||
|
||||
@@ -340,7 +362,7 @@ std::string CreateClusterV2Request::getInstanceGeneration()const
|
||||
|
||||
void CreateClusterV2Request::setInstanceGeneration(const std::string& instanceGeneration)
|
||||
{
|
||||
instanceGeneration_ = instanceGeneration;
|
||||
instanceGeneration_ = instanceGeneration;
|
||||
setCoreParameter("InstanceGeneration", instanceGeneration);
|
||||
}
|
||||
|
||||
@@ -351,7 +373,7 @@ std::string CreateClusterV2Request::getVSwitchId()const
|
||||
|
||||
void CreateClusterV2Request::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
vSwitchId_ = vSwitchId;
|
||||
setCoreParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
@@ -362,7 +384,7 @@ std::string CreateClusterV2Request::getClusterType()const
|
||||
|
||||
void CreateClusterV2Request::setClusterType(const std::string& clusterType)
|
||||
{
|
||||
clusterType_ = clusterType;
|
||||
clusterType_ = clusterType;
|
||||
setCoreParameter("ClusterType", clusterType);
|
||||
}
|
||||
|
||||
@@ -373,7 +395,7 @@ bool CreateClusterV2Request::getAutoRenew()const
|
||||
|
||||
void CreateClusterV2Request::setAutoRenew(bool autoRenew)
|
||||
{
|
||||
autoRenew_ = autoRenew;
|
||||
autoRenew_ = autoRenew;
|
||||
setCoreParameter("AutoRenew", autoRenew ? "true" : "false");
|
||||
}
|
||||
|
||||
@@ -385,7 +407,7 @@ void CreateClusterV2Request::setOptionSoftWareList(const std::vector<std::string
|
||||
void CreateClusterV2Request::setOptionSoftWareList(const std::vector<std::string>& optionSoftWareList)
|
||||
{
|
||||
optionSoftWareList_ = optionSoftWareList;
|
||||
for(int i = 0; i!= optionSoftWareList.size(); i++)
|
||||
for(int i = 0; i!= optionSoftWareList.size(); i++)
|
||||
setCoreParameter("OptionSoftWareList."+ std::to_string(i), optionSoftWareList.at(i));
|
||||
}
|
||||
|
||||
@@ -396,7 +418,7 @@ std::string CreateClusterV2Request::getVpcId()const
|
||||
|
||||
void CreateClusterV2Request::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
vpcId_ = vpcId;
|
||||
setCoreParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
@@ -407,7 +429,7 @@ std::string CreateClusterV2Request::getNetType()const
|
||||
|
||||
void CreateClusterV2Request::setNetType(const std::string& netType)
|
||||
{
|
||||
netType_ = netType;
|
||||
netType_ = netType;
|
||||
setCoreParameter("NetType", netType);
|
||||
}
|
||||
|
||||
@@ -418,7 +440,7 @@ std::string CreateClusterV2Request::getName()const
|
||||
|
||||
void CreateClusterV2Request::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
@@ -433,24 +455,24 @@ void CreateClusterV2Request::setHostGroup(const std::vector<HostGroup>& hostGrou
|
||||
int i = 0;
|
||||
for(int i = 0; i!= hostGroup.size(); i++) {
|
||||
auto obj = hostGroup.at(i);
|
||||
std::string str ="HostGroup."+ std::to_string(i);
|
||||
setParameter(str + ".Period", std::to_string(obj.period));
|
||||
setParameter(str + ".SysDiskCapacity", std::to_string(obj.sysDiskCapacity));
|
||||
setParameter(str + ".DiskCapacity", std::to_string(obj.diskCapacity));
|
||||
setParameter(str + ".SysDiskType", obj.sysDiskType);
|
||||
setParameter(str + ".ClusterId", obj.clusterId);
|
||||
setParameter(str + ".DiskType", obj.diskType);
|
||||
setParameter(str + ".HostGroupName", obj.hostGroupName);
|
||||
setParameter(str + ".VSwitchId", obj.vSwitchId);
|
||||
setParameter(str + ".DiskCount", std::to_string(obj.diskCount));
|
||||
setParameter(str + ".AutoRenew", std::to_string(obj.autoRenew));
|
||||
setParameter(str + ".GpuDriver", obj.gpuDriver);
|
||||
setParameter(str + ".HostGroupId", obj.hostGroupId);
|
||||
setParameter(str + ".NodeCount", std::to_string(obj.nodeCount));
|
||||
setParameter(str + ".InstanceType", obj.instanceType);
|
||||
setParameter(str + ".Comment", obj.comment);
|
||||
setParameter(str + ".ChargeType", obj.chargeType);
|
||||
setParameter(str + ".CreateType", obj.createType);
|
||||
std::string str ="HostGroup."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Period", std::to_string(obj.period));
|
||||
setCoreParameter(str + ".SysDiskCapacity", std::to_string(obj.sysDiskCapacity));
|
||||
setCoreParameter(str + ".DiskCapacity", std::to_string(obj.diskCapacity));
|
||||
setCoreParameter(str + ".SysDiskType", obj.sysDiskType);
|
||||
setCoreParameter(str + ".ClusterId", obj.clusterId);
|
||||
setCoreParameter(str + ".DiskType", obj.diskType);
|
||||
setCoreParameter(str + ".HostGroupName", obj.hostGroupName);
|
||||
setCoreParameter(str + ".VSwitchId", obj.vSwitchId);
|
||||
setCoreParameter(str + ".DiskCount", std::to_string(obj.diskCount));
|
||||
setCoreParameter(str + ".AutoRenew", obj.autoRenew ? "true" : "false");
|
||||
setCoreParameter(str + ".GpuDriver", obj.gpuDriver);
|
||||
setCoreParameter(str + ".HostGroupId", obj.hostGroupId);
|
||||
setCoreParameter(str + ".NodeCount", std::to_string(obj.nodeCount));
|
||||
setCoreParameter(str + ".InstanceType", obj.instanceType);
|
||||
setCoreParameter(str + ".Comment", obj.comment);
|
||||
setCoreParameter(str + ".ChargeType", obj.chargeType);
|
||||
setCoreParameter(str + ".CreateType", obj.createType);
|
||||
setCoreParameter(str + ".HostGroupType", obj.hostGroupType);
|
||||
}
|
||||
}
|
||||
@@ -462,7 +484,7 @@ std::string CreateClusterV2Request::getZoneId()const
|
||||
|
||||
void CreateClusterV2Request::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
zoneId_ = zoneId;
|
||||
setCoreParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
@@ -473,7 +495,7 @@ std::string CreateClusterV2Request::getChargeType()const
|
||||
|
||||
void CreateClusterV2Request::setChargeType(const std::string& chargeType)
|
||||
{
|
||||
chargeType_ = chargeType;
|
||||
chargeType_ = chargeType;
|
||||
setCoreParameter("ChargeType", chargeType);
|
||||
}
|
||||
|
||||
@@ -484,7 +506,7 @@ bool CreateClusterV2Request::getUseCustomHiveMetaDB()const
|
||||
|
||||
void CreateClusterV2Request::setUseCustomHiveMetaDB(bool useCustomHiveMetaDB)
|
||||
{
|
||||
useCustomHiveMetaDB_ = useCustomHiveMetaDB;
|
||||
useCustomHiveMetaDB_ = useCustomHiveMetaDB;
|
||||
setCoreParameter("UseCustomHiveMetaDB", useCustomHiveMetaDB ? "true" : "false");
|
||||
}
|
||||
|
||||
@@ -499,12 +521,12 @@ void CreateClusterV2Request::setConfig(const std::vector<Config>& config)
|
||||
int i = 0;
|
||||
for(int i = 0; i!= config.size(); i++) {
|
||||
auto obj = config.at(i);
|
||||
std::string str ="Config."+ std::to_string(i);
|
||||
setParameter(str + ".ConfigKey", obj.configKey);
|
||||
setParameter(str + ".FileName", obj.fileName);
|
||||
setParameter(str + ".Encrypt", obj.encrypt);
|
||||
setParameter(str + ".Replace", obj.replace);
|
||||
setParameter(str + ".ConfigValue", obj.configValue);
|
||||
std::string str ="Config."+ std::to_string(i);
|
||||
setCoreParameter(str + ".ConfigKey", obj.configKey);
|
||||
setCoreParameter(str + ".FileName", obj.fileName);
|
||||
setCoreParameter(str + ".Encrypt", obj.encrypt);
|
||||
setCoreParameter(str + ".Replace", obj.replace);
|
||||
setCoreParameter(str + ".ConfigValue", obj.configValue);
|
||||
setCoreParameter(str + ".ServiceName", obj.serviceName);
|
||||
}
|
||||
}
|
||||
@@ -516,7 +538,7 @@ bool CreateClusterV2Request::getHighAvailabilityEnable()const
|
||||
|
||||
void CreateClusterV2Request::setHighAvailabilityEnable(bool highAvailabilityEnable)
|
||||
{
|
||||
highAvailabilityEnable_ = highAvailabilityEnable;
|
||||
highAvailabilityEnable_ = highAvailabilityEnable;
|
||||
setCoreParameter("HighAvailabilityEnable", highAvailabilityEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
@@ -527,6 +549,6 @@ bool CreateClusterV2Request::getInitCustomHiveMetaDB()const
|
||||
|
||||
void CreateClusterV2Request::setInitCustomHiveMetaDB(bool initCustomHiveMetaDB)
|
||||
{
|
||||
initCustomHiveMetaDB_ = initCustomHiveMetaDB;
|
||||
initCustomHiveMetaDB_ = initCustomHiveMetaDB;
|
||||
setCoreParameter("InitCustomHiveMetaDB", initCustomHiveMetaDB ? "true" : "false");
|
||||
}
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateClusterV2Result::~CreateClusterV2Result()
|
||||
|
||||
void CreateClusterV2Result::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
|
||||
203
emr/src/model/CreateClusterWithHostPoolRequest.cc
Normal file
203
emr/src/model/CreateClusterWithHostPoolRequest.cc
Normal file
@@ -0,0 +1,203 @@
|
||||
/*
|
||||
* 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/CreateClusterWithHostPoolRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::CreateClusterWithHostPoolRequest;
|
||||
|
||||
CreateClusterWithHostPoolRequest::CreateClusterWithHostPoolRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateClusterWithHostPool")
|
||||
{}
|
||||
|
||||
CreateClusterWithHostPoolRequest::~CreateClusterWithHostPoolRequest()
|
||||
{}
|
||||
|
||||
long CreateClusterWithHostPoolRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateClusterWithHostPoolRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateClusterWithHostPoolRequest::getClusterName()const
|
||||
{
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
void CreateClusterWithHostPoolRequest::setClusterName(const std::string& clusterName)
|
||||
{
|
||||
clusterName_ = clusterName;
|
||||
setCoreParameter("ClusterName", clusterName);
|
||||
}
|
||||
|
||||
bool CreateClusterWithHostPoolRequest::getEasEnable()const
|
||||
{
|
||||
return easEnable_;
|
||||
}
|
||||
|
||||
void CreateClusterWithHostPoolRequest::setEasEnable(bool easEnable)
|
||||
{
|
||||
easEnable_ = easEnable;
|
||||
setCoreParameter("EasEnable", easEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<CreateClusterWithHostPoolRequest::HostInfo> CreateClusterWithHostPoolRequest::getHostInfo()const
|
||||
{
|
||||
return hostInfo_;
|
||||
}
|
||||
|
||||
void CreateClusterWithHostPoolRequest::setHostInfo(const std::vector<HostInfo>& hostInfo)
|
||||
{
|
||||
hostInfo_ = hostInfo;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= hostInfo.size(); i++) {
|
||||
auto obj = hostInfo.at(i);
|
||||
std::string str ="HostInfo."+ std::to_string(i);
|
||||
setCoreParameter(str + ".HpHostBizId", obj.hpHostBizId);
|
||||
setCoreParameter(str + ".HostName", obj.hostName);
|
||||
setCoreParameter(str + ".Role", obj.role);
|
||||
setCoreParameter(str + ".GroupId", std::to_string(obj.groupId));
|
||||
setCoreParameter(str + ".PrivateIp", obj.privateIp);
|
||||
setCoreParameter(str + ".ServiceComponentInfo", std::to_string(obj.serviceComponentInfo));
|
||||
setCoreParameter(str + ".HostGroupName", obj.hostGroupName);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateClusterWithHostPoolRequest::getRelatedClusterId()const
|
||||
{
|
||||
return relatedClusterId_;
|
||||
}
|
||||
|
||||
void CreateClusterWithHostPoolRequest::setRelatedClusterId(const std::string& relatedClusterId)
|
||||
{
|
||||
relatedClusterId_ = relatedClusterId;
|
||||
setCoreParameter("RelatedClusterId", relatedClusterId);
|
||||
}
|
||||
|
||||
std::string CreateClusterWithHostPoolRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateClusterWithHostPoolRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateClusterWithHostPoolRequest::getClusterType()const
|
||||
{
|
||||
return clusterType_;
|
||||
}
|
||||
|
||||
void CreateClusterWithHostPoolRequest::setClusterType(const std::string& clusterType)
|
||||
{
|
||||
clusterType_ = clusterType;
|
||||
setCoreParameter("ClusterType", clusterType);
|
||||
}
|
||||
|
||||
std::string CreateClusterWithHostPoolRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateClusterWithHostPoolRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<CreateClusterWithHostPoolRequest::HostGroup> CreateClusterWithHostPoolRequest::getHostGroup()const
|
||||
{
|
||||
return hostGroup_;
|
||||
}
|
||||
|
||||
void CreateClusterWithHostPoolRequest::setHostGroup(const std::vector<HostGroup>& hostGroup)
|
||||
{
|
||||
hostGroup_ = hostGroup;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= hostGroup.size(); i++) {
|
||||
auto obj = hostGroup.at(i);
|
||||
std::string str ="HostGroup."+ std::to_string(i);
|
||||
setCoreParameter(str + ".GroupType", obj.groupType);
|
||||
setCoreParameter(str + ".GroupId", std::to_string(obj.groupId));
|
||||
setCoreParameter(str + ".GroupName", obj.groupName);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateClusterWithHostPoolRequest::getStackName()const
|
||||
{
|
||||
return stackName_;
|
||||
}
|
||||
|
||||
void CreateClusterWithHostPoolRequest::setStackName(const std::string& stackName)
|
||||
{
|
||||
stackName_ = stackName;
|
||||
setCoreParameter("StackName", stackName);
|
||||
}
|
||||
|
||||
std::string CreateClusterWithHostPoolRequest::getStackVersion()const
|
||||
{
|
||||
return stackVersion_;
|
||||
}
|
||||
|
||||
void CreateClusterWithHostPoolRequest::setStackVersion(const std::string& stackVersion)
|
||||
{
|
||||
stackVersion_ = stackVersion;
|
||||
setCoreParameter("StackVersion", stackVersion);
|
||||
}
|
||||
|
||||
std::vector<CreateClusterWithHostPoolRequest::ServiceInfo> CreateClusterWithHostPoolRequest::getServiceInfo()const
|
||||
{
|
||||
return serviceInfo_;
|
||||
}
|
||||
|
||||
void CreateClusterWithHostPoolRequest::setServiceInfo(const std::vector<ServiceInfo>& serviceInfo)
|
||||
{
|
||||
serviceInfo_ = serviceInfo;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= serviceInfo.size(); i++) {
|
||||
auto obj = serviceInfo.at(i);
|
||||
std::string str ="ServiceInfo."+ std::to_string(i);
|
||||
setCoreParameter(str + ".ServiceEcmVersion", obj.serviceEcmVersion);
|
||||
setCoreParameter(str + ".ServiceVersion", obj.serviceVersion);
|
||||
setCoreParameter(str + ".ServiceName", obj.serviceName);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<CreateClusterWithHostPoolRequest::Config> CreateClusterWithHostPoolRequest::getConfig()const
|
||||
{
|
||||
return config_;
|
||||
}
|
||||
|
||||
void CreateClusterWithHostPoolRequest::setConfig(const std::vector<Config>& config)
|
||||
{
|
||||
config_ = config;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= config.size(); i++) {
|
||||
auto obj = config.at(i);
|
||||
std::string str ="Config."+ std::to_string(i);
|
||||
setCoreParameter(str + ".ConfigKey", obj.configKey);
|
||||
setCoreParameter(str + ".FileName", obj.fileName);
|
||||
setCoreParameter(str + ".ConfigValue", obj.configValue);
|
||||
setCoreParameter(str + ".ServiceName", obj.serviceName);
|
||||
}
|
||||
}
|
||||
|
||||
69
emr/src/model/CreateClusterWithHostPoolResult.cc
Normal file
69
emr/src/model/CreateClusterWithHostPoolResult.cc
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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/CreateClusterWithHostPoolResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
CreateClusterWithHostPoolResult::CreateClusterWithHostPoolResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateClusterWithHostPoolResult::CreateClusterWithHostPoolResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateClusterWithHostPoolResult::~CreateClusterWithHostPoolResult()
|
||||
{}
|
||||
|
||||
void CreateClusterWithHostPoolResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["WorkFlowInstanceId"].isNull())
|
||||
workFlowInstanceId_ = value["WorkFlowInstanceId"].asString();
|
||||
if(!value["OperationId"].isNull())
|
||||
operationId_ = value["OperationId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateClusterWithHostPoolResult::getWorkFlowInstanceId()const
|
||||
{
|
||||
return workFlowInstanceId_;
|
||||
}
|
||||
|
||||
std::string CreateClusterWithHostPoolResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
std::string CreateClusterWithHostPoolResult::getOperationId()const
|
||||
{
|
||||
return operationId_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateClusterWithTemplateRequest::getResourceOwnerId()const
|
||||
void CreateClusterWithTemplateRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateClusterWithTemplateRequest::getUniqueTag()const
|
||||
@@ -44,7 +44,18 @@ std::string CreateClusterWithTemplateRequest::getUniqueTag()const
|
||||
void CreateClusterWithTemplateRequest::setUniqueTag(const std::string& uniqueTag)
|
||||
{
|
||||
uniqueTag_ = uniqueTag;
|
||||
setParameter("UniqueTag", uniqueTag);
|
||||
setCoreParameter("UniqueTag", uniqueTag);
|
||||
}
|
||||
|
||||
std::string CreateClusterWithTemplateRequest::getClusterName()const
|
||||
{
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
void CreateClusterWithTemplateRequest::setClusterName(const std::string& clusterName)
|
||||
{
|
||||
clusterName_ = clusterName;
|
||||
setCoreParameter("ClusterName", clusterName);
|
||||
}
|
||||
|
||||
std::string CreateClusterWithTemplateRequest::getTemplateBizId()const
|
||||
@@ -55,7 +66,7 @@ std::string CreateClusterWithTemplateRequest::getTemplateBizId()const
|
||||
void CreateClusterWithTemplateRequest::setTemplateBizId(const std::string& templateBizId)
|
||||
{
|
||||
templateBizId_ = templateBizId;
|
||||
setParameter("TemplateBizId", templateBizId);
|
||||
setCoreParameter("TemplateBizId", templateBizId);
|
||||
}
|
||||
|
||||
std::string CreateClusterWithTemplateRequest::getAccessKeyId()const
|
||||
@@ -66,6 +77,6 @@ std::string CreateClusterWithTemplateRequest::getAccessKeyId()const
|
||||
void CreateClusterWithTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateClusterWithTemplateResult::~CreateClusterWithTemplateResult()
|
||||
|
||||
void CreateClusterWithTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateDataSourceRequest::getResourceOwnerId()const
|
||||
void CreateDataSourceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getRegionId()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateDataSourceRequest::getRegionId()const
|
||||
void CreateDataSourceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getNavParentId()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateDataSourceRequest::getNavParentId()const
|
||||
void CreateDataSourceRequest::setNavParentId(const std::string& navParentId)
|
||||
{
|
||||
navParentId_ = navParentId;
|
||||
setParameter("NavParentId", navParentId);
|
||||
setCoreParameter("NavParentId", navParentId);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getName()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateDataSourceRequest::getName()const
|
||||
void CreateDataSourceRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getDescription()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateDataSourceRequest::getDescription()const
|
||||
void CreateDataSourceRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getSourceType()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateDataSourceRequest::getSourceType()const
|
||||
void CreateDataSourceRequest::setSourceType(const std::string& sourceType)
|
||||
{
|
||||
sourceType_ = sourceType;
|
||||
setParameter("SourceType", sourceType);
|
||||
setCoreParameter("SourceType", sourceType);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getConf()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateDataSourceRequest::getConf()const
|
||||
void CreateDataSourceRequest::setConf(const std::string& conf)
|
||||
{
|
||||
conf_ = conf;
|
||||
setParameter("Conf", conf);
|
||||
setCoreParameter("Conf", conf);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getClusterId()const
|
||||
@@ -110,7 +110,7 @@ std::string CreateDataSourceRequest::getClusterId()const
|
||||
void CreateDataSourceRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getAccessKeyId()const
|
||||
@@ -121,6 +121,6 @@ std::string CreateDataSourceRequest::getAccessKeyId()const
|
||||
void CreateDataSourceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateDataSourceResult::~CreateDataSourceResult()
|
||||
|
||||
void CreateDataSourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateETLJobRequest::getResourceOwnerId()const
|
||||
void CreateETLJobRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateETLJobRequest::getRegionId()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateETLJobRequest::getRegionId()const
|
||||
void CreateETLJobRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateETLJobRequest::getNavParentId()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateETLJobRequest::getNavParentId()const
|
||||
void CreateETLJobRequest::setNavParentId(const std::string& navParentId)
|
||||
{
|
||||
navParentId_ = navParentId;
|
||||
setParameter("NavParentId", navParentId);
|
||||
setCoreParameter("NavParentId", navParentId);
|
||||
}
|
||||
|
||||
std::string CreateETLJobRequest::getName()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateETLJobRequest::getName()const
|
||||
void CreateETLJobRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateETLJobRequest::getDescription()const
|
||||
@@ -77,7 +77,18 @@ std::string CreateETLJobRequest::getDescription()const
|
||||
void CreateETLJobRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateETLJobRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateETLJobRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateETLJobRequest::getType()const
|
||||
@@ -88,7 +99,7 @@ std::string CreateETLJobRequest::getType()const
|
||||
void CreateETLJobRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateETLJobRequest::getProjectId()const
|
||||
@@ -99,7 +110,7 @@ std::string CreateETLJobRequest::getProjectId()const
|
||||
void CreateETLJobRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string CreateETLJobRequest::getAccessKeyId()const
|
||||
@@ -110,6 +121,6 @@ std::string CreateETLJobRequest::getAccessKeyId()const
|
||||
void CreateETLJobRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateETLJobResult::~CreateETLJobResult()
|
||||
|
||||
void CreateETLJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateExecutionPlanRequest::getResourceOwnerId()const
|
||||
void CreateExecutionPlanRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int CreateExecutionPlanRequest::getTimeInterval()const
|
||||
@@ -44,7 +44,7 @@ int CreateExecutionPlanRequest::getTimeInterval()const
|
||||
void CreateExecutionPlanRequest::setTimeInterval(int timeInterval)
|
||||
{
|
||||
timeInterval_ = timeInterval;
|
||||
setParameter("TimeInterval", std::to_string(timeInterval));
|
||||
setCoreParameter("TimeInterval", std::to_string(timeInterval));
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getLogPath()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateExecutionPlanRequest::getLogPath()const
|
||||
void CreateExecutionPlanRequest::setLogPath(const std::string& logPath)
|
||||
{
|
||||
logPath_ = logPath;
|
||||
setParameter("LogPath", logPath);
|
||||
setCoreParameter("LogPath", logPath);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getClusterName()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateExecutionPlanRequest::getClusterName()const
|
||||
void CreateExecutionPlanRequest::setClusterName(const std::string& clusterName)
|
||||
{
|
||||
clusterName_ = clusterName;
|
||||
setParameter("ClusterName", clusterName);
|
||||
setCoreParameter("ClusterName", clusterName);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getConfigurations()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateExecutionPlanRequest::getConfigurations()const
|
||||
void CreateExecutionPlanRequest::setConfigurations(const std::string& configurations)
|
||||
{
|
||||
configurations_ = configurations;
|
||||
setParameter("Configurations", configurations);
|
||||
setCoreParameter("Configurations", configurations);
|
||||
}
|
||||
|
||||
bool CreateExecutionPlanRequest::getIoOptimized()const
|
||||
@@ -88,7 +88,7 @@ bool CreateExecutionPlanRequest::getIoOptimized()const
|
||||
void CreateExecutionPlanRequest::setIoOptimized(bool ioOptimized)
|
||||
{
|
||||
ioOptimized_ = ioOptimized;
|
||||
setParameter("IoOptimized", std::to_string(ioOptimized));
|
||||
setCoreParameter("IoOptimized", ioOptimized ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getSecurityGroupId()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateExecutionPlanRequest::getSecurityGroupId()const
|
||||
void CreateExecutionPlanRequest::setSecurityGroupId(const std::string& securityGroupId)
|
||||
{
|
||||
securityGroupId_ = securityGroupId;
|
||||
setParameter("SecurityGroupId", securityGroupId);
|
||||
setCoreParameter("SecurityGroupId", securityGroupId);
|
||||
}
|
||||
|
||||
bool CreateExecutionPlanRequest::getEasEnable()const
|
||||
@@ -110,7 +110,7 @@ bool CreateExecutionPlanRequest::getEasEnable()const
|
||||
void CreateExecutionPlanRequest::setEasEnable(bool easEnable)
|
||||
{
|
||||
easEnable_ = easEnable;
|
||||
setParameter("EasEnable", std::to_string(easEnable));
|
||||
setCoreParameter("EasEnable", easEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateExecutionPlanRequest::getCreateClusterOnDemand()const
|
||||
@@ -121,7 +121,7 @@ bool CreateExecutionPlanRequest::getCreateClusterOnDemand()const
|
||||
void CreateExecutionPlanRequest::setCreateClusterOnDemand(bool createClusterOnDemand)
|
||||
{
|
||||
createClusterOnDemand_ = createClusterOnDemand;
|
||||
setParameter("CreateClusterOnDemand", std::to_string(createClusterOnDemand));
|
||||
setCoreParameter("CreateClusterOnDemand", createClusterOnDemand ? "true" : "false");
|
||||
}
|
||||
|
||||
long CreateExecutionPlanRequest::getStartTime()const
|
||||
@@ -132,7 +132,7 @@ long CreateExecutionPlanRequest::getStartTime()const
|
||||
void CreateExecutionPlanRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateExecutionPlanRequest::getJobIdList()const
|
||||
@@ -144,7 +144,7 @@ void CreateExecutionPlanRequest::setJobIdList(const std::vector<std::string>& jo
|
||||
{
|
||||
jobIdList_ = jobIdList;
|
||||
for(int i = 0; i!= jobIdList.size(); i++)
|
||||
setParameter("JobIdList."+ std::to_string(i), jobIdList.at(i));
|
||||
setCoreParameter("JobIdList."+ std::to_string(i), jobIdList.at(i));
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getAccessKeyId()const
|
||||
@@ -155,7 +155,7 @@ std::string CreateExecutionPlanRequest::getAccessKeyId()const
|
||||
void CreateExecutionPlanRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getDayOfMonth()const
|
||||
@@ -166,7 +166,7 @@ std::string CreateExecutionPlanRequest::getDayOfMonth()const
|
||||
void CreateExecutionPlanRequest::setDayOfMonth(const std::string& dayOfMonth)
|
||||
{
|
||||
dayOfMonth_ = dayOfMonth;
|
||||
setParameter("DayOfMonth", dayOfMonth);
|
||||
setCoreParameter("DayOfMonth", dayOfMonth);
|
||||
}
|
||||
|
||||
std::vector<CreateExecutionPlanRequest::BootstrapAction> CreateExecutionPlanRequest::getBootstrapAction()const
|
||||
@@ -181,9 +181,9 @@ void CreateExecutionPlanRequest::setBootstrapAction(const std::vector<BootstrapA
|
||||
for(int i = 0; i!= bootstrapAction.size(); i++) {
|
||||
auto obj = bootstrapAction.at(i);
|
||||
std::string str ="BootstrapAction."+ std::to_string(i);
|
||||
setParameter(str + ".Path", obj.path);
|
||||
setParameter(str + ".Arg", obj.arg);
|
||||
setParameter(str + ".Name", obj.name);
|
||||
setCoreParameter(str + ".Path", obj.path);
|
||||
setCoreParameter(str + ".Arg", obj.arg);
|
||||
setCoreParameter(str + ".Name", obj.name);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -195,7 +195,7 @@ std::string CreateExecutionPlanRequest::getRegionId()const
|
||||
void CreateExecutionPlanRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool CreateExecutionPlanRequest::getUseLocalMetaDb()const
|
||||
@@ -206,7 +206,7 @@ bool CreateExecutionPlanRequest::getUseLocalMetaDb()const
|
||||
void CreateExecutionPlanRequest::setUseLocalMetaDb(bool useLocalMetaDb)
|
||||
{
|
||||
useLocalMetaDb_ = useLocalMetaDb;
|
||||
setParameter("UseLocalMetaDb", std::to_string(useLocalMetaDb));
|
||||
setCoreParameter("UseLocalMetaDb", useLocalMetaDb ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getEmrVer()const
|
||||
@@ -217,7 +217,7 @@ std::string CreateExecutionPlanRequest::getEmrVer()const
|
||||
void CreateExecutionPlanRequest::setEmrVer(const std::string& emrVer)
|
||||
{
|
||||
emrVer_ = emrVer;
|
||||
setParameter("EmrVer", emrVer);
|
||||
setCoreParameter("EmrVer", emrVer);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getUserDefinedEmrEcsRole()const
|
||||
@@ -228,7 +228,7 @@ std::string CreateExecutionPlanRequest::getUserDefinedEmrEcsRole()const
|
||||
void CreateExecutionPlanRequest::setUserDefinedEmrEcsRole(const std::string& userDefinedEmrEcsRole)
|
||||
{
|
||||
userDefinedEmrEcsRole_ = userDefinedEmrEcsRole;
|
||||
setParameter("UserDefinedEmrEcsRole", userDefinedEmrEcsRole);
|
||||
setCoreParameter("UserDefinedEmrEcsRole", userDefinedEmrEcsRole);
|
||||
}
|
||||
|
||||
bool CreateExecutionPlanRequest::getIsOpenPublicIp()const
|
||||
@@ -239,7 +239,7 @@ bool CreateExecutionPlanRequest::getIsOpenPublicIp()const
|
||||
void CreateExecutionPlanRequest::setIsOpenPublicIp(bool isOpenPublicIp)
|
||||
{
|
||||
isOpenPublicIp_ = isOpenPublicIp;
|
||||
setParameter("IsOpenPublicIp", std::to_string(isOpenPublicIp));
|
||||
setCoreParameter("IsOpenPublicIp", isOpenPublicIp ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getClusterId()const
|
||||
@@ -250,7 +250,7 @@ std::string CreateExecutionPlanRequest::getClusterId()const
|
||||
void CreateExecutionPlanRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getTimeUnit()const
|
||||
@@ -261,7 +261,7 @@ std::string CreateExecutionPlanRequest::getTimeUnit()const
|
||||
void CreateExecutionPlanRequest::setTimeUnit(const std::string& timeUnit)
|
||||
{
|
||||
timeUnit_ = timeUnit;
|
||||
setParameter("TimeUnit", timeUnit);
|
||||
setCoreParameter("TimeUnit", timeUnit);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getInstanceGeneration()const
|
||||
@@ -272,7 +272,7 @@ std::string CreateExecutionPlanRequest::getInstanceGeneration()const
|
||||
void CreateExecutionPlanRequest::setInstanceGeneration(const std::string& instanceGeneration)
|
||||
{
|
||||
instanceGeneration_ = instanceGeneration;
|
||||
setParameter("InstanceGeneration", instanceGeneration);
|
||||
setCoreParameter("InstanceGeneration", instanceGeneration);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getClusterType()const
|
||||
@@ -283,7 +283,7 @@ std::string CreateExecutionPlanRequest::getClusterType()const
|
||||
void CreateExecutionPlanRequest::setClusterType(const std::string& clusterType)
|
||||
{
|
||||
clusterType_ = clusterType;
|
||||
setParameter("ClusterType", clusterType);
|
||||
setCoreParameter("ClusterType", clusterType);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getVSwitchId()const
|
||||
@@ -294,7 +294,7 @@ std::string CreateExecutionPlanRequest::getVSwitchId()const
|
||||
void CreateExecutionPlanRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
setCoreParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateExecutionPlanRequest::getOptionSoftWareList()const
|
||||
@@ -306,7 +306,7 @@ void CreateExecutionPlanRequest::setOptionSoftWareList(const std::vector<std::st
|
||||
{
|
||||
optionSoftWareList_ = optionSoftWareList;
|
||||
for(int i = 0; i!= optionSoftWareList.size(); i++)
|
||||
setParameter("OptionSoftWareList."+ std::to_string(i), optionSoftWareList.at(i));
|
||||
setCoreParameter("OptionSoftWareList."+ std::to_string(i), optionSoftWareList.at(i));
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getVpcId()const
|
||||
@@ -317,7 +317,7 @@ std::string CreateExecutionPlanRequest::getVpcId()const
|
||||
void CreateExecutionPlanRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
setCoreParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getNetType()const
|
||||
@@ -328,7 +328,7 @@ std::string CreateExecutionPlanRequest::getNetType()const
|
||||
void CreateExecutionPlanRequest::setNetType(const std::string& netType)
|
||||
{
|
||||
netType_ = netType;
|
||||
setParameter("NetType", netType);
|
||||
setCoreParameter("NetType", netType);
|
||||
}
|
||||
|
||||
std::vector<CreateExecutionPlanRequest::EcsOrder> CreateExecutionPlanRequest::getEcsOrder()const
|
||||
@@ -343,13 +343,13 @@ void CreateExecutionPlanRequest::setEcsOrder(const std::vector<EcsOrder>& ecsOrd
|
||||
for(int i = 0; i!= ecsOrder.size(); i++) {
|
||||
auto obj = ecsOrder.at(i);
|
||||
std::string str ="EcsOrder."+ std::to_string(i);
|
||||
setParameter(str + ".NodeType", obj.nodeType);
|
||||
setParameter(str + ".DiskCount", std::to_string(obj.diskCount));
|
||||
setParameter(str + ".NodeCount", std::to_string(obj.nodeCount));
|
||||
setParameter(str + ".DiskCapacity", std::to_string(obj.diskCapacity));
|
||||
setParameter(str + ".Index", std::to_string(obj.index));
|
||||
setParameter(str + ".InstanceType", obj.instanceType);
|
||||
setParameter(str + ".DiskType", obj.diskType);
|
||||
setCoreParameter(str + ".NodeType", obj.nodeType);
|
||||
setCoreParameter(str + ".DiskCount", std::to_string(obj.diskCount));
|
||||
setCoreParameter(str + ".NodeCount", std::to_string(obj.nodeCount));
|
||||
setCoreParameter(str + ".DiskCapacity", std::to_string(obj.diskCapacity));
|
||||
setCoreParameter(str + ".Index", std::to_string(obj.index));
|
||||
setCoreParameter(str + ".InstanceType", obj.instanceType);
|
||||
setCoreParameter(str + ".DiskType", obj.diskType);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -361,7 +361,7 @@ std::string CreateExecutionPlanRequest::getWorkflowDefinition()const
|
||||
void CreateExecutionPlanRequest::setWorkflowDefinition(const std::string& workflowDefinition)
|
||||
{
|
||||
workflowDefinition_ = workflowDefinition;
|
||||
setParameter("WorkflowDefinition", workflowDefinition);
|
||||
setCoreParameter("WorkflowDefinition", workflowDefinition);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getName()const
|
||||
@@ -372,7 +372,7 @@ std::string CreateExecutionPlanRequest::getName()const
|
||||
void CreateExecutionPlanRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getDayOfWeek()const
|
||||
@@ -383,7 +383,7 @@ std::string CreateExecutionPlanRequest::getDayOfWeek()const
|
||||
void CreateExecutionPlanRequest::setDayOfWeek(const std::string& dayOfWeek)
|
||||
{
|
||||
dayOfWeek_ = dayOfWeek;
|
||||
setParameter("DayOfWeek", dayOfWeek);
|
||||
setCoreParameter("DayOfWeek", dayOfWeek);
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getZoneId()const
|
||||
@@ -394,7 +394,7 @@ std::string CreateExecutionPlanRequest::getZoneId()const
|
||||
void CreateExecutionPlanRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
setCoreParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
bool CreateExecutionPlanRequest::getUseCustomHiveMetaDB()const
|
||||
@@ -405,7 +405,7 @@ bool CreateExecutionPlanRequest::getUseCustomHiveMetaDB()const
|
||||
void CreateExecutionPlanRequest::setUseCustomHiveMetaDB(bool useCustomHiveMetaDB)
|
||||
{
|
||||
useCustomHiveMetaDB_ = useCustomHiveMetaDB;
|
||||
setParameter("UseCustomHiveMetaDB", std::to_string(useCustomHiveMetaDB));
|
||||
setCoreParameter("UseCustomHiveMetaDB", useCustomHiveMetaDB ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateExecutionPlanRequest::getStrategy()const
|
||||
@@ -416,7 +416,7 @@ std::string CreateExecutionPlanRequest::getStrategy()const
|
||||
void CreateExecutionPlanRequest::setStrategy(const std::string& strategy)
|
||||
{
|
||||
strategy_ = strategy;
|
||||
setParameter("Strategy", strategy);
|
||||
setCoreParameter("Strategy", strategy);
|
||||
}
|
||||
|
||||
std::vector<CreateExecutionPlanRequest::Config> CreateExecutionPlanRequest::getConfig()const
|
||||
@@ -431,12 +431,12 @@ void CreateExecutionPlanRequest::setConfig(const std::vector<Config>& config)
|
||||
for(int i = 0; i!= config.size(); i++) {
|
||||
auto obj = config.at(i);
|
||||
std::string str ="Config."+ std::to_string(i);
|
||||
setParameter(str + ".ConfigKey", obj.configKey);
|
||||
setParameter(str + ".FileName", obj.fileName);
|
||||
setParameter(str + ".Encrypt", obj.encrypt);
|
||||
setParameter(str + ".Replace", obj.replace);
|
||||
setParameter(str + ".ConfigValue", obj.configValue);
|
||||
setParameter(str + ".ServiceName", obj.serviceName);
|
||||
setCoreParameter(str + ".ConfigKey", obj.configKey);
|
||||
setCoreParameter(str + ".FileName", obj.fileName);
|
||||
setCoreParameter(str + ".Encrypt", obj.encrypt);
|
||||
setCoreParameter(str + ".Replace", obj.replace);
|
||||
setCoreParameter(str + ".ConfigValue", obj.configValue);
|
||||
setCoreParameter(str + ".ServiceName", obj.serviceName);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -448,7 +448,7 @@ bool CreateExecutionPlanRequest::getHighAvailabilityEnable()const
|
||||
void CreateExecutionPlanRequest::setHighAvailabilityEnable(bool highAvailabilityEnable)
|
||||
{
|
||||
highAvailabilityEnable_ = highAvailabilityEnable;
|
||||
setParameter("HighAvailabilityEnable", std::to_string(highAvailabilityEnable));
|
||||
setCoreParameter("HighAvailabilityEnable", highAvailabilityEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateExecutionPlanRequest::getInitCustomHiveMetaDB()const
|
||||
@@ -459,7 +459,7 @@ bool CreateExecutionPlanRequest::getInitCustomHiveMetaDB()const
|
||||
void CreateExecutionPlanRequest::setInitCustomHiveMetaDB(bool initCustomHiveMetaDB)
|
||||
{
|
||||
initCustomHiveMetaDB_ = initCustomHiveMetaDB;
|
||||
setParameter("InitCustomHiveMetaDB", std::to_string(initCustomHiveMetaDB));
|
||||
setCoreParameter("InitCustomHiveMetaDB", initCustomHiveMetaDB ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateExecutionPlanRequest::getLogEnable()const
|
||||
@@ -470,6 +470,6 @@ bool CreateExecutionPlanRequest::getLogEnable()const
|
||||
void CreateExecutionPlanRequest::setLogEnable(bool logEnable)
|
||||
{
|
||||
logEnable_ = logEnable;
|
||||
setParameter("LogEnable", std::to_string(logEnable));
|
||||
setCoreParameter("LogEnable", logEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateExecutionPlanResult::~CreateExecutionPlanResult()
|
||||
|
||||
void CreateExecutionPlanResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateFlowCategoryRequest::getRegionId()const
|
||||
void CreateFlowCategoryRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateFlowCategoryRequest::getName()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateFlowCategoryRequest::getName()const
|
||||
void CreateFlowCategoryRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateFlowCategoryRequest::getType()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateFlowCategoryRequest::getType()const
|
||||
void CreateFlowCategoryRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateFlowCategoryRequest::getProjectId()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateFlowCategoryRequest::getProjectId()const
|
||||
void CreateFlowCategoryRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string CreateFlowCategoryRequest::getParentId()const
|
||||
@@ -77,6 +77,6 @@ std::string CreateFlowCategoryRequest::getParentId()const
|
||||
void CreateFlowCategoryRequest::setParentId(const std::string& parentId)
|
||||
{
|
||||
parentId_ = parentId;
|
||||
setParameter("ParentId", parentId);
|
||||
setCoreParameter("ParentId", parentId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateFlowCategoryResult::~CreateFlowCategoryResult()
|
||||
|
||||
void CreateFlowCategoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateFlowForWebRequest::getCronExpr()const
|
||||
void CreateFlowForWebRequest::setCronExpr(const std::string& cronExpr)
|
||||
{
|
||||
cronExpr_ = cronExpr;
|
||||
setParameter("CronExpr", cronExpr);
|
||||
setCoreParameter("CronExpr", cronExpr);
|
||||
}
|
||||
|
||||
std::string CreateFlowForWebRequest::getParentFlowList()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateFlowForWebRequest::getParentFlowList()const
|
||||
void CreateFlowForWebRequest::setParentFlowList(const std::string& parentFlowList)
|
||||
{
|
||||
parentFlowList_ = parentFlowList;
|
||||
setParameter("ParentFlowList", parentFlowList);
|
||||
setCoreParameter("ParentFlowList", parentFlowList);
|
||||
}
|
||||
|
||||
std::string CreateFlowForWebRequest::getAlertDingDingGroupBizId()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateFlowForWebRequest::getAlertDingDingGroupBizId()const
|
||||
void CreateFlowForWebRequest::setAlertDingDingGroupBizId(const std::string& alertDingDingGroupBizId)
|
||||
{
|
||||
alertDingDingGroupBizId_ = alertDingDingGroupBizId;
|
||||
setParameter("AlertDingDingGroupBizId", alertDingDingGroupBizId);
|
||||
setCoreParameter("AlertDingDingGroupBizId", alertDingDingGroupBizId);
|
||||
}
|
||||
|
||||
long CreateFlowForWebRequest::getStartSchedule()const
|
||||
@@ -66,7 +66,7 @@ long CreateFlowForWebRequest::getStartSchedule()const
|
||||
void CreateFlowForWebRequest::setStartSchedule(long startSchedule)
|
||||
{
|
||||
startSchedule_ = startSchedule;
|
||||
setParameter("StartSchedule", std::to_string(startSchedule));
|
||||
setCoreParameter("StartSchedule", std::to_string(startSchedule));
|
||||
}
|
||||
|
||||
std::string CreateFlowForWebRequest::getDescription()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateFlowForWebRequest::getDescription()const
|
||||
void CreateFlowForWebRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateFlowForWebRequest::getClusterId()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateFlowForWebRequest::getClusterId()const
|
||||
void CreateFlowForWebRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateFlowForWebRequest::getAlertUserGroupBizId()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateFlowForWebRequest::getAlertUserGroupBizId()const
|
||||
void CreateFlowForWebRequest::setAlertUserGroupBizId(const std::string& alertUserGroupBizId)
|
||||
{
|
||||
alertUserGroupBizId_ = alertUserGroupBizId;
|
||||
setParameter("AlertUserGroupBizId", alertUserGroupBizId);
|
||||
setCoreParameter("AlertUserGroupBizId", alertUserGroupBizId);
|
||||
}
|
||||
|
||||
std::string CreateFlowForWebRequest::getGraph()const
|
||||
@@ -110,7 +110,7 @@ std::string CreateFlowForWebRequest::getGraph()const
|
||||
void CreateFlowForWebRequest::setGraph(const std::string& graph)
|
||||
{
|
||||
graph_ = graph;
|
||||
setParameter("Graph", graph);
|
||||
setCoreParameter("Graph", graph);
|
||||
}
|
||||
|
||||
std::string CreateFlowForWebRequest::getHostName()const
|
||||
@@ -121,7 +121,7 @@ std::string CreateFlowForWebRequest::getHostName()const
|
||||
void CreateFlowForWebRequest::setHostName(const std::string& hostName)
|
||||
{
|
||||
hostName_ = hostName;
|
||||
setParameter("HostName", hostName);
|
||||
setCoreParameter("HostName", hostName);
|
||||
}
|
||||
|
||||
std::string CreateFlowForWebRequest::getRegionId()const
|
||||
@@ -132,7 +132,7 @@ std::string CreateFlowForWebRequest::getRegionId()const
|
||||
void CreateFlowForWebRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool CreateFlowForWebRequest::getCreateCluster()const
|
||||
@@ -143,7 +143,7 @@ bool CreateFlowForWebRequest::getCreateCluster()const
|
||||
void CreateFlowForWebRequest::setCreateCluster(bool createCluster)
|
||||
{
|
||||
createCluster_ = createCluster;
|
||||
setParameter("CreateCluster", std::to_string(createCluster));
|
||||
setCoreParameter("CreateCluster", createCluster ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateFlowForWebRequest::getName()const
|
||||
@@ -154,7 +154,7 @@ std::string CreateFlowForWebRequest::getName()const
|
||||
void CreateFlowForWebRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
long CreateFlowForWebRequest::getEndSchedule()const
|
||||
@@ -165,7 +165,7 @@ long CreateFlowForWebRequest::getEndSchedule()const
|
||||
void CreateFlowForWebRequest::setEndSchedule(long endSchedule)
|
||||
{
|
||||
endSchedule_ = endSchedule;
|
||||
setParameter("EndSchedule", std::to_string(endSchedule));
|
||||
setCoreParameter("EndSchedule", std::to_string(endSchedule));
|
||||
}
|
||||
|
||||
std::string CreateFlowForWebRequest::getAlertConf()const
|
||||
@@ -176,7 +176,7 @@ std::string CreateFlowForWebRequest::getAlertConf()const
|
||||
void CreateFlowForWebRequest::setAlertConf(const std::string& alertConf)
|
||||
{
|
||||
alertConf_ = alertConf;
|
||||
setParameter("AlertConf", alertConf);
|
||||
setCoreParameter("AlertConf", alertConf);
|
||||
}
|
||||
|
||||
std::string CreateFlowForWebRequest::getProjectId()const
|
||||
@@ -187,7 +187,7 @@ std::string CreateFlowForWebRequest::getProjectId()const
|
||||
void CreateFlowForWebRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string CreateFlowForWebRequest::getParentCategory()const
|
||||
@@ -198,6 +198,6 @@ std::string CreateFlowForWebRequest::getParentCategory()const
|
||||
void CreateFlowForWebRequest::setParentCategory(const std::string& parentCategory)
|
||||
{
|
||||
parentCategory_ = parentCategory;
|
||||
setParameter("ParentCategory", parentCategory);
|
||||
setCoreParameter("ParentCategory", parentCategory);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateFlowForWebResult::~CreateFlowForWebResult()
|
||||
|
||||
void CreateFlowForWebResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateFlowJobRequest::getRunConf()const
|
||||
void CreateFlowJobRequest::setRunConf(const std::string& runConf)
|
||||
{
|
||||
runConf_ = runConf;
|
||||
setParameter("RunConf", runConf);
|
||||
setCoreParameter("RunConf", runConf);
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getEnvConf()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateFlowJobRequest::getEnvConf()const
|
||||
void CreateFlowJobRequest::setEnvConf(const std::string& envConf)
|
||||
{
|
||||
envConf_ = envConf;
|
||||
setParameter("EnvConf", envConf);
|
||||
setCoreParameter("EnvConf", envConf);
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getDescription()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateFlowJobRequest::getDescription()const
|
||||
void CreateFlowJobRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getClusterId()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateFlowJobRequest::getClusterId()const
|
||||
void CreateFlowJobRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getType()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateFlowJobRequest::getType()const
|
||||
void CreateFlowJobRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getParams()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateFlowJobRequest::getParams()const
|
||||
void CreateFlowJobRequest::setParams(const std::string& params)
|
||||
{
|
||||
params_ = params;
|
||||
setParameter("Params", params);
|
||||
setCoreParameter("Params", params);
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getParamConf()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateFlowJobRequest::getParamConf()const
|
||||
void CreateFlowJobRequest::setParamConf(const std::string& paramConf)
|
||||
{
|
||||
paramConf_ = paramConf;
|
||||
setParameter("ParamConf", paramConf);
|
||||
setCoreParameter("ParamConf", paramConf);
|
||||
}
|
||||
|
||||
std::vector<CreateFlowJobRequest::ResourceList> CreateFlowJobRequest::getResourceList()const
|
||||
@@ -114,8 +114,8 @@ void CreateFlowJobRequest::setResourceList(const std::vector<ResourceList>& reso
|
||||
for(int i = 0; i!= resourceList.size(); i++) {
|
||||
auto obj = resourceList.at(i);
|
||||
std::string str ="ResourceList."+ std::to_string(i);
|
||||
setParameter(str + ".Path", obj.path);
|
||||
setParameter(str + ".Alias", obj.alias);
|
||||
setCoreParameter(str + ".Path", obj.path);
|
||||
setCoreParameter(str + ".Alias", obj.alias);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ std::string CreateFlowJobRequest::getFailAct()const
|
||||
void CreateFlowJobRequest::setFailAct(const std::string& failAct)
|
||||
{
|
||||
failAct_ = failAct;
|
||||
setParameter("FailAct", failAct);
|
||||
setCoreParameter("FailAct", failAct);
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getMode()const
|
||||
@@ -138,7 +138,7 @@ std::string CreateFlowJobRequest::getMode()const
|
||||
void CreateFlowJobRequest::setMode(const std::string& mode)
|
||||
{
|
||||
mode_ = mode;
|
||||
setParameter("Mode", mode);
|
||||
setCoreParameter("Mode", mode);
|
||||
}
|
||||
|
||||
long CreateFlowJobRequest::getRetryInterval()const
|
||||
@@ -149,7 +149,7 @@ long CreateFlowJobRequest::getRetryInterval()const
|
||||
void CreateFlowJobRequest::setRetryInterval(long retryInterval)
|
||||
{
|
||||
retryInterval_ = retryInterval;
|
||||
setParameter("RetryInterval", std::to_string(retryInterval));
|
||||
setCoreParameter("RetryInterval", std::to_string(retryInterval));
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getMonitorConf()const
|
||||
@@ -160,7 +160,7 @@ std::string CreateFlowJobRequest::getMonitorConf()const
|
||||
void CreateFlowJobRequest::setMonitorConf(const std::string& monitorConf)
|
||||
{
|
||||
monitorConf_ = monitorConf;
|
||||
setParameter("MonitorConf", monitorConf);
|
||||
setCoreParameter("MonitorConf", monitorConf);
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getRegionId()const
|
||||
@@ -171,7 +171,7 @@ std::string CreateFlowJobRequest::getRegionId()const
|
||||
void CreateFlowJobRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getName()const
|
||||
@@ -182,7 +182,7 @@ std::string CreateFlowJobRequest::getName()const
|
||||
void CreateFlowJobRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
int CreateFlowJobRequest::getMaxRetry()const
|
||||
@@ -193,7 +193,7 @@ int CreateFlowJobRequest::getMaxRetry()const
|
||||
void CreateFlowJobRequest::setMaxRetry(int maxRetry)
|
||||
{
|
||||
maxRetry_ = maxRetry;
|
||||
setParameter("MaxRetry", std::to_string(maxRetry));
|
||||
setCoreParameter("MaxRetry", std::to_string(maxRetry));
|
||||
}
|
||||
|
||||
bool CreateFlowJobRequest::getAdhoc()const
|
||||
@@ -204,7 +204,7 @@ bool CreateFlowJobRequest::getAdhoc()const
|
||||
void CreateFlowJobRequest::setAdhoc(bool adhoc)
|
||||
{
|
||||
adhoc_ = adhoc;
|
||||
setParameter("Adhoc", std::to_string(adhoc));
|
||||
setCoreParameter("Adhoc", adhoc ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getAlertConf()const
|
||||
@@ -215,7 +215,7 @@ std::string CreateFlowJobRequest::getAlertConf()const
|
||||
void CreateFlowJobRequest::setAlertConf(const std::string& alertConf)
|
||||
{
|
||||
alertConf_ = alertConf;
|
||||
setParameter("AlertConf", alertConf);
|
||||
setCoreParameter("AlertConf", alertConf);
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getProjectId()const
|
||||
@@ -226,7 +226,7 @@ std::string CreateFlowJobRequest::getProjectId()const
|
||||
void CreateFlowJobRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string CreateFlowJobRequest::getParentCategory()const
|
||||
@@ -237,6 +237,6 @@ std::string CreateFlowJobRequest::getParentCategory()const
|
||||
void CreateFlowJobRequest::setParentCategory(const std::string& parentCategory)
|
||||
{
|
||||
parentCategory_ = parentCategory;
|
||||
setParameter("ParentCategory", parentCategory);
|
||||
setCoreParameter("ParentCategory", parentCategory);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateFlowJobResult::~CreateFlowJobResult()
|
||||
|
||||
void CreateFlowJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
|
||||
@@ -34,7 +34,7 @@ void CreateFlowProjectClusterSettingRequest::setUserList(const std::vector<std::
|
||||
{
|
||||
userList_ = userList;
|
||||
for(int i = 0; i!= userList.size(); i++)
|
||||
setParameter("UserList."+ std::to_string(i), userList.at(i));
|
||||
setCoreParameter("UserList."+ std::to_string(i), userList.at(i));
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateFlowProjectClusterSettingRequest::getQueueList()const
|
||||
@@ -46,7 +46,7 @@ void CreateFlowProjectClusterSettingRequest::setQueueList(const std::vector<std:
|
||||
{
|
||||
queueList_ = queueList;
|
||||
for(int i = 0; i!= queueList.size(); i++)
|
||||
setParameter("QueueList."+ std::to_string(i), queueList.at(i));
|
||||
setCoreParameter("QueueList."+ std::to_string(i), queueList.at(i));
|
||||
}
|
||||
|
||||
std::string CreateFlowProjectClusterSettingRequest::getRegionId()const
|
||||
@@ -57,7 +57,7 @@ std::string CreateFlowProjectClusterSettingRequest::getRegionId()const
|
||||
void CreateFlowProjectClusterSettingRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateFlowProjectClusterSettingRequest::getHostList()const
|
||||
@@ -69,7 +69,7 @@ void CreateFlowProjectClusterSettingRequest::setHostList(const std::vector<std::
|
||||
{
|
||||
hostList_ = hostList;
|
||||
for(int i = 0; i!= hostList.size(); i++)
|
||||
setParameter("HostList."+ std::to_string(i), hostList.at(i));
|
||||
setCoreParameter("HostList."+ std::to_string(i), hostList.at(i));
|
||||
}
|
||||
|
||||
std::string CreateFlowProjectClusterSettingRequest::getClusterId()const
|
||||
@@ -80,7 +80,7 @@ std::string CreateFlowProjectClusterSettingRequest::getClusterId()const
|
||||
void CreateFlowProjectClusterSettingRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateFlowProjectClusterSettingRequest::getDefaultQueue()const
|
||||
@@ -91,7 +91,7 @@ std::string CreateFlowProjectClusterSettingRequest::getDefaultQueue()const
|
||||
void CreateFlowProjectClusterSettingRequest::setDefaultQueue(const std::string& defaultQueue)
|
||||
{
|
||||
defaultQueue_ = defaultQueue;
|
||||
setParameter("DefaultQueue", defaultQueue);
|
||||
setCoreParameter("DefaultQueue", defaultQueue);
|
||||
}
|
||||
|
||||
std::string CreateFlowProjectClusterSettingRequest::getProjectId()const
|
||||
@@ -102,7 +102,7 @@ std::string CreateFlowProjectClusterSettingRequest::getProjectId()const
|
||||
void CreateFlowProjectClusterSettingRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string CreateFlowProjectClusterSettingRequest::getDefaultUser()const
|
||||
@@ -113,6 +113,6 @@ std::string CreateFlowProjectClusterSettingRequest::getDefaultUser()const
|
||||
void CreateFlowProjectClusterSettingRequest::setDefaultUser(const std::string& defaultUser)
|
||||
{
|
||||
defaultUser_ = defaultUser;
|
||||
setParameter("DefaultUser", defaultUser);
|
||||
setCoreParameter("DefaultUser", defaultUser);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateFlowProjectClusterSettingResult::~CreateFlowProjectClusterSettingResult()
|
||||
|
||||
void CreateFlowProjectClusterSettingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateFlowProjectRequest::getRegionId()const
|
||||
void CreateFlowProjectRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateFlowProjectRequest::getName()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateFlowProjectRequest::getName()const
|
||||
void CreateFlowProjectRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateFlowProjectRequest::getDescription()const
|
||||
@@ -55,6 +55,6 @@ std::string CreateFlowProjectRequest::getDescription()const
|
||||
void CreateFlowProjectRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateFlowProjectResult::~CreateFlowProjectResult()
|
||||
|
||||
void CreateFlowProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateFlowProjectUserRequest::getRegionId()const
|
||||
void CreateFlowProjectUserRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateFlowProjectUserRequest::getProjectId()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateFlowProjectUserRequest::getProjectId()const
|
||||
void CreateFlowProjectUserRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::vector<CreateFlowProjectUserRequest::User> CreateFlowProjectUserRequest::getUser()const
|
||||
@@ -59,8 +59,8 @@ void CreateFlowProjectUserRequest::setUser(const std::vector<User>& user)
|
||||
for(int i = 0; i!= user.size(); i++) {
|
||||
auto obj = user.at(i);
|
||||
std::string str ="User."+ std::to_string(i);
|
||||
setParameter(str + ".UserId", obj.userId);
|
||||
setParameter(str + ".UserName", obj.userName);
|
||||
setCoreParameter(str + ".UserId", obj.userId);
|
||||
setCoreParameter(str + ".UserName", obj.userName);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateFlowProjectUserResult::~CreateFlowProjectUserResult()
|
||||
|
||||
void CreateFlowProjectUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateFlowRequest::getCronExpr()const
|
||||
void CreateFlowRequest::setCronExpr(const std::string& cronExpr)
|
||||
{
|
||||
cronExpr_ = cronExpr;
|
||||
setParameter("CronExpr", cronExpr);
|
||||
setCoreParameter("CronExpr", cronExpr);
|
||||
}
|
||||
|
||||
std::string CreateFlowRequest::getParentFlowList()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateFlowRequest::getParentFlowList()const
|
||||
void CreateFlowRequest::setParentFlowList(const std::string& parentFlowList)
|
||||
{
|
||||
parentFlowList_ = parentFlowList;
|
||||
setParameter("ParentFlowList", parentFlowList);
|
||||
setCoreParameter("ParentFlowList", parentFlowList);
|
||||
}
|
||||
|
||||
std::string CreateFlowRequest::getAlertDingDingGroupBizId()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateFlowRequest::getAlertDingDingGroupBizId()const
|
||||
void CreateFlowRequest::setAlertDingDingGroupBizId(const std::string& alertDingDingGroupBizId)
|
||||
{
|
||||
alertDingDingGroupBizId_ = alertDingDingGroupBizId;
|
||||
setParameter("AlertDingDingGroupBizId", alertDingDingGroupBizId);
|
||||
setCoreParameter("AlertDingDingGroupBizId", alertDingDingGroupBizId);
|
||||
}
|
||||
|
||||
long CreateFlowRequest::getStartSchedule()const
|
||||
@@ -66,7 +66,7 @@ long CreateFlowRequest::getStartSchedule()const
|
||||
void CreateFlowRequest::setStartSchedule(long startSchedule)
|
||||
{
|
||||
startSchedule_ = startSchedule;
|
||||
setParameter("StartSchedule", std::to_string(startSchedule));
|
||||
setCoreParameter("StartSchedule", std::to_string(startSchedule));
|
||||
}
|
||||
|
||||
std::string CreateFlowRequest::getDescription()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateFlowRequest::getDescription()const
|
||||
void CreateFlowRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateFlowRequest::getClusterId()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateFlowRequest::getClusterId()const
|
||||
void CreateFlowRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateFlowRequest::getAlertUserGroupBizId()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateFlowRequest::getAlertUserGroupBizId()const
|
||||
void CreateFlowRequest::setAlertUserGroupBizId(const std::string& alertUserGroupBizId)
|
||||
{
|
||||
alertUserGroupBizId_ = alertUserGroupBizId;
|
||||
setParameter("AlertUserGroupBizId", alertUserGroupBizId);
|
||||
setCoreParameter("AlertUserGroupBizId", alertUserGroupBizId);
|
||||
}
|
||||
|
||||
std::string CreateFlowRequest::getHostName()const
|
||||
@@ -110,7 +110,7 @@ std::string CreateFlowRequest::getHostName()const
|
||||
void CreateFlowRequest::setHostName(const std::string& hostName)
|
||||
{
|
||||
hostName_ = hostName;
|
||||
setParameter("HostName", hostName);
|
||||
setCoreParameter("HostName", hostName);
|
||||
}
|
||||
|
||||
std::string CreateFlowRequest::getApplication()const
|
||||
@@ -121,7 +121,7 @@ std::string CreateFlowRequest::getApplication()const
|
||||
void CreateFlowRequest::setApplication(const std::string& application)
|
||||
{
|
||||
application_ = application;
|
||||
setParameter("Application", application);
|
||||
setCoreParameter("Application", application);
|
||||
}
|
||||
|
||||
std::string CreateFlowRequest::getRegionId()const
|
||||
@@ -132,7 +132,7 @@ std::string CreateFlowRequest::getRegionId()const
|
||||
void CreateFlowRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool CreateFlowRequest::getCreateCluster()const
|
||||
@@ -143,7 +143,7 @@ bool CreateFlowRequest::getCreateCluster()const
|
||||
void CreateFlowRequest::setCreateCluster(bool createCluster)
|
||||
{
|
||||
createCluster_ = createCluster;
|
||||
setParameter("CreateCluster", std::to_string(createCluster));
|
||||
setCoreParameter("CreateCluster", createCluster ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateFlowRequest::getName()const
|
||||
@@ -154,7 +154,7 @@ std::string CreateFlowRequest::getName()const
|
||||
void CreateFlowRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
long CreateFlowRequest::getEndSchedule()const
|
||||
@@ -165,7 +165,7 @@ long CreateFlowRequest::getEndSchedule()const
|
||||
void CreateFlowRequest::setEndSchedule(long endSchedule)
|
||||
{
|
||||
endSchedule_ = endSchedule;
|
||||
setParameter("EndSchedule", std::to_string(endSchedule));
|
||||
setCoreParameter("EndSchedule", std::to_string(endSchedule));
|
||||
}
|
||||
|
||||
std::string CreateFlowRequest::getAlertConf()const
|
||||
@@ -176,7 +176,7 @@ std::string CreateFlowRequest::getAlertConf()const
|
||||
void CreateFlowRequest::setAlertConf(const std::string& alertConf)
|
||||
{
|
||||
alertConf_ = alertConf;
|
||||
setParameter("AlertConf", alertConf);
|
||||
setCoreParameter("AlertConf", alertConf);
|
||||
}
|
||||
|
||||
std::string CreateFlowRequest::getProjectId()const
|
||||
@@ -187,7 +187,7 @@ std::string CreateFlowRequest::getProjectId()const
|
||||
void CreateFlowRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string CreateFlowRequest::getParentCategory()const
|
||||
@@ -198,6 +198,6 @@ std::string CreateFlowRequest::getParentCategory()const
|
||||
void CreateFlowRequest::setParentCategory(const std::string& parentCategory)
|
||||
{
|
||||
parentCategory_ = parentCategory;
|
||||
setParameter("ParentCategory", parentCategory);
|
||||
setCoreParameter("ParentCategory", parentCategory);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateFlowResult::~CreateFlowResult()
|
||||
|
||||
void CreateFlowResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
|
||||
112
emr/src/model/CreateHostPoolRequest.cc
Normal file
112
emr/src/model/CreateHostPoolRequest.cc
Normal file
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* 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/CreateHostPoolRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::CreateHostPoolRequest;
|
||||
|
||||
CreateHostPoolRequest::CreateHostPoolRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateHostPool")
|
||||
{}
|
||||
|
||||
CreateHostPoolRequest::~CreateHostPoolRequest()
|
||||
{}
|
||||
|
||||
long CreateHostPoolRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateHostPoolRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateHostPoolRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateHostPoolRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateHostPoolRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateHostPoolRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateHostPoolRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateHostPoolRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::vector<CreateHostPoolRequest::KubeClusterInfo> CreateHostPoolRequest::getKubeClusterInfo()const
|
||||
{
|
||||
return kubeClusterInfo_;
|
||||
}
|
||||
|
||||
void CreateHostPoolRequest::setKubeClusterInfo(const std::vector<KubeClusterInfo>& kubeClusterInfo)
|
||||
{
|
||||
kubeClusterInfo_ = kubeClusterInfo;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= kubeClusterInfo.size(); i++) {
|
||||
auto obj = kubeClusterInfo.at(i);
|
||||
std::string str ="KubeClusterInfo."+ std::to_string(i);
|
||||
setCoreParameter(str + ".ExternalKey", obj.externalKey);
|
||||
setCoreParameter(str + ".InternalConfig", obj.internalConfig);
|
||||
setCoreParameter(str + ".PublicConfig", obj.publicConfig);
|
||||
setCoreParameter(str + ".SshConfig", obj.sshConfig);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateHostPoolRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateHostPoolRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateHostPoolRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateHostPoolRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
55
emr/src/model/CreateHostPoolResult.cc
Normal file
55
emr/src/model/CreateHostPoolResult.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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/CreateHostPoolResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
|
||||
CreateHostPoolResult::CreateHostPoolResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateHostPoolResult::CreateHostPoolResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateHostPoolResult::~CreateHostPoolResult()
|
||||
{}
|
||||
|
||||
void CreateHostPoolResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["BizId"].isNull())
|
||||
bizId_ = value["BizId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateHostPoolResult::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateJobRequest::getRunParameter()const
|
||||
void CreateJobRequest::setRunParameter(const std::string& runParameter)
|
||||
{
|
||||
runParameter_ = runParameter;
|
||||
setParameter("RunParameter", runParameter);
|
||||
setCoreParameter("RunParameter", runParameter);
|
||||
}
|
||||
|
||||
int CreateJobRequest::getRetryInterval()const
|
||||
@@ -44,7 +44,7 @@ int CreateJobRequest::getRetryInterval()const
|
||||
void CreateJobRequest::setRetryInterval(int retryInterval)
|
||||
{
|
||||
retryInterval_ = retryInterval;
|
||||
setParameter("RetryInterval", std::to_string(retryInterval));
|
||||
setCoreParameter("RetryInterval", std::to_string(retryInterval));
|
||||
}
|
||||
|
||||
long CreateJobRequest::getResourceOwnerId()const
|
||||
@@ -55,7 +55,7 @@ long CreateJobRequest::getResourceOwnerId()const
|
||||
void CreateJobRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getRegionId()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateJobRequest::getRegionId()const
|
||||
void CreateJobRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getName()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateJobRequest::getName()const
|
||||
void CreateJobRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getType()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateJobRequest::getType()const
|
||||
void CreateJobRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
int CreateJobRequest::getMaxRetry()const
|
||||
@@ -99,7 +99,7 @@ int CreateJobRequest::getMaxRetry()const
|
||||
void CreateJobRequest::setMaxRetry(int maxRetry)
|
||||
{
|
||||
maxRetry_ = maxRetry;
|
||||
setParameter("MaxRetry", std::to_string(maxRetry));
|
||||
setCoreParameter("MaxRetry", std::to_string(maxRetry));
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getAccessKeyId()const
|
||||
@@ -110,7 +110,7 @@ std::string CreateJobRequest::getAccessKeyId()const
|
||||
void CreateJobRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getFailAct()const
|
||||
@@ -121,6 +121,6 @@ std::string CreateJobRequest::getFailAct()const
|
||||
void CreateJobRequest::setFailAct(const std::string& failAct)
|
||||
{
|
||||
failAct_ = failAct;
|
||||
setParameter("FailAct", failAct);
|
||||
setCoreParameter("FailAct", failAct);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateJobResult::~CreateJobResult()
|
||||
|
||||
void CreateJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateNavNodeRequest::getResourceOwnerId()const
|
||||
void CreateNavNodeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateNavNodeRequest::getRegionId()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateNavNodeRequest::getRegionId()const
|
||||
void CreateNavNodeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateNavNodeRequest::getName()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateNavNodeRequest::getName()const
|
||||
void CreateNavNodeRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateNavNodeRequest::getType()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateNavNodeRequest::getType()const
|
||||
void CreateNavNodeRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateNavNodeRequest::getProjectId()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateNavNodeRequest::getProjectId()const
|
||||
void CreateNavNodeRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
setCoreParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string CreateNavNodeRequest::getCategoryType()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateNavNodeRequest::getCategoryType()const
|
||||
void CreateNavNodeRequest::setCategoryType(const std::string& categoryType)
|
||||
{
|
||||
categoryType_ = categoryType;
|
||||
setParameter("CategoryType", categoryType);
|
||||
setCoreParameter("CategoryType", categoryType);
|
||||
}
|
||||
|
||||
std::string CreateNavNodeRequest::getObjectId()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateNavNodeRequest::getObjectId()const
|
||||
void CreateNavNodeRequest::setObjectId(const std::string& objectId)
|
||||
{
|
||||
objectId_ = objectId;
|
||||
setParameter("ObjectId", objectId);
|
||||
setCoreParameter("ObjectId", objectId);
|
||||
}
|
||||
|
||||
std::string CreateNavNodeRequest::getParentId()const
|
||||
@@ -110,7 +110,7 @@ std::string CreateNavNodeRequest::getParentId()const
|
||||
void CreateNavNodeRequest::setParentId(const std::string& parentId)
|
||||
{
|
||||
parentId_ = parentId;
|
||||
setParameter("ParentId", parentId);
|
||||
setCoreParameter("ParentId", parentId);
|
||||
}
|
||||
|
||||
std::string CreateNavNodeRequest::getAccessKeyId()const
|
||||
@@ -121,6 +121,6 @@ std::string CreateNavNodeRequest::getAccessKeyId()const
|
||||
void CreateNavNodeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateNavNodeResult::~CreateNavNodeResult()
|
||||
|
||||
void CreateNavNodeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateNoteRequest::getResourceOwnerId()const
|
||||
void CreateNoteRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateNoteRequest::getRegionId()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateNoteRequest::getRegionId()const
|
||||
void CreateNoteRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateNoteRequest::getName()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateNoteRequest::getName()const
|
||||
void CreateNoteRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateNoteRequest::getClusterId()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateNoteRequest::getClusterId()const
|
||||
void CreateNoteRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateNoteRequest::getType()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateNoteRequest::getType()const
|
||||
void CreateNoteRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateNoteRequest::getAccessKeyId()const
|
||||
@@ -88,6 +88,6 @@ std::string CreateNoteRequest::getAccessKeyId()const
|
||||
void CreateNoteRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateNoteResult::~CreateNoteResult()
|
||||
|
||||
void CreateNoteResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateParagraphRequest::getResourceOwnerId()const
|
||||
void CreateParagraphRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateParagraphRequest::getRegionId()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateParagraphRequest::getRegionId()const
|
||||
void CreateParagraphRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateParagraphRequest::getNoteId()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateParagraphRequest::getNoteId()const
|
||||
void CreateParagraphRequest::setNoteId(const std::string& noteId)
|
||||
{
|
||||
noteId_ = noteId;
|
||||
setParameter("NoteId", noteId);
|
||||
setCoreParameter("NoteId", noteId);
|
||||
}
|
||||
|
||||
std::string CreateParagraphRequest::getText()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateParagraphRequest::getText()const
|
||||
void CreateParagraphRequest::setText(const std::string& text)
|
||||
{
|
||||
text_ = text;
|
||||
setParameter("Text", text);
|
||||
setCoreParameter("Text", text);
|
||||
}
|
||||
|
||||
std::string CreateParagraphRequest::getAccessKeyId()const
|
||||
@@ -77,6 +77,6 @@ std::string CreateParagraphRequest::getAccessKeyId()const
|
||||
void CreateParagraphRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateParagraphResult::~CreateParagraphResult()
|
||||
|
||||
void CreateParagraphResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateResourcePoolRequest::getNote()const
|
||||
void CreateResourcePoolRequest::setNote(const std::string& note)
|
||||
{
|
||||
note_ = note;
|
||||
setParameter("Note", note);
|
||||
setCoreParameter("Note", note);
|
||||
}
|
||||
|
||||
long CreateResourcePoolRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long CreateResourcePoolRequest::getResourceOwnerId()const
|
||||
void CreateResourcePoolRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateResourcePoolRequest::getRegionId()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateResourcePoolRequest::getRegionId()const
|
||||
void CreateResourcePoolRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateResourcePoolRequest::getName()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateResourcePoolRequest::getName()const
|
||||
void CreateResourcePoolRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
bool CreateResourcePoolRequest::getActive()const
|
||||
@@ -77,7 +77,7 @@ bool CreateResourcePoolRequest::getActive()const
|
||||
void CreateResourcePoolRequest::setActive(bool active)
|
||||
{
|
||||
active_ = active;
|
||||
setParameter("Active", std::to_string(active));
|
||||
setCoreParameter("Active", active ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateResourcePoolRequest::getClusterId()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateResourcePoolRequest::getClusterId()const
|
||||
void CreateResourcePoolRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateResourcePoolRequest::getYarnSiteConfig()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateResourcePoolRequest::getYarnSiteConfig()const
|
||||
void CreateResourcePoolRequest::setYarnSiteConfig(const std::string& yarnSiteConfig)
|
||||
{
|
||||
yarnSiteConfig_ = yarnSiteConfig;
|
||||
setParameter("YarnSiteConfig", yarnSiteConfig);
|
||||
setCoreParameter("YarnSiteConfig", yarnSiteConfig);
|
||||
}
|
||||
|
||||
std::vector<CreateResourcePoolRequest::Config> CreateResourcePoolRequest::getConfig()const
|
||||
@@ -114,12 +114,12 @@ void CreateResourcePoolRequest::setConfig(const std::vector<Config>& config)
|
||||
for(int i = 0; i!= config.size(); i++) {
|
||||
auto obj = config.at(i);
|
||||
std::string str ="Config."+ std::to_string(i);
|
||||
setParameter(str + ".ConfigKey", obj.configKey);
|
||||
setParameter(str + ".Note", obj.note);
|
||||
setParameter(str + ".configType", obj.configType);
|
||||
setParameter(str + ".TargetId", obj.targetId);
|
||||
setParameter(str + ".ConfigValue", obj.configValue);
|
||||
setParameter(str + ".Category", obj.category);
|
||||
setCoreParameter(str + ".ConfigKey", obj.configKey);
|
||||
setCoreParameter(str + ".Note", obj.note);
|
||||
setCoreParameter(str + ".configType", obj.configType);
|
||||
setCoreParameter(str + ".TargetId", obj.targetId);
|
||||
setCoreParameter(str + ".ConfigValue", obj.configValue);
|
||||
setCoreParameter(str + ".Category", obj.category);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -131,7 +131,7 @@ std::string CreateResourcePoolRequest::getAccessKeyId()const
|
||||
void CreateResourcePoolRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateResourcePoolRequest::getPoolType()const
|
||||
@@ -142,6 +142,6 @@ std::string CreateResourcePoolRequest::getPoolType()const
|
||||
void CreateResourcePoolRequest::setPoolType(const std::string& poolType)
|
||||
{
|
||||
poolType_ = poolType;
|
||||
setParameter("PoolType", poolType);
|
||||
setCoreParameter("PoolType", poolType);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateResourcePoolResult::~CreateResourcePoolResult()
|
||||
|
||||
void CreateResourcePoolResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateResourceQueueRequest::getResourceOwnerId()const
|
||||
void CreateResourceQueueRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long CreateResourceQueueRequest::getParentQueueId()const
|
||||
@@ -44,7 +44,7 @@ long CreateResourceQueueRequest::getParentQueueId()const
|
||||
void CreateResourceQueueRequest::setParentQueueId(long parentQueueId)
|
||||
{
|
||||
parentQueueId_ = parentQueueId;
|
||||
setParameter("ParentQueueId", std::to_string(parentQueueId));
|
||||
setCoreParameter("ParentQueueId", std::to_string(parentQueueId));
|
||||
}
|
||||
|
||||
std::string CreateResourceQueueRequest::getRegionId()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateResourceQueueRequest::getRegionId()const
|
||||
void CreateResourceQueueRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateResourceQueueRequest::getName()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateResourceQueueRequest::getName()const
|
||||
void CreateResourceQueueRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateResourceQueueRequest::getQualifiedName()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateResourceQueueRequest::getQualifiedName()const
|
||||
void CreateResourceQueueRequest::setQualifiedName(const std::string& qualifiedName)
|
||||
{
|
||||
qualifiedName_ = qualifiedName;
|
||||
setParameter("QualifiedName", qualifiedName);
|
||||
setCoreParameter("QualifiedName", qualifiedName);
|
||||
}
|
||||
|
||||
long CreateResourceQueueRequest::getResourcePoolId()const
|
||||
@@ -88,7 +88,7 @@ long CreateResourceQueueRequest::getResourcePoolId()const
|
||||
void CreateResourceQueueRequest::setResourcePoolId(long resourcePoolId)
|
||||
{
|
||||
resourcePoolId_ = resourcePoolId;
|
||||
setParameter("ResourcePoolId", std::to_string(resourcePoolId));
|
||||
setCoreParameter("ResourcePoolId", std::to_string(resourcePoolId));
|
||||
}
|
||||
|
||||
std::string CreateResourceQueueRequest::getClusterId()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateResourceQueueRequest::getClusterId()const
|
||||
void CreateResourceQueueRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
bool CreateResourceQueueRequest::getLeaf()const
|
||||
@@ -110,7 +110,7 @@ bool CreateResourceQueueRequest::getLeaf()const
|
||||
void CreateResourceQueueRequest::setLeaf(bool leaf)
|
||||
{
|
||||
leaf_ = leaf;
|
||||
setParameter("Leaf", std::to_string(leaf));
|
||||
setCoreParameter("Leaf", leaf ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<CreateResourceQueueRequest::Config> CreateResourceQueueRequest::getConfig()const
|
||||
@@ -125,10 +125,10 @@ void CreateResourceQueueRequest::setConfig(const std::vector<Config>& config)
|
||||
for(int i = 0; i!= config.size(); i++) {
|
||||
auto obj = config.at(i);
|
||||
std::string str ="Config."+ std::to_string(i);
|
||||
setParameter(str + ".ConfigKey", obj.configKey);
|
||||
setParameter(str + ".Note", obj.note);
|
||||
setParameter(str + ".ConfigValue", obj.configValue);
|
||||
setParameter(str + ".Category", obj.category);
|
||||
setCoreParameter(str + ".ConfigKey", obj.configKey);
|
||||
setCoreParameter(str + ".Note", obj.note);
|
||||
setCoreParameter(str + ".ConfigValue", obj.configValue);
|
||||
setCoreParameter(str + ".Category", obj.category);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -140,6 +140,6 @@ std::string CreateResourceQueueRequest::getAccessKeyId()const
|
||||
void CreateResourceQueueRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateResourceQueueResult::~CreateResourceQueueResult()
|
||||
|
||||
void CreateResourceQueueResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateScalingRuleRequest::getLaunchTime()const
|
||||
void CreateScalingRuleRequest::setLaunchTime(const std::string& launchTime)
|
||||
{
|
||||
launchTime_ = launchTime;
|
||||
setParameter("LaunchTime", launchTime);
|
||||
setCoreParameter("LaunchTime", launchTime);
|
||||
}
|
||||
|
||||
long CreateScalingRuleRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long CreateScalingRuleRequest::getResourceOwnerId()const
|
||||
void CreateScalingRuleRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getRuleCategory()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateScalingRuleRequest::getRuleCategory()const
|
||||
void CreateScalingRuleRequest::setRuleCategory(const std::string& ruleCategory)
|
||||
{
|
||||
ruleCategory_ = ruleCategory;
|
||||
setParameter("RuleCategory", ruleCategory);
|
||||
setCoreParameter("RuleCategory", ruleCategory);
|
||||
}
|
||||
|
||||
int CreateScalingRuleRequest::getAdjustmentValue()const
|
||||
@@ -66,7 +66,7 @@ int CreateScalingRuleRequest::getAdjustmentValue()const
|
||||
void CreateScalingRuleRequest::setAdjustmentValue(int adjustmentValue)
|
||||
{
|
||||
adjustmentValue_ = adjustmentValue;
|
||||
setParameter("AdjustmentValue", std::to_string(adjustmentValue));
|
||||
setCoreParameter("AdjustmentValue", std::to_string(adjustmentValue));
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getAdjustmentType()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateScalingRuleRequest::getAdjustmentType()const
|
||||
void CreateScalingRuleRequest::setAdjustmentType(const std::string& adjustmentType)
|
||||
{
|
||||
adjustmentType_ = adjustmentType;
|
||||
setParameter("AdjustmentType", adjustmentType);
|
||||
setCoreParameter("AdjustmentType", adjustmentType);
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getRuleName()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateScalingRuleRequest::getRuleName()const
|
||||
void CreateScalingRuleRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setParameter("RuleName", ruleName);
|
||||
setCoreParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getClusterId()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateScalingRuleRequest::getClusterId()const
|
||||
void CreateScalingRuleRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int CreateScalingRuleRequest::getLaunchExpirationTime()const
|
||||
@@ -110,7 +110,7 @@ int CreateScalingRuleRequest::getLaunchExpirationTime()const
|
||||
void CreateScalingRuleRequest::setLaunchExpirationTime(int launchExpirationTime)
|
||||
{
|
||||
launchExpirationTime_ = launchExpirationTime;
|
||||
setParameter("LaunchExpirationTime", std::to_string(launchExpirationTime));
|
||||
setCoreParameter("LaunchExpirationTime", std::to_string(launchExpirationTime));
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getRecurrenceValue()const
|
||||
@@ -121,7 +121,7 @@ std::string CreateScalingRuleRequest::getRecurrenceValue()const
|
||||
void CreateScalingRuleRequest::setRecurrenceValue(const std::string& recurrenceValue)
|
||||
{
|
||||
recurrenceValue_ = recurrenceValue;
|
||||
setParameter("RecurrenceValue", recurrenceValue);
|
||||
setCoreParameter("RecurrenceValue", recurrenceValue);
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getRecurrenceEndTime()const
|
||||
@@ -132,7 +132,7 @@ std::string CreateScalingRuleRequest::getRecurrenceEndTime()const
|
||||
void CreateScalingRuleRequest::setRecurrenceEndTime(const std::string& recurrenceEndTime)
|
||||
{
|
||||
recurrenceEndTime_ = recurrenceEndTime;
|
||||
setParameter("RecurrenceEndTime", recurrenceEndTime);
|
||||
setCoreParameter("RecurrenceEndTime", recurrenceEndTime);
|
||||
}
|
||||
|
||||
std::vector<CreateScalingRuleRequest::CloudWatchTrigger> CreateScalingRuleRequest::getCloudWatchTrigger()const
|
||||
@@ -147,12 +147,12 @@ void CreateScalingRuleRequest::setCloudWatchTrigger(const std::vector<CloudWatch
|
||||
for(int i = 0; i!= cloudWatchTrigger.size(); i++) {
|
||||
auto obj = cloudWatchTrigger.at(i);
|
||||
std::string str ="CloudWatchTrigger."+ std::to_string(i);
|
||||
setParameter(str + ".Period", std::to_string(obj.period));
|
||||
setParameter(str + ".EvaluationCount", obj.evaluationCount);
|
||||
setParameter(str + ".Threshold", obj.threshold);
|
||||
setParameter(str + ".MetricName", obj.metricName);
|
||||
setParameter(str + ".ComparisonOperator", obj.comparisonOperator);
|
||||
setParameter(str + ".Statistics", obj.statistics);
|
||||
setCoreParameter(str + ".Period", std::to_string(obj.period));
|
||||
setCoreParameter(str + ".EvaluationCount", obj.evaluationCount);
|
||||
setCoreParameter(str + ".Threshold", obj.threshold);
|
||||
setCoreParameter(str + ".MetricName", obj.metricName);
|
||||
setCoreParameter(str + ".ComparisonOperator", obj.comparisonOperator);
|
||||
setCoreParameter(str + ".Statistics", obj.statistics);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -164,7 +164,7 @@ std::string CreateScalingRuleRequest::getAccessKeyId()const
|
||||
void CreateScalingRuleRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getRegionId()const
|
||||
@@ -175,7 +175,7 @@ std::string CreateScalingRuleRequest::getRegionId()const
|
||||
void CreateScalingRuleRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getHostGroupId()const
|
||||
@@ -186,7 +186,7 @@ std::string CreateScalingRuleRequest::getHostGroupId()const
|
||||
void CreateScalingRuleRequest::setHostGroupId(const std::string& hostGroupId)
|
||||
{
|
||||
hostGroupId_ = hostGroupId;
|
||||
setParameter("HostGroupId", hostGroupId);
|
||||
setCoreParameter("HostGroupId", hostGroupId);
|
||||
}
|
||||
|
||||
std::vector<CreateScalingRuleRequest::SchedulerTrigger> CreateScalingRuleRequest::getSchedulerTrigger()const
|
||||
@@ -201,11 +201,11 @@ void CreateScalingRuleRequest::setSchedulerTrigger(const std::vector<SchedulerTr
|
||||
for(int i = 0; i!= schedulerTrigger.size(); i++) {
|
||||
auto obj = schedulerTrigger.at(i);
|
||||
std::string str ="SchedulerTrigger."+ std::to_string(i);
|
||||
setParameter(str + ".LaunchTime", obj.launchTime);
|
||||
setParameter(str + ".LaunchExpirationTime", std::to_string(obj.launchExpirationTime));
|
||||
setParameter(str + ".RecurrenceValue", obj.recurrenceValue);
|
||||
setParameter(str + ".RecurrenceEndTime", obj.recurrenceEndTime);
|
||||
setParameter(str + ".RecurrenceType", obj.recurrenceType);
|
||||
setCoreParameter(str + ".LaunchTime", obj.launchTime);
|
||||
setCoreParameter(str + ".LaunchExpirationTime", std::to_string(obj.launchExpirationTime));
|
||||
setCoreParameter(str + ".RecurrenceValue", obj.recurrenceValue);
|
||||
setCoreParameter(str + ".RecurrenceEndTime", obj.recurrenceEndTime);
|
||||
setCoreParameter(str + ".RecurrenceType", obj.recurrenceType);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -217,7 +217,7 @@ int CreateScalingRuleRequest::getCooldown()const
|
||||
void CreateScalingRuleRequest::setCooldown(int cooldown)
|
||||
{
|
||||
cooldown_ = cooldown;
|
||||
setParameter("Cooldown", std::to_string(cooldown));
|
||||
setCoreParameter("Cooldown", std::to_string(cooldown));
|
||||
}
|
||||
|
||||
std::string CreateScalingRuleRequest::getRecurrenceType()const
|
||||
@@ -228,6 +228,6 @@ std::string CreateScalingRuleRequest::getRecurrenceType()const
|
||||
void CreateScalingRuleRequest::setRecurrenceType(const std::string& recurrenceType)
|
||||
{
|
||||
recurrenceType_ = recurrenceType;
|
||||
setParameter("RecurrenceType", recurrenceType);
|
||||
setCoreParameter("RecurrenceType", recurrenceType);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateScalingRuleResult::~CreateScalingRuleResult()
|
||||
|
||||
void CreateScalingRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ScalingRuleId"].isNull())
|
||||
scalingRuleId_ = value["ScalingRuleId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long CreateScalingTaskGroupRequest::getResourceOwnerId()const
|
||||
void CreateScalingTaskGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateScalingTaskGroupRequest::getDataDiskCategory()const
|
||||
@@ -44,7 +44,7 @@ std::string CreateScalingTaskGroupRequest::getDataDiskCategory()const
|
||||
void CreateScalingTaskGroupRequest::setDataDiskCategory(const std::string& dataDiskCategory)
|
||||
{
|
||||
dataDiskCategory_ = dataDiskCategory;
|
||||
setParameter("DataDiskCategory", dataDiskCategory);
|
||||
setCoreParameter("DataDiskCategory", dataDiskCategory);
|
||||
}
|
||||
|
||||
std::string CreateScalingTaskGroupRequest::getClusterId()const
|
||||
@@ -55,7 +55,7 @@ std::string CreateScalingTaskGroupRequest::getClusterId()const
|
||||
void CreateScalingTaskGroupRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
setCoreParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int CreateScalingTaskGroupRequest::getMinSize()const
|
||||
@@ -66,7 +66,7 @@ int CreateScalingTaskGroupRequest::getMinSize()const
|
||||
void CreateScalingTaskGroupRequest::setMinSize(int minSize)
|
||||
{
|
||||
minSize_ = minSize;
|
||||
setParameter("MinSize", std::to_string(minSize));
|
||||
setCoreParameter("MinSize", std::to_string(minSize));
|
||||
}
|
||||
|
||||
std::string CreateScalingTaskGroupRequest::getAccessKeyId()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateScalingTaskGroupRequest::getAccessKeyId()const
|
||||
void CreateScalingTaskGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateScalingTaskGroupRequest::getSpotStrategy()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateScalingTaskGroupRequest::getSpotStrategy()const
|
||||
void CreateScalingTaskGroupRequest::setSpotStrategy(const std::string& spotStrategy)
|
||||
{
|
||||
spotStrategy_ = spotStrategy;
|
||||
setParameter("SpotStrategy", spotStrategy);
|
||||
setCoreParameter("SpotStrategy", spotStrategy);
|
||||
}
|
||||
|
||||
int CreateScalingTaskGroupRequest::getDataDiskSize()const
|
||||
@@ -99,7 +99,7 @@ int CreateScalingTaskGroupRequest::getDataDiskSize()const
|
||||
void CreateScalingTaskGroupRequest::setDataDiskSize(int dataDiskSize)
|
||||
{
|
||||
dataDiskSize_ = dataDiskSize;
|
||||
setParameter("DataDiskSize", std::to_string(dataDiskSize));
|
||||
setCoreParameter("DataDiskSize", std::to_string(dataDiskSize));
|
||||
}
|
||||
|
||||
std::vector<CreateScalingTaskGroupRequest::SpotPriceLimits> CreateScalingTaskGroupRequest::getSpotPriceLimits()const
|
||||
@@ -114,8 +114,8 @@ void CreateScalingTaskGroupRequest::setSpotPriceLimits(const std::vector<SpotPri
|
||||
for(int i = 0; i!= spotPriceLimits.size(); i++) {
|
||||
auto obj = spotPriceLimits.at(i);
|
||||
std::string str ="SpotPriceLimits."+ std::to_string(i);
|
||||
setParameter(str + ".InstanceType", obj.instanceType);
|
||||
setParameter(str + ".PriceLimit", std::to_string(obj.priceLimit));
|
||||
setCoreParameter(str + ".InstanceType", obj.instanceType);
|
||||
setCoreParameter(str + ".PriceLimit", std::to_string(obj.priceLimit));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ std::string CreateScalingTaskGroupRequest::getRegionId()const
|
||||
void CreateScalingTaskGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<CreateScalingTaskGroupRequest::ScalingRule> CreateScalingTaskGroupRequest::getScalingRule()const
|
||||
@@ -142,18 +142,18 @@ void CreateScalingTaskGroupRequest::setScalingRule(const std::vector<ScalingRule
|
||||
for(int i = 0; i!= scalingRule.size(); i++) {
|
||||
auto obj = scalingRule.at(i);
|
||||
std::string str ="ScalingRule."+ std::to_string(i);
|
||||
setParameter(str + ".LaunchTime", obj.launchTime);
|
||||
setParameter(str + ".RuleCategory", obj.ruleCategory);
|
||||
setParameter(str + ".AdjustmentValue", std::to_string(obj.adjustmentValue));
|
||||
setParameter(str + ".SchedulerTrigger", std::to_string(obj.schedulerTrigger));
|
||||
setParameter(str + ".AdjustmentType", obj.adjustmentType);
|
||||
setParameter(str + ".Cooldown", std::to_string(obj.cooldown));
|
||||
setParameter(str + ".RuleName", obj.ruleName);
|
||||
setParameter(str + ".LaunchExpirationTime", std::to_string(obj.launchExpirationTime));
|
||||
setParameter(str + ".RecurrenceValue", obj.recurrenceValue);
|
||||
setParameter(str + ".RecurrenceEndTime", obj.recurrenceEndTime);
|
||||
setParameter(str + ".CloudWatchTrigger", std::to_string(obj.cloudWatchTrigger));
|
||||
setParameter(str + ".RecurrenceType", obj.recurrenceType);
|
||||
setCoreParameter(str + ".LaunchTime", obj.launchTime);
|
||||
setCoreParameter(str + ".RuleCategory", obj.ruleCategory);
|
||||
setCoreParameter(str + ".AdjustmentValue", std::to_string(obj.adjustmentValue));
|
||||
setCoreParameter(str + ".SchedulerTrigger", std::to_string(obj.schedulerTrigger));
|
||||
setCoreParameter(str + ".AdjustmentType", obj.adjustmentType);
|
||||
setCoreParameter(str + ".Cooldown", std::to_string(obj.cooldown));
|
||||
setCoreParameter(str + ".RuleName", obj.ruleName);
|
||||
setCoreParameter(str + ".LaunchExpirationTime", std::to_string(obj.launchExpirationTime));
|
||||
setCoreParameter(str + ".RecurrenceValue", obj.recurrenceValue);
|
||||
setCoreParameter(str + ".RecurrenceEndTime", obj.recurrenceEndTime);
|
||||
setCoreParameter(str + ".CloudWatchTrigger", std::to_string(obj.cloudWatchTrigger));
|
||||
setCoreParameter(str + ".RecurrenceType", obj.recurrenceType);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -165,7 +165,7 @@ std::string CreateScalingTaskGroupRequest::getActiveRuleCategory()const
|
||||
void CreateScalingTaskGroupRequest::setActiveRuleCategory(const std::string& activeRuleCategory)
|
||||
{
|
||||
activeRuleCategory_ = activeRuleCategory;
|
||||
setParameter("ActiveRuleCategory", activeRuleCategory);
|
||||
setCoreParameter("ActiveRuleCategory", activeRuleCategory);
|
||||
}
|
||||
|
||||
int CreateScalingTaskGroupRequest::getMaxSize()const
|
||||
@@ -176,7 +176,7 @@ int CreateScalingTaskGroupRequest::getMaxSize()const
|
||||
void CreateScalingTaskGroupRequest::setMaxSize(int maxSize)
|
||||
{
|
||||
maxSize_ = maxSize;
|
||||
setParameter("MaxSize", std::to_string(maxSize));
|
||||
setCoreParameter("MaxSize", std::to_string(maxSize));
|
||||
}
|
||||
|
||||
int CreateScalingTaskGroupRequest::getDataDiskCount()const
|
||||
@@ -187,7 +187,7 @@ int CreateScalingTaskGroupRequest::getDataDiskCount()const
|
||||
void CreateScalingTaskGroupRequest::setDataDiskCount(int dataDiskCount)
|
||||
{
|
||||
dataDiskCount_ = dataDiskCount;
|
||||
setParameter("DataDiskCount", std::to_string(dataDiskCount));
|
||||
setCoreParameter("DataDiskCount", std::to_string(dataDiskCount));
|
||||
}
|
||||
|
||||
int CreateScalingTaskGroupRequest::getDefaultCooldown()const
|
||||
@@ -198,7 +198,7 @@ int CreateScalingTaskGroupRequest::getDefaultCooldown()const
|
||||
void CreateScalingTaskGroupRequest::setDefaultCooldown(int defaultCooldown)
|
||||
{
|
||||
defaultCooldown_ = defaultCooldown;
|
||||
setParameter("DefaultCooldown", std::to_string(defaultCooldown));
|
||||
setCoreParameter("DefaultCooldown", std::to_string(defaultCooldown));
|
||||
}
|
||||
|
||||
std::string CreateScalingTaskGroupRequest::getPayType()const
|
||||
@@ -209,7 +209,7 @@ std::string CreateScalingTaskGroupRequest::getPayType()const
|
||||
void CreateScalingTaskGroupRequest::setPayType(const std::string& payType)
|
||||
{
|
||||
payType_ = payType;
|
||||
setParameter("PayType", payType);
|
||||
setCoreParameter("PayType", payType);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateScalingTaskGroupRequest::getInstanceTypeList()const
|
||||
@@ -221,6 +221,6 @@ void CreateScalingTaskGroupRequest::setInstanceTypeList(const std::vector<std::s
|
||||
{
|
||||
instanceTypeList_ = instanceTypeList;
|
||||
for(int i = 0; i!= instanceTypeList.size(); i++)
|
||||
setParameter("InstanceTypeList."+ std::to_string(i), instanceTypeList.at(i));
|
||||
setCoreParameter("InstanceTypeList."+ std::to_string(i), instanceTypeList.at(i));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateScalingTaskGroupResult::~CreateScalingTaskGroupResult()
|
||||
|
||||
void CreateScalingTaskGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HostGroupId"].isNull())
|
||||
hostGroupId_ = value["HostGroupId"].asString();
|
||||
|
||||
237
emr/src/model/CreateUserGroupRequest.cc
Normal file
237
emr/src/model/CreateUserGroupRequest.cc
Normal file
@@ -0,0 +1,237 @@
|
||||
/*
|
||||
* 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/CreateUserGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Emr::Model::CreateUserGroupRequest;
|
||||
|
||||
CreateUserGroupRequest::CreateUserGroupRequest() :
|
||||
RpcServiceRequest("emr", "2016-04-08", "CreateUserGroup")
|
||||
{}
|
||||
|
||||
CreateUserGroupRequest::~CreateUserGroupRequest()
|
||||
{}
|
||||
|
||||
std::string CreateUserGroupRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
long CreateUserGroupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long CreateUserGroupRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool CreateUserGroupRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateUserGroupRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateUserGroupRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
std::string CreateUserGroupRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CreateUserGroupRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
bool CreateUserGroupRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateUserGroupRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateUserGroupRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CreateUserGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool CreateUserGroupRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateUserGroupRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateUserGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateUserGroupRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string CreateUserGroupRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
}
|
||||
|
||||
std::vector<long> CreateUserGroupRequest::getRoleIdList()const
|
||||
{
|
||||
return roleIdList_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setRoleIdList(const std::vector<long>& roleIdList)
|
||||
{
|
||||
roleIdList_ = roleIdList;
|
||||
for(int i = 0; i!= roleIdList.size(); i++)
|
||||
setCoreParameter("RoleIdList."+ std::to_string(i), std::to_string(roleIdList.at(i)));
|
||||
}
|
||||
|
||||
long CreateUserGroupRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user