98 lines
2.0 KiB
PHP
98 lines
2.0 KiB
PHP
<?php
|
|
|
|
// This file is auto-generated, don't edit it. Thanks.
|
|
|
|
namespace AlibabaCloud\SDK\Live\V20161101\Models;
|
|
|
|
use AlibabaCloud\Tea\Model;
|
|
|
|
class UpdateCasterSceneConfigRequest extends Model
|
|
{
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $casterId;
|
|
|
|
/**
|
|
* @var string[]
|
|
*/
|
|
public $componentId;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $layoutId;
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
public $ownerId;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $sceneId;
|
|
protected $_name = [
|
|
'casterId' => 'CasterId',
|
|
'componentId' => 'ComponentId',
|
|
'layoutId' => 'LayoutId',
|
|
'ownerId' => 'OwnerId',
|
|
'sceneId' => 'SceneId',
|
|
];
|
|
|
|
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->layoutId) {
|
|
$res['LayoutId'] = $this->layoutId;
|
|
}
|
|
if (null !== $this->ownerId) {
|
|
$res['OwnerId'] = $this->ownerId;
|
|
}
|
|
if (null !== $this->sceneId) {
|
|
$res['SceneId'] = $this->sceneId;
|
|
}
|
|
|
|
return $res;
|
|
}
|
|
|
|
/**
|
|
* @param array $map
|
|
*
|
|
* @return UpdateCasterSceneConfigRequest
|
|
*/
|
|
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['LayoutId'])) {
|
|
$model->layoutId = $map['LayoutId'];
|
|
}
|
|
if (isset($map['OwnerId'])) {
|
|
$model->ownerId = $map['OwnerId'];
|
|
}
|
|
if (isset($map['SceneId'])) {
|
|
$model->sceneId = $map['SceneId'];
|
|
}
|
|
|
|
return $model;
|
|
}
|
|
}
|