CreateTopicRouteTableRequest.cc 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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/iot/model/CreateTopicRouteTableRequest.h>
  17. using AlibabaCloud::Iot::Model::CreateTopicRouteTableRequest;
  18. CreateTopicRouteTableRequest::CreateTopicRouteTableRequest() :
  19. RpcServiceRequest("iot", "2018-01-20", "CreateTopicRouteTable")
  20. {}
  21. CreateTopicRouteTableRequest::~CreateTopicRouteTableRequest()
  22. {}
  23. std::vector<std::string> CreateTopicRouteTableRequest::getDstTopic()const
  24. {
  25. return dstTopic_;
  26. }
  27. void CreateTopicRouteTableRequest::setDstTopic(const std::vector<std::string>& dstTopic)
  28. {
  29. dstTopic_ = dstTopic;
  30. for(int i = 0; i!= dstTopic.size(); i++)
  31. setCoreParameter("DstTopic."+ std::to_string(i), dstTopic.at(i));
  32. }
  33. std::string CreateTopicRouteTableRequest::getAccessKeyId()const
  34. {
  35. return accessKeyId_;
  36. }
  37. void CreateTopicRouteTableRequest::setAccessKeyId(const std::string& accessKeyId)
  38. {
  39. accessKeyId_ = accessKeyId;
  40. setCoreParameter("AccessKeyId", accessKeyId);
  41. }
  42. std::string CreateTopicRouteTableRequest::getRegionId()const
  43. {
  44. return regionId_;
  45. }
  46. void CreateTopicRouteTableRequest::setRegionId(const std::string& regionId)
  47. {
  48. regionId_ = regionId;
  49. setCoreParameter("RegionId", regionId);
  50. }
  51. std::string CreateTopicRouteTableRequest::getIotInstanceId()const
  52. {
  53. return iotInstanceId_;
  54. }
  55. void CreateTopicRouteTableRequest::setIotInstanceId(const std::string& iotInstanceId)
  56. {
  57. iotInstanceId_ = iotInstanceId;
  58. setCoreParameter("IotInstanceId", iotInstanceId);
  59. }
  60. std::string CreateTopicRouteTableRequest::getSrcTopic()const
  61. {
  62. return srcTopic_;
  63. }
  64. void CreateTopicRouteTableRequest::setSrcTopic(const std::string& srcTopic)
  65. {
  66. srcTopic_ = srcTopic;
  67. setCoreParameter("SrcTopic", srcTopic);
  68. }