IntersectTrajectoryRequest.cc 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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/cdrs/model/IntersectTrajectoryRequest.h>
  17. using AlibabaCloud::CDRS::Model::IntersectTrajectoryRequest;
  18. IntersectTrajectoryRequest::IntersectTrajectoryRequest() :
  19. RpcServiceRequest("cdrs", "2020-11-01", "IntersectTrajectory")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. IntersectTrajectoryRequest::~IntersectTrajectoryRequest()
  24. {}
  25. std::string IntersectTrajectoryRequest::getCorpId()const
  26. {
  27. return corpId_;
  28. }
  29. void IntersectTrajectoryRequest::setCorpId(const std::string& corpId)
  30. {
  31. corpId_ = corpId;
  32. setBodyParameter("CorpId", corpId);
  33. }
  34. std::string IntersectTrajectoryRequest::getEndTime()const
  35. {
  36. return endTime_;
  37. }
  38. void IntersectTrajectoryRequest::setEndTime(const std::string& endTime)
  39. {
  40. endTime_ = endTime;
  41. setBodyParameter("EndTime", endTime);
  42. }
  43. int IntersectTrajectoryRequest::getDeltaDistance()const
  44. {
  45. return deltaDistance_;
  46. }
  47. void IntersectTrajectoryRequest::setDeltaDistance(int deltaDistance)
  48. {
  49. deltaDistance_ = deltaDistance;
  50. setBodyParameter("DeltaDistance", std::to_string(deltaDistance));
  51. }
  52. std::string IntersectTrajectoryRequest::getStartTime()const
  53. {
  54. return startTime_;
  55. }
  56. void IntersectTrajectoryRequest::setStartTime(const std::string& startTime)
  57. {
  58. startTime_ = startTime;
  59. setBodyParameter("StartTime", startTime);
  60. }
  61. int IntersectTrajectoryRequest::getDeltaTime()const
  62. {
  63. return deltaTime_;
  64. }
  65. void IntersectTrajectoryRequest::setDeltaTime(int deltaTime)
  66. {
  67. deltaTime_ = deltaTime;
  68. setBodyParameter("DeltaTime", std::to_string(deltaTime));
  69. }
  70. std::vector<IntersectTrajectoryRequest::IdList> IntersectTrajectoryRequest::getIdList()const
  71. {
  72. return idList_;
  73. }
  74. void IntersectTrajectoryRequest::setIdList(const std::vector<IdList>& idList)
  75. {
  76. idList_ = idList;
  77. for(int dep1 = 0; dep1!= idList.size(); dep1++) {
  78. auto idListObj = idList.at(dep1);
  79. std::string idListObjStr = "IdList." + std::to_string(dep1 + 1);
  80. setParameter(idListObjStr + ".IdType", idListObj.idType);
  81. setParameter(idListObjStr + ".IdValue", idListObj.idValue);
  82. }
  83. }