SyncDataRequest.cc 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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/metering/model/SyncDataRequest.h>
  17. using AlibabaCloud::Metering::Model::SyncDataRequest;
  18. SyncDataRequest::SyncDataRequest() :
  19. RoaServiceRequest("metering", "2020-09-21")
  20. {
  21. setResourcePath("/api/dataSync");
  22. setMethod(HttpRequest::Method::Post);
  23. }
  24. SyncDataRequest::~SyncDataRequest()
  25. {}
  26. std::string SyncDataRequest::getInstanceId()const
  27. {
  28. return instanceId_;
  29. }
  30. void SyncDataRequest::setInstanceId(const std::string& instanceId)
  31. {
  32. instanceId_ = instanceId;
  33. setParameter("InstanceId", instanceId);
  34. }
  35. std::string SyncDataRequest::getData()const
  36. {
  37. return data_;
  38. }
  39. void SyncDataRequest::setData(const std::string& data)
  40. {
  41. data_ = data;
  42. setParameter("Data", data);
  43. }
  44. std::string SyncDataRequest::getDataType()const
  45. {
  46. return dataType_;
  47. }
  48. void SyncDataRequest::setDataType(const std::string& dataType)
  49. {
  50. dataType_ = dataType;
  51. setParameter("DataType", dataType);
  52. }
  53. std::string SyncDataRequest::getEndTime()const
  54. {
  55. return endTime_;
  56. }
  57. void SyncDataRequest::setEndTime(const std::string& endTime)
  58. {
  59. endTime_ = endTime;
  60. setParameter("EndTime", endTime);
  61. }
  62. std::string SyncDataRequest::getStartTime()const
  63. {
  64. return startTime_;
  65. }
  66. void SyncDataRequest::setStartTime(const std::string& startTime)
  67. {
  68. startTime_ = startTime;
  69. setParameter("StartTime", startTime);
  70. }
  71. std::string SyncDataRequest::getCommodityCode()const
  72. {
  73. return commodityCode_;
  74. }
  75. void SyncDataRequest::setCommodityCode(const std::string& commodityCode)
  76. {
  77. commodityCode_ = commodityCode;
  78. setParameter("CommodityCode", commodityCode);
  79. }
  80. std::string SyncDataRequest::getRegion()const
  81. {
  82. return region_;
  83. }
  84. void SyncDataRequest::setRegion(const std::string& region)
  85. {
  86. region_ = region;
  87. setParameter("Region", region);
  88. }
  89. std::string SyncDataRequest::getUserId()const
  90. {
  91. return userId_;
  92. }
  93. void SyncDataRequest::setUserId(const std::string& userId)
  94. {
  95. userId_ = userId;
  96. setParameter("UserId", userId);
  97. }