<?php

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

namespace Twilio\Rest\Taskrouter\V1;

use Twilio\Options;
use Twilio\Values;

abstract class WorkspaceOptions
{
    /**
     * @param string  $defaultActivitySid   The default_activity_sid
     * @param string  $eventCallbackUrl     The event_callback_url
     * @param string  $eventsFilter         The events_filter
     * @param string  $friendlyName         The friendly_name
     * @param boolean $multiTaskEnabled     The multi_task_enabled
     * @param string  $timeoutActivitySid   The timeout_activity_sid
     * @param string  $prioritizeQueueOrder The prioritize_queue_order
     *
     * @return UpdateWorkspaceOptions Options builder
     */
    public static function update($defaultActivitySid = Values::NONE, $eventCallbackUrl = Values::NONE, $eventsFilter = Values::NONE, $friendlyName = Values::NONE, $multiTaskEnabled = Values::NONE, $timeoutActivitySid = Values::NONE, $prioritizeQueueOrder = Values::NONE)
    {
        return new UpdateWorkspaceOptions($defaultActivitySid, $eventCallbackUrl, $eventsFilter, $friendlyName, $multiTaskEnabled, $timeoutActivitySid, $prioritizeQueueOrder);
    }

    /**
     * @param string $friendlyName The friendly_name
     *
     * @return ReadWorkspaceOptions Options builder
     */
    public static function read($friendlyName = Values::NONE)
    {
        return new ReadWorkspaceOptions($friendlyName);
    }

    /**
     * @param string  $eventCallbackUrl     The event_callback_url
     * @param string  $eventsFilter         The events_filter
     * @param boolean $multiTaskEnabled     The multi_task_enabled
     * @param string  $template             The template
     * @param string  $prioritizeQueueOrder The prioritize_queue_order
     *
     * @return CreateWorkspaceOptions Options builder
     */
    public static function create($eventCallbackUrl = Values::NONE, $eventsFilter = Values::NONE, $multiTaskEnabled = Values::NONE, $template = Values::NONE, $prioritizeQueueOrder = Values::NONE)
    {
        return new CreateWorkspaceOptions($eventCallbackUrl, $eventsFilter, $multiTaskEnabled, $template, $prioritizeQueueOrder);
    }
}

class UpdateWorkspaceOptions extends Options
{
    /**
     * @param string  $defaultActivitySid   The default_activity_sid
     * @param string  $eventCallbackUrl     The event_callback_url
     * @param string  $eventsFilter         The events_filter
     * @param string  $friendlyName         The friendly_name
     * @param boolean $multiTaskEnabled     The multi_task_enabled
     * @param string  $timeoutActivitySid   The timeout_activity_sid
     * @param string  $prioritizeQueueOrder The prioritize_queue_order
     */
    public function __construct($defaultActivitySid = Values::NONE, $eventCallbackUrl = Values::NONE, $eventsFilter = Values::NONE, $friendlyName = Values::NONE, $multiTaskEnabled = Values::NONE, $timeoutActivitySid = Values::NONE, $prioritizeQueueOrder = Values::NONE)
    {
        $this->options['defaultActivitySid'] = $defaultActivitySid;
        $this->options['eventCallbackUrl'] = $eventCallbackUrl;
        $this->options['eventsFilter'] = $eventsFilter;
        $this->options['friendlyName'] = $friendlyName;
        $this->options['multiTaskEnabled'] = $multiTaskEnabled;
        $this->options['timeoutActivitySid'] = $timeoutActivitySid;
        $this->options['prioritizeQueueOrder'] = $prioritizeQueueOrder;
    }

    /**
     * The default_activity_sid
     *
     * @param string $defaultActivitySid The default_activity_sid
     *
     * @return $this Fluent Builder
     */
    public function setDefaultActivitySid($defaultActivitySid)
    {
        $this->options['defaultActivitySid'] = $defaultActivitySid;
        return $this;
    }

    /**
     * The event_callback_url
     *
     * @param string $eventCallbackUrl The event_callback_url
     *
     * @return $this Fluent Builder
     */
    public function setEventCallbackUrl($eventCallbackUrl)
    {
        $this->options['eventCallbackUrl'] = $eventCallbackUrl;
        return $this;
    }

    /**
     * The events_filter
     *
     * @param string $eventsFilter The events_filter
     *
     * @return $this Fluent Builder
     */
    public function setEventsFilter($eventsFilter)
    {
        $this->options['eventsFilter'] = $eventsFilter;
        return $this;
    }

    /**
     * The friendly_name
     *
     * @param string $friendlyName The friendly_name
     *
     * @return $this Fluent Builder
     */
    public function setFriendlyName($friendlyName)
    {
        $this->options['friendlyName'] = $friendlyName;
        return $this;
    }

    /**
     * The multi_task_enabled
     *
     * @param boolean $multiTaskEnabled The multi_task_enabled
     *
     * @return $this Fluent Builder
     */
    public function setMultiTaskEnabled($multiTaskEnabled)
    {
        $this->options['multiTaskEnabled'] = $multiTaskEnabled;
        return $this;
    }

    /**
     * The timeout_activity_sid
     *
     * @param string $timeoutActivitySid The timeout_activity_sid
     *
     * @return $this Fluent Builder
     */
    public function setTimeoutActivitySid($timeoutActivitySid)
    {
        $this->options['timeoutActivitySid'] = $timeoutActivitySid;
        return $this;
    }

    /**
     * The prioritize_queue_order
     *
     * @param string $prioritizeQueueOrder The prioritize_queue_order
     *
     * @return $this Fluent Builder
     */
    public function setPrioritizeQueueOrder($prioritizeQueueOrder)
    {
        $this->options['prioritizeQueueOrder'] = $prioritizeQueueOrder;
        return $this;
    }

    /**
     * Provide a friendly representation
     *
     * @return string Machine friendly representation
     */
    public function __toString()
    {
        $options = array();
        foreach ($this->options as $key => $value) {
            if ($value != Values::NONE) {
                $options[] = "$key=$value";
            }
        }
        return '[Twilio.Taskrouter.V1.UpdateWorkspaceOptions '.implode(' ', $options).']';
    }
}

class ReadWorkspaceOptions extends Options
{
    /**
     * @param string $friendlyName The friendly_name
     */
    public function __construct($friendlyName = Values::NONE)
    {
        $this->options['friendlyName'] = $friendlyName;
    }

    /**
     * The friendly_name
     *
     * @param string $friendlyName The friendly_name
     *
     * @return $this Fluent Builder
     */
    public function setFriendlyName($friendlyName)
    {
        $this->options['friendlyName'] = $friendlyName;
        return $this;
    }

    /**
     * Provide a friendly representation
     *
     * @return string Machine friendly representation
     */
    public function __toString()
    {
        $options = array();
        foreach ($this->options as $key => $value) {
            if ($value != Values::NONE) {
                $options[] = "$key=$value";
            }
        }
        return '[Twilio.Taskrouter.V1.ReadWorkspaceOptions '.implode(' ', $options).']';
    }
}

class CreateWorkspaceOptions extends Options
{
    /**
     * @param string  $eventCallbackUrl     The event_callback_url
     * @param string  $eventsFilter         The events_filter
     * @param boolean $multiTaskEnabled     The multi_task_enabled
     * @param string  $template             The template
     * @param string  $prioritizeQueueOrder The prioritize_queue_order
     */
    public function __construct($eventCallbackUrl = Values::NONE, $eventsFilter = Values::NONE, $multiTaskEnabled = Values::NONE, $template = Values::NONE, $prioritizeQueueOrder = Values::NONE)
    {
        $this->options['eventCallbackUrl'] = $eventCallbackUrl;
        $this->options['eventsFilter'] = $eventsFilter;
        $this->options['multiTaskEnabled'] = $multiTaskEnabled;
        $this->options['template'] = $template;
        $this->options['prioritizeQueueOrder'] = $prioritizeQueueOrder;
    }

    /**
     * The event_callback_url
     *
     * @param string $eventCallbackUrl The event_callback_url
     *
     * @return $this Fluent Builder
     */
    public function setEventCallbackUrl($eventCallbackUrl)
    {
        $this->options['eventCallbackUrl'] = $eventCallbackUrl;
        return $this;
    }

    /**
     * The events_filter
     *
     * @param string $eventsFilter The events_filter
     *
     * @return $this Fluent Builder
     */
    public function setEventsFilter($eventsFilter)
    {
        $this->options['eventsFilter'] = $eventsFilter;
        return $this;
    }

    /**
     * The multi_task_enabled
     *
     * @param boolean $multiTaskEnabled The multi_task_enabled
     *
     * @return $this Fluent Builder
     */
    public function setMultiTaskEnabled($multiTaskEnabled)
    {
        $this->options['multiTaskEnabled'] = $multiTaskEnabled;
        return $this;
    }

    /**
     * The template
     *
     * @param string $template The template
     *
     * @return $this Fluent Builder
     */
    public function setTemplate($template)
    {
        $this->options['template'] = $template;
        return $this;
    }

    /**
     * The prioritize_queue_order
     *
     * @param string $prioritizeQueueOrder The prioritize_queue_order
     *
     * @return $this Fluent Builder
     */
    public function setPrioritizeQueueOrder($prioritizeQueueOrder)
    {
        $this->options['prioritizeQueueOrder'] = $prioritizeQueueOrder;
        return $this;
    }

    /**
     * Provide a friendly representation
     *
     * @return string Machine friendly representation
     */
    public function __toString()
    {
        $options = array();
        foreach ($this->options as $key => $value) {
            if ($value != Values::NONE) {
                $options[] = "$key=$value";
            }
        }
        return '[Twilio.Taskrouter.V1.CreateWorkspaceOptions '.implode(' ', $options).']';
    }
}