OnsMessagePushRequest.cc 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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/ons/model/OnsMessagePushRequest.h>
  17. using AlibabaCloud::Ons::Model::OnsMessagePushRequest;
  18. OnsMessagePushRequest::OnsMessagePushRequest()
  19. : RpcServiceRequest("ons", "2019-02-14", "OnsMessagePush") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. OnsMessagePushRequest::~OnsMessagePushRequest() {}
  23. std::string OnsMessagePushRequest::getClientId() const {
  24. return clientId_;
  25. }
  26. void OnsMessagePushRequest::setClientId(const std::string &clientId) {
  27. clientId_ = clientId;
  28. setParameter(std::string("ClientId"), clientId);
  29. }
  30. std::string OnsMessagePushRequest::getGroupId() const {
  31. return groupId_;
  32. }
  33. void OnsMessagePushRequest::setGroupId(const std::string &groupId) {
  34. groupId_ = groupId;
  35. setParameter(std::string("GroupId"), groupId);
  36. }
  37. std::string OnsMessagePushRequest::getMsgId() const {
  38. return msgId_;
  39. }
  40. void OnsMessagePushRequest::setMsgId(const std::string &msgId) {
  41. msgId_ = msgId;
  42. setParameter(std::string("MsgId"), msgId);
  43. }
  44. std::string OnsMessagePushRequest::getInstanceId() const {
  45. return instanceId_;
  46. }
  47. void OnsMessagePushRequest::setInstanceId(const std::string &instanceId) {
  48. instanceId_ = instanceId;
  49. setParameter(std::string("InstanceId"), instanceId);
  50. }
  51. std::string OnsMessagePushRequest::getTopic() const {
  52. return topic_;
  53. }
  54. void OnsMessagePushRequest::setTopic(const std::string &topic) {
  55. topic_ = topic;
  56. setParameter(std::string("Topic"), topic);
  57. }