ModifyDiskSpecRequest.cc 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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/ecs/model/ModifyDiskSpecRequest.h>
  17. using AlibabaCloud::Ecs::Model::ModifyDiskSpecRequest;
  18. ModifyDiskSpecRequest::ModifyDiskSpecRequest() :
  19. RpcServiceRequest("ecs", "2014-05-26", "ModifyDiskSpec")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. ModifyDiskSpecRequest::~ModifyDiskSpecRequest()
  24. {}
  25. long ModifyDiskSpecRequest::getResourceOwnerId()const
  26. {
  27. return resourceOwnerId_;
  28. }
  29. void ModifyDiskSpecRequest::setResourceOwnerId(long resourceOwnerId)
  30. {
  31. resourceOwnerId_ = resourceOwnerId;
  32. setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  33. }
  34. std::string ModifyDiskSpecRequest::getDiskCategory()const
  35. {
  36. return diskCategory_;
  37. }
  38. void ModifyDiskSpecRequest::setDiskCategory(const std::string& diskCategory)
  39. {
  40. diskCategory_ = diskCategory;
  41. setParameter("DiskCategory", diskCategory);
  42. }
  43. std::string ModifyDiskSpecRequest::getDiskId()const
  44. {
  45. return diskId_;
  46. }
  47. void ModifyDiskSpecRequest::setDiskId(const std::string& diskId)
  48. {
  49. diskId_ = diskId;
  50. setParameter("DiskId", diskId);
  51. }
  52. bool ModifyDiskSpecRequest::getDryRun()const
  53. {
  54. return dryRun_;
  55. }
  56. void ModifyDiskSpecRequest::setDryRun(bool dryRun)
  57. {
  58. dryRun_ = dryRun;
  59. setParameter("DryRun", dryRun ? "true" : "false");
  60. }
  61. std::string ModifyDiskSpecRequest::getResourceOwnerAccount()const
  62. {
  63. return resourceOwnerAccount_;
  64. }
  65. void ModifyDiskSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  66. {
  67. resourceOwnerAccount_ = resourceOwnerAccount;
  68. setParameter("ResourceOwnerAccount", resourceOwnerAccount);
  69. }
  70. std::string ModifyDiskSpecRequest::getPerformanceLevel()const
  71. {
  72. return performanceLevel_;
  73. }
  74. void ModifyDiskSpecRequest::setPerformanceLevel(const std::string& performanceLevel)
  75. {
  76. performanceLevel_ = performanceLevel;
  77. setParameter("PerformanceLevel", performanceLevel);
  78. }
  79. std::string ModifyDiskSpecRequest::getOwnerAccount()const
  80. {
  81. return ownerAccount_;
  82. }
  83. void ModifyDiskSpecRequest::setOwnerAccount(const std::string& ownerAccount)
  84. {
  85. ownerAccount_ = ownerAccount;
  86. setParameter("OwnerAccount", ownerAccount);
  87. }
  88. long ModifyDiskSpecRequest::getOwnerId()const
  89. {
  90. return ownerId_;
  91. }
  92. void ModifyDiskSpecRequest::setOwnerId(long ownerId)
  93. {
  94. ownerId_ = ownerId;
  95. setParameter("OwnerId", std::to_string(ownerId));
  96. }