QueryPushRecordsRequest.cc 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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/push/model/QueryPushRecordsRequest.h>
  17. using AlibabaCloud::Push::Model::QueryPushRecordsRequest;
  18. QueryPushRecordsRequest::QueryPushRecordsRequest() :
  19. RpcServiceRequest("push", "2016-08-01", "QueryPushRecords")
  20. {}
  21. QueryPushRecordsRequest::~QueryPushRecordsRequest()
  22. {}
  23. std::string QueryPushRecordsRequest::getStartTime()const
  24. {
  25. return startTime_;
  26. }
  27. void QueryPushRecordsRequest::setStartTime(const std::string& startTime)
  28. {
  29. startTime_ = startTime;
  30. setCoreParameter("StartTime", startTime);
  31. }
  32. std::string QueryPushRecordsRequest::getSource()const
  33. {
  34. return source_;
  35. }
  36. void QueryPushRecordsRequest::setSource(const std::string& source)
  37. {
  38. source_ = source;
  39. setCoreParameter("Source", source);
  40. }
  41. std::string QueryPushRecordsRequest::getAccessKeyId()const
  42. {
  43. return accessKeyId_;
  44. }
  45. void QueryPushRecordsRequest::setAccessKeyId(const std::string& accessKeyId)
  46. {
  47. accessKeyId_ = accessKeyId;
  48. setCoreParameter("AccessKeyId", accessKeyId);
  49. }
  50. std::string QueryPushRecordsRequest::getNextToken()const
  51. {
  52. return nextToken_;
  53. }
  54. void QueryPushRecordsRequest::setNextToken(const std::string& nextToken)
  55. {
  56. nextToken_ = nextToken;
  57. setCoreParameter("NextToken", nextToken);
  58. }
  59. int QueryPushRecordsRequest::getPageSize()const
  60. {
  61. return pageSize_;
  62. }
  63. void QueryPushRecordsRequest::setPageSize(int pageSize)
  64. {
  65. pageSize_ = pageSize;
  66. setCoreParameter("PageSize", std::to_string(pageSize));
  67. }
  68. std::string QueryPushRecordsRequest::getKeyword()const
  69. {
  70. return keyword_;
  71. }
  72. void QueryPushRecordsRequest::setKeyword(const std::string& keyword)
  73. {
  74. keyword_ = keyword;
  75. setCoreParameter("Keyword", keyword);
  76. }
  77. std::string QueryPushRecordsRequest::getEndTime()const
  78. {
  79. return endTime_;
  80. }
  81. void QueryPushRecordsRequest::setEndTime(const std::string& endTime)
  82. {
  83. endTime_ = endTime;
  84. setCoreParameter("EndTime", endTime);
  85. }
  86. std::string QueryPushRecordsRequest::getTarget()const
  87. {
  88. return target_;
  89. }
  90. void QueryPushRecordsRequest::setTarget(const std::string& target)
  91. {
  92. target_ = target;
  93. setCoreParameter("Target", target);
  94. }
  95. long QueryPushRecordsRequest::getAppKey()const
  96. {
  97. return appKey_;
  98. }
  99. void QueryPushRecordsRequest::setAppKey(long appKey)
  100. {
  101. appKey_ = appKey;
  102. setCoreParameter("AppKey", std::to_string(appKey));
  103. }
  104. std::string QueryPushRecordsRequest::getPushType()const
  105. {
  106. return pushType_;
  107. }
  108. void QueryPushRecordsRequest::setPushType(const std::string& pushType)
  109. {
  110. pushType_ = pushType;
  111. setCoreParameter("PushType", pushType);
  112. }