<?php
/*
 * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
namespace TencentCloud\Dsgc\V20190723\Models;
use TencentCloud\Common\AbstractModel;

/**
 * DescribeSensitiveRDBDataDistribution请求参数结构体
 *
 * @method string getDspaId() 获取dspa-实例id
 * @method void setDspaId(string $DspaId) 设置dspa-实例id
 * @method integer getComplianceId() 获取合规组id
 * @method void setComplianceId(integer $ComplianceId) 设置合规组id
 * @method array getAssetList() 获取查询的资产信息列表
 * @method void setAssetList(array $AssetList) 设置查询的资产信息列表
 */
class DescribeSensitiveRDBDataDistributionRequest extends AbstractModel
{
    /**
     * @var string dspa-实例id
     */
    public $DspaId;

    /**
     * @var integer 合规组id
     */
    public $ComplianceId;

    /**
     * @var array 查询的资产信息列表
     */
    public $AssetList;

    /**
     * @param string $DspaId dspa-实例id
     * @param integer $ComplianceId 合规组id
     * @param array $AssetList 查询的资产信息列表
     */
    function __construct()
    {

    }

    /**
     * For internal only. DO NOT USE IT.
     */
    public function deserialize($param)
    {
        if ($param === null) {
            return;
        }
        if (array_key_exists("DspaId",$param) and $param["DspaId"] !== null) {
            $this->DspaId = $param["DspaId"];
        }

        if (array_key_exists("ComplianceId",$param) and $param["ComplianceId"] !== null) {
            $this->ComplianceId = $param["ComplianceId"];
        }

        if (array_key_exists("AssetList",$param) and $param["AssetList"] !== null) {
            $this->AssetList = [];
            foreach ($param["AssetList"] as $key => $value){
                $obj = new AssetList();
                $obj->deserialize($value);
                array_push($this->AssetList, $obj);
            }
        }
    }
}
