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

231 lines
6.3 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\DescribeCasterConfigResponseBody\recordConfig;
use AlibabaCloud\SDK\Live\V20161101\Models\DescribeCasterConfigResponseBody\syncGroupsConfig;
use AlibabaCloud\SDK\Live\V20161101\Models\DescribeCasterConfigResponseBody\transcodeConfig;
use AlibabaCloud\Tea\Model;
class DescribeCasterConfigResponseBody extends Model
{
/**
* @var string
*/
public $callbackUrl;
/**
* @var string
*/
public $casterId;
/**
* @var string
*/
public $casterName;
/**
* @var int
*/
public $channelEnable;
/**
* @var float
*/
public $delay;
/**
* @var string
*/
public $domainName;
/**
* @var int
*/
public $programEffect;
/**
* @var string
*/
public $programName;
/**
* @var recordConfig
*/
public $recordConfig;
/**
* @var string
*/
public $requestId;
/**
* @var string
*/
public $sideOutputUrl;
/**
* @var string
*/
public $sideOutputUrlList;
/**
* @var syncGroupsConfig
*/
public $syncGroupsConfig;
/**
* @var transcodeConfig
*/
public $transcodeConfig;
/**
* @var string
*/
public $urgentLiveStreamUrl;
/**
* @var string
*/
public $urgentMaterialId;
protected $_name = [
'callbackUrl' => 'CallbackUrl',
'casterId' => 'CasterId',
'casterName' => 'CasterName',
'channelEnable' => 'ChannelEnable',
'delay' => 'Delay',
'domainName' => 'DomainName',
'programEffect' => 'ProgramEffect',
'programName' => 'ProgramName',
'recordConfig' => 'RecordConfig',
'requestId' => 'RequestId',
'sideOutputUrl' => 'SideOutputUrl',
'sideOutputUrlList' => 'SideOutputUrlList',
'syncGroupsConfig' => 'SyncGroupsConfig',
'transcodeConfig' => 'TranscodeConfig',
'urgentLiveStreamUrl' => 'UrgentLiveStreamUrl',
'urgentMaterialId' => 'UrgentMaterialId',
];
public function validate()
{
}
public function toMap()
{
$res = [];
if (null !== $this->callbackUrl) {
$res['CallbackUrl'] = $this->callbackUrl;
}
if (null !== $this->casterId) {
$res['CasterId'] = $this->casterId;
}
if (null !== $this->casterName) {
$res['CasterName'] = $this->casterName;
}
if (null !== $this->channelEnable) {
$res['ChannelEnable'] = $this->channelEnable;
}
if (null !== $this->delay) {
$res['Delay'] = $this->delay;
}
if (null !== $this->domainName) {
$res['DomainName'] = $this->domainName;
}
if (null !== $this->programEffect) {
$res['ProgramEffect'] = $this->programEffect;
}
if (null !== $this->programName) {
$res['ProgramName'] = $this->programName;
}
if (null !== $this->recordConfig) {
$res['RecordConfig'] = null !== $this->recordConfig ? $this->recordConfig->toMap() : null;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->sideOutputUrl) {
$res['SideOutputUrl'] = $this->sideOutputUrl;
}
if (null !== $this->sideOutputUrlList) {
$res['SideOutputUrlList'] = $this->sideOutputUrlList;
}
if (null !== $this->syncGroupsConfig) {
$res['SyncGroupsConfig'] = null !== $this->syncGroupsConfig ? $this->syncGroupsConfig->toMap() : null;
}
if (null !== $this->transcodeConfig) {
$res['TranscodeConfig'] = null !== $this->transcodeConfig ? $this->transcodeConfig->toMap() : null;
}
if (null !== $this->urgentLiveStreamUrl) {
$res['UrgentLiveStreamUrl'] = $this->urgentLiveStreamUrl;
}
if (null !== $this->urgentMaterialId) {
$res['UrgentMaterialId'] = $this->urgentMaterialId;
}
return $res;
}
/**
* @param array $map
*
* @return DescribeCasterConfigResponseBody
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['CallbackUrl'])) {
$model->callbackUrl = $map['CallbackUrl'];
}
if (isset($map['CasterId'])) {
$model->casterId = $map['CasterId'];
}
if (isset($map['CasterName'])) {
$model->casterName = $map['CasterName'];
}
if (isset($map['ChannelEnable'])) {
$model->channelEnable = $map['ChannelEnable'];
}
if (isset($map['Delay'])) {
$model->delay = $map['Delay'];
}
if (isset($map['DomainName'])) {
$model->domainName = $map['DomainName'];
}
if (isset($map['ProgramEffect'])) {
$model->programEffect = $map['ProgramEffect'];
}
if (isset($map['ProgramName'])) {
$model->programName = $map['ProgramName'];
}
if (isset($map['RecordConfig'])) {
$model->recordConfig = recordConfig::fromMap($map['RecordConfig']);
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['SideOutputUrl'])) {
$model->sideOutputUrl = $map['SideOutputUrl'];
}
if (isset($map['SideOutputUrlList'])) {
$model->sideOutputUrlList = $map['SideOutputUrlList'];
}
if (isset($map['SyncGroupsConfig'])) {
$model->syncGroupsConfig = syncGroupsConfig::fromMap($map['SyncGroupsConfig']);
}
if (isset($map['TranscodeConfig'])) {
$model->transcodeConfig = transcodeConfig::fromMap($map['TranscodeConfig']);
}
if (isset($map['UrgentLiveStreamUrl'])) {
$model->urgentLiveStreamUrl = $map['UrgentLiveStreamUrl'];
}
if (isset($map['UrgentMaterialId'])) {
$model->urgentMaterialId = $map['UrgentMaterialId'];
}
return $model;
}
}