ListFacesRequest.cc 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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/cloudphoto/model/ListFacesRequest.h>
  17. using AlibabaCloud::CloudPhoto::Model::ListFacesRequest;
  18. ListFacesRequest::ListFacesRequest() :
  19. RpcServiceRequest("cloudphoto", "2017-07-11", "ListFaces")
  20. {}
  21. ListFacesRequest::~ListFacesRequest()
  22. {}
  23. std::string ListFacesRequest::getCursor()const
  24. {
  25. return cursor_;
  26. }
  27. void ListFacesRequest::setCursor(const std::string& cursor)
  28. {
  29. cursor_ = cursor;
  30. setCoreParameter("Cursor", cursor);
  31. }
  32. std::string ListFacesRequest::getHasFaceName()const
  33. {
  34. return hasFaceName_;
  35. }
  36. void ListFacesRequest::setHasFaceName(const std::string& hasFaceName)
  37. {
  38. hasFaceName_ = hasFaceName;
  39. setCoreParameter("HasFaceName", hasFaceName);
  40. }
  41. int ListFacesRequest::getSize()const
  42. {
  43. return size_;
  44. }
  45. void ListFacesRequest::setSize(int size)
  46. {
  47. size_ = size;
  48. setCoreParameter("Size", std::to_string(size));
  49. }
  50. std::string ListFacesRequest::getLibraryId()const
  51. {
  52. return libraryId_;
  53. }
  54. void ListFacesRequest::setLibraryId(const std::string& libraryId)
  55. {
  56. libraryId_ = libraryId;
  57. setCoreParameter("LibraryId", libraryId);
  58. }
  59. std::string ListFacesRequest::getStoreName()const
  60. {
  61. return storeName_;
  62. }
  63. void ListFacesRequest::setStoreName(const std::string& storeName)
  64. {
  65. storeName_ = storeName;
  66. setCoreParameter("StoreName", storeName);
  67. }
  68. std::string ListFacesRequest::getState()const
  69. {
  70. return state_;
  71. }
  72. void ListFacesRequest::setState(const std::string& state)
  73. {
  74. state_ = state;
  75. setCoreParameter("State", state);
  76. }
  77. std::string ListFacesRequest::getDirection()const
  78. {
  79. return direction_;
  80. }
  81. void ListFacesRequest::setDirection(const std::string& direction)
  82. {
  83. direction_ = direction;
  84. setCoreParameter("Direction", direction);
  85. }