<?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 ParticipantOptions
{


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

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


}



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

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

    /**
     * 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.ReadParticipantOptions ' . $options . ']';
    }
}


