96 lines
2.0 KiB
PHP
96 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 CreateLiveRealTimeLogDeliveryRequest extends Model
|
|
{
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $domainName;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $logstore;
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
public $ownerId;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $project;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $region;
|
|
protected $_name = [
|
|
'domainName' => 'DomainName',
|
|
'logstore' => 'Logstore',
|
|
'ownerId' => 'OwnerId',
|
|
'project' => 'Project',
|
|
'region' => 'Region',
|
|
];
|
|
|
|
public function validate()
|
|
{
|
|
}
|
|
|
|
public function toMap()
|
|
{
|
|
$res = [];
|
|
if (null !== $this->domainName) {
|
|
$res['DomainName'] = $this->domainName;
|
|
}
|
|
if (null !== $this->logstore) {
|
|
$res['Logstore'] = $this->logstore;
|
|
}
|
|
if (null !== $this->ownerId) {
|
|
$res['OwnerId'] = $this->ownerId;
|
|
}
|
|
if (null !== $this->project) {
|
|
$res['Project'] = $this->project;
|
|
}
|
|
if (null !== $this->region) {
|
|
$res['Region'] = $this->region;
|
|
}
|
|
|
|
return $res;
|
|
}
|
|
|
|
/**
|
|
* @param array $map
|
|
*
|
|
* @return CreateLiveRealTimeLogDeliveryRequest
|
|
*/
|
|
public static function fromMap($map = [])
|
|
{
|
|
$model = new self();
|
|
if (isset($map['DomainName'])) {
|
|
$model->domainName = $map['DomainName'];
|
|
}
|
|
if (isset($map['Logstore'])) {
|
|
$model->logstore = $map['Logstore'];
|
|
}
|
|
if (isset($map['OwnerId'])) {
|
|
$model->ownerId = $map['OwnerId'];
|
|
}
|
|
if (isset($map['Project'])) {
|
|
$model->project = $map['Project'];
|
|
}
|
|
if (isset($map['Region'])) {
|
|
$model->region = $map['Region'];
|
|
}
|
|
|
|
return $model;
|
|
}
|
|
}
|