ModifyRuleRequest.cc 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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/sddp/model/ModifyRuleRequest.h>
  17. using AlibabaCloud::Sddp::Model::ModifyRuleRequest;
  18. ModifyRuleRequest::ModifyRuleRequest() :
  19. RpcServiceRequest("sddp", "2019-01-03", "ModifyRule")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. ModifyRuleRequest::~ModifyRuleRequest()
  24. {}
  25. int ModifyRuleRequest::getWarnLevel()const
  26. {
  27. return warnLevel_;
  28. }
  29. void ModifyRuleRequest::setWarnLevel(int warnLevel)
  30. {
  31. warnLevel_ = warnLevel;
  32. setParameter("WarnLevel", std::to_string(warnLevel));
  33. }
  34. std::string ModifyRuleRequest::getProductCode()const
  35. {
  36. return productCode_;
  37. }
  38. void ModifyRuleRequest::setProductCode(const std::string& productCode)
  39. {
  40. productCode_ = productCode;
  41. setParameter("ProductCode", productCode);
  42. }
  43. long ModifyRuleRequest::getProductId()const
  44. {
  45. return productId_;
  46. }
  47. void ModifyRuleRequest::setProductId(long productId)
  48. {
  49. productId_ = productId;
  50. setParameter("ProductId", std::to_string(productId));
  51. }
  52. long ModifyRuleRequest::getRiskLevelId()const
  53. {
  54. return riskLevelId_;
  55. }
  56. void ModifyRuleRequest::setRiskLevelId(long riskLevelId)
  57. {
  58. riskLevelId_ = riskLevelId;
  59. setParameter("RiskLevelId", std::to_string(riskLevelId));
  60. }
  61. std::string ModifyRuleRequest::getContent()const
  62. {
  63. return content_;
  64. }
  65. void ModifyRuleRequest::setContent(const std::string& content)
  66. {
  67. content_ = content;
  68. setParameter("Content", content);
  69. }
  70. std::string ModifyRuleRequest::getSourceIp()const
  71. {
  72. return sourceIp_;
  73. }
  74. void ModifyRuleRequest::setSourceIp(const std::string& sourceIp)
  75. {
  76. sourceIp_ = sourceIp;
  77. setParameter("SourceIp", sourceIp);
  78. }
  79. long ModifyRuleRequest::getId()const
  80. {
  81. return id_;
  82. }
  83. void ModifyRuleRequest::setId(long id)
  84. {
  85. id_ = id;
  86. setParameter("Id", std::to_string(id));
  87. }
  88. std::string ModifyRuleRequest::getLang()const
  89. {
  90. return lang_;
  91. }
  92. void ModifyRuleRequest::setLang(const std::string& lang)
  93. {
  94. lang_ = lang;
  95. setParameter("Lang", lang);
  96. }
  97. int ModifyRuleRequest::getFeatureType()const
  98. {
  99. return featureType_;
  100. }
  101. void ModifyRuleRequest::setFeatureType(int featureType)
  102. {
  103. featureType_ = featureType;
  104. setParameter("FeatureType", std::to_string(featureType));
  105. }
  106. int ModifyRuleRequest::getRuleType()const
  107. {
  108. return ruleType_;
  109. }
  110. void ModifyRuleRequest::setRuleType(int ruleType)
  111. {
  112. ruleType_ = ruleType;
  113. setParameter("RuleType", std::to_string(ruleType));
  114. }
  115. std::string ModifyRuleRequest::getStatExpress()const
  116. {
  117. return statExpress_;
  118. }
  119. void ModifyRuleRequest::setStatExpress(const std::string& statExpress)
  120. {
  121. statExpress_ = statExpress;
  122. setParameter("StatExpress", statExpress);
  123. }
  124. int ModifyRuleRequest::getCustomType()const
  125. {
  126. return customType_;
  127. }
  128. void ModifyRuleRequest::setCustomType(int customType)
  129. {
  130. customType_ = customType;
  131. setParameter("CustomType", std::to_string(customType));
  132. }
  133. std::string ModifyRuleRequest::getName()const
  134. {
  135. return name_;
  136. }
  137. void ModifyRuleRequest::setName(const std::string& name)
  138. {
  139. name_ = name;
  140. setParameter("Name", name);
  141. }
  142. int ModifyRuleRequest::getCategory()const
  143. {
  144. return category_;
  145. }
  146. void ModifyRuleRequest::setCategory(int category)
  147. {
  148. category_ = category;
  149. setParameter("Category", std::to_string(category));
  150. }