ResetNodesRequest.cc 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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/ResetNodesRequest.h>
  17. using AlibabaCloud::EHPC::Model::ResetNodesRequest;
  18. ResetNodesRequest::ResetNodesRequest()
  19. : RpcServiceRequest("ehpc", "2018-04-12", "ResetNodes") {
  20. setMethod(HttpRequest::Method::Get);
  21. }
  22. ResetNodesRequest::~ResetNodesRequest() {}
  23. std::vector<ResetNodesRequest::Instance> ResetNodesRequest::getInstance() const {
  24. return instance_;
  25. }
  26. void ResetNodesRequest::setInstance(const std::vector<ResetNodesRequest::Instance> &instance) {
  27. instance_ = instance;
  28. for(int dep1 = 0; dep1 != instance.size(); dep1++) {
  29. auto instanceObj = instance.at(dep1);
  30. std::string instanceObjStr = std::string("Instance") + "." + std::to_string(dep1 + 1);
  31. setParameter(instanceObjStr + ".Id", instanceObj.id);
  32. }
  33. }
  34. std::string ResetNodesRequest::getClusterId() const {
  35. return clusterId_;
  36. }
  37. void ResetNodesRequest::setClusterId(const std::string &clusterId) {
  38. clusterId_ = clusterId;
  39. setParameter(std::string("ClusterId"), clusterId);
  40. }
  41. std::string ResetNodesRequest::getAccessKeyId() const {
  42. return accessKeyId_;
  43. }
  44. void ResetNodesRequest::setAccessKeyId(const std::string &accessKeyId) {
  45. accessKeyId_ = accessKeyId;
  46. setParameter(std::string("AccessKeyId"), accessKeyId);
  47. }