options['language'] = $language; $this->options['modelBuild'] = $modelBuild; $this->options['status'] = $status; } /** * The language * * @param string $language The language * @return $this Fluent Builder */ public function setLanguage($language) { $this->options['language'] = $language; return $this; } /** * The model_build * * @param string $modelBuild The model_build * @return $this Fluent Builder */ public function setModelBuild($modelBuild) { $this->options['modelBuild'] = $modelBuild; return $this; } /** * The status * * @param string $status The status * @return $this Fluent Builder */ public function setStatus($status) { $this->options['status'] = $status; 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.Preview.Understand.ReadQueryOptions ' . implode(' ', $options) . ']'; } } class CreateQueryOptions extends Options { /** * @param string $intent The intent * @param string $modelBuild The model_build * @param string $field The field * @param string $namedEntity The named_entity */ public function __construct($intent = Values::NONE, $modelBuild = Values::NONE, $field = Values::NONE, $namedEntity = Values::NONE) { $this->options['intent'] = $intent; $this->options['modelBuild'] = $modelBuild; $this->options['field'] = $field; $this->options['namedEntity'] = $namedEntity; } /** * The intent * * @param string $intent The intent * @return $this Fluent Builder */ public function setIntent($intent) { $this->options['intent'] = $intent; return $this; } /** * The model_build * * @param string $modelBuild The model_build * @return $this Fluent Builder */ public function setModelBuild($modelBuild) { $this->options['modelBuild'] = $modelBuild; return $this; } /** * The field * * @param string $field The field * @return $this Fluent Builder */ public function setField($field) { $this->options['field'] = $field; return $this; } /** * The named_entity * * @param string $namedEntity The named_entity * @return $this Fluent Builder */ public function setNamedEntity($namedEntity) { $this->options['namedEntity'] = $namedEntity; 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.Preview.Understand.CreateQueryOptions ' . implode(' ', $options) . ']'; } } class UpdateQueryOptions extends Options { /** * @param string $sampleSid The sample_sid * @param string $status The status */ public function __construct($sampleSid = Values::NONE, $status = Values::NONE) { $this->options['sampleSid'] = $sampleSid; $this->options['status'] = $status; } /** * The sample_sid * * @param string $sampleSid The sample_sid * @return $this Fluent Builder */ public function setSampleSid($sampleSid) { $this->options['sampleSid'] = $sampleSid; return $this; } /** * The status * * @param string $status The status * @return $this Fluent Builder */ public function setStatus($status) { $this->options['status'] = $status; 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.Preview.Understand.UpdateQueryOptions ' . implode(' ', $options) . ']'; } }