| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276 |
- /*
- * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- #include <alibabacloud/emr/model/CreateFlowJobRequest.h>
- using AlibabaCloud::Emr::Model::CreateFlowJobRequest;
- CreateFlowJobRequest::CreateFlowJobRequest() :
- RpcServiceRequest("emr", "2016-04-08", "CreateFlowJob")
- {
- setMethod(HttpRequest::Method::Post);
- }
- CreateFlowJobRequest::~CreateFlowJobRequest()
- {}
- std::string CreateFlowJobRequest::getRetryPolicy()const
- {
- return retryPolicy_;
- }
- void CreateFlowJobRequest::setRetryPolicy(const std::string& retryPolicy)
- {
- retryPolicy_ = retryPolicy;
- setParameter("RetryPolicy", retryPolicy);
- }
- std::string CreateFlowJobRequest::getRunConf()const
- {
- return runConf_;
- }
- void CreateFlowJobRequest::setRunConf(const std::string& runConf)
- {
- runConf_ = runConf;
- setBodyParameter("RunConf", runConf);
- }
- std::string CreateFlowJobRequest::getDescription()const
- {
- return description_;
- }
- void CreateFlowJobRequest::setDescription(const std::string& description)
- {
- description_ = description;
- setBodyParameter("Description", description);
- }
- std::string CreateFlowJobRequest::getType()const
- {
- return type_;
- }
- void CreateFlowJobRequest::setType(const std::string& type)
- {
- type_ = type;
- setParameter("Type", type);
- }
- std::string CreateFlowJobRequest::getParamConf()const
- {
- return paramConf_;
- }
- void CreateFlowJobRequest::setParamConf(const std::string& paramConf)
- {
- paramConf_ = paramConf;
- setBodyParameter("ParamConf", paramConf);
- }
- std::vector<CreateFlowJobRequest::ResourceList> CreateFlowJobRequest::getResourceList()const
- {
- return resourceList_;
- }
- void CreateFlowJobRequest::setResourceList(const std::vector<ResourceList>& resourceList)
- {
- resourceList_ = resourceList;
- for(int dep1 = 0; dep1!= resourceList.size(); dep1++) {
- auto resourceListObj = resourceList.at(dep1);
- std::string resourceListObjStr = "ResourceList." + std::to_string(dep1 + 1);
- setParameter(resourceListObjStr + ".Path", resourceListObj.path);
- setParameter(resourceListObjStr + ".Alias", resourceListObj.alias);
- }
- }
- std::string CreateFlowJobRequest::getFailAct()const
- {
- return failAct_;
- }
- void CreateFlowJobRequest::setFailAct(const std::string& failAct)
- {
- failAct_ = failAct;
- setParameter("FailAct", failAct);
- }
- std::string CreateFlowJobRequest::getMode()const
- {
- return mode_;
- }
- void CreateFlowJobRequest::setMode(const std::string& mode)
- {
- mode_ = mode;
- setParameter("Mode", mode);
- }
- std::string CreateFlowJobRequest::getMonitorConf()const
- {
- return monitorConf_;
- }
- void CreateFlowJobRequest::setMonitorConf(const std::string& monitorConf)
- {
- monitorConf_ = monitorConf;
- setBodyParameter("MonitorConf", monitorConf);
- }
- std::string CreateFlowJobRequest::getRegionId()const
- {
- return regionId_;
- }
- void CreateFlowJobRequest::setRegionId(const std::string& regionId)
- {
- regionId_ = regionId;
- setParameter("RegionId", regionId);
- }
- int CreateFlowJobRequest::getMaxRetry()const
- {
- return maxRetry_;
- }
- void CreateFlowJobRequest::setMaxRetry(int maxRetry)
- {
- maxRetry_ = maxRetry;
- setParameter("MaxRetry", std::to_string(maxRetry));
- }
- std::string CreateFlowJobRequest::getAlertConf()const
- {
- return alertConf_;
- }
- void CreateFlowJobRequest::setAlertConf(const std::string& alertConf)
- {
- alertConf_ = alertConf;
- setParameter("AlertConf", alertConf);
- }
- std::string CreateFlowJobRequest::getProjectId()const
- {
- return projectId_;
- }
- void CreateFlowJobRequest::setProjectId(const std::string& projectId)
- {
- projectId_ = projectId;
- setParameter("ProjectId", projectId);
- }
- std::string CreateFlowJobRequest::getEnvConf()const
- {
- return envConf_;
- }
- void CreateFlowJobRequest::setEnvConf(const std::string& envConf)
- {
- envConf_ = envConf;
- setBodyParameter("EnvConf", envConf);
- }
- long CreateFlowJobRequest::getMaxRunningTimeSec()const
- {
- return maxRunningTimeSec_;
- }
- void CreateFlowJobRequest::setMaxRunningTimeSec(long maxRunningTimeSec)
- {
- maxRunningTimeSec_ = maxRunningTimeSec;
- setParameter("MaxRunningTimeSec", std::to_string(maxRunningTimeSec));
- }
- std::string CreateFlowJobRequest::getClusterId()const
- {
- return clusterId_;
- }
- void CreateFlowJobRequest::setClusterId(const std::string& clusterId)
- {
- clusterId_ = clusterId;
- setParameter("ClusterId", clusterId);
- }
- std::string CreateFlowJobRequest::getParams()const
- {
- return params_;
- }
- void CreateFlowJobRequest::setParams(const std::string& params)
- {
- params_ = params;
- setBodyParameter("Params", params);
- }
- std::string CreateFlowJobRequest::getCustomVariables()const
- {
- return customVariables_;
- }
- void CreateFlowJobRequest::setCustomVariables(const std::string& customVariables)
- {
- customVariables_ = customVariables;
- setBodyParameter("CustomVariables", customVariables);
- }
- long CreateFlowJobRequest::getRetryInterval()const
- {
- return retryInterval_;
- }
- void CreateFlowJobRequest::setRetryInterval(long retryInterval)
- {
- retryInterval_ = retryInterval;
- setParameter("RetryInterval", std::to_string(retryInterval));
- }
- std::string CreateFlowJobRequest::getName()const
- {
- return name_;
- }
- void CreateFlowJobRequest::setName(const std::string& name)
- {
- name_ = name;
- setParameter("Name", name);
- }
- bool CreateFlowJobRequest::getAdhoc()const
- {
- return adhoc_;
- }
- void CreateFlowJobRequest::setAdhoc(bool adhoc)
- {
- adhoc_ = adhoc;
- setParameter("Adhoc", adhoc ? "true" : "false");
- }
- std::string CreateFlowJobRequest::getParentCategory()const
- {
- return parentCategory_;
- }
- void CreateFlowJobRequest::setParentCategory(const std::string& parentCategory)
- {
- parentCategory_ = parentCategory;
- setParameter("ParentCategory", parentCategory);
- }
|