CreateApplicationScalingRuleRequest.cc 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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/sae/model/CreateApplicationScalingRuleRequest.h>
  17. using AlibabaCloud::Sae::Model::CreateApplicationScalingRuleRequest;
  18. CreateApplicationScalingRuleRequest::CreateApplicationScalingRuleRequest() :
  19. RoaServiceRequest("sae", "2019-05-06")
  20. {
  21. setResourcePath("/pop/v1/sam/scale/applicationScalingRule");
  22. setMethod(HttpRequest::Method::Post);
  23. }
  24. CreateApplicationScalingRuleRequest::~CreateApplicationScalingRuleRequest()
  25. {}
  26. std::string CreateApplicationScalingRuleRequest::getScalingRuleName()const
  27. {
  28. return scalingRuleName_;
  29. }
  30. void CreateApplicationScalingRuleRequest::setScalingRuleName(const std::string& scalingRuleName)
  31. {
  32. scalingRuleName_ = scalingRuleName;
  33. setParameter("ScalingRuleName", scalingRuleName);
  34. }
  35. std::string CreateApplicationScalingRuleRequest::getMinReadyInstances()const
  36. {
  37. return minReadyInstances_;
  38. }
  39. void CreateApplicationScalingRuleRequest::setMinReadyInstances(const std::string& minReadyInstances)
  40. {
  41. minReadyInstances_ = minReadyInstances;
  42. setParameter("MinReadyInstances", minReadyInstances);
  43. }
  44. bool CreateApplicationScalingRuleRequest::getScalingRuleEnable()const
  45. {
  46. return scalingRuleEnable_;
  47. }
  48. void CreateApplicationScalingRuleRequest::setScalingRuleEnable(bool scalingRuleEnable)
  49. {
  50. scalingRuleEnable_ = scalingRuleEnable;
  51. setParameter("ScalingRuleEnable", scalingRuleEnable ? "true" : "false");
  52. }
  53. std::string CreateApplicationScalingRuleRequest::getScalingRuleTimer()const
  54. {
  55. return scalingRuleTimer_;
  56. }
  57. void CreateApplicationScalingRuleRequest::setScalingRuleTimer(const std::string& scalingRuleTimer)
  58. {
  59. scalingRuleTimer_ = scalingRuleTimer;
  60. setParameter("ScalingRuleTimer", scalingRuleTimer);
  61. }
  62. std::string CreateApplicationScalingRuleRequest::getScalingRuleMetric()const
  63. {
  64. return scalingRuleMetric_;
  65. }
  66. void CreateApplicationScalingRuleRequest::setScalingRuleMetric(const std::string& scalingRuleMetric)
  67. {
  68. scalingRuleMetric_ = scalingRuleMetric;
  69. setParameter("ScalingRuleMetric", scalingRuleMetric);
  70. }
  71. std::string CreateApplicationScalingRuleRequest::getAppId()const
  72. {
  73. return appId_;
  74. }
  75. void CreateApplicationScalingRuleRequest::setAppId(const std::string& appId)
  76. {
  77. appId_ = appId;
  78. setParameter("AppId", appId);
  79. }
  80. std::string CreateApplicationScalingRuleRequest::getScalingRuleType()const
  81. {
  82. return scalingRuleType_;
  83. }
  84. void CreateApplicationScalingRuleRequest::setScalingRuleType(const std::string& scalingRuleType)
  85. {
  86. scalingRuleType_ = scalingRuleType;
  87. setParameter("ScalingRuleType", scalingRuleType);
  88. }