DescribeSQLTuningAdvicesRequest.cc 2.8 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/oceanbasepro/model/DescribeSQLTuningAdvicesRequest.h>
  17. using AlibabaCloud::OceanBasePro::Model::DescribeSQLTuningAdvicesRequest;
  18. DescribeSQLTuningAdvicesRequest::DescribeSQLTuningAdvicesRequest()
  19. : RpcServiceRequest("oceanbasepro", "2019-09-01", "DescribeSQLTuningAdvices") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. DescribeSQLTuningAdvicesRequest::~DescribeSQLTuningAdvicesRequest() {}
  23. std::string DescribeSQLTuningAdvicesRequest::getStartTime() const {
  24. return startTime_;
  25. }
  26. void DescribeSQLTuningAdvicesRequest::setStartTime(const std::string &startTime) {
  27. startTime_ = startTime;
  28. setBodyParameter(std::string("StartTime"), startTime);
  29. }
  30. std::string DescribeSQLTuningAdvicesRequest::getTenantId() const {
  31. return tenantId_;
  32. }
  33. void DescribeSQLTuningAdvicesRequest::setTenantId(const std::string &tenantId) {
  34. tenantId_ = tenantId;
  35. setBodyParameter(std::string("TenantId"), tenantId);
  36. }
  37. std::string DescribeSQLTuningAdvicesRequest::getSqlId() const {
  38. return sqlId_;
  39. }
  40. void DescribeSQLTuningAdvicesRequest::setSqlId(const std::string &sqlId) {
  41. sqlId_ = sqlId;
  42. setBodyParameter(std::string("SqlId"), sqlId);
  43. }
  44. std::string DescribeSQLTuningAdvicesRequest::getEndTime() const {
  45. return endTime_;
  46. }
  47. void DescribeSQLTuningAdvicesRequest::setEndTime(const std::string &endTime) {
  48. endTime_ = endTime;
  49. setBodyParameter(std::string("EndTime"), endTime);
  50. }
  51. std::string DescribeSQLTuningAdvicesRequest::getInstanceId() const {
  52. return instanceId_;
  53. }
  54. void DescribeSQLTuningAdvicesRequest::setInstanceId(const std::string &instanceId) {
  55. instanceId_ = instanceId;
  56. setBodyParameter(std::string("InstanceId"), instanceId);
  57. }
  58. std::string DescribeSQLTuningAdvicesRequest::getDbName() const {
  59. return dbName_;
  60. }
  61. void DescribeSQLTuningAdvicesRequest::setDbName(const std::string &dbName) {
  62. dbName_ = dbName;
  63. setBodyParameter(std::string("DbName"), dbName);
  64. }
  65. std::string DescribeSQLTuningAdvicesRequest::getAcceptLanguage() const {
  66. return acceptLanguage_;
  67. }
  68. void DescribeSQLTuningAdvicesRequest::setAcceptLanguage(const std::string &acceptLanguage) {
  69. acceptLanguage_ = acceptLanguage;
  70. setBodyParameter(std::string("AcceptLanguage"), acceptLanguage);
  71. }