<?php

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

namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;

use AlibabaCloud\Tea\Model;

class CreateSmsSignResponseBody extends Model
{
    /**
     * @description Request status code.
     *
     * - For other error codes, refer to the [Error Code List](https://help.aliyun.com/document_detail/101346.html).
     * @example OK
     *
     * @var string
     */
    public $code;

    /**
     * @description Description of the status code.
     *
     * @example successful
     *
     * @var string
     */
    public $message;

    /**
     * @description Work order number.
     *
     * This parameter is used by auditors when querying the audit. You will need to provide this work order number if you require expedited review.
     * @example 2004415****
     *
     * @var string
     */
    public $orderId;

    /**
     * @description The ID of this call request, which is a unique identifier generated by Alibaba Cloud for the request and can be used for troubleshooting and issue localization.
     *
     * @example CCA2BCFF-2BA7-427C-90EE-AC6994748607
     *
     * @var string
     */
    public $requestId;

    /**
     * @description Signature name.
     *
     * @example Aliyun
     *
     * @var string
     */
    public $signName;
    protected $_name = [
        'code'      => 'Code',
        'message'   => 'Message',
        'orderId'   => 'OrderId',
        'requestId' => 'RequestId',
        'signName'  => 'SignName',
    ];

    public function validate()
    {
    }

    public function toMap()
    {
        $res = [];
        if (null !== $this->code) {
            $res['Code'] = $this->code;
        }
        if (null !== $this->message) {
            $res['Message'] = $this->message;
        }
        if (null !== $this->orderId) {
            $res['OrderId'] = $this->orderId;
        }
        if (null !== $this->requestId) {
            $res['RequestId'] = $this->requestId;
        }
        if (null !== $this->signName) {
            $res['SignName'] = $this->signName;
        }

        return $res;
    }

    /**
     * @param array $map
     *
     * @return CreateSmsSignResponseBody
     */
    public static function fromMap($map = [])
    {
        $model = new self();
        if (isset($map['Code'])) {
            $model->code = $map['Code'];
        }
        if (isset($map['Message'])) {
            $model->message = $map['Message'];
        }
        if (isset($map['OrderId'])) {
            $model->orderId = $map['OrderId'];
        }
        if (isset($map['RequestId'])) {
            $model->requestId = $map['RequestId'];
        }
        if (isset($map['SignName'])) {
            $model->signName = $map['SignName'];
        }

        return $model;
    }
}
