132 lines
3.0 KiB
PHP
132 lines
3.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 CreateCasterRequest extends Model
|
|
{
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $casterName;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $casterTemplate;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $chargeType;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $clientToken;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $expireTime;
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
public $normType;
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
public $ownerId;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $purchaseTime;
|
|
protected $_name = [
|
|
'casterName' => 'CasterName',
|
|
'casterTemplate' => 'CasterTemplate',
|
|
'chargeType' => 'ChargeType',
|
|
'clientToken' => 'ClientToken',
|
|
'expireTime' => 'ExpireTime',
|
|
'normType' => 'NormType',
|
|
'ownerId' => 'OwnerId',
|
|
'purchaseTime' => 'PurchaseTime',
|
|
];
|
|
|
|
public function validate()
|
|
{
|
|
}
|
|
|
|
public function toMap()
|
|
{
|
|
$res = [];
|
|
if (null !== $this->casterName) {
|
|
$res['CasterName'] = $this->casterName;
|
|
}
|
|
if (null !== $this->casterTemplate) {
|
|
$res['CasterTemplate'] = $this->casterTemplate;
|
|
}
|
|
if (null !== $this->chargeType) {
|
|
$res['ChargeType'] = $this->chargeType;
|
|
}
|
|
if (null !== $this->clientToken) {
|
|
$res['ClientToken'] = $this->clientToken;
|
|
}
|
|
if (null !== $this->expireTime) {
|
|
$res['ExpireTime'] = $this->expireTime;
|
|
}
|
|
if (null !== $this->normType) {
|
|
$res['NormType'] = $this->normType;
|
|
}
|
|
if (null !== $this->ownerId) {
|
|
$res['OwnerId'] = $this->ownerId;
|
|
}
|
|
if (null !== $this->purchaseTime) {
|
|
$res['PurchaseTime'] = $this->purchaseTime;
|
|
}
|
|
|
|
return $res;
|
|
}
|
|
|
|
/**
|
|
* @param array $map
|
|
*
|
|
* @return CreateCasterRequest
|
|
*/
|
|
public static function fromMap($map = [])
|
|
{
|
|
$model = new self();
|
|
if (isset($map['CasterName'])) {
|
|
$model->casterName = $map['CasterName'];
|
|
}
|
|
if (isset($map['CasterTemplate'])) {
|
|
$model->casterTemplate = $map['CasterTemplate'];
|
|
}
|
|
if (isset($map['ChargeType'])) {
|
|
$model->chargeType = $map['ChargeType'];
|
|
}
|
|
if (isset($map['ClientToken'])) {
|
|
$model->clientToken = $map['ClientToken'];
|
|
}
|
|
if (isset($map['ExpireTime'])) {
|
|
$model->expireTime = $map['ExpireTime'];
|
|
}
|
|
if (isset($map['NormType'])) {
|
|
$model->normType = $map['NormType'];
|
|
}
|
|
if (isset($map['OwnerId'])) {
|
|
$model->ownerId = $map['OwnerId'];
|
|
}
|
|
if (isset($map['PurchaseTime'])) {
|
|
$model->purchaseTime = $map['PurchaseTime'];
|
|
}
|
|
|
|
return $model;
|
|
}
|
|
}
|