modern-events-calendar-lite/app/api/Twilio/Rest/Accounts/V1/Credential/PublicKeyOptions.php

153 lines
4.8 KiB
PHP
Raw Normal View History

2024-10-15 12:04:03 +02:00
<?php
/**
* This code was generated by
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
*
* Twilio - Accounts
* 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\Accounts\V1\Credential;
use Twilio\Options;
use Twilio\Values;
abstract class PublicKeyOptions
{
/**
* @param string $friendlyName A descriptive string that you create to describe the resource. It can be up to 64 characters long.
* @param string $accountSid The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request
* @return CreatePublicKeyOptions Options builder
*/
public static function create(
string $friendlyName = Values::NONE,
string $accountSid = Values::NONE
): CreatePublicKeyOptions
{
return new CreatePublicKeyOptions(
$friendlyName,
$accountSid
);
}
/**
* @param string $friendlyName A descriptive string that you create to describe the resource. It can be up to 64 characters long.
* @return UpdatePublicKeyOptions Options builder
*/
public static function update(
string $friendlyName = Values::NONE
): UpdatePublicKeyOptions
{
return new UpdatePublicKeyOptions(
$friendlyName
);
}
}
class CreatePublicKeyOptions extends Options
{
/**
* @param string $friendlyName A descriptive string that you create to describe the resource. It can be up to 64 characters long.
* @param string $accountSid The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request
*/
public function __construct(
string $friendlyName = Values::NONE,
string $accountSid = Values::NONE
) {
$this->options['friendlyName'] = $friendlyName;
$this->options['accountSid'] = $accountSid;
}
/**
* A descriptive string that you create to describe the resource. It can be up to 64 characters long.
*
* @param string $friendlyName A descriptive string that you create to describe the resource. It can be up to 64 characters long.
* @return $this Fluent Builder
*/
public function setFriendlyName(string $friendlyName): self
{
$this->options['friendlyName'] = $friendlyName;
return $this;
}
/**
* The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request
*
* @param string $accountSid The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request
* @return $this Fluent Builder
*/
public function setAccountSid(string $accountSid): self
{
$this->options['accountSid'] = $accountSid;
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.Accounts.V1.CreatePublicKeyOptions ' . $options . ']';
}
}
class UpdatePublicKeyOptions extends Options
{
/**
* @param string $friendlyName A descriptive string that you create to describe the resource. It can be up to 64 characters long.
*/
public function __construct(
string $friendlyName = Values::NONE
) {
$this->options['friendlyName'] = $friendlyName;
}
/**
* A descriptive string that you create to describe the resource. It can be up to 64 characters long.
*
* @param string $friendlyName A descriptive string that you create to describe the resource. It can be up to 64 characters long.
* @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.Accounts.V1.UpdatePublicKeyOptions ' . $options . ']';
}
}