GetServiceInvokeRequest.cc 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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/viapi-regen/model/GetServiceInvokeRequest.h>
  17. using AlibabaCloud::Viapi_regen::Model::GetServiceInvokeRequest;
  18. GetServiceInvokeRequest::GetServiceInvokeRequest()
  19. : RpcServiceRequest("viapi-regen", "2021-11-19", "GetServiceInvoke") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. GetServiceInvokeRequest::~GetServiceInvokeRequest() {}
  23. long GetServiceInvokeRequest::getStartTime() const {
  24. return startTime_;
  25. }
  26. void GetServiceInvokeRequest::setStartTime(long startTime) {
  27. startTime_ = startTime;
  28. setBodyParameter(std::string("StartTime"), std::to_string(startTime));
  29. }
  30. long GetServiceInvokeRequest::getId() const {
  31. return id_;
  32. }
  33. void GetServiceInvokeRequest::setId(long id) {
  34. id_ = id;
  35. setBodyParameter(std::string("Id"), std::to_string(id));
  36. }
  37. long GetServiceInvokeRequest::getEndTime() const {
  38. return endTime_;
  39. }
  40. void GetServiceInvokeRequest::setEndTime(long endTime) {
  41. endTime_ = endTime;
  42. setBodyParameter(std::string("EndTime"), std::to_string(endTime));
  43. }
  44. std::vector<GetServiceInvokeRequest::std::string> GetServiceInvokeRequest::getCallerParentIdList() const {
  45. return callerParentIdList_;
  46. }
  47. void GetServiceInvokeRequest::setCallerParentIdList(const std::vector<GetServiceInvokeRequest::std::string> &callerParentIdList) {
  48. callerParentIdList_ = callerParentIdList;
  49. for(int dep1 = 0; dep1 != callerParentIdList.size(); dep1++) {
  50. setBodyParameter(std::string("CallerParentIdList") + "." + std::to_string(dep1 + 1), callerParentIdList[dep1]);
  51. }
  52. }