<?php

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

namespace AlibabaCloud\SDK\Dingtalk\Vcustomer_service_1_0\Models;

use AlibabaCloud\Tea\Model;

class PageListRobotRequest extends Model
{
    /**
     * @description 查询的企业Id
     *
     * @var string
     */
    public $corpId;

    /**
     * @description 本次读取的最大数据记录数量
     *
     * @var int
     */
    public $maxResults;

    /**
     * @description 用来标记当前开始读取的位置，置空表示从头开始
     *
     * @var int
     */
    public $nextToken;

    /**
     * @description 多实例ID
     *
     * @var string
     */
    public $openInstanceId;

    /**
     * @description 产品类型
     *
     * @var int
     */
    public $productionType;
    protected $_name = [
        'corpId'         => 'corpId',
        'maxResults'     => 'maxResults',
        'nextToken'      => 'nextToken',
        'openInstanceId' => 'openInstanceId',
        'productionType' => 'productionType',
    ];

    public function validate()
    {
    }

    public function toMap()
    {
        $res = [];
        if (null !== $this->corpId) {
            $res['corpId'] = $this->corpId;
        }
        if (null !== $this->maxResults) {
            $res['maxResults'] = $this->maxResults;
        }
        if (null !== $this->nextToken) {
            $res['nextToken'] = $this->nextToken;
        }
        if (null !== $this->openInstanceId) {
            $res['openInstanceId'] = $this->openInstanceId;
        }
        if (null !== $this->productionType) {
            $res['productionType'] = $this->productionType;
        }

        return $res;
    }

    /**
     * @param array $map
     *
     * @return PageListRobotRequest
     */
    public static function fromMap($map = [])
    {
        $model = new self();
        if (isset($map['corpId'])) {
            $model->corpId = $map['corpId'];
        }
        if (isset($map['maxResults'])) {
            $model->maxResults = $map['maxResults'];
        }
        if (isset($map['nextToken'])) {
            $model->nextToken = $map['nextToken'];
        }
        if (isset($map['openInstanceId'])) {
            $model->openInstanceId = $map['openInstanceId'];
        }
        if (isset($map['productionType'])) {
            $model->productionType = $map['productionType'];
        }

        return $model;
    }
}
