ModifyDesktopSpecRequest.cc 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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/ModifyDesktopSpecRequest.h>
  17. using AlibabaCloud::Ecd::Model::ModifyDesktopSpecRequest;
  18. ModifyDesktopSpecRequest::ModifyDesktopSpecRequest()
  19. : RpcServiceRequest("ecd", "2020-09-30", "ModifyDesktopSpec") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. ModifyDesktopSpecRequest::~ModifyDesktopSpecRequest() {}
  23. bool ModifyDesktopSpecRequest::getAutoPay() const {
  24. return autoPay_;
  25. }
  26. void ModifyDesktopSpecRequest::setAutoPay(bool autoPay) {
  27. autoPay_ = autoPay;
  28. setParameter(std::string("AutoPay"), autoPay ? "true" : "false");
  29. }
  30. std::string ModifyDesktopSpecRequest::getUserDiskPerformanceLevel() const {
  31. return userDiskPerformanceLevel_;
  32. }
  33. void ModifyDesktopSpecRequest::setUserDiskPerformanceLevel(const std::string &userDiskPerformanceLevel) {
  34. userDiskPerformanceLevel_ = userDiskPerformanceLevel;
  35. setParameter(std::string("UserDiskPerformanceLevel"), userDiskPerformanceLevel);
  36. }
  37. std::string ModifyDesktopSpecRequest::getPromotionId() const {
  38. return promotionId_;
  39. }
  40. void ModifyDesktopSpecRequest::setPromotionId(const std::string &promotionId) {
  41. promotionId_ = promotionId;
  42. setParameter(std::string("PromotionId"), promotionId);
  43. }
  44. int ModifyDesktopSpecRequest::getUserDiskSizeGib() const {
  45. return userDiskSizeGib_;
  46. }
  47. void ModifyDesktopSpecRequest::setUserDiskSizeGib(int userDiskSizeGib) {
  48. userDiskSizeGib_ = userDiskSizeGib;
  49. setParameter(std::string("UserDiskSizeGib"), std::to_string(userDiskSizeGib));
  50. }
  51. std::string ModifyDesktopSpecRequest::getRegionId() const {
  52. return regionId_;
  53. }
  54. void ModifyDesktopSpecRequest::setRegionId(const std::string &regionId) {
  55. regionId_ = regionId;
  56. setParameter(std::string("RegionId"), regionId);
  57. }
  58. std::string ModifyDesktopSpecRequest::getDesktopId() const {
  59. return desktopId_;
  60. }
  61. void ModifyDesktopSpecRequest::setDesktopId(const std::string &desktopId) {
  62. desktopId_ = desktopId;
  63. setParameter(std::string("DesktopId"), desktopId);
  64. }
  65. std::string ModifyDesktopSpecRequest::getDesktopType() const {
  66. return desktopType_;
  67. }
  68. void ModifyDesktopSpecRequest::setDesktopType(const std::string &desktopType) {
  69. desktopType_ = desktopType;
  70. setParameter(std::string("DesktopType"), desktopType);
  71. }
  72. int ModifyDesktopSpecRequest::getRootDiskSizeGib() const {
  73. return rootDiskSizeGib_;
  74. }
  75. void ModifyDesktopSpecRequest::setRootDiskSizeGib(int rootDiskSizeGib) {
  76. rootDiskSizeGib_ = rootDiskSizeGib;
  77. setParameter(std::string("RootDiskSizeGib"), std::to_string(rootDiskSizeGib));
  78. }