src/MediaServices/Models/EncodingReservedUnit.php
public function fromArray($options)
    {
        if (isset($options['AccountId'])) {
            Validate::isString($options['AccountId'], 'options[AccountId]');
            $this->_accountId = $options['AccountId'];
        }

        if (isset($options['ReservedUnitType'])) {
            Validate::isInteger($options['ReservedUnitType'], 'options[ReservedUnitType]');
            $this->_reservedUnitType = intval($options['ReservedUnitType']);
        }

        if (isset($options['MaxReservableUnits'])) {
            Validate::isInteger($options['MaxReservableUnits'], 'options[MaxReservableUnits]');
            $this->_maxReservableUnits = intval($options['MaxReservableUnits']);
        }

        if (isset($options['CurrentReservedUnits'])) {
            Validate::isString($options['CurrentReservedUnits'], 'options[CurrentReservedUnits]');
            $this->_currentReservedUnits = intval($options['CurrentReservedUnits']);
        }
    }
public function fromArray($options)
    {
        if (isset($options['AccountId'])) {
            Validate::isString($options['AccountId'], 'options[AccountId]');
            $this->_accountId = $options['AccountId'];
        }

        if (isset($options['ReservedUnitType'])) {
            Validate::isInteger($options['ReservedUnitType'], 'options[ReservedUnitType]');
            $this->_reservedUnitType = intval($options['ReservedUnitType']);
        }

        if (isset($options['MaxReservableUnits'])) {
            Validate::isInteger($options['MaxReservableUnits'], 'options[MaxReservableUnits]');
            $this->_maxReservableUnits = intval($options['MaxReservableUnits']);
        }

        if (isset($options['CurrentReservedUnits'])) {
            Validate::isString($options['CurrentReservedUnits'], 'options[CurrentReservedUnits]');
            $this->_currentReservedUnits = intval($options['CurrentReservedUnits']);
        }
    }
public function fromArray ( $ options ) { if ( isset ( $ options [ 'AccountId' ] ) ) { Validate :: isString ( $ options [ 'AccountId' ] , 'options[AccountId]' ) ; $ this -> _accountId = $ options [ 'AccountId' ] ; } if ( isset ( $ options [ 'ReservedUnitType' ] ) ) { Validate :: isInteger ( $ options [ 'ReservedUnitType' ] , 'options[ReservedUnitType]' ) ; $ this -> _reservedUnitType = intval ( $ options [ 'ReservedUnitType' ] ) ; } if ( isset ( $ options [ 'MaxReservableUnits' ] ) ) { Validate :: isInteger ( $ options [ 'MaxReservableUnits' ] , 'options[MaxReservableUnits]' ) ; $ this -> _maxReservableUnits = intval ( $ options [ 'MaxReservableUnits' ] ) ; } if ( isset ( $ options [ 'CurrentReservedUnits' ] ) ) { Validate :: isString ( $ options [ 'CurrentReservedUnits' ] , 'options[CurrentReservedUnits]' ) ; $ this -> _currentReservedUnits = intval ( $ options [ 'CurrentReservedUnits' ] ) ; } }
Fill EncodingReservedUnitType from array.

@param array $options Array containing values for object properties
Fill EncodingReservedUnitType from array .