PushNoticeToiOSRequest.cc 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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/PushNoticeToiOSRequest.h>
  17. using AlibabaCloud::Push::Model::PushNoticeToiOSRequest;
  18. PushNoticeToiOSRequest::PushNoticeToiOSRequest()
  19. : RpcServiceRequest("push", "2016-08-01", "PushNoticeToiOS") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. PushNoticeToiOSRequest::~PushNoticeToiOSRequest() {}
  23. std::string PushNoticeToiOSRequest::getExtParameters() const {
  24. return extParameters_;
  25. }
  26. void PushNoticeToiOSRequest::setExtParameters(const std::string &extParameters) {
  27. extParameters_ = extParameters;
  28. setParameter(std::string("ExtParameters"), extParameters);
  29. }
  30. std::string PushNoticeToiOSRequest::getApnsEnv() const {
  31. return apnsEnv_;
  32. }
  33. void PushNoticeToiOSRequest::setApnsEnv(const std::string &apnsEnv) {
  34. apnsEnv_ = apnsEnv;
  35. setParameter(std::string("ApnsEnv"), apnsEnv);
  36. }
  37. std::string PushNoticeToiOSRequest::getTitle() const {
  38. return title_;
  39. }
  40. void PushNoticeToiOSRequest::setTitle(const std::string &title) {
  41. title_ = title;
  42. setParameter(std::string("Title"), title);
  43. }
  44. std::string PushNoticeToiOSRequest::getBody() const {
  45. return body_;
  46. }
  47. void PushNoticeToiOSRequest::setBody(const std::string &body) {
  48. body_ = body;
  49. setParameter(std::string("Body"), body);
  50. }
  51. std::string PushNoticeToiOSRequest::getJobKey() const {
  52. return jobKey_;
  53. }
  54. void PushNoticeToiOSRequest::setJobKey(const std::string &jobKey) {
  55. jobKey_ = jobKey;
  56. setParameter(std::string("JobKey"), jobKey);
  57. }
  58. std::string PushNoticeToiOSRequest::getAccessKeyId() const {
  59. return accessKeyId_;
  60. }
  61. void PushNoticeToiOSRequest::setAccessKeyId(const std::string &accessKeyId) {
  62. accessKeyId_ = accessKeyId;
  63. setParameter(std::string("AccessKeyId"), accessKeyId);
  64. }
  65. std::string PushNoticeToiOSRequest::getTarget() const {
  66. return target_;
  67. }
  68. void PushNoticeToiOSRequest::setTarget(const std::string &target) {
  69. target_ = target;
  70. setParameter(std::string("Target"), target);
  71. }
  72. long PushNoticeToiOSRequest::getAppKey() const {
  73. return appKey_;
  74. }
  75. void PushNoticeToiOSRequest::setAppKey(long appKey) {
  76. appKey_ = appKey;
  77. setParameter(std::string("AppKey"), std::to_string(appKey));
  78. }
  79. std::string PushNoticeToiOSRequest::getTargetValue() const {
  80. return targetValue_;
  81. }
  82. void PushNoticeToiOSRequest::setTargetValue(const std::string &targetValue) {
  83. targetValue_ = targetValue;
  84. setParameter(std::string("TargetValue"), targetValue);
  85. }