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

120 lines
2.5 KiB
PHP

<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Live\V20161101\Models;
use AlibabaCloud\Tea\Model;
class AddLiveStreamWatermarkRuleRequest extends Model
{
/**
* @var string
*/
public $app;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $domain;
/**
* @var string
*/
public $name;
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $stream;
/**
* @var string
*/
public $templateId;
protected $_name = [
'app' => 'App',
'description' => 'Description',
'domain' => 'Domain',
'name' => 'Name',
'ownerId' => 'OwnerId',
'stream' => 'Stream',
'templateId' => 'TemplateId',
];
public function validate()
{
}
public function toMap()
{
$res = [];
if (null !== $this->app) {
$res['App'] = $this->app;
}
if (null !== $this->description) {
$res['Description'] = $this->description;
}
if (null !== $this->domain) {
$res['Domain'] = $this->domain;
}
if (null !== $this->name) {
$res['Name'] = $this->name;
}
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->stream) {
$res['Stream'] = $this->stream;
}
if (null !== $this->templateId) {
$res['TemplateId'] = $this->templateId;
}
return $res;
}
/**
* @param array $map
*
* @return AddLiveStreamWatermarkRuleRequest
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['App'])) {
$model->app = $map['App'];
}
if (isset($map['Description'])) {
$model->description = $map['Description'];
}
if (isset($map['Domain'])) {
$model->domain = $map['Domain'];
}
if (isset($map['Name'])) {
$model->name = $map['Name'];
}
if (isset($map['OwnerId'])) {
$model->ownerId = $map['OwnerId'];
}
if (isset($map['Stream'])) {
$model->stream = $map['Stream'];
}
if (isset($map['TemplateId'])) {
$model->templateId = $map['TemplateId'];
}
return $model;
}
}