118 lines
2.7 KiB
PHP
118 lines
2.7 KiB
PHP
<?php
|
|
|
|
// This file is auto-generated, don't edit it. Thanks.
|
|
|
|
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
|
|
|
use AlibabaCloud\Tea\Model;
|
|
|
|
class CreateSmartShortUrlRequest extends Model
|
|
{
|
|
/**
|
|
* @example 示例值示例值
|
|
*
|
|
* @var string
|
|
*/
|
|
public $outId;
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
public $ownerId;
|
|
|
|
/**
|
|
* @description This parameter is required.
|
|
*
|
|
* @example 15900195***
|
|
*
|
|
* @var string
|
|
*/
|
|
public $phoneNumbers;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $resourceOwnerAccount;
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
public $resourceOwnerId;
|
|
|
|
/**
|
|
* @description This parameter is required.
|
|
*
|
|
* @example 示例值
|
|
*
|
|
* @var string
|
|
*/
|
|
public $sourceUrl;
|
|
protected $_name = [
|
|
'outId' => 'OutId',
|
|
'ownerId' => 'OwnerId',
|
|
'phoneNumbers' => 'PhoneNumbers',
|
|
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
|
'resourceOwnerId' => 'ResourceOwnerId',
|
|
'sourceUrl' => 'SourceUrl',
|
|
];
|
|
|
|
public function validate()
|
|
{
|
|
}
|
|
|
|
public function toMap()
|
|
{
|
|
$res = [];
|
|
if (null !== $this->outId) {
|
|
$res['OutId'] = $this->outId;
|
|
}
|
|
if (null !== $this->ownerId) {
|
|
$res['OwnerId'] = $this->ownerId;
|
|
}
|
|
if (null !== $this->phoneNumbers) {
|
|
$res['PhoneNumbers'] = $this->phoneNumbers;
|
|
}
|
|
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 CreateSmartShortUrlRequest
|
|
*/
|
|
public static function fromMap($map = [])
|
|
{
|
|
$model = new self();
|
|
if (isset($map['OutId'])) {
|
|
$model->outId = $map['OutId'];
|
|
}
|
|
if (isset($map['OwnerId'])) {
|
|
$model->ownerId = $map['OwnerId'];
|
|
}
|
|
if (isset($map['PhoneNumbers'])) {
|
|
$model->phoneNumbers = $map['PhoneNumbers'];
|
|
}
|
|
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;
|
|
}
|
|
}
|