| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- /*
- * 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/foas/model/UpdateJobRequest.h>
- using AlibabaCloud::Foas::Model::UpdateJobRequest;
- UpdateJobRequest::UpdateJobRequest() :
- RoaServiceRequest("foas", "2018-11-11")
- {
- setResourcePath("/api/v2/projects/[projectName]/jobs/[jobName]");
- setMethod(HttpRequest::Method::Put);
- }
- UpdateJobRequest::~UpdateJobRequest()
- {}
- std::string UpdateJobRequest::getQueueName()const
- {
- return queueName_;
- }
- void UpdateJobRequest::setQueueName(const std::string& queueName)
- {
- queueName_ = queueName;
- setBodyParameter("QueueName", queueName);
- }
- std::string UpdateJobRequest::getProjectName()const
- {
- return projectName_;
- }
- void UpdateJobRequest::setProjectName(const std::string& projectName)
- {
- projectName_ = projectName;
- setParameter("ProjectName", projectName);
- }
- std::string UpdateJobRequest::getCode()const
- {
- return code_;
- }
- void UpdateJobRequest::setCode(const std::string& code)
- {
- code_ = code;
- setBodyParameter("Code", code);
- }
- std::string UpdateJobRequest::getRegionId()const
- {
- return regionId_;
- }
- void UpdateJobRequest::setRegionId(const std::string& regionId)
- {
- regionId_ = regionId;
- setHeader("RegionId", regionId);
- }
- std::string UpdateJobRequest::getDescription()const
- {
- return description_;
- }
- void UpdateJobRequest::setDescription(const std::string& description)
- {
- description_ = description;
- setBodyParameter("Description", description);
- }
- std::string UpdateJobRequest::getPlanJson()const
- {
- return planJson_;
- }
- void UpdateJobRequest::setPlanJson(const std::string& planJson)
- {
- planJson_ = planJson;
- setBodyParameter("PlanJson", planJson);
- }
- std::string UpdateJobRequest::getEngineVersion()const
- {
- return engineVersion_;
- }
- void UpdateJobRequest::setEngineVersion(const std::string& engineVersion)
- {
- engineVersion_ = engineVersion;
- setBodyParameter("EngineVersion", engineVersion);
- }
- std::string UpdateJobRequest::getClusterId()const
- {
- return clusterId_;
- }
- void UpdateJobRequest::setClusterId(const std::string& clusterId)
- {
- clusterId_ = clusterId;
- setBodyParameter("ClusterId", clusterId);
- }
- std::string UpdateJobRequest::getPackages()const
- {
- return packages_;
- }
- void UpdateJobRequest::setPackages(const std::string& packages)
- {
- packages_ = packages;
- setBodyParameter("Packages", packages);
- }
- long UpdateJobRequest::getFolderId()const
- {
- return folderId_;
- }
- void UpdateJobRequest::setFolderId(long folderId)
- {
- folderId_ = folderId;
- setBodyParameter("FolderId", std::to_string(folderId));
- }
- std::string UpdateJobRequest::getProperties()const
- {
- return properties_;
- }
- void UpdateJobRequest::setProperties(const std::string& properties)
- {
- properties_ = properties;
- setBodyParameter("Properties", properties);
- }
- std::string UpdateJobRequest::getJobName()const
- {
- return jobName_;
- }
- void UpdateJobRequest::setJobName(const std::string& jobName)
- {
- jobName_ = jobName;
- setParameter("JobName", jobName);
- }
|