vpc-20160428/src/Models/ModifySslVpnServerRequest.php (170 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; class ModifySslVpnServerRequest extends Model { /** * @var string */ public $cipher; /** * @var string */ public $clientIpPool; /** * @var string */ public $clientToken; /** * @var bool */ public $compress; /** * @var bool */ public $enableMultiFactorAuth; /** * @var string */ public $IDaaSApplicationId; /** * @var string */ public $IDaaSInstanceId; /** * @var string */ public $IDaaSRegionId; /** * @var string */ public $localSubnet; /** * @var string */ public $name; /** * @var string */ public $ownerAccount; /** * @var int */ public $ownerId; /** * @var int */ public $port; /** * @var string */ public $proto; /** * @var string */ public $regionId; /** * @var string */ public $resourceOwnerAccount; /** * @var int */ public $resourceOwnerId; /** * @var string */ public $sslVpnServerId; protected $_name = [ 'cipher' => 'Cipher', 'clientIpPool' => 'ClientIpPool', 'clientToken' => 'ClientToken', 'compress' => 'Compress', 'enableMultiFactorAuth' => 'EnableMultiFactorAuth', 'IDaaSApplicationId' => 'IDaaSApplicationId', 'IDaaSInstanceId' => 'IDaaSInstanceId', 'IDaaSRegionId' => 'IDaaSRegionId', 'localSubnet' => 'LocalSubnet', 'name' => 'Name', 'ownerAccount' => 'OwnerAccount', 'ownerId' => 'OwnerId', 'port' => 'Port', 'proto' => 'Proto', 'regionId' => 'RegionId', 'resourceOwnerAccount' => 'ResourceOwnerAccount', 'resourceOwnerId' => 'ResourceOwnerId', 'sslVpnServerId' => 'SslVpnServerId', ]; public function validate() { parent::validate(); } public function toArray($noStream = false) { $res = []; if (null !== $this->cipher) { $res['Cipher'] = $this->cipher; } if (null !== $this->clientIpPool) { $res['ClientIpPool'] = $this->clientIpPool; } if (null !== $this->clientToken) { $res['ClientToken'] = $this->clientToken; } if (null !== $this->compress) { $res['Compress'] = $this->compress; } if (null !== $this->enableMultiFactorAuth) { $res['EnableMultiFactorAuth'] = $this->enableMultiFactorAuth; } if (null !== $this->IDaaSApplicationId) { $res['IDaaSApplicationId'] = $this->IDaaSApplicationId; } if (null !== $this->IDaaSInstanceId) { $res['IDaaSInstanceId'] = $this->IDaaSInstanceId; } if (null !== $this->IDaaSRegionId) { $res['IDaaSRegionId'] = $this->IDaaSRegionId; } if (null !== $this->localSubnet) { $res['LocalSubnet'] = $this->localSubnet; } if (null !== $this->name) { $res['Name'] = $this->name; } if (null !== $this->ownerAccount) { $res['OwnerAccount'] = $this->ownerAccount; } if (null !== $this->ownerId) { $res['OwnerId'] = $this->ownerId; } if (null !== $this->port) { $res['Port'] = $this->port; } if (null !== $this->proto) { $res['Proto'] = $this->proto; } if (null !== $this->regionId) { $res['RegionId'] = $this->regionId; } if (null !== $this->resourceOwnerAccount) { $res['ResourceOwnerAccount'] = $this->resourceOwnerAccount; } if (null !== $this->resourceOwnerId) { $res['ResourceOwnerId'] = $this->resourceOwnerId; } if (null !== $this->sslVpnServerId) { $res['SslVpnServerId'] = $this->sslVpnServerId; } return $res; } public function toMap($noStream = false) { return $this->toArray($noStream); } public static function fromMap($map = []) { $model = new self(); if (isset($map['Cipher'])) { $model->cipher = $map['Cipher']; } if (isset($map['ClientIpPool'])) { $model->clientIpPool = $map['ClientIpPool']; } if (isset($map['ClientToken'])) { $model->clientToken = $map['ClientToken']; } if (isset($map['Compress'])) { $model->compress = $map['Compress']; } if (isset($map['EnableMultiFactorAuth'])) { $model->enableMultiFactorAuth = $map['EnableMultiFactorAuth']; } if (isset($map['IDaaSApplicationId'])) { $model->IDaaSApplicationId = $map['IDaaSApplicationId']; } if (isset($map['IDaaSInstanceId'])) { $model->IDaaSInstanceId = $map['IDaaSInstanceId']; } if (isset($map['IDaaSRegionId'])) { $model->IDaaSRegionId = $map['IDaaSRegionId']; } if (isset($map['LocalSubnet'])) { $model->localSubnet = $map['LocalSubnet']; } if (isset($map['Name'])) { $model->name = $map['Name']; } if (isset($map['OwnerAccount'])) { $model->ownerAccount = $map['OwnerAccount']; } if (isset($map['OwnerId'])) { $model->ownerId = $map['OwnerId']; } if (isset($map['Port'])) { $model->port = $map['Port']; } if (isset($map['Proto'])) { $model->proto = $map['Proto']; } if (isset($map['RegionId'])) { $model->regionId = $map['RegionId']; } if (isset($map['ResourceOwnerAccount'])) { $model->resourceOwnerAccount = $map['ResourceOwnerAccount']; } if (isset($map['ResourceOwnerId'])) { $model->resourceOwnerId = $map['ResourceOwnerId']; } if (isset($map['SslVpnServerId'])) { $model->sslVpnServerId = $map['SslVpnServerId']; } return $model; } }