CreateTrailRequest.cc 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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/actiontrail/model/CreateTrailRequest.h>
  17. using AlibabaCloud::Actiontrail::Model::CreateTrailRequest;
  18. CreateTrailRequest::CreateTrailRequest() :
  19. RpcServiceRequest("actiontrail", "2017-12-04", "CreateTrail")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. CreateTrailRequest::~CreateTrailRequest()
  24. {}
  25. std::string CreateTrailRequest::getSlsProjectArn()const
  26. {
  27. return slsProjectArn_;
  28. }
  29. void CreateTrailRequest::setSlsProjectArn(const std::string& slsProjectArn)
  30. {
  31. slsProjectArn_ = slsProjectArn;
  32. setParameter("SlsProjectArn", slsProjectArn);
  33. }
  34. std::string CreateTrailRequest::getAccessKeyId()const
  35. {
  36. return accessKeyId_;
  37. }
  38. void CreateTrailRequest::setAccessKeyId(const std::string& accessKeyId)
  39. {
  40. accessKeyId_ = accessKeyId;
  41. setParameter("AccessKeyId", accessKeyId);
  42. }
  43. std::string CreateTrailRequest::getSlsWriteRoleArn()const
  44. {
  45. return slsWriteRoleArn_;
  46. }
  47. void CreateTrailRequest::setSlsWriteRoleArn(const std::string& slsWriteRoleArn)
  48. {
  49. slsWriteRoleArn_ = slsWriteRoleArn;
  50. setParameter("SlsWriteRoleArn", slsWriteRoleArn);
  51. }
  52. bool CreateTrailRequest::getIsOrganizationTrail()const
  53. {
  54. return isOrganizationTrail_;
  55. }
  56. void CreateTrailRequest::setIsOrganizationTrail(bool isOrganizationTrail)
  57. {
  58. isOrganizationTrail_ = isOrganizationTrail;
  59. setParameter("IsOrganizationTrail", isOrganizationTrail ? "true" : "false");
  60. }
  61. std::string CreateTrailRequest::getOssKeyPrefix()const
  62. {
  63. return ossKeyPrefix_;
  64. }
  65. void CreateTrailRequest::setOssKeyPrefix(const std::string& ossKeyPrefix)
  66. {
  67. ossKeyPrefix_ = ossKeyPrefix;
  68. setParameter("OssKeyPrefix", ossKeyPrefix);
  69. }
  70. std::string CreateTrailRequest::getMnsTopicArn()const
  71. {
  72. return mnsTopicArn_;
  73. }
  74. void CreateTrailRequest::setMnsTopicArn(const std::string& mnsTopicArn)
  75. {
  76. mnsTopicArn_ = mnsTopicArn;
  77. setParameter("MnsTopicArn", mnsTopicArn);
  78. }
  79. std::string CreateTrailRequest::getRoleName()const
  80. {
  81. return roleName_;
  82. }
  83. void CreateTrailRequest::setRoleName(const std::string& roleName)
  84. {
  85. roleName_ = roleName;
  86. setParameter("RoleName", roleName);
  87. }
  88. std::string CreateTrailRequest::getEventRW()const
  89. {
  90. return eventRW_;
  91. }
  92. void CreateTrailRequest::setEventRW(const std::string& eventRW)
  93. {
  94. eventRW_ = eventRW;
  95. setParameter("EventRW", eventRW);
  96. }
  97. std::string CreateTrailRequest::getName()const
  98. {
  99. return name_;
  100. }
  101. void CreateTrailRequest::setName(const std::string& name)
  102. {
  103. name_ = name;
  104. setParameter("Name", name);
  105. }
  106. std::string CreateTrailRequest::getOssBucketName()const
  107. {
  108. return ossBucketName_;
  109. }
  110. void CreateTrailRequest::setOssBucketName(const std::string& ossBucketName)
  111. {
  112. ossBucketName_ = ossBucketName;
  113. setParameter("OssBucketName", ossBucketName);
  114. }
  115. std::string CreateTrailRequest::getTrailRegion()const
  116. {
  117. return trailRegion_;
  118. }
  119. void CreateTrailRequest::setTrailRegion(const std::string& trailRegion)
  120. {
  121. trailRegion_ = trailRegion;
  122. setParameter("TrailRegion", trailRegion);
  123. }