<?php
/**
 * This code was generated by
 * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
 *
 * Twilio Knowledge API
 * APIs for managing knowledge bases and knowledge content for AI-powered applications.
 *
 * NOTE: This class is auto generated by OpenAPI Generator.
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

namespace Twilio\Rest\Knowledge\V2;

use Twilio\Options;
use Twilio\Values;

abstract class ChunkOptions
{
    /**
     * @param int $pageSize How many resources to return in each list page. The default is 50, and the maximum is 1000.
     * @param string $pageToken The page token. This is provided by the API.
     * @return ReadChunkOptions Options builder
     */
    public static function read(
        
        int $pageSize = Values::INT_NONE,
        string $pageToken = Values::NONE

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

}

class ReadChunkOptions extends Options
    {
    /**
     * @param int $pageSize How many resources to return in each list page. The default is 50, and the maximum is 1000.
     * @param string $pageToken The page token. This is provided by the API.
     */
    public function __construct(
        
        int $pageSize = Values::INT_NONE,
        string $pageToken = Values::NONE

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

    /**
     * How many resources to return in each list page. The default is 50, and the maximum is 1000.
     *
     * @param int $pageSize How many resources to return in each list page. The default is 50, and the maximum is 1000.
     * @return $this Fluent Builder
     */
    public function setPageSize(int $pageSize): self
    {
        $this->options['pageSize'] = $pageSize;
        return $this;
    }

    /**
     * The page token. This is provided by the API.
     *
     * @param string $pageToken The page token. This is provided by the API.
     * @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.Knowledge.V2.ReadChunkOptions ' . $options . ']';
    }
}

