<?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 ObservationOptions
{
    /**
     * @param string $acceptEncoding Compression algorithms supported by the client (e.g., gzip, deflate, br)
     * @param string $contentEncoding Compression algorithm used for the request body (e.g., gzip, deflate, br)
     * @return CreateObservationOptions Options builder
     */
    public static function create(
        
        string $acceptEncoding = Values::NONE,
        string $contentEncoding = Values::NONE

    ): CreateObservationOptions
    {
        return new CreateObservationOptions(
            $acceptEncoding,
            $contentEncoding
        );
    }



    /**
     * @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 $orderBy Either 'ASC' or 'DESC' to sort results ascending or descending respectively.
     * @param string $source Filter by source. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters.
     * @param \DateTime $createdAfter Filter observations created after this timestamp (inclusive).
     * @param \DateTime $createdBefore Filter observations created before this timestamp (exclusive).
     * @param string $acceptEncoding Compression algorithms supported by the client (e.g., gzip, deflate, br)
     * @return ReadObservationOptions Options builder
     */
    public static function read(
        
        int $pageSize = Values::INT_NONE,
        string $pageToken = Values::NONE,
        string $orderBy = Values::NONE,
        string $source = Values::NONE,
        ?\DateTime $createdAfter = null,
        ?\DateTime $createdBefore = null,
        string $acceptEncoding = Values::NONE

    ): ReadObservationOptions
    {
        return new ReadObservationOptions(
            $pageSize,
            $pageToken,
            $orderBy,
            $source,
            $createdAfter,
            $createdBefore,
            $acceptEncoding
        );
    }


}

class CreateObservationOptions extends Options
    {
    /**
     * @param string $acceptEncoding Compression algorithms supported by the client (e.g., gzip, deflate, br)
     * @param string $contentEncoding Compression algorithm used for the request body (e.g., gzip, deflate, br)
     */
    public function __construct(
        
        string $acceptEncoding = Values::NONE,
        string $contentEncoding = Values::NONE

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

    /**
     * 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;
    }

    /**
     * Compression algorithm used for the request body (e.g., gzip, deflate, br)
     *
     * @param string $contentEncoding Compression algorithm used for the request body (e.g., gzip, deflate, br)
     * @return $this Fluent Builder
     */
    public function setContentEncoding(string $contentEncoding): self
    {
        $this->options['contentEncoding'] = $contentEncoding;
        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.CreateObservationOptions ' . $options . ']';
    }
}



class ReadObservationOptions 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 $orderBy Either 'ASC' or 'DESC' to sort results ascending or descending respectively.
     * @param string $source Filter by source. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters.
     * @param \DateTime $createdAfter Filter observations created after this timestamp (inclusive).
     * @param \DateTime $createdBefore Filter observations created before this timestamp (exclusive).
     * @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 $orderBy = Values::NONE,
        string $source = Values::NONE,
        ?\DateTime $createdAfter = null,
        ?\DateTime $createdBefore = null,
        string $acceptEncoding = Values::NONE

    ) {
        $this->options['pageSize'] = $pageSize;
        $this->options['pageToken'] = $pageToken;
        $this->options['orderBy'] = $orderBy;
        $this->options['source'] = $source;
        $this->options['createdAfter'] = $createdAfter;
        $this->options['createdBefore'] = $createdBefore;
        $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;
    }

    /**
     * Either 'ASC' or 'DESC' to sort results ascending or descending respectively.
     *
     * @param string $orderBy Either 'ASC' or 'DESC' to sort results ascending or descending respectively.
     * @return $this Fluent Builder
     */
    public function setOrderBy(string $orderBy): self
    {
        $this->options['orderBy'] = $orderBy;
        return $this;
    }

    /**
     * Filter by source. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters.
     *
     * @param string $source Filter by source. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters.
     * @return $this Fluent Builder
     */
    public function setSource(string $source): self
    {
        $this->options['source'] = $source;
        return $this;
    }

    /**
     * Filter observations created after this timestamp (inclusive).
     *
     * @param \DateTime $createdAfter Filter observations created after this timestamp (inclusive).
     * @return $this Fluent Builder
     */
    public function setCreatedAfter(\DateTime $createdAfter): self
    {
        $this->options['createdAfter'] = $createdAfter;
        return $this;
    }

    /**
     * Filter observations created before this timestamp (exclusive).
     *
     * @param \DateTime $createdBefore Filter observations created before this timestamp (exclusive).
     * @return $this Fluent Builder
     */
    public function setCreatedBefore(\DateTime $createdBefore): self
    {
        $this->options['createdBefore'] = $createdBefore;
        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.ReadObservationOptions ' . $options . ']';
    }
}


