<?php
/**
 * This code was generated by
 * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
 *
 * Twilio - Insights
 * Insights Domain V3 API.
 *
 * NOTE: This class is auto generated by OpenAPI Generator.
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

namespace Twilio\Rest\Insights\V3;

use Twilio\Options;
use Twilio\Values;

abstract class QueryOptions
{
    /**
     * @param int $pageSize Number of items per page
     * @return CreateQueryOptions Options builder
     */
    public static function create(
        
        int $pageSize = Values::INT_NONE

    ): CreateQueryOptions
    {
        return new CreateQueryOptions(
            $pageSize
        );
    }


}

class CreateQueryOptions extends Options
    {
    /**
     * @param int $pageSize Number of items per page
     */
    public function __construct(
        
        int $pageSize = Values::INT_NONE

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

    /**
     * Number of items per page
     *
     * @param int $pageSize Number of items per page
     * @return $this Fluent Builder
     */
    public function setPageSize(int $pageSize): self
    {
        $this->options['pageSize'] = $pageSize;
        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.Insights.V3.CreateQueryOptions ' . $options . ']';
    }
}


