GetCloudMetricLogsRequest.cc 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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/ehpc/model/GetCloudMetricLogsRequest.h>
  17. using AlibabaCloud::EHPC::Model::GetCloudMetricLogsRequest;
  18. GetCloudMetricLogsRequest::GetCloudMetricLogsRequest() :
  19. RpcServiceRequest("ehpc", "2018-04-12", "GetCloudMetricLogs")
  20. {}
  21. GetCloudMetricLogsRequest::~GetCloudMetricLogsRequest()
  22. {}
  23. std::string GetCloudMetricLogsRequest::getAggregationType()const
  24. {
  25. return aggregationType_;
  26. }
  27. void GetCloudMetricLogsRequest::setAggregationType(const std::string& aggregationType)
  28. {
  29. aggregationType_ = aggregationType;
  30. setParameter("AggregationType", aggregationType);
  31. }
  32. std::string GetCloudMetricLogsRequest::getFilter()const
  33. {
  34. return filter_;
  35. }
  36. void GetCloudMetricLogsRequest::setFilter(const std::string& filter)
  37. {
  38. filter_ = filter;
  39. setParameter("Filter", filter);
  40. }
  41. std::string GetCloudMetricLogsRequest::getMetricCategories()const
  42. {
  43. return metricCategories_;
  44. }
  45. void GetCloudMetricLogsRequest::setMetricCategories(const std::string& metricCategories)
  46. {
  47. metricCategories_ = metricCategories;
  48. setParameter("MetricCategories", metricCategories);
  49. }
  50. std::string GetCloudMetricLogsRequest::getMetricScope()const
  51. {
  52. return metricScope_;
  53. }
  54. void GetCloudMetricLogsRequest::setMetricScope(const std::string& metricScope)
  55. {
  56. metricScope_ = metricScope;
  57. setParameter("MetricScope", metricScope);
  58. }
  59. int GetCloudMetricLogsRequest::getFrom()const
  60. {
  61. return from_;
  62. }
  63. void GetCloudMetricLogsRequest::setFrom(int from)
  64. {
  65. from_ = from;
  66. setParameter("From", std::to_string(from));
  67. }
  68. std::string GetCloudMetricLogsRequest::getClusterId()const
  69. {
  70. return clusterId_;
  71. }
  72. void GetCloudMetricLogsRequest::setClusterId(const std::string& clusterId)
  73. {
  74. clusterId_ = clusterId;
  75. setParameter("ClusterId", clusterId);
  76. }
  77. int GetCloudMetricLogsRequest::getTo()const
  78. {
  79. return to_;
  80. }
  81. void GetCloudMetricLogsRequest::setTo(int to)
  82. {
  83. to_ = to;
  84. setParameter("To", std::to_string(to));
  85. }
  86. int GetCloudMetricLogsRequest::getAggregationInterval()const
  87. {
  88. return aggregationInterval_;
  89. }
  90. void GetCloudMetricLogsRequest::setAggregationInterval(int aggregationInterval)
  91. {
  92. aggregationInterval_ = aggregationInterval;
  93. setParameter("AggregationInterval", std::to_string(aggregationInterval));
  94. }
  95. bool GetCloudMetricLogsRequest::getReverse()const
  96. {
  97. return reverse_;
  98. }
  99. void GetCloudMetricLogsRequest::setReverse(bool reverse)
  100. {
  101. reverse_ = reverse;
  102. setParameter("Reverse", std::to_string(reverse));
  103. }
  104. std::string GetCloudMetricLogsRequest::getAccessKeyId()const
  105. {
  106. return accessKeyId_;
  107. }
  108. void GetCloudMetricLogsRequest::setAccessKeyId(const std::string& accessKeyId)
  109. {
  110. accessKeyId_ = accessKeyId;
  111. setParameter("AccessKeyId", accessKeyId);
  112. }