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

144 lines
3.1 KiB
PHP

<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Live\V20161101\Models;
use AlibabaCloud\Tea\Model;
class DescribeDomainUsageDataRequest extends Model
{
/**
* @var string
*/
public $area;
/**
* @var string
*/
public $dataProtocol;
/**
* @var string
*/
public $domainName;
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $field;
/**
* @var string
*/
public $interval;
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $startTime;
/**
* @var string
*/
public $type;
protected $_name = [
'area' => 'Area',
'dataProtocol' => 'DataProtocol',
'domainName' => 'DomainName',
'endTime' => 'EndTime',
'field' => 'Field',
'interval' => 'Interval',
'ownerId' => 'OwnerId',
'startTime' => 'StartTime',
'type' => 'Type',
];
public function validate()
{
}
public function toMap()
{
$res = [];
if (null !== $this->area) {
$res['Area'] = $this->area;
}
if (null !== $this->dataProtocol) {
$res['DataProtocol'] = $this->dataProtocol;
}
if (null !== $this->domainName) {
$res['DomainName'] = $this->domainName;
}
if (null !== $this->endTime) {
$res['EndTime'] = $this->endTime;
}
if (null !== $this->field) {
$res['Field'] = $this->field;
}
if (null !== $this->interval) {
$res['Interval'] = $this->interval;
}
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->startTime) {
$res['StartTime'] = $this->startTime;
}
if (null !== $this->type) {
$res['Type'] = $this->type;
}
return $res;
}
/**
* @param array $map
*
* @return DescribeDomainUsageDataRequest
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Area'])) {
$model->area = $map['Area'];
}
if (isset($map['DataProtocol'])) {
$model->dataProtocol = $map['DataProtocol'];
}
if (isset($map['DomainName'])) {
$model->domainName = $map['DomainName'];
}
if (isset($map['EndTime'])) {
$model->endTime = $map['EndTime'];
}
if (isset($map['Field'])) {
$model->field = $map['Field'];
}
if (isset($map['Interval'])) {
$model->interval = $map['Interval'];
}
if (isset($map['OwnerId'])) {
$model->ownerId = $map['OwnerId'];
}
if (isset($map['StartTime'])) {
$model->startTime = $map['StartTime'];
}
if (isset($map['Type'])) {
$model->type = $map['Type'];
}
return $model;
}
}