DetectFaceAttributesRequest.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. // This file is auto-generated, don't edit it. Thanks.
  3. namespace AlibabaCloud\SDK\Cloudauth\V20190307\Models;
  4. use AlibabaCloud\Tea\Model;
  5. class DetectFaceAttributesRequest extends Model
  6. {
  7. /**
  8. * @var string
  9. */
  10. public $materialValue;
  11. /**
  12. * @var string
  13. */
  14. public $bizType;
  15. protected $_name = [
  16. 'materialValue' => 'MaterialValue',
  17. 'bizType' => 'BizType',
  18. ];
  19. public function validate()
  20. {
  21. Model::validateRequired('materialValue', $this->materialValue, true);
  22. }
  23. public function toMap()
  24. {
  25. $res = [];
  26. if (null !== $this->materialValue) {
  27. $res['MaterialValue'] = $this->materialValue;
  28. }
  29. if (null !== $this->bizType) {
  30. $res['BizType'] = $this->bizType;
  31. }
  32. return $res;
  33. }
  34. /**
  35. * @param array $map
  36. *
  37. * @return DetectFaceAttributesRequest
  38. */
  39. public static function fromMap($map = [])
  40. {
  41. $model = new self();
  42. if (isset($map['MaterialValue'])) {
  43. $model->materialValue = $map['MaterialValue'];
  44. }
  45. if (isset($map['BizType'])) {
  46. $model->bizType = $map['BizType'];
  47. }
  48. return $model;
  49. }
  50. }