QueryPushRecordsRequest.cc 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. setMethod(HttpRequest::Method::Post);
  21. }
  22. QueryPushRecordsRequest::~QueryPushRecordsRequest() {}
  23. std::string QueryPushRecordsRequest::getStartTime() const {
  24. return startTime_;
  25. }
  26. void QueryPushRecordsRequest::setStartTime(const std::string &startTime) {
  27. startTime_ = startTime;
  28. setParameter(std::string("StartTime"), startTime);
  29. }
  30. std::string QueryPushRecordsRequest::getSource() const {
  31. return source_;
  32. }
  33. void QueryPushRecordsRequest::setSource(const std::string &source) {
  34. source_ = source;
  35. setParameter(std::string("Source"), source);
  36. }
  37. std::string QueryPushRecordsRequest::getAccessKeyId() const {
  38. return accessKeyId_;
  39. }
  40. void QueryPushRecordsRequest::setAccessKeyId(const std::string &accessKeyId) {
  41. accessKeyId_ = accessKeyId;
  42. setParameter(std::string("AccessKeyId"), accessKeyId);
  43. }
  44. std::string QueryPushRecordsRequest::getNextToken() const {
  45. return nextToken_;
  46. }
  47. void QueryPushRecordsRequest::setNextToken(const std::string &nextToken) {
  48. nextToken_ = nextToken;
  49. setParameter(std::string("NextToken"), nextToken);
  50. }
  51. int QueryPushRecordsRequest::getPageSize() const {
  52. return pageSize_;
  53. }
  54. void QueryPushRecordsRequest::setPageSize(int pageSize) {
  55. pageSize_ = pageSize;
  56. setParameter(std::string("PageSize"), std::to_string(pageSize));
  57. }
  58. std::string QueryPushRecordsRequest::getKeyword() const {
  59. return keyword_;
  60. }
  61. void QueryPushRecordsRequest::setKeyword(const std::string &keyword) {
  62. keyword_ = keyword;
  63. setParameter(std::string("Keyword"), keyword);
  64. }
  65. std::string QueryPushRecordsRequest::getEndTime() const {
  66. return endTime_;
  67. }
  68. void QueryPushRecordsRequest::setEndTime(const std::string &endTime) {
  69. endTime_ = endTime;
  70. setParameter(std::string("EndTime"), endTime);
  71. }
  72. std::string QueryPushRecordsRequest::getTarget() const {
  73. return target_;
  74. }
  75. void QueryPushRecordsRequest::setTarget(const std::string &target) {
  76. target_ = target;
  77. setParameter(std::string("Target"), target);
  78. }
  79. long QueryPushRecordsRequest::getAppKey() const {
  80. return appKey_;
  81. }
  82. void QueryPushRecordsRequest::setAppKey(long appKey) {
  83. appKey_ = appKey;
  84. setParameter(std::string("AppKey"), std::to_string(appKey));
  85. }
  86. int QueryPushRecordsRequest::getPage() const {
  87. return page_;
  88. }
  89. void QueryPushRecordsRequest::setPage(int page) {
  90. page_ = page;
  91. setParameter(std::string("Page"), std::to_string(page));
  92. }
  93. std::string QueryPushRecordsRequest::getPushType() const {
  94. return pushType_;
  95. }
  96. void QueryPushRecordsRequest::setPushType(const std::string &pushType) {
  97. pushType_ = pushType;
  98. setParameter(std::string("PushType"), pushType);
  99. }