ModelBuildOptions.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?php
  2. /**
  3. * This code was generated by
  4. * \ / _ _ _| _ _
  5. * | (_)\/(_)(_|\/| |(/_ v1.0.0
  6. * / /
  7. */
  8. namespace Twilio\Rest\Preview\Understand\Assistant;
  9. use Twilio\Options;
  10. use Twilio\Values;
  11. /**
  12. * 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.
  13. */
  14. abstract class ModelBuildOptions {
  15. /**
  16. * @param string $statusCallback The status_callback
  17. * @param string $uniqueName A user-provided string that uniquely identifies
  18. * this resource as an alternative to the sid. Unique
  19. * up to 64 characters long. For example: v0.1
  20. * @return CreateModelBuildOptions Options builder
  21. */
  22. public static function create($statusCallback = Values::NONE, $uniqueName = Values::NONE) {
  23. return new CreateModelBuildOptions($statusCallback, $uniqueName);
  24. }
  25. /**
  26. * @param string $uniqueName A user-provided string that uniquely identifies
  27. * this resource as an alternative to the sid. Unique
  28. * up to 64 characters long. For example: v0.1
  29. * @return UpdateModelBuildOptions Options builder
  30. */
  31. public static function update($uniqueName = Values::NONE) {
  32. return new UpdateModelBuildOptions($uniqueName);
  33. }
  34. }
  35. class CreateModelBuildOptions extends Options {
  36. /**
  37. * @param string $statusCallback The status_callback
  38. * @param string $uniqueName A user-provided string that uniquely identifies
  39. * this resource as an alternative to the sid. Unique
  40. * up to 64 characters long. For example: v0.1
  41. */
  42. public function __construct($statusCallback = Values::NONE, $uniqueName = Values::NONE) {
  43. $this->options['statusCallback'] = $statusCallback;
  44. $this->options['uniqueName'] = $uniqueName;
  45. }
  46. /**
  47. * The status_callback
  48. *
  49. * @param string $statusCallback The status_callback
  50. * @return $this Fluent Builder
  51. */
  52. public function setStatusCallback($statusCallback) {
  53. $this->options['statusCallback'] = $statusCallback;
  54. return $this;
  55. }
  56. /**
  57. * A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. For example: v0.1
  58. *
  59. * @param string $uniqueName A user-provided string that uniquely identifies
  60. * this resource as an alternative to the sid. Unique
  61. * up to 64 characters long. For example: v0.1
  62. * @return $this Fluent Builder
  63. */
  64. public function setUniqueName($uniqueName) {
  65. $this->options['uniqueName'] = $uniqueName;
  66. return $this;
  67. }
  68. /**
  69. * Provide a friendly representation
  70. *
  71. * @return string Machine friendly representation
  72. */
  73. public function __toString() {
  74. $options = array();
  75. foreach ($this->options as $key => $value) {
  76. if ($value != Values::NONE) {
  77. $options[] = "$key=$value";
  78. }
  79. }
  80. return '[Twilio.Preview.Understand.CreateModelBuildOptions ' . implode(' ', $options) . ']';
  81. }
  82. }
  83. class UpdateModelBuildOptions extends Options {
  84. /**
  85. * @param string $uniqueName A user-provided string that uniquely identifies
  86. * this resource as an alternative to the sid. Unique
  87. * up to 64 characters long. For example: v0.1
  88. */
  89. public function __construct($uniqueName = Values::NONE) {
  90. $this->options['uniqueName'] = $uniqueName;
  91. }
  92. /**
  93. * A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. For example: v0.1
  94. *
  95. * @param string $uniqueName A user-provided string that uniquely identifies
  96. * this resource as an alternative to the sid. Unique
  97. * up to 64 characters long. For example: v0.1
  98. * @return $this Fluent Builder
  99. */
  100. public function setUniqueName($uniqueName) {
  101. $this->options['uniqueName'] = $uniqueName;
  102. return $this;
  103. }
  104. /**
  105. * Provide a friendly representation
  106. *
  107. * @return string Machine friendly representation
  108. */
  109. public function __toString() {
  110. $options = array();
  111. foreach ($this->options as $key => $value) {
  112. if ($value != Values::NONE) {
  113. $options[] = "$key=$value";
  114. }
  115. }
  116. return '[Twilio.Preview.Understand.UpdateModelBuildOptions ' . implode(' ', $options) . ']';
  117. }
  118. }