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

146 lines
3.2 KiB
PHP

<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Live\V20161101\Models;
use AlibabaCloud\Tea\Model;
class ModifyCasterEpisodeRequest extends Model
{
/**
* @var string
*/
public $casterId;
/**
* @var string[]
*/
public $componentId;
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $episodeId;
/**
* @var string
*/
public $episodeName;
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $resourceId;
/**
* @var string
*/
public $startTime;
/**
* @var string
*/
public $switchType;
protected $_name = [
'casterId' => 'CasterId',
'componentId' => 'ComponentId',
'endTime' => 'EndTime',
'episodeId' => 'EpisodeId',
'episodeName' => 'EpisodeName',
'ownerId' => 'OwnerId',
'resourceId' => 'ResourceId',
'startTime' => 'StartTime',
'switchType' => 'SwitchType',
];
public function validate()
{
}
public function toMap()
{
$res = [];
if (null !== $this->casterId) {
$res['CasterId'] = $this->casterId;
}
if (null !== $this->componentId) {
$res['ComponentId'] = $this->componentId;
}
if (null !== $this->endTime) {
$res['EndTime'] = $this->endTime;
}
if (null !== $this->episodeId) {
$res['EpisodeId'] = $this->episodeId;
}
if (null !== $this->episodeName) {
$res['EpisodeName'] = $this->episodeName;
}
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->resourceId) {
$res['ResourceId'] = $this->resourceId;
}
if (null !== $this->startTime) {
$res['StartTime'] = $this->startTime;
}
if (null !== $this->switchType) {
$res['SwitchType'] = $this->switchType;
}
return $res;
}
/**
* @param array $map
*
* @return ModifyCasterEpisodeRequest
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['CasterId'])) {
$model->casterId = $map['CasterId'];
}
if (isset($map['ComponentId'])) {
if (!empty($map['ComponentId'])) {
$model->componentId = $map['ComponentId'];
}
}
if (isset($map['EndTime'])) {
$model->endTime = $map['EndTime'];
}
if (isset($map['EpisodeId'])) {
$model->episodeId = $map['EpisodeId'];
}
if (isset($map['EpisodeName'])) {
$model->episodeName = $map['EpisodeName'];
}
if (isset($map['OwnerId'])) {
$model->ownerId = $map['OwnerId'];
}
if (isset($map['ResourceId'])) {
$model->resourceId = $map['ResourceId'];
}
if (isset($map['StartTime'])) {
$model->startTime = $map['StartTime'];
}
if (isset($map['SwitchType'])) {
$model->switchType = $map['SwitchType'];
}
return $model;
}
}