2023-10-17 10:24:59 +08:00

132 lines
2.7 KiB
PHP

<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Live\V20161101\Models;
use AlibabaCloud\Tea\Model;
class AddTrancodeSEIRequest extends Model
{
/**
* @var string
*/
public $appName;
/**
* @var int
*/
public $delay;
/**
* @var string
*/
public $domainName;
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $pattern;
/**
* @var int
*/
public $repeat;
/**
* @var string
*/
public $streamName;
/**
* @var string
*/
public $text;
protected $_name = [
'appName' => 'AppName',
'delay' => 'Delay',
'domainName' => 'DomainName',
'ownerId' => 'OwnerId',
'pattern' => 'Pattern',
'repeat' => 'Repeat',
'streamName' => 'StreamName',
'text' => 'Text',
];
public function validate()
{
}
public function toMap()
{
$res = [];
if (null !== $this->appName) {
$res['AppName'] = $this->appName;
}
if (null !== $this->delay) {
$res['Delay'] = $this->delay;
}
if (null !== $this->domainName) {
$res['DomainName'] = $this->domainName;
}
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->pattern) {
$res['Pattern'] = $this->pattern;
}
if (null !== $this->repeat) {
$res['Repeat'] = $this->repeat;
}
if (null !== $this->streamName) {
$res['StreamName'] = $this->streamName;
}
if (null !== $this->text) {
$res['Text'] = $this->text;
}
return $res;
}
/**
* @param array $map
*
* @return AddTrancodeSEIRequest
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['AppName'])) {
$model->appName = $map['AppName'];
}
if (isset($map['Delay'])) {
$model->delay = $map['Delay'];
}
if (isset($map['DomainName'])) {
$model->domainName = $map['DomainName'];
}
if (isset($map['OwnerId'])) {
$model->ownerId = $map['OwnerId'];
}
if (isset($map['Pattern'])) {
$model->pattern = $map['Pattern'];
}
if (isset($map['Repeat'])) {
$model->repeat = $map['Repeat'];
}
if (isset($map['StreamName'])) {
$model->streamName = $map['StreamName'];
}
if (isset($map['Text'])) {
$model->text = $map['Text'];
}
return $model;
}
}