<?php

// This file is auto-generated, don't edit it. Thanks.

namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;

use AlibabaCloud\Dara\Model;

class UpdateSmsSignShrinkRequest extends Model
{
    /**
     * @var int
     */
    public $appIcpRecordId;

    /**
     * @var string
     */
    public $applySceneContent;

    /**
     * @var int
     */
    public $authorizationLetterId;

    /**
     * @var string
     */
    public $moreDataShrink;

    /**
     * @var int
     */
    public $ownerId;

    /**
     * @var int
     */
    public $qualificationId;

    /**
     * @var string
     */
    public $remark;

    /**
     * @var string
     */
    public $resourceOwnerAccount;

    /**
     * @var int
     */
    public $resourceOwnerId;

    /**
     * @var string
     */
    public $signName;

    /**
     * @var int
     */
    public $signSource;

    /**
     * @var int
     */
    public $signType;

    /**
     * @var bool
     */
    public $thirdParty;

    /**
     * @var int
     */
    public $trademarkId;
    protected $_name = [
        'appIcpRecordId' => 'AppIcpRecordId',
        'applySceneContent' => 'ApplySceneContent',
        'authorizationLetterId' => 'AuthorizationLetterId',
        'moreDataShrink' => 'MoreData',
        'ownerId' => 'OwnerId',
        'qualificationId' => 'QualificationId',
        'remark' => 'Remark',
        'resourceOwnerAccount' => 'ResourceOwnerAccount',
        'resourceOwnerId' => 'ResourceOwnerId',
        'signName' => 'SignName',
        'signSource' => 'SignSource',
        'signType' => 'SignType',
        'thirdParty' => 'ThirdParty',
        'trademarkId' => 'TrademarkId',
    ];

    public function validate()
    {
        parent::validate();
    }

    public function toArray($noStream = false)
    {
        $res = [];
        if (null !== $this->appIcpRecordId) {
            $res['AppIcpRecordId'] = $this->appIcpRecordId;
        }

        if (null !== $this->applySceneContent) {
            $res['ApplySceneContent'] = $this->applySceneContent;
        }

        if (null !== $this->authorizationLetterId) {
            $res['AuthorizationLetterId'] = $this->authorizationLetterId;
        }

        if (null !== $this->moreDataShrink) {
            $res['MoreData'] = $this->moreDataShrink;
        }

        if (null !== $this->ownerId) {
            $res['OwnerId'] = $this->ownerId;
        }

        if (null !== $this->qualificationId) {
            $res['QualificationId'] = $this->qualificationId;
        }

        if (null !== $this->remark) {
            $res['Remark'] = $this->remark;
        }

        if (null !== $this->resourceOwnerAccount) {
            $res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
        }

        if (null !== $this->resourceOwnerId) {
            $res['ResourceOwnerId'] = $this->resourceOwnerId;
        }

        if (null !== $this->signName) {
            $res['SignName'] = $this->signName;
        }

        if (null !== $this->signSource) {
            $res['SignSource'] = $this->signSource;
        }

        if (null !== $this->signType) {
            $res['SignType'] = $this->signType;
        }

        if (null !== $this->thirdParty) {
            $res['ThirdParty'] = $this->thirdParty;
        }

        if (null !== $this->trademarkId) {
            $res['TrademarkId'] = $this->trademarkId;
        }

        return $res;
    }

    public function toMap($noStream = false)
    {
        return $this->toArray($noStream);
    }

    public static function fromMap($map = [])
    {
        $model = new self();
        if (isset($map['AppIcpRecordId'])) {
            $model->appIcpRecordId = $map['AppIcpRecordId'];
        }

        if (isset($map['ApplySceneContent'])) {
            $model->applySceneContent = $map['ApplySceneContent'];
        }

        if (isset($map['AuthorizationLetterId'])) {
            $model->authorizationLetterId = $map['AuthorizationLetterId'];
        }

        if (isset($map['MoreData'])) {
            $model->moreDataShrink = $map['MoreData'];
        }

        if (isset($map['OwnerId'])) {
            $model->ownerId = $map['OwnerId'];
        }

        if (isset($map['QualificationId'])) {
            $model->qualificationId = $map['QualificationId'];
        }

        if (isset($map['Remark'])) {
            $model->remark = $map['Remark'];
        }

        if (isset($map['ResourceOwnerAccount'])) {
            $model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
        }

        if (isset($map['ResourceOwnerId'])) {
            $model->resourceOwnerId = $map['ResourceOwnerId'];
        }

        if (isset($map['SignName'])) {
            $model->signName = $map['SignName'];
        }

        if (isset($map['SignSource'])) {
            $model->signSource = $map['SignSource'];
        }

        if (isset($map['SignType'])) {
            $model->signType = $map['SignType'];
        }

        if (isset($map['ThirdParty'])) {
            $model->thirdParty = $map['ThirdParty'];
        }

        if (isset($map['TrademarkId'])) {
            $model->trademarkId = $map['TrademarkId'];
        }

        return $model;
    }
}
