ModifyFlowLogAttributeRequest.cc 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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/smartag/model/ModifyFlowLogAttributeRequest.h>
  17. using AlibabaCloud::Smartag::Model::ModifyFlowLogAttributeRequest;
  18. ModifyFlowLogAttributeRequest::ModifyFlowLogAttributeRequest() :
  19. RpcServiceRequest("smartag", "2018-03-13", "ModifyFlowLogAttribute")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. ModifyFlowLogAttributeRequest::~ModifyFlowLogAttributeRequest()
  24. {}
  25. long ModifyFlowLogAttributeRequest::getResourceOwnerId()const
  26. {
  27. return resourceOwnerId_;
  28. }
  29. void ModifyFlowLogAttributeRequest::setResourceOwnerId(long resourceOwnerId)
  30. {
  31. resourceOwnerId_ = resourceOwnerId;
  32. setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  33. }
  34. std::string ModifyFlowLogAttributeRequest::getNetflowVersion()const
  35. {
  36. return netflowVersion_;
  37. }
  38. void ModifyFlowLogAttributeRequest::setNetflowVersion(const std::string& netflowVersion)
  39. {
  40. netflowVersion_ = netflowVersion;
  41. setParameter("NetflowVersion", netflowVersion);
  42. }
  43. std::string ModifyFlowLogAttributeRequest::getDescription()const
  44. {
  45. return description_;
  46. }
  47. void ModifyFlowLogAttributeRequest::setDescription(const std::string& description)
  48. {
  49. description_ = description;
  50. setParameter("Description", description);
  51. }
  52. int ModifyFlowLogAttributeRequest::getInactiveAging()const
  53. {
  54. return inactiveAging_;
  55. }
  56. void ModifyFlowLogAttributeRequest::setInactiveAging(int inactiveAging)
  57. {
  58. inactiveAging_ = inactiveAging;
  59. setParameter("InactiveAging", std::to_string(inactiveAging));
  60. }
  61. std::string ModifyFlowLogAttributeRequest::getRegionId()const
  62. {
  63. return regionId_;
  64. }
  65. void ModifyFlowLogAttributeRequest::setRegionId(const std::string& regionId)
  66. {
  67. regionId_ = regionId;
  68. setParameter("RegionId", regionId);
  69. }
  70. std::string ModifyFlowLogAttributeRequest::getSlsRegionId()const
  71. {
  72. return slsRegionId_;
  73. }
  74. void ModifyFlowLogAttributeRequest::setSlsRegionId(const std::string& slsRegionId)
  75. {
  76. slsRegionId_ = slsRegionId;
  77. setParameter("SlsRegionId", slsRegionId);
  78. }
  79. int ModifyFlowLogAttributeRequest::getActiveAging()const
  80. {
  81. return activeAging_;
  82. }
  83. void ModifyFlowLogAttributeRequest::setActiveAging(int activeAging)
  84. {
  85. activeAging_ = activeAging;
  86. setParameter("ActiveAging", std::to_string(activeAging));
  87. }
  88. std::string ModifyFlowLogAttributeRequest::getOutputType()const
  89. {
  90. return outputType_;
  91. }
  92. void ModifyFlowLogAttributeRequest::setOutputType(const std::string& outputType)
  93. {
  94. outputType_ = outputType;
  95. setParameter("OutputType", outputType);
  96. }
  97. std::string ModifyFlowLogAttributeRequest::getProjectName()const
  98. {
  99. return projectName_;
  100. }
  101. void ModifyFlowLogAttributeRequest::setProjectName(const std::string& projectName)
  102. {
  103. projectName_ = projectName;
  104. setParameter("ProjectName", projectName);
  105. }
  106. std::string ModifyFlowLogAttributeRequest::getLogstoreName()const
  107. {
  108. return logstoreName_;
  109. }
  110. void ModifyFlowLogAttributeRequest::setLogstoreName(const std::string& logstoreName)
  111. {
  112. logstoreName_ = logstoreName;
  113. setParameter("LogstoreName", logstoreName);
  114. }
  115. std::string ModifyFlowLogAttributeRequest::getResourceOwnerAccount()const
  116. {
  117. return resourceOwnerAccount_;
  118. }
  119. void ModifyFlowLogAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  120. {
  121. resourceOwnerAccount_ = resourceOwnerAccount;
  122. setParameter("ResourceOwnerAccount", resourceOwnerAccount);
  123. }
  124. std::string ModifyFlowLogAttributeRequest::getOwnerAccount()const
  125. {
  126. return ownerAccount_;
  127. }
  128. void ModifyFlowLogAttributeRequest::setOwnerAccount(const std::string& ownerAccount)
  129. {
  130. ownerAccount_ = ownerAccount;
  131. setParameter("OwnerAccount", ownerAccount);
  132. }
  133. int ModifyFlowLogAttributeRequest::getNetflowServerPort()const
  134. {
  135. return netflowServerPort_;
  136. }
  137. void ModifyFlowLogAttributeRequest::setNetflowServerPort(int netflowServerPort)
  138. {
  139. netflowServerPort_ = netflowServerPort;
  140. setParameter("NetflowServerPort", std::to_string(netflowServerPort));
  141. }
  142. long ModifyFlowLogAttributeRequest::getOwnerId()const
  143. {
  144. return ownerId_;
  145. }
  146. void ModifyFlowLogAttributeRequest::setOwnerId(long ownerId)
  147. {
  148. ownerId_ = ownerId;
  149. setParameter("OwnerId", std::to_string(ownerId));
  150. }
  151. std::string ModifyFlowLogAttributeRequest::getNetflowServerIp()const
  152. {
  153. return netflowServerIp_;
  154. }
  155. void ModifyFlowLogAttributeRequest::setNetflowServerIp(const std::string& netflowServerIp)
  156. {
  157. netflowServerIp_ = netflowServerIp;
  158. setParameter("NetflowServerIp", netflowServerIp);
  159. }
  160. std::string ModifyFlowLogAttributeRequest::getName()const
  161. {
  162. return name_;
  163. }
  164. void ModifyFlowLogAttributeRequest::setName(const std::string& name)
  165. {
  166. name_ = name;
  167. setParameter("Name", name);
  168. }
  169. std::string ModifyFlowLogAttributeRequest::getFlowLogId()const
  170. {
  171. return flowLogId_;
  172. }
  173. void ModifyFlowLogAttributeRequest::setFlowLogId(const std::string& flowLogId)
  174. {
  175. flowLogId_ = flowLogId;
  176. setParameter("FlowLogId", flowLogId);
  177. }