1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <?php
- // This file is auto-generated, don't edit it. Thanks.
- namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
- use AlibabaCloud\Tea\Model;
- class DeleteShortUrlRequest extends Model
- {
- /**
- * @var int
- */
- public $ownerId;
- /**
- * @var string
- */
- public $resourceOwnerAccount;
- /**
- * @var int
- */
- public $resourceOwnerId;
- /**
- * @var string
- */
- public $sourceUrl;
- protected $_name = [
- 'ownerId' => 'OwnerId',
- 'resourceOwnerAccount' => 'ResourceOwnerAccount',
- 'resourceOwnerId' => 'ResourceOwnerId',
- 'sourceUrl' => 'SourceUrl',
- ];
- public function validate()
- {
- }
- public function toMap()
- {
- $res = [];
- if (null !== $this->ownerId) {
- $res['OwnerId'] = $this->ownerId;
- }
- if (null !== $this->resourceOwnerAccount) {
- $res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
- }
- if (null !== $this->resourceOwnerId) {
- $res['ResourceOwnerId'] = $this->resourceOwnerId;
- }
- if (null !== $this->sourceUrl) {
- $res['SourceUrl'] = $this->sourceUrl;
- }
- return $res;
- }
- /**
- * @param array $map
- *
- * @return DeleteShortUrlRequest
- */
- public static function fromMap($map = [])
- {
- $model = new self();
- if (isset($map['OwnerId'])) {
- $model->ownerId = $map['OwnerId'];
- }
- if (isset($map['ResourceOwnerAccount'])) {
- $model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
- }
- if (isset($map['ResourceOwnerId'])) {
- $model->resourceOwnerId = $map['ResourceOwnerId'];
- }
- if (isset($map['SourceUrl'])) {
- $model->sourceUrl = $map['SourceUrl'];
- }
- return $model;
- }
- }
|