OnsTrendTopicInputTpsRequest.cc 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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/OnsTrendTopicInputTpsRequest.h>
  17. using AlibabaCloud::Ons::Model::OnsTrendTopicInputTpsRequest;
  18. OnsTrendTopicInputTpsRequest::OnsTrendTopicInputTpsRequest() :
  19. RpcServiceRequest("ons", "2019-02-14", "OnsTrendTopicInputTps")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. OnsTrendTopicInputTpsRequest::~OnsTrendTopicInputTpsRequest()
  24. {}
  25. long OnsTrendTopicInputTpsRequest::getPeriod()const
  26. {
  27. return period_;
  28. }
  29. void OnsTrendTopicInputTpsRequest::setPeriod(long period)
  30. {
  31. period_ = period;
  32. setCoreParameter("Period", std::to_string(period));
  33. }
  34. long OnsTrendTopicInputTpsRequest::getEndTime()const
  35. {
  36. return endTime_;
  37. }
  38. void OnsTrendTopicInputTpsRequest::setEndTime(long endTime)
  39. {
  40. endTime_ = endTime;
  41. setCoreParameter("EndTime", std::to_string(endTime));
  42. }
  43. long OnsTrendTopicInputTpsRequest::getBeginTime()const
  44. {
  45. return beginTime_;
  46. }
  47. void OnsTrendTopicInputTpsRequest::setBeginTime(long beginTime)
  48. {
  49. beginTime_ = beginTime;
  50. setCoreParameter("BeginTime", std::to_string(beginTime));
  51. }
  52. int OnsTrendTopicInputTpsRequest::getType()const
  53. {
  54. return type_;
  55. }
  56. void OnsTrendTopicInputTpsRequest::setType(int type)
  57. {
  58. type_ = type;
  59. setCoreParameter("Type", std::to_string(type));
  60. }
  61. std::string OnsTrendTopicInputTpsRequest::getInstanceId()const
  62. {
  63. return instanceId_;
  64. }
  65. void OnsTrendTopicInputTpsRequest::setInstanceId(const std::string& instanceId)
  66. {
  67. instanceId_ = instanceId;
  68. setCoreParameter("InstanceId", instanceId);
  69. }
  70. std::string OnsTrendTopicInputTpsRequest::getTopic()const
  71. {
  72. return topic_;
  73. }
  74. void OnsTrendTopicInputTpsRequest::setTopic(const std::string& topic)
  75. {
  76. topic_ = topic;
  77. setCoreParameter("Topic", topic);
  78. }