public function setEndTime($value)
    {
        if ($value instanceof \DateTime) {
            $value->setTimezone(new \DateTimeZone('UTC'));
            $value = $value->format('Y-m-d\TH:i:s\Z');
        }
        return $this->setParameter('endTime', $value);
    }
public function setEndTime($value)
    {
        if ($value instanceof \DateTime) {
            $value->setTimezone(new \DateTimeZone('UTC'));
            $value = $value->format('Y-m-d\TH:i:s\Z');
        }
        return $this->setParameter('endTime', $value);
    }
public function setEndTime ( $ value ) { if ( $ value instanceof \ DateTime ) { $ value -> setTimezone ( new \ DateTimeZone ( 'UTC' ) ) ; $ value = $ value -> format ( 'Y-m-d\TH:i:s\Z' ) ; } return $ this -> setParameter ( 'endTime' , $ value ) ; }
Set the request endTime

@param string|\DateTime $value
@return AbstractRestRequest provides a fluent interface.
Set the request endTime