SetQueueRequest.cc 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #include <alibabacloud/ehpc/model/SetQueueRequest.h>
  17. using AlibabaCloud::EHPC::Model::SetQueueRequest;
  18. SetQueueRequest::SetQueueRequest()
  19. : RpcServiceRequest("ehpc", "2018-04-12", "SetQueue") {
  20. setMethod(HttpRequest::Method::Get);
  21. }
  22. SetQueueRequest::~SetQueueRequest() {}
  23. std::string SetQueueRequest::getQueueName() const {
  24. return queueName_;
  25. }
  26. void SetQueueRequest::setQueueName(const std::string &queueName) {
  27. queueName_ = queueName;
  28. setParameter(std::string("QueueName"), queueName);
  29. }
  30. std::string SetQueueRequest::getClusterId() const {
  31. return clusterId_;
  32. }
  33. void SetQueueRequest::setClusterId(const std::string &clusterId) {
  34. clusterId_ = clusterId;
  35. setParameter(std::string("ClusterId"), clusterId);
  36. }
  37. std::string SetQueueRequest::getAccessKeyId() const {
  38. return accessKeyId_;
  39. }
  40. void SetQueueRequest::setAccessKeyId(const std::string &accessKeyId) {
  41. accessKeyId_ = accessKeyId;
  42. setParameter(std::string("AccessKeyId"), accessKeyId);
  43. }
  44. std::vector<SetQueueRequest::Node> SetQueueRequest::getNode() const {
  45. return node_;
  46. }
  47. void SetQueueRequest::setNode(const std::vector<SetQueueRequest::Node> &node) {
  48. node_ = node;
  49. for(int dep1 = 0; dep1 != node.size(); dep1++) {
  50. auto nodeObj = node.at(dep1);
  51. std::string nodeObjStr = std::string("Node") + "." + std::to_string(dep1 + 1);
  52. setParameter(nodeObjStr + ".Name", nodeObj.name);
  53. }
  54. }