QueryExceptionHistoryRequest.cc 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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/airec/model/QueryExceptionHistoryRequest.h>
  17. using AlibabaCloud::Airec::Model::QueryExceptionHistoryRequest;
  18. QueryExceptionHistoryRequest::QueryExceptionHistoryRequest() :
  19. RoaServiceRequest("airec", "2018-10-12")
  20. {
  21. setResourcePath("/openapi/instances/[InstanceId]/sync-reports/exception-history");
  22. setMethod(HttpRequest::Method::Get);
  23. }
  24. QueryExceptionHistoryRequest::~QueryExceptionHistoryRequest()
  25. {}
  26. std::string QueryExceptionHistoryRequest::getInstanceId()const
  27. {
  28. return instanceId_;
  29. }
  30. void QueryExceptionHistoryRequest::setInstanceId(const std::string& instanceId)
  31. {
  32. instanceId_ = instanceId;
  33. setParameter("InstanceId", instanceId);
  34. }
  35. long QueryExceptionHistoryRequest::getEndTime()const
  36. {
  37. return endTime_;
  38. }
  39. void QueryExceptionHistoryRequest::setEndTime(long endTime)
  40. {
  41. endTime_ = endTime;
  42. setParameter("EndTime", std::to_string(endTime));
  43. }
  44. long QueryExceptionHistoryRequest::getStartTime()const
  45. {
  46. return startTime_;
  47. }
  48. void QueryExceptionHistoryRequest::setStartTime(long startTime)
  49. {
  50. startTime_ = startTime;
  51. setParameter("StartTime", std::to_string(startTime));
  52. }
  53. std::string QueryExceptionHistoryRequest::getType()const
  54. {
  55. return type_;
  56. }
  57. void QueryExceptionHistoryRequest::setType(const std::string& type)
  58. {
  59. type_ = type;
  60. setParameter("Type", type);
  61. }