DescribeServiceEventRequest.cc 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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/eas/model/DescribeServiceEventRequest.h>
  17. using AlibabaCloud::Eas::Model::DescribeServiceEventRequest;
  18. DescribeServiceEventRequest::DescribeServiceEventRequest()
  19. : RoaServiceRequest("eas", "2021-07-01") {
  20. setResourcePath("/api/v2/services/[ClusterId]/[ServiceName]/events"};
  21. setMethod(HttpRequest::Method::Get);
  22. }
  23. DescribeServiceEventRequest::~DescribeServiceEventRequest() {}
  24. std::string DescribeServiceEventRequest::getPageSize() const {
  25. return pageSize_;
  26. }
  27. void DescribeServiceEventRequest::setPageSize(const std::string &pageSize) {
  28. pageSize_ = pageSize;
  29. setParameter(std::string("PageSize"), pageSize);
  30. }
  31. std::string DescribeServiceEventRequest::getEndTime() const {
  32. return endTime_;
  33. }
  34. void DescribeServiceEventRequest::setEndTime(const std::string &endTime) {
  35. endTime_ = endTime;
  36. setParameter(std::string("EndTime"), endTime);
  37. }
  38. std::string DescribeServiceEventRequest::getServiceName() const {
  39. return serviceName_;
  40. }
  41. void DescribeServiceEventRequest::setServiceName(const std::string &serviceName) {
  42. serviceName_ = serviceName;
  43. setParameter(std::string("ServiceName"), serviceName);
  44. }
  45. std::string DescribeServiceEventRequest::getClusterId() const {
  46. return clusterId_;
  47. }
  48. void DescribeServiceEventRequest::setClusterId(const std::string &clusterId) {
  49. clusterId_ = clusterId;
  50. setParameter(std::string("ClusterId"), clusterId);
  51. }
  52. std::string DescribeServiceEventRequest::getStartTime() const {
  53. return startTime_;
  54. }
  55. void DescribeServiceEventRequest::setStartTime(const std::string &startTime) {
  56. startTime_ = startTime;
  57. setParameter(std::string("StartTime"), startTime);
  58. }
  59. std::string DescribeServiceEventRequest::getPageNum() const {
  60. return pageNum_;
  61. }
  62. void DescribeServiceEventRequest::setPageNum(const std::string &pageNum) {
  63. pageNum_ = pageNum;
  64. setParameter(std::string("PageNum"), pageNum);
  65. }