HOME


Mini Shell 1.0
Negocios La Pieza.DO | Registrate o Inicia Sesión

¡Página no encontrada!

La página que busca no se encuentra en nuestro servidor.

Volver al inicio
DIR: /var/www/devs.lapieza.net/vendor/twilio/sdk/src/Twilio/Rest/Messaging/V1/
Upload File :
Current File : /var/www/devs.lapieza.net/vendor/twilio/sdk/src/Twilio/Rest/Messaging/V1/DomainConfigOptions.php
<?php

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

namespace Twilio\Rest\Messaging\V1;

use Twilio\Options;
use Twilio\Values;

/**
 * PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
 */
abstract class DomainConfigOptions {
    /**
     * @param string $fallbackUrl We will redirect requests to urls we are unable
     *                            to identify to this url.
     * @param string $callbackUrl URL to receive click events to your webhook
     *                            whenever the recipients click on the shortened
     *                            links
     * @param string $messagingServiceSidsAction An action type for
     *                                           messaging_service_sids operation
     *                                           (ADD, DELETE, REPLACE)
     * @return UpdateDomainConfigOptions Options builder
     */
    public static function update(string $fallbackUrl = Values::NONE, string $callbackUrl = Values::NONE, string $messagingServiceSidsAction = Values::NONE): UpdateDomainConfigOptions {
        return new UpdateDomainConfigOptions($fallbackUrl, $callbackUrl, $messagingServiceSidsAction);
    }
}

class UpdateDomainConfigOptions extends Options {
    /**
     * @param string $fallbackUrl We will redirect requests to urls we are unable
     *                            to identify to this url.
     * @param string $callbackUrl URL to receive click events to your webhook
     *                            whenever the recipients click on the shortened
     *                            links
     * @param string $messagingServiceSidsAction An action type for
     *                                           messaging_service_sids operation
     *                                           (ADD, DELETE, REPLACE)
     */
    public function __construct(string $fallbackUrl = Values::NONE, string $callbackUrl = Values::NONE, string $messagingServiceSidsAction = Values::NONE) {
        $this->options['fallbackUrl'] = $fallbackUrl;
        $this->options['callbackUrl'] = $callbackUrl;
        $this->options['messagingServiceSidsAction'] = $messagingServiceSidsAction;
    }

    /**
     * Any requests we receive to this domain that do not match an existing shortened message will be redirected to the fallback url. These will likely be either expired messages, random misdirected traffic, or intentional scraping.
     *
     * @param string $fallbackUrl We will redirect requests to urls we are unable
     *                            to identify to this url.
     * @return $this Fluent Builder
     */
    public function setFallbackUrl(string $fallbackUrl): self {
        $this->options['fallbackUrl'] = $fallbackUrl;
        return $this;
    }

    /**
     * URL to receive click events to your webhook whenever the recipients click on the shortened links
     *
     * @param string $callbackUrl URL to receive click events to your webhook
     *                            whenever the recipients click on the shortened
     *                            links
     * @return $this Fluent Builder
     */
    public function setCallbackUrl(string $callbackUrl): self {
        $this->options['callbackUrl'] = $callbackUrl;
        return $this;
    }

    /**
     * An action type for messaging_service_sids operation (ADD, DELETE, REPLACE)
     *
     * @param string $messagingServiceSidsAction An action type for
     *                                           messaging_service_sids operation
     *                                           (ADD, DELETE, REPLACE)
     * @return $this Fluent Builder
     */
    public function setMessagingServiceSidsAction(string $messagingServiceSidsAction): self {
        $this->options['messagingServiceSidsAction'] = $messagingServiceSidsAction;
        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.Messaging.V1.UpdateDomainConfigOptions ' . $options . ']';
    }
}