PATH:
home2
/
pbkvidya
/
public_html
/
twilio-php-main
/
src
/
Twilio
/
Rest
/
Serverless
/
V1
/
Service
/
Environment
/
Editing: DeploymentOptions.php
<?php /** * This code was generated by * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ * * Twilio - Serverless * This is the public Twilio REST API. * * NOTE: This class is auto generated by OpenAPI Generator. * https://openapi-generator.tech * Do not edit the class manually. */ namespace Twilio\Rest\Serverless\V1\Service\Environment; use Twilio\Options; use Twilio\Values; abstract class DeploymentOptions { /** * @param string $buildSid The SID of the Build for the Deployment. * @param bool $isPlugin Whether the Deployment is a plugin. * @return CreateDeploymentOptions Options builder */ public static function create( string $buildSid = Values::NONE, bool $isPlugin = Values::BOOL_NONE ): CreateDeploymentOptions { return new CreateDeploymentOptions( $buildSid, $isPlugin ); } } class CreateDeploymentOptions extends Options { /** * @param string $buildSid The SID of the Build for the Deployment. * @param bool $isPlugin Whether the Deployment is a plugin. */ public function __construct( string $buildSid = Values::NONE, bool $isPlugin = Values::BOOL_NONE ) { $this->options['buildSid'] = $buildSid; $this->options['isPlugin'] = $isPlugin; } /** * The SID of the Build for the Deployment. * * @param string $buildSid The SID of the Build for the Deployment. * @return $this Fluent Builder */ public function setBuildSid(string $buildSid): self { $this->options['buildSid'] = $buildSid; return $this; } /** * Whether the Deployment is a plugin. * * @param bool $isPlugin Whether the Deployment is a plugin. * @return $this Fluent Builder */ public function setIsPlugin(bool $isPlugin): self { $this->options['isPlugin'] = $isPlugin; 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.Serverless.V1.CreateDeploymentOptions ' . $options . ']'; } }
SAVE
CANCEL