OnsTrendGroupOutputTpsRequest.cc 2.6 KB

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