OperateVulsRequest.cc 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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/OperateVulsRequest.h>
  17. using AlibabaCloud::Ecd::Model::OperateVulsRequest;
  18. OperateVulsRequest::OperateVulsRequest()
  19. : RpcServiceRequest("ecd", "2020-09-30", "OperateVuls") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. OperateVulsRequest::~OperateVulsRequest() {}
  23. std::string OperateVulsRequest::getReason() const {
  24. return reason_;
  25. }
  26. void OperateVulsRequest::setReason(const std::string &reason) {
  27. reason_ = reason;
  28. setParameter(std::string("Reason"), reason);
  29. }
  30. int OperateVulsRequest::getPrecondition() const {
  31. return precondition_;
  32. }
  33. void OperateVulsRequest::setPrecondition(int precondition) {
  34. precondition_ = precondition;
  35. setParameter(std::string("Precondition"), std::to_string(precondition));
  36. }
  37. std::string OperateVulsRequest::getType() const {
  38. return type_;
  39. }
  40. void OperateVulsRequest::setType(const std::string &type) {
  41. type_ = type;
  42. setParameter(std::string("Type"), type);
  43. }
  44. std::vector<std::string> OperateVulsRequest::getVulName() const {
  45. return vulName_;
  46. }
  47. void OperateVulsRequest::setVulName(const std::vector<std::string> &vulName) {
  48. vulName_ = vulName;
  49. }
  50. std::string OperateVulsRequest::getRegionId() const {
  51. return regionId_;
  52. }
  53. void OperateVulsRequest::setRegionId(const std::string &regionId) {
  54. regionId_ = regionId;
  55. setParameter(std::string("RegionId"), regionId);
  56. }
  57. std::string OperateVulsRequest::getOperateType() const {
  58. return operateType_;
  59. }
  60. void OperateVulsRequest::setOperateType(const std::string &operateType) {
  61. operateType_ = operateType;
  62. setParameter(std::string("OperateType"), operateType);
  63. }
  64. std::vector<std::string> OperateVulsRequest::getDesktopId() const {
  65. return desktopId_;
  66. }
  67. void OperateVulsRequest::setDesktopId(const std::vector<std::string> &desktopId) {
  68. desktopId_ = desktopId;
  69. }