ModifyOperateVulRequest.cc 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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/ecd/model/ModifyOperateVulRequest.h>
  17. using AlibabaCloud::Ecd::Model::ModifyOperateVulRequest;
  18. ModifyOperateVulRequest::ModifyOperateVulRequest()
  19. : RpcServiceRequest("ecd", "2020-09-30", "ModifyOperateVul") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. ModifyOperateVulRequest::~ModifyOperateVulRequest() {}
  23. std::string ModifyOperateVulRequest::getReason() const {
  24. return reason_;
  25. }
  26. void ModifyOperateVulRequest::setReason(const std::string &reason) {
  27. reason_ = reason;
  28. setParameter(std::string("Reason"), reason);
  29. }
  30. std::string ModifyOperateVulRequest::getType() const {
  31. return type_;
  32. }
  33. void ModifyOperateVulRequest::setType(const std::string &type) {
  34. type_ = type;
  35. setParameter(std::string("Type"), type);
  36. }
  37. std::vector<ModifyOperateVulRequest::VulInfo> ModifyOperateVulRequest::getVulInfo() const {
  38. return vulInfo_;
  39. }
  40. void ModifyOperateVulRequest::setVulInfo(const std::vector<ModifyOperateVulRequest::VulInfo> &vulInfo) {
  41. vulInfo_ = vulInfo;
  42. for(int dep1 = 0; dep1 != vulInfo.size(); dep1++) {
  43. auto vulInfoObj = vulInfo.at(dep1);
  44. std::string vulInfoObjStr = std::string("VulInfo") + "." + std::to_string(dep1 + 1);
  45. setParameter(vulInfoObjStr + ".Name", vulInfoObj.name);
  46. setParameter(vulInfoObjStr + ".DesktopId", vulInfoObj.desktopId);
  47. setParameter(vulInfoObjStr + ".Tag", vulInfoObj.tag);
  48. }
  49. }
  50. std::string ModifyOperateVulRequest::getRegionId() const {
  51. return regionId_;
  52. }
  53. void ModifyOperateVulRequest::setRegionId(const std::string &regionId) {
  54. regionId_ = regionId;
  55. setParameter(std::string("RegionId"), regionId);
  56. }
  57. std::string ModifyOperateVulRequest::getOperateType() const {
  58. return operateType_;
  59. }
  60. void ModifyOperateVulRequest::setOperateType(const std::string &operateType) {
  61. operateType_ = operateType;
  62. setParameter(std::string("OperateType"), operateType);
  63. }