You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
132 lines
3.1 KiB
132 lines
3.1 KiB
3 years ago
|
<?php
|
||
|
|
||
|
// This file is auto-generated, don't edit it. Thanks.
|
||
|
|
||
|
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||
|
|
||
|
use AlibabaCloud\Tea\Model;
|
||
|
|
||
|
class ModifySmsTemplateRequest extends Model
|
||
|
{
|
||
|
/**
|
||
|
* @var int
|
||
|
*/
|
||
|
public $ownerId;
|
||
|
|
||
|
/**
|
||
|
* @var string
|
||
|
*/
|
||
|
public $resourceOwnerAccount;
|
||
|
|
||
|
/**
|
||
|
* @var int
|
||
|
*/
|
||
|
public $resourceOwnerId;
|
||
|
|
||
|
/**
|
||
|
* @var int
|
||
|
*/
|
||
|
public $templateType;
|
||
|
|
||
|
/**
|
||
|
* @var string
|
||
|
*/
|
||
|
public $templateName;
|
||
|
|
||
|
/**
|
||
|
* @var string
|
||
|
*/
|
||
|
public $templateCode;
|
||
|
|
||
|
/**
|
||
|
* @var string
|
||
|
*/
|
||
|
public $templateContent;
|
||
|
|
||
|
/**
|
||
|
* @var string
|
||
|
*/
|
||
|
public $remark;
|
||
|
protected $_name = [
|
||
|
'ownerId' => 'OwnerId',
|
||
|
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||
|
'resourceOwnerId' => 'ResourceOwnerId',
|
||
|
'templateType' => 'TemplateType',
|
||
|
'templateName' => 'TemplateName',
|
||
|
'templateCode' => 'TemplateCode',
|
||
|
'templateContent' => 'TemplateContent',
|
||
|
'remark' => 'Remark',
|
||
|
];
|
||
|
|
||
|
public function validate()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public function toMap()
|
||
|
{
|
||
|
$res = [];
|
||
|
if (null !== $this->ownerId) {
|
||
|
$res['OwnerId'] = $this->ownerId;
|
||
|
}
|
||
|
if (null !== $this->resourceOwnerAccount) {
|
||
|
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||
|
}
|
||
|
if (null !== $this->resourceOwnerId) {
|
||
|
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||
|
}
|
||
|
if (null !== $this->templateType) {
|
||
|
$res['TemplateType'] = $this->templateType;
|
||
|
}
|
||
|
if (null !== $this->templateName) {
|
||
|
$res['TemplateName'] = $this->templateName;
|
||
|
}
|
||
|
if (null !== $this->templateCode) {
|
||
|
$res['TemplateCode'] = $this->templateCode;
|
||
|
}
|
||
|
if (null !== $this->templateContent) {
|
||
|
$res['TemplateContent'] = $this->templateContent;
|
||
|
}
|
||
|
if (null !== $this->remark) {
|
||
|
$res['Remark'] = $this->remark;
|
||
|
}
|
||
|
|
||
|
return $res;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param array $map
|
||
|
*
|
||
|
* @return ModifySmsTemplateRequest
|
||
|
*/
|
||
|
public static function fromMap($map = [])
|
||
|
{
|
||
|
$model = new self();
|
||
|
if (isset($map['OwnerId'])) {
|
||
|
$model->ownerId = $map['OwnerId'];
|
||
|
}
|
||
|
if (isset($map['ResourceOwnerAccount'])) {
|
||
|
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||
|
}
|
||
|
if (isset($map['ResourceOwnerId'])) {
|
||
|
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||
|
}
|
||
|
if (isset($map['TemplateType'])) {
|
||
|
$model->templateType = $map['TemplateType'];
|
||
|
}
|
||
|
if (isset($map['TemplateName'])) {
|
||
|
$model->templateName = $map['TemplateName'];
|
||
|
}
|
||
|
if (isset($map['TemplateCode'])) {
|
||
|
$model->templateCode = $map['TemplateCode'];
|
||
|
}
|
||
|
if (isset($map['TemplateContent'])) {
|
||
|
$model->templateContent = $map['TemplateContent'];
|
||
|
}
|
||
|
if (isset($map['Remark'])) {
|
||
|
$model->remark = $map['Remark'];
|
||
|
}
|
||
|
|
||
|
return $model;
|
||
|
}
|
||
|
}
|