options['weight'] = $weight; $this->options['priority'] = $priority; $this->options['enabled'] = $enabled; $this->options['friendlyName'] = $friendlyName; $this->options['sipUrl'] = $sipUrl; } /** * The weight * * @param integer $weight The weight * @return $this Fluent Builder */ public function setWeight($weight) { $this->options['weight'] = $weight; return $this; } /** * The priority * * @param integer $priority The priority * @return $this Fluent Builder */ public function setPriority($priority) { $this->options['priority'] = $priority; return $this; } /** * The enabled * * @param boolean $enabled The enabled * @return $this Fluent Builder */ public function setEnabled($enabled) { $this->options['enabled'] = $enabled; return $this; } /** * The friendly_name * * @param string $friendlyName The friendly_name * @return $this Fluent Builder */ public function setFriendlyName($friendlyName) { $this->options['friendlyName'] = $friendlyName; return $this; } /** * The sip_url * * @param string $sipUrl The sip_url * @return $this Fluent Builder */ public function setSipUrl($sipUrl) { $this->options['sipUrl'] = $sipUrl; 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.Trunking.V1.UpdateOriginationUrlOptions ' . implode(' ', $options) . ']'; } }