| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231 |
- <?php
- /**
- * This code was generated by
- * \ / _ _ _| _ _
- * | (_)\/(_)(_|\/| |(/_ v1.0.0
- * / /
- */
- namespace Twilio\Rest\Preview\Understand\Service;
- use Twilio\Options;
- use Twilio\Values;
- /**
- * PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
- */
- abstract class QueryOptions {
- /**
- * @param string $language The language
- * @param string $modelBuild The model_build
- * @param string $status The status
- * @return ReadQueryOptions Options builder
- */
- public static function read($language = Values::NONE, $modelBuild = Values::NONE, $status = Values::NONE) {
- return new ReadQueryOptions($language, $modelBuild, $status);
- }
- /**
- * @param string $intent The intent
- * @param string $modelBuild The model_build
- * @param string $field The field
- * @param string $namedEntity The named_entity
- * @return CreateQueryOptions Options builder
- */
- public static function create($intent = Values::NONE, $modelBuild = Values::NONE, $field = Values::NONE, $namedEntity = Values::NONE) {
- return new CreateQueryOptions($intent, $modelBuild, $field, $namedEntity);
- }
- /**
- * @param string $sampleSid The sample_sid
- * @param string $status The status
- * @return UpdateQueryOptions Options builder
- */
- public static function update($sampleSid = Values::NONE, $status = Values::NONE) {
- return new UpdateQueryOptions($sampleSid, $status);
- }
- }
- class ReadQueryOptions extends Options {
- /**
- * @param string $language The language
- * @param string $modelBuild The model_build
- * @param string $status The status
- */
- public function __construct($language = Values::NONE, $modelBuild = Values::NONE, $status = Values::NONE) {
- $this->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) . ']';
- }
- }
|