vpc-20160428/src/Models/DescribeRouteTableListRequest.php (162 lines of code) (raw):

<?php // This file is auto-generated, don't edit it. Thanks. namespace AlibabaCloud\SDK\Vpc\V20160428\Models; use AlibabaCloud\Dara\Model; use AlibabaCloud\SDK\Vpc\V20160428\Models\DescribeRouteTableListRequest\tag; class DescribeRouteTableListRequest extends Model { /** * @var string */ public $ownerAccount; /** * @var int */ public $ownerId; /** * @var int */ public $pageNumber; /** * @var int */ public $pageSize; /** * @var string */ public $regionId; /** * @var string */ public $resourceGroupId; /** * @var string */ public $resourceOwnerAccount; /** * @var int */ public $resourceOwnerId; /** * @var string */ public $routeTableId; /** * @var string */ public $routeTableName; /** * @var string */ public $routeTableType; /** * @var string */ public $routerId; /** * @var string */ public $routerType; /** * @var tag[] */ public $tag; /** * @var string */ public $vpcId; protected $_name = [ 'ownerAccount' => 'OwnerAccount', 'ownerId' => 'OwnerId', 'pageNumber' => 'PageNumber', 'pageSize' => 'PageSize', 'regionId' => 'RegionId', 'resourceGroupId' => 'ResourceGroupId', 'resourceOwnerAccount' => 'ResourceOwnerAccount', 'resourceOwnerId' => 'ResourceOwnerId', 'routeTableId' => 'RouteTableId', 'routeTableName' => 'RouteTableName', 'routeTableType' => 'RouteTableType', 'routerId' => 'RouterId', 'routerType' => 'RouterType', 'tag' => 'Tag', 'vpcId' => 'VpcId', ]; public function validate() { if (\is_array($this->tag)) { Model::validateArray($this->tag); } parent::validate(); } public function toArray($noStream = false) { $res = []; if (null !== $this->ownerAccount) { $res['OwnerAccount'] = $this->ownerAccount; } if (null !== $this->ownerId) { $res['OwnerId'] = $this->ownerId; } if (null !== $this->pageNumber) { $res['PageNumber'] = $this->pageNumber; } if (null !== $this->pageSize) { $res['PageSize'] = $this->pageSize; } if (null !== $this->regionId) { $res['RegionId'] = $this->regionId; } if (null !== $this->resourceGroupId) { $res['ResourceGroupId'] = $this->resourceGroupId; } if (null !== $this->resourceOwnerAccount) { $res['ResourceOwnerAccount'] = $this->resourceOwnerAccount; } if (null !== $this->resourceOwnerId) { $res['ResourceOwnerId'] = $this->resourceOwnerId; } if (null !== $this->routeTableId) { $res['RouteTableId'] = $this->routeTableId; } if (null !== $this->routeTableName) { $res['RouteTableName'] = $this->routeTableName; } if (null !== $this->routeTableType) { $res['RouteTableType'] = $this->routeTableType; } if (null !== $this->routerId) { $res['RouterId'] = $this->routerId; } if (null !== $this->routerType) { $res['RouterType'] = $this->routerType; } if (null !== $this->tag) { if (\is_array($this->tag)) { $res['Tag'] = []; $n1 = 0; foreach ($this->tag as $item1) { $res['Tag'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1; } } } if (null !== $this->vpcId) { $res['VpcId'] = $this->vpcId; } return $res; } public function toMap($noStream = false) { return $this->toArray($noStream); } public static function fromMap($map = []) { $model = new self(); if (isset($map['OwnerAccount'])) { $model->ownerAccount = $map['OwnerAccount']; } if (isset($map['OwnerId'])) { $model->ownerId = $map['OwnerId']; } if (isset($map['PageNumber'])) { $model->pageNumber = $map['PageNumber']; } if (isset($map['PageSize'])) { $model->pageSize = $map['PageSize']; } if (isset($map['RegionId'])) { $model->regionId = $map['RegionId']; } if (isset($map['ResourceGroupId'])) { $model->resourceGroupId = $map['ResourceGroupId']; } if (isset($map['ResourceOwnerAccount'])) { $model->resourceOwnerAccount = $map['ResourceOwnerAccount']; } if (isset($map['ResourceOwnerId'])) { $model->resourceOwnerId = $map['ResourceOwnerId']; } if (isset($map['RouteTableId'])) { $model->routeTableId = $map['RouteTableId']; } if (isset($map['RouteTableName'])) { $model->routeTableName = $map['RouteTableName']; } if (isset($map['RouteTableType'])) { $model->routeTableType = $map['RouteTableType']; } if (isset($map['RouterId'])) { $model->routerId = $map['RouterId']; } if (isset($map['RouterType'])) { $model->routerType = $map['RouterType']; } if (isset($map['Tag'])) { if (!empty($map['Tag'])) { $model->tag = []; $n1 = 0; foreach ($map['Tag'] as $item1) { $model->tag[$n1++] = tag::fromMap($item1); } } } if (isset($map['VpcId'])) { $model->vpcId = $map['VpcId']; } return $model; } }