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


    /**
     * @param bool $includeTraits Whether to include trait definitions in the response
     * @param int $pageSize The maximum number of items to return per page, maximum of 100.
     * @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.
     * @return FetchTraitGroupOptions Options builder
     */
    public static function fetch(
        
        bool $includeTraits = Values::BOOL_NONE,
        int $pageSize = Values::INT_NONE,
        string $pageToken = Values::NONE,
        string $orderBy = Values::NONE

    ): FetchTraitGroupOptions
    {
        return new FetchTraitGroupOptions(
            $includeTraits,
            $pageSize,
            $pageToken,
            $orderBy
        );
    }

    /**
     * @param bool $includeTraits Whether to include trait definitions in the response
     * @param int $pageSize The maximum number of items to return per page, maximum of 100.
     * @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.
     * @return ReadTraitGroupOptions Options builder
     */
    public static function read(
        
        bool $includeTraits = Values::BOOL_NONE,
        int $pageSize = Values::INT_NONE,
        string $pageToken = Values::NONE,
        string $orderBy = Values::NONE

    ): ReadTraitGroupOptions
    {
        return new ReadTraitGroupOptions(
            $includeTraits,
            $pageSize,
            $pageToken,
            $orderBy
        );
    }

    /**
     * @param string $ifMatch Allows for optimistic concurrency control by making the request conditional. Server will only act if the resource's current Entity Tag (ETag) matches the one provided, preventing accidental overwrites.
     * @return PatchTraitGroupOptions Options builder
     */
    public static function patch(
        
        string $ifMatch = Values::NONE

    ): PatchTraitGroupOptions
    {
        return new PatchTraitGroupOptions(
            $ifMatch
        );
    }

}



class FetchTraitGroupOptions extends Options
    {
    /**
     * @param bool $includeTraits Whether to include trait definitions in the response
     * @param int $pageSize The maximum number of items to return per page, maximum of 100.
     * @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.
     */
    public function __construct(
        
        bool $includeTraits = Values::BOOL_NONE,
        int $pageSize = Values::INT_NONE,
        string $pageToken = Values::NONE,
        string $orderBy = Values::NONE

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

    /**
     * Whether to include trait definitions in the response
     *
     * @param bool $includeTraits Whether to include trait definitions in the response
     * @return $this Fluent Builder
     */
    public function setIncludeTraits(bool $includeTraits): self
    {
        $this->options['includeTraits'] = $includeTraits;
        return $this;
    }

    /**
     * The maximum number of items to return per page, maximum of 100.
     *
     * @param int $pageSize The maximum number of items to return per page, maximum of 100.
     * @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;
    }

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

class ReadTraitGroupOptions extends Options
    {
    /**
     * @param bool $includeTraits Whether to include trait definitions in the response
     * @param int $pageSize The maximum number of items to return per page, maximum of 100.
     * @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.
     */
    public function __construct(
        
        bool $includeTraits = Values::BOOL_NONE,
        int $pageSize = Values::INT_NONE,
        string $pageToken = Values::NONE,
        string $orderBy = Values::NONE

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

    /**
     * Whether to include trait definitions in the response
     *
     * @param bool $includeTraits Whether to include trait definitions in the response
     * @return $this Fluent Builder
     */
    public function setIncludeTraits(bool $includeTraits): self
    {
        $this->options['includeTraits'] = $includeTraits;
        return $this;
    }

    /**
     * The maximum number of items to return per page, maximum of 100.
     *
     * @param int $pageSize The maximum number of items to return per page, maximum of 100.
     * @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;
    }

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

class PatchTraitGroupOptions extends Options
    {
    /**
     * @param string $ifMatch Allows for optimistic concurrency control by making the request conditional. Server will only act if the resource's current Entity Tag (ETag) matches the one provided, preventing accidental overwrites.
     */
    public function __construct(
        
        string $ifMatch = Values::NONE

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

    /**
     * Allows for optimistic concurrency control by making the request conditional. Server will only act if the resource's current Entity Tag (ETag) matches the one provided, preventing accidental overwrites.
     *
     * @param string $ifMatch Allows for optimistic concurrency control by making the request conditional. Server will only act if the resource's current Entity Tag (ETag) matches the one provided, preventing accidental overwrites.
     * @return $this Fluent Builder
     */
    public function setIfMatch(string $ifMatch): self
    {
        $this->options['ifMatch'] = $ifMatch;
        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.PatchTraitGroupOptions ' . $options . ']';
    }
}

