156 lines
3.3 KiB
PHP
156 lines
3.3 KiB
PHP
<?php
|
|
|
|
// This file is auto-generated, don't edit it. Thanks.
|
|
|
|
namespace AlibabaCloud\SDK\Live\V20161101\Models;
|
|
|
|
use AlibabaCloud\Tea\Model;
|
|
|
|
class DescribeLiveProducerUsageDataRequest extends Model
|
|
{
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $domainName;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $endTime;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $instance;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $interval;
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
public $ownerId;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $region;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $splitBy;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $startTime;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $type;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $app;
|
|
protected $_name = [
|
|
'domainName' => 'DomainName',
|
|
'endTime' => 'EndTime',
|
|
'instance' => 'Instance',
|
|
'interval' => 'Interval',
|
|
'ownerId' => 'OwnerId',
|
|
'region' => 'Region',
|
|
'splitBy' => 'SplitBy',
|
|
'startTime' => 'StartTime',
|
|
'type' => 'Type',
|
|
'app' => 'app',
|
|
];
|
|
|
|
public function validate()
|
|
{
|
|
}
|
|
|
|
public function toMap()
|
|
{
|
|
$res = [];
|
|
if (null !== $this->domainName) {
|
|
$res['DomainName'] = $this->domainName;
|
|
}
|
|
if (null !== $this->endTime) {
|
|
$res['EndTime'] = $this->endTime;
|
|
}
|
|
if (null !== $this->instance) {
|
|
$res['Instance'] = $this->instance;
|
|
}
|
|
if (null !== $this->interval) {
|
|
$res['Interval'] = $this->interval;
|
|
}
|
|
if (null !== $this->ownerId) {
|
|
$res['OwnerId'] = $this->ownerId;
|
|
}
|
|
if (null !== $this->region) {
|
|
$res['Region'] = $this->region;
|
|
}
|
|
if (null !== $this->splitBy) {
|
|
$res['SplitBy'] = $this->splitBy;
|
|
}
|
|
if (null !== $this->startTime) {
|
|
$res['StartTime'] = $this->startTime;
|
|
}
|
|
if (null !== $this->type) {
|
|
$res['Type'] = $this->type;
|
|
}
|
|
if (null !== $this->app) {
|
|
$res['app'] = $this->app;
|
|
}
|
|
|
|
return $res;
|
|
}
|
|
|
|
/**
|
|
* @param array $map
|
|
*
|
|
* @return DescribeLiveProducerUsageDataRequest
|
|
*/
|
|
public static function fromMap($map = [])
|
|
{
|
|
$model = new self();
|
|
if (isset($map['DomainName'])) {
|
|
$model->domainName = $map['DomainName'];
|
|
}
|
|
if (isset($map['EndTime'])) {
|
|
$model->endTime = $map['EndTime'];
|
|
}
|
|
if (isset($map['Instance'])) {
|
|
$model->instance = $map['Instance'];
|
|
}
|
|
if (isset($map['Interval'])) {
|
|
$model->interval = $map['Interval'];
|
|
}
|
|
if (isset($map['OwnerId'])) {
|
|
$model->ownerId = $map['OwnerId'];
|
|
}
|
|
if (isset($map['Region'])) {
|
|
$model->region = $map['Region'];
|
|
}
|
|
if (isset($map['SplitBy'])) {
|
|
$model->splitBy = $map['SplitBy'];
|
|
}
|
|
if (isset($map['StartTime'])) {
|
|
$model->startTime = $map['StartTime'];
|
|
}
|
|
if (isset($map['Type'])) {
|
|
$model->type = $map['Type'];
|
|
}
|
|
if (isset($map['app'])) {
|
|
$model->app = $map['app'];
|
|
}
|
|
|
|
return $model;
|
|
}
|
|
}
|