CreateFlowLogRequest.cc 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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/vpc/model/CreateFlowLogRequest.h>
  17. using AlibabaCloud::Vpc::Model::CreateFlowLogRequest;
  18. CreateFlowLogRequest::CreateFlowLogRequest()
  19. : RpcServiceRequest("vpc", "2016-04-28", "CreateFlowLog") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. CreateFlowLogRequest::~CreateFlowLogRequest() {}
  23. long CreateFlowLogRequest::getResourceOwnerId() const {
  24. return resourceOwnerId_;
  25. }
  26. void CreateFlowLogRequest::setResourceOwnerId(long resourceOwnerId) {
  27. resourceOwnerId_ = resourceOwnerId;
  28. setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
  29. }
  30. std::string CreateFlowLogRequest::getDescription() const {
  31. return description_;
  32. }
  33. void CreateFlowLogRequest::setDescription(const std::string &description) {
  34. description_ = description;
  35. setParameter(std::string("Description"), description);
  36. }
  37. std::string CreateFlowLogRequest::getResourceGroupId() const {
  38. return resourceGroupId_;
  39. }
  40. void CreateFlowLogRequest::setResourceGroupId(const std::string &resourceGroupId) {
  41. resourceGroupId_ = resourceGroupId;
  42. setParameter(std::string("ResourceGroupId"), resourceGroupId);
  43. }
  44. std::string CreateFlowLogRequest::getRegionId() const {
  45. return regionId_;
  46. }
  47. void CreateFlowLogRequest::setRegionId(const std::string &regionId) {
  48. regionId_ = regionId;
  49. setParameter(std::string("RegionId"), regionId);
  50. }
  51. std::string CreateFlowLogRequest::getResourceId() const {
  52. return resourceId_;
  53. }
  54. void CreateFlowLogRequest::setResourceId(const std::string &resourceId) {
  55. resourceId_ = resourceId;
  56. setParameter(std::string("ResourceId"), resourceId);
  57. }
  58. std::string CreateFlowLogRequest::getProjectName() const {
  59. return projectName_;
  60. }
  61. void CreateFlowLogRequest::setProjectName(const std::string &projectName) {
  62. projectName_ = projectName;
  63. setParameter(std::string("ProjectName"), projectName);
  64. }
  65. std::string CreateFlowLogRequest::getLogStoreName() const {
  66. return logStoreName_;
  67. }
  68. void CreateFlowLogRequest::setLogStoreName(const std::string &logStoreName) {
  69. logStoreName_ = logStoreName;
  70. setParameter(std::string("LogStoreName"), logStoreName);
  71. }
  72. std::string CreateFlowLogRequest::getResourceOwnerAccount() const {
  73. return resourceOwnerAccount_;
  74. }
  75. void CreateFlowLogRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
  76. resourceOwnerAccount_ = resourceOwnerAccount;
  77. setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
  78. }
  79. std::string CreateFlowLogRequest::getOwnerAccount() const {
  80. return ownerAccount_;
  81. }
  82. void CreateFlowLogRequest::setOwnerAccount(const std::string &ownerAccount) {
  83. ownerAccount_ = ownerAccount;
  84. setParameter(std::string("OwnerAccount"), ownerAccount);
  85. }
  86. std::vector<std::string> CreateFlowLogRequest::getTrafficPath() const {
  87. return trafficPath_;
  88. }
  89. void CreateFlowLogRequest::setTrafficPath(const std::vector<std::string> &trafficPath) {
  90. trafficPath_ = trafficPath;
  91. }
  92. int CreateFlowLogRequest::getAggregationInterval() const {
  93. return aggregationInterval_;
  94. }
  95. void CreateFlowLogRequest::setAggregationInterval(int aggregationInterval) {
  96. aggregationInterval_ = aggregationInterval;
  97. setParameter(std::string("AggregationInterval"), std::to_string(aggregationInterval));
  98. }
  99. long CreateFlowLogRequest::getOwnerId() const {
  100. return ownerId_;
  101. }
  102. void CreateFlowLogRequest::setOwnerId(long ownerId) {
  103. ownerId_ = ownerId;
  104. setParameter(std::string("OwnerId"), std::to_string(ownerId));
  105. }
  106. std::string CreateFlowLogRequest::getResourceType() const {
  107. return resourceType_;
  108. }
  109. void CreateFlowLogRequest::setResourceType(const std::string &resourceType) {
  110. resourceType_ = resourceType;
  111. setParameter(std::string("ResourceType"), resourceType);
  112. }
  113. std::string CreateFlowLogRequest::getTrafficType() const {
  114. return trafficType_;
  115. }
  116. void CreateFlowLogRequest::setTrafficType(const std::string &trafficType) {
  117. trafficType_ = trafficType;
  118. setParameter(std::string("TrafficType"), trafficType);
  119. }
  120. std::string CreateFlowLogRequest::getFlowLogName() const {
  121. return flowLogName_;
  122. }
  123. void CreateFlowLogRequest::setFlowLogName(const std::string &flowLogName) {
  124. flowLogName_ = flowLogName;
  125. setParameter(std::string("FlowLogName"), flowLogName);
  126. }