options['status'] = $status; $this->options['dateCreatedAfter'] = $dateCreatedAfter; $this->options['dateCreatedBefore'] = $dateCreatedBefore; $this->options['roomSid'] = $roomSid; } /** * The status * * @param string $status The status * @return $this Fluent Builder */ public function setStatus($status) { $this->options['status'] = $status; return $this; } /** * The date_created_after * * @param \DateTime $dateCreatedAfter The date_created_after * @return $this Fluent Builder */ public function setDateCreatedAfter($dateCreatedAfter) { $this->options['dateCreatedAfter'] = $dateCreatedAfter; return $this; } /** * The date_created_before * * @param \DateTime $dateCreatedBefore The date_created_before * @return $this Fluent Builder */ public function setDateCreatedBefore($dateCreatedBefore) { $this->options['dateCreatedBefore'] = $dateCreatedBefore; return $this; } /** * The room_sid * * @param string $roomSid The room_sid * @return $this Fluent Builder */ public function setRoomSid($roomSid) { $this->options['roomSid'] = $roomSid; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { $options = array(); foreach ($this->options as $key => $value) { if ($value != Values::NONE) { $options[] = "$key=$value"; } } return '[Twilio.Video.V1.ReadCompositionOptions ' . implode(' ', $options) . ']'; } } class CreateCompositionOptions extends Options { /** * @param string $audioSources The audio_sources * @param string $videoSources The video_sources * @param string $videoLayout The video_layout * @param string $resolution The resolution * @param string $format The format * @param integer $desiredBitrate The desired_bitrate * @param integer $desiredMaxDuration The desired_max_duration * @param string $statusCallback The status_callback * @param string $statusCallbackMethod The status_callback_method * @param boolean $trim The trim * @param boolean $reuse The reuse */ public function __construct($audioSources = Values::NONE, $videoSources = Values::NONE, $videoLayout = Values::NONE, $resolution = Values::NONE, $format = Values::NONE, $desiredBitrate = Values::NONE, $desiredMaxDuration = Values::NONE, $statusCallback = Values::NONE, $statusCallbackMethod = Values::NONE, $trim = Values::NONE, $reuse = Values::NONE) { $this->options['audioSources'] = $audioSources; $this->options['videoSources'] = $videoSources; $this->options['videoLayout'] = $videoLayout; $this->options['resolution'] = $resolution; $this->options['format'] = $format; $this->options['desiredBitrate'] = $desiredBitrate; $this->options['desiredMaxDuration'] = $desiredMaxDuration; $this->options['statusCallback'] = $statusCallback; $this->options['statusCallbackMethod'] = $statusCallbackMethod; $this->options['trim'] = $trim; $this->options['reuse'] = $reuse; } /** * The audio_sources * * @param string $audioSources The audio_sources * @return $this Fluent Builder */ public function setAudioSources($audioSources) { $this->options['audioSources'] = $audioSources; return $this; } /** * The video_sources * * @param string $videoSources The video_sources * @return $this Fluent Builder */ public function setVideoSources($videoSources) { $this->options['videoSources'] = $videoSources; return $this; } /** * The video_layout * * @param string $videoLayout The video_layout * @return $this Fluent Builder */ public function setVideoLayout($videoLayout) { $this->options['videoLayout'] = $videoLayout; return $this; } /** * The resolution * * @param string $resolution The resolution * @return $this Fluent Builder */ public function setResolution($resolution) { $this->options['resolution'] = $resolution; return $this; } /** * The format * * @param string $format The format * @return $this Fluent Builder */ public function setFormat($format) { $this->options['format'] = $format; return $this; } /** * The desired_bitrate * * @param integer $desiredBitrate The desired_bitrate * @return $this Fluent Builder */ public function setDesiredBitrate($desiredBitrate) { $this->options['desiredBitrate'] = $desiredBitrate; return $this; } /** * The desired_max_duration * * @param integer $desiredMaxDuration The desired_max_duration * @return $this Fluent Builder */ public function setDesiredMaxDuration($desiredMaxDuration) { $this->options['desiredMaxDuration'] = $desiredMaxDuration; return $this; } /** * The status_callback * * @param string $statusCallback The status_callback * @return $this Fluent Builder */ public function setStatusCallback($statusCallback) { $this->options['statusCallback'] = $statusCallback; return $this; } /** * The status_callback_method * * @param string $statusCallbackMethod The status_callback_method * @return $this Fluent Builder */ public function setStatusCallbackMethod($statusCallbackMethod) { $this->options['statusCallbackMethod'] = $statusCallbackMethod; return $this; } /** * The trim * * @param boolean $trim The trim * @return $this Fluent Builder */ public function setTrim($trim) { $this->options['trim'] = $trim; return $this; } /** * The reuse * * @param boolean $reuse The reuse * @return $this Fluent Builder */ public function setReuse($reuse) { $this->options['reuse'] = $reuse; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { $options = array(); foreach ($this->options as $key => $value) { if ($value != Values::NONE) { $options[] = "$key=$value"; } } return '[Twilio.Video.V1.CreateCompositionOptions ' . implode(' ', $options) . ']'; } }