DeleteShortUrlRequest.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. // This file is auto-generated, don't edit it. Thanks.
  3. namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
  4. use AlibabaCloud\Tea\Model;
  5. class DeleteShortUrlRequest extends Model
  6. {
  7. /**
  8. * @var int
  9. */
  10. public $ownerId;
  11. /**
  12. * @var string
  13. */
  14. public $resourceOwnerAccount;
  15. /**
  16. * @var int
  17. */
  18. public $resourceOwnerId;
  19. /**
  20. * @var string
  21. */
  22. public $sourceUrl;
  23. protected $_name = [
  24. 'ownerId' => 'OwnerId',
  25. 'resourceOwnerAccount' => 'ResourceOwnerAccount',
  26. 'resourceOwnerId' => 'ResourceOwnerId',
  27. 'sourceUrl' => 'SourceUrl',
  28. ];
  29. public function validate()
  30. {
  31. }
  32. public function toMap()
  33. {
  34. $res = [];
  35. if (null !== $this->ownerId) {
  36. $res['OwnerId'] = $this->ownerId;
  37. }
  38. if (null !== $this->resourceOwnerAccount) {
  39. $res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
  40. }
  41. if (null !== $this->resourceOwnerId) {
  42. $res['ResourceOwnerId'] = $this->resourceOwnerId;
  43. }
  44. if (null !== $this->sourceUrl) {
  45. $res['SourceUrl'] = $this->sourceUrl;
  46. }
  47. return $res;
  48. }
  49. /**
  50. * @param array $map
  51. *
  52. * @return DeleteShortUrlRequest
  53. */
  54. public static function fromMap($map = [])
  55. {
  56. $model = new self();
  57. if (isset($map['OwnerId'])) {
  58. $model->ownerId = $map['OwnerId'];
  59. }
  60. if (isset($map['ResourceOwnerAccount'])) {
  61. $model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
  62. }
  63. if (isset($map['ResourceOwnerId'])) {
  64. $model->resourceOwnerId = $map['ResourceOwnerId'];
  65. }
  66. if (isset($map['SourceUrl'])) {
  67. $model->sourceUrl = $map['SourceUrl'];
  68. }
  69. return $model;
  70. }
  71. }