You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
1.4 KiB
72 lines
1.4 KiB
<?php
|
|
|
|
// This file is auto-generated, don't edit it. Thanks.
|
|
|
|
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\AddShortUrlResponseBody;
|
|
|
|
use AlibabaCloud\Tea\Model;
|
|
|
|
class data extends Model
|
|
{
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $sourceUrl;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $expireDate;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $shortUrl;
|
|
protected $_name = [
|
|
'sourceUrl' => 'SourceUrl',
|
|
'expireDate' => 'ExpireDate',
|
|
'shortUrl' => 'ShortUrl',
|
|
];
|
|
|
|
public function validate()
|
|
{
|
|
}
|
|
|
|
public function toMap()
|
|
{
|
|
$res = [];
|
|
if (null !== $this->sourceUrl) {
|
|
$res['SourceUrl'] = $this->sourceUrl;
|
|
}
|
|
if (null !== $this->expireDate) {
|
|
$res['ExpireDate'] = $this->expireDate;
|
|
}
|
|
if (null !== $this->shortUrl) {
|
|
$res['ShortUrl'] = $this->shortUrl;
|
|
}
|
|
|
|
return $res;
|
|
}
|
|
|
|
/**
|
|
* @param array $map
|
|
*
|
|
* @return data
|
|
*/
|
|
public static function fromMap($map = [])
|
|
{
|
|
$model = new self();
|
|
if (isset($map['SourceUrl'])) {
|
|
$model->sourceUrl = $map['SourceUrl'];
|
|
}
|
|
if (isset($map['ExpireDate'])) {
|
|
$model->expireDate = $map['ExpireDate'];
|
|
}
|
|
if (isset($map['ShortUrl'])) {
|
|
$model->shortUrl = $map['ShortUrl'];
|
|
}
|
|
|
|
return $model;
|
|
}
|
|
}
|