CompareFacesRequest.cc 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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/cloudauth/model/CompareFacesRequest.h>
  17. using AlibabaCloud::Cloudauth::Model::CompareFacesRequest;
  18. CompareFacesRequest::CompareFacesRequest() :
  19. RpcServiceRequest("cloudauth", "2018-09-16", "CompareFaces")
  20. {}
  21. CompareFacesRequest::~CompareFacesRequest()
  22. {}
  23. std::string CompareFacesRequest::getSourceImageType()const
  24. {
  25. return sourceImageType_;
  26. }
  27. void CompareFacesRequest::setSourceImageType(const std::string& sourceImageType)
  28. {
  29. sourceImageType_ = sourceImageType;
  30. setCoreParameter("SourceImageType", sourceImageType);
  31. }
  32. long CompareFacesRequest::getResourceOwnerId()const
  33. {
  34. return resourceOwnerId_;
  35. }
  36. void CompareFacesRequest::setResourceOwnerId(long resourceOwnerId)
  37. {
  38. resourceOwnerId_ = resourceOwnerId;
  39. setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  40. }
  41. std::string CompareFacesRequest::getSourceIp()const
  42. {
  43. return sourceIp_;
  44. }
  45. void CompareFacesRequest::setSourceIp(const std::string& sourceIp)
  46. {
  47. sourceIp_ = sourceIp;
  48. setCoreParameter("SourceIp", sourceIp);
  49. }
  50. std::string CompareFacesRequest::getTargetImageType()const
  51. {
  52. return targetImageType_;
  53. }
  54. void CompareFacesRequest::setTargetImageType(const std::string& targetImageType)
  55. {
  56. targetImageType_ = targetImageType;
  57. setCoreParameter("TargetImageType", targetImageType);
  58. }
  59. std::string CompareFacesRequest::getSourceImageValue()const
  60. {
  61. return sourceImageValue_;
  62. }
  63. void CompareFacesRequest::setSourceImageValue(const std::string& sourceImageValue)
  64. {
  65. sourceImageValue_ = sourceImageValue;
  66. setCoreParameter("SourceImageValue", sourceImageValue);
  67. }
  68. std::string CompareFacesRequest::getTargetImageValue()const
  69. {
  70. return targetImageValue_;
  71. }
  72. void CompareFacesRequest::setTargetImageValue(const std::string& targetImageValue)
  73. {
  74. targetImageValue_ = targetImageValue;
  75. setCoreParameter("TargetImageValue", targetImageValue);
  76. }