TaskSystem/vendor/alibabacloud/live-20161101/src/Models/AddCasterEpisodeGroupRequest.php
2023-10-17 10:24:59 +08:00

145 lines
3.5 KiB
PHP

<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Live\V20161101\Models;
use AlibabaCloud\SDK\Live\V20161101\Models\AddCasterEpisodeGroupRequest\item;
use AlibabaCloud\Tea\Model;
class AddCasterEpisodeGroupRequest extends Model
{
/**
* @var string
*/
public $callbackUrl;
/**
* @var string
*/
public $clientToken;
/**
* @var string
*/
public $domainName;
/**
* @var item[]
*/
public $item;
/**
* @var int
*/
public $ownerId;
/**
* @var int
*/
public $repeatNum;
/**
* @var string
*/
public $sideOutputUrl;
/**
* @var string
*/
public $startTime;
protected $_name = [
'callbackUrl' => 'CallbackUrl',
'clientToken' => 'ClientToken',
'domainName' => 'DomainName',
'item' => 'Item',
'ownerId' => 'OwnerId',
'repeatNum' => 'RepeatNum',
'sideOutputUrl' => 'SideOutputUrl',
'startTime' => 'StartTime',
];
public function validate()
{
}
public function toMap()
{
$res = [];
if (null !== $this->callbackUrl) {
$res['CallbackUrl'] = $this->callbackUrl;
}
if (null !== $this->clientToken) {
$res['ClientToken'] = $this->clientToken;
}
if (null !== $this->domainName) {
$res['DomainName'] = $this->domainName;
}
if (null !== $this->item) {
$res['Item'] = [];
if (null !== $this->item && \is_array($this->item)) {
$n = 0;
foreach ($this->item as $item) {
$res['Item'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->repeatNum) {
$res['RepeatNum'] = $this->repeatNum;
}
if (null !== $this->sideOutputUrl) {
$res['SideOutputUrl'] = $this->sideOutputUrl;
}
if (null !== $this->startTime) {
$res['StartTime'] = $this->startTime;
}
return $res;
}
/**
* @param array $map
*
* @return AddCasterEpisodeGroupRequest
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['CallbackUrl'])) {
$model->callbackUrl = $map['CallbackUrl'];
}
if (isset($map['ClientToken'])) {
$model->clientToken = $map['ClientToken'];
}
if (isset($map['DomainName'])) {
$model->domainName = $map['DomainName'];
}
if (isset($map['Item'])) {
if (!empty($map['Item'])) {
$model->item = [];
$n = 0;
foreach ($map['Item'] as $item) {
$model->item[$n++] = null !== $item ? item::fromMap($item) : $item;
}
}
}
if (isset($map['OwnerId'])) {
$model->ownerId = $map['OwnerId'];
}
if (isset($map['RepeatNum'])) {
$model->repeatNum = $map['RepeatNum'];
}
if (isset($map['SideOutputUrl'])) {
$model->sideOutputUrl = $map['SideOutputUrl'];
}
if (isset($map['StartTime'])) {
$model->startTime = $map['StartTime'];
}
return $model;
}
}