<?php

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

namespace Twilio\Rest\Taskrouter\V1\Workspace\TaskQueue;

use Twilio\Options;
use Twilio\Values;

abstract class TEiW8LiDcbnAkVHeyw9yBNMzvxi9TioeLC {
    /**
     * @param string $taskChannel Filter real-time and cumulative statistics by
     *                            TaskChannel.
     * @return FetchTEiW8LiDcbnAkVHeyw9yBNMzvxi9TioeLC Options builder
     */
    public static function fetch($taskChannel = Values::NONE) {
        return new FetchTEiW8LiDcbnAkVHeyw9yBNMzvxi9TioeLC($taskChannel);
    }
}

class FetchTEiW8LiDcbnAkVHeyw9yBNMzvxi9TioeLC extends Options {
    /**
     * @param string $taskChannel Filter real-time and cumulative statistics by
     *                            TaskChannel.
     */
    public function __construct($taskChannel = Values::NONE) {
        $this->options['taskChannel'] = $taskChannel;
    }

    /**
     * Filter real-time and cumulative statistics by TaskChannel. Takes in a Unique Name ("voice", "sms", "default", etc.) or a TaskChannelSid.
     * 
     * @param string $taskChannel Filter real-time and cumulative statistics by
     *                            TaskChannel.
     * @return $this Fluent Builder
     */
    public function setTaskChannel($taskChannel) {
        $this->options['taskChannel'] = $taskChannel;
        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.FetchTEiW8LiDcbnAkVHeyw9yBNMzvxi9TioeLC ' . implode(' ', $options) . ']';
    }
}