ListPluginsRequest.cc 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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/elasticsearch/model/ListPluginsRequest.h>
  17. using AlibabaCloud::Elasticsearch::Model::ListPluginsRequest;
  18. ListPluginsRequest::ListPluginsRequest() :
  19. RoaServiceRequest("elasticsearch", "2017-06-13")
  20. {
  21. setResourcePath("/openapi/instances/[InstanceId]/plugins");
  22. setMethod(HttpRequest::Method::Get);
  23. }
  24. ListPluginsRequest::~ListPluginsRequest()
  25. {}
  26. std::string ListPluginsRequest::getInstanceId()const
  27. {
  28. return instanceId_;
  29. }
  30. void ListPluginsRequest::setInstanceId(const std::string& instanceId)
  31. {
  32. instanceId_ = instanceId;
  33. setParameter("InstanceId", instanceId);
  34. }
  35. int ListPluginsRequest::getSize()const
  36. {
  37. return size_;
  38. }
  39. void ListPluginsRequest::setSize(int size)
  40. {
  41. size_ = size;
  42. setParameter("Size", std::to_string(size));
  43. }
  44. std::string ListPluginsRequest::getName()const
  45. {
  46. return name_;
  47. }
  48. void ListPluginsRequest::setName(const std::string& name)
  49. {
  50. name_ = name;
  51. setParameter("Name", name);
  52. }
  53. std::string ListPluginsRequest::getPage()const
  54. {
  55. return page_;
  56. }
  57. void ListPluginsRequest::setPage(const std::string& page)
  58. {
  59. page_ = page;
  60. setParameter("Page", page);
  61. }
  62. std::string ListPluginsRequest::getSource()const
  63. {
  64. return source_;
  65. }
  66. void ListPluginsRequest::setSource(const std::string& source)
  67. {
  68. source_ = source;
  69. setParameter("Source", source);
  70. }