Вход Регистрация
Файл: sngine-v2.8/Script/includes/libs/Twilio/Rest/Preview/DeployedDevices/FleetOptions.php
Строк: 177
<?php

/**
 * This code was generated by
 *  / _    _  _|   _  _
 * | (_)/(_)(_|/| |(/_  v1.0.0
 * /       /
 */

namespace TwilioRestPreviewDeployedDevices;

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 FleetOptions {
    
/**
     * @param string $friendlyName A human readable description for this Fleet.
     * @return CreateFleetOptions Options builder
     */
    
public static function create(string $friendlyName Values::NONE): CreateFleetOptions {
        return new 
CreateFleetOptions($friendlyName);
    }

    
/**
     * @param string $friendlyName A human readable description for this Fleet.
     * @param string $defaultDeploymentSid A default Deployment SID.
     * @return UpdateFleetOptions Options builder
     */
    
public static function update(string $friendlyName Values::NONEstring $defaultDeploymentSid Values::NONE): UpdateFleetOptions {
        return new 
UpdateFleetOptions($friendlyName$defaultDeploymentSid);
    }
}

class 
CreateFleetOptions extends Options {
    
/**
     * @param string $friendlyName A human readable description for this Fleet.
     */
    
public function __construct(string $friendlyName Values::NONE) {
        
$this->options['friendlyName'] = $friendlyName;
    }

    
/**
     * Provides a human readable descriptive text for this Fleet, up to 256 characters long.
     *
     * @param string $friendlyName A human readable description for this Fleet.
     * @return $this Fluent Builder
     */
    
public function setFriendlyName(string $friendlyName): self {
        
$this->options['friendlyName'] = $friendlyName;
        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.Preview.DeployedDevices.CreateFleetOptions ' $options ']';
    }
}

class 
UpdateFleetOptions extends Options {
    
/**
     * @param string $friendlyName A human readable description for this Fleet.
     * @param string $defaultDeploymentSid A default Deployment SID.
     */
    
public function __construct(string $friendlyName Values::NONEstring $defaultDeploymentSid Values::NONE) {
        
$this->options['friendlyName'] = $friendlyName;
        
$this->options['defaultDeploymentSid'] = $defaultDeploymentSid;
    }

    
/**
     * Provides a human readable descriptive text for this Fleet, up to 256 characters long.
     *
     * @param string $friendlyName A human readable description for this Fleet.
     * @return $this Fluent Builder
     */
    
public function setFriendlyName(string $friendlyName): self {
        
$this->options['friendlyName'] = $friendlyName;
        return 
$this;
    }

    
/**
     * Provides a string identifier of a Deployment that is going to be used as a default one for this Fleet.
     *
     * @param string $defaultDeploymentSid A default Deployment SID.
     * @return $this Fluent Builder
     */
    
public function setDefaultDeploymentSid(string $defaultDeploymentSid): self {
        
$this->options['defaultDeploymentSid'] = $defaultDeploymentSid;
        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.Preview.DeployedDevices.UpdateFleetOptions ' $options ']';
    }
}
Онлайн: 0
Реклама