Файл: sngine-v2.8/Script/includes/libs/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildOptions.php
Строк: 230
<?php
/**
* This code was generated by
* / _ _ _| _ _
* | (_)/(_)(_|/| |(/_ v1.0.0
* / /
*/
namespace TwilioRestAutopilotV1Assistant;
use TwilioOptions;
use TwilioValues;
/**
* 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 ModelBuildOptions {
/**
* @param string $statusCallback The URL we should call using a POST method to
* send status information to your application
* @param string $uniqueName An application-defined string that uniquely
* identifies the new resource
* @return CreateModelBuildOptions Options builder
*/
public static function create(string $statusCallback = Values::NONE, string $uniqueName = Values::NONE): CreateModelBuildOptions {
return new CreateModelBuildOptions($statusCallback, $uniqueName);
}
/**
* @param string $uniqueName An application-defined string that uniquely
* identifies the resource
* @return UpdateModelBuildOptions Options builder
*/
public static function update(string $uniqueName = Values::NONE): UpdateModelBuildOptions {
return new UpdateModelBuildOptions($uniqueName);
}
}
class CreateModelBuildOptions extends Options {
/**
* @param string $statusCallback The URL we should call using a POST method to
* send status information to your application
* @param string $uniqueName An application-defined string that uniquely
* identifies the new resource
*/
public function __construct(string $statusCallback = Values::NONE, string $uniqueName = Values::NONE) {
$this->options['statusCallback'] = $statusCallback;
$this->options['uniqueName'] = $uniqueName;
}
/**
* The URL we should call using a POST method to send status information to your application.
*
* @param string $statusCallback The URL we should call using a POST method to
* send status information to your application
* @return $this Fluent Builder
*/
public function setStatusCallback(string $statusCallback): self {
$this->options['statusCallback'] = $statusCallback;
return $this;
}
/**
* An application-defined string that uniquely identifies the new resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the resource.
*
* @param string $uniqueName An application-defined string that uniquely
* identifies the new resource
* @return $this Fluent Builder
*/
public function setUniqueName(string $uniqueName): self {
$this->options['uniqueName'] = $uniqueName;
return $this;
}
/**
* Provide a friendly representation
*
* @return string Machine friendly representation
*/
public function __toString(): string {
$options = http_build_query(Values::of($this->options), '', ' ');
return '[Twilio.Autopilot.V1.CreateModelBuildOptions ' . $options . ']';
}
}
class UpdateModelBuildOptions extends Options {
/**
* @param string $uniqueName An application-defined string that uniquely
* identifies the resource
*/
public function __construct(string $uniqueName = Values::NONE) {
$this->options['uniqueName'] = $uniqueName;
}
/**
* An application-defined string that uniquely identifies the resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the resource.
*
* @param string $uniqueName An application-defined string that uniquely
* identifies the resource
* @return $this Fluent Builder
*/
public function setUniqueName(string $uniqueName): self {
$this->options['uniqueName'] = $uniqueName;
return $this;
}
/**
* Provide a friendly representation
*
* @return string Machine friendly representation
*/
public function __toString(): string {
$options = http_build_query(Values::of($this->options), '', ' ');
return '[Twilio.Autopilot.V1.UpdateModelBuildOptions ' . $options . ']';
}
}