<?php
/**
 * This code was generated by
 * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
 *
 * Conversation Orchestrator
 * Manage configurations, conversations, participants, and communications. Create configurations to define capture rules and channel settings, then use conversations to group related communications.
 *
 * NOTE: This class is auto generated by OpenAPI Generator.
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

namespace Twilio\Rest\Conversations\V2;

use Twilio\Options;
use Twilio\Values;

abstract class CommunicationOptions
{


    /**
     * @param string $channelId Resource identifier to filter communications
     * @param int $pageSize Maximum number of items to return
     * @param string $pageToken Page token for pagination
     * @return ReadCommunicationOptions Options builder
     */
    public static function read(
        
        string $channelId = Values::NONE,
        int $pageSize = Values::INT_NONE,
        string $pageToken = Values::NONE

    ): ReadCommunicationOptions
    {
        return new ReadCommunicationOptions(
            $channelId,
            $pageSize,
            $pageToken
        );
    }

}



class ReadCommunicationOptions extends Options
    {
    /**
     * @param string $channelId Resource identifier to filter communications
     * @param int $pageSize Maximum number of items to return
     * @param string $pageToken Page token for pagination
     */
    public function __construct(
        
        string $channelId = Values::NONE,
        int $pageSize = Values::INT_NONE,
        string $pageToken = Values::NONE

    ) {
        $this->options['channelId'] = $channelId;
        $this->options['pageSize'] = $pageSize;
        $this->options['pageToken'] = $pageToken;
    }

    /**
     * Resource identifier to filter communications
     *
     * @param string $channelId Resource identifier to filter communications
     * @return $this Fluent Builder
     */
    public function setChannelId(string $channelId): self
    {
        $this->options['channelId'] = $channelId;
        return $this;
    }

    /**
     * Maximum number of items to return
     *
     * @param int $pageSize Maximum number of items to return
     * @return $this Fluent Builder
     */
    public function setPageSize(int $pageSize): self
    {
        $this->options['pageSize'] = $pageSize;
        return $this;
    }

    /**
     * Page token for pagination
     *
     * @param string $pageToken Page token for pagination
     * @return $this Fluent Builder
     */
    public function setPageToken(string $pageToken): self
    {
        $this->options['pageToken'] = $pageToken;
        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.Conversations.V2.ReadCommunicationOptions ' . $options . ']';
    }
}

