<?php
/**
 * This code was generated by
 * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
 *
 * Twilio Memory API
 * APIs for managing memory stores, profiles, events, and conversational intelligence capabilities.
 *
 * NOTE: This class is auto generated by OpenAPI Generator.
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

namespace Twilio\Rest\Memory\V1;

use Twilio\Options;
use Twilio\Values;

abstract class RevisionOptions
{
    /**
     * @param int $pageSize The maximum number of items to return per page, maximum of 1000.
     * @param string $pageToken The token for the page of results to retrieve.
     * @param string $acceptEncoding Compression algorithms supported by the client (e.g., gzip, deflate, br)
     * @return ReadRevisionOptions Options builder
     */
    public static function read(
        
        int $pageSize = Values::INT_NONE,
        string $pageToken = Values::NONE,
        string $acceptEncoding = Values::NONE

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

}

class ReadRevisionOptions extends Options
    {
    /**
     * @param int $pageSize The maximum number of items to return per page, maximum of 1000.
     * @param string $pageToken The token for the page of results to retrieve.
     * @param string $acceptEncoding Compression algorithms supported by the client (e.g., gzip, deflate, br)
     */
    public function __construct(
        
        int $pageSize = Values::INT_NONE,
        string $pageToken = Values::NONE,
        string $acceptEncoding = Values::NONE

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

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

    /**
     * The token for the page of results to retrieve.
     *
     * @param string $pageToken The token for the page of results to retrieve.
     * @return $this Fluent Builder
     */
    public function setPageToken(string $pageToken): self
    {
        $this->options['pageToken'] = $pageToken;
        return $this;
    }

    /**
     * Compression algorithms supported by the client (e.g., gzip, deflate, br)
     *
     * @param string $acceptEncoding Compression algorithms supported by the client (e.g., gzip, deflate, br)
     * @return $this Fluent Builder
     */
    public function setAcceptEncoding(string $acceptEncoding): self
    {
        $this->options['acceptEncoding'] = $acceptEncoding;
        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.Memory.V1.ReadRevisionOptions ' . $options . ']';
    }
}

