<?php
/**
 * This code was generated by
 * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
 *
 * Conversation Orchestrator
 * Manage configurations, conversations, participants, and communications. Create configurations to define capture rules and channel settings, then use conversations to group related communications.
 *
 * NOTE: This class is auto generated by OpenAPI Generator.
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

namespace Twilio\Rest\Conversations\V2;

use Twilio\Options;
use Twilio\Values;

abstract class ConfigurationOptions
{
    /**
     * @param string $idempotencyKey Client-generated UUID key to ensure idempotent behavior. Submitting the same key returns the original response without creating a duplicate operation. Keys are scoped to account + region with a 24-hour TTL.
     * @return CreateConfigurationOptions Options builder
     */
    public static function create(
        
        string $idempotencyKey = Values::NONE

    ): CreateConfigurationOptions
    {
        return new CreateConfigurationOptions(
            $idempotencyKey
        );
    }

    /**
     * @param string $idempotencyKey Client-generated UUID key to ensure idempotent behavior. Submitting the same key returns the original response without creating a duplicate operation. Keys are scoped to account + region with a 24-hour TTL.
     * @return DeleteConfigurationOptions Options builder
     */
    public static function delete(
        
        string $idempotencyKey = Values::NONE

    ): DeleteConfigurationOptions
    {
        return new DeleteConfigurationOptions(
            $idempotencyKey
        );
    }


    /**
     * @param int $pageSize Maximum number of items to return in a single response
     * @param string $pageToken A URL-safe, base64-encoded token representing the page of results to return
     * @param string $memoryStoreId Filter configurations by Memory Store ID
     * @return ReadConfigurationOptions Options builder
     */
    public static function read(
        
        int $pageSize = Values::INT_NONE,
        string $pageToken = Values::NONE,
        string $memoryStoreId = Values::NONE

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

    /**
     * @param string $idempotencyKey Client-generated UUID key to ensure idempotent behavior. Submitting the same key returns the original response without creating a duplicate operation. Keys are scoped to account + region with a 24-hour TTL.
     * @return UpdateConfigurationOptions Options builder
     */
    public static function update(
        
        string $idempotencyKey = Values::NONE

    ): UpdateConfigurationOptions
    {
        return new UpdateConfigurationOptions(
            $idempotencyKey
        );
    }

}

class CreateConfigurationOptions extends Options
    {
    /**
     * @param string $idempotencyKey Client-generated UUID key to ensure idempotent behavior. Submitting the same key returns the original response without creating a duplicate operation. Keys are scoped to account + region with a 24-hour TTL.
     */
    public function __construct(
        
        string $idempotencyKey = Values::NONE

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

    /**
     * Client-generated UUID key to ensure idempotent behavior. Submitting the same key returns the original response without creating a duplicate operation. Keys are scoped to account + region with a 24-hour TTL.
     *
     * @param string $idempotencyKey Client-generated UUID key to ensure idempotent behavior. Submitting the same key returns the original response without creating a duplicate operation. Keys are scoped to account + region with a 24-hour TTL.
     * @return $this Fluent Builder
     */
    public function setIdempotencyKey(string $idempotencyKey): self
    {
        $this->options['idempotencyKey'] = $idempotencyKey;
        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.Conversations.V2.CreateConfigurationOptions ' . $options . ']';
    }
}

class DeleteConfigurationOptions extends Options
    {
    /**
     * @param string $idempotencyKey Client-generated UUID key to ensure idempotent behavior. Submitting the same key returns the original response without creating a duplicate operation. Keys are scoped to account + region with a 24-hour TTL.
     */
    public function __construct(
        
        string $idempotencyKey = Values::NONE

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

    /**
     * Client-generated UUID key to ensure idempotent behavior. Submitting the same key returns the original response without creating a duplicate operation. Keys are scoped to account + region with a 24-hour TTL.
     *
     * @param string $idempotencyKey Client-generated UUID key to ensure idempotent behavior. Submitting the same key returns the original response without creating a duplicate operation. Keys are scoped to account + region with a 24-hour TTL.
     * @return $this Fluent Builder
     */
    public function setIdempotencyKey(string $idempotencyKey): self
    {
        $this->options['idempotencyKey'] = $idempotencyKey;
        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.Conversations.V2.DeleteConfigurationOptions ' . $options . ']';
    }
}


class ReadConfigurationOptions extends Options
    {
    /**
     * @param int $pageSize Maximum number of items to return in a single response
     * @param string $pageToken A URL-safe, base64-encoded token representing the page of results to return
     * @param string $memoryStoreId Filter configurations by Memory Store ID
     */
    public function __construct(
        
        int $pageSize = Values::INT_NONE,
        string $pageToken = Values::NONE,
        string $memoryStoreId = Values::NONE

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

    /**
     * Maximum number of items to return in a single response
     *
     * @param int $pageSize Maximum number of items to return in a single response
     * @return $this Fluent Builder
     */
    public function setPageSize(int $pageSize): self
    {
        $this->options['pageSize'] = $pageSize;
        return $this;
    }

    /**
     * A URL-safe, base64-encoded token representing the page of results to return
     *
     * @param string $pageToken A URL-safe, base64-encoded token representing the page of results to return
     * @return $this Fluent Builder
     */
    public function setPageToken(string $pageToken): self
    {
        $this->options['pageToken'] = $pageToken;
        return $this;
    }

    /**
     * Filter configurations by Memory Store ID
     *
     * @param string $memoryStoreId Filter configurations by Memory Store ID
     * @return $this Fluent Builder
     */
    public function setMemoryStoreId(string $memoryStoreId): self
    {
        $this->options['memoryStoreId'] = $memoryStoreId;
        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.Conversations.V2.ReadConfigurationOptions ' . $options . ']';
    }
}

class UpdateConfigurationOptions extends Options
    {
    /**
     * @param string $idempotencyKey Client-generated UUID key to ensure idempotent behavior. Submitting the same key returns the original response without creating a duplicate operation. Keys are scoped to account + region with a 24-hour TTL.
     */
    public function __construct(
        
        string $idempotencyKey = Values::NONE

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

    /**
     * Client-generated UUID key to ensure idempotent behavior. Submitting the same key returns the original response without creating a duplicate operation. Keys are scoped to account + region with a 24-hour TTL.
     *
     * @param string $idempotencyKey Client-generated UUID key to ensure idempotent behavior. Submitting the same key returns the original response without creating a duplicate operation. Keys are scoped to account + region with a 24-hour TTL.
     * @return $this Fluent Builder
     */
    public function setIdempotencyKey(string $idempotencyKey): self
    {
        $this->options['idempotencyKey'] = $idempotencyKey;
        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.Conversations.V2.UpdateConfigurationOptions ' . $options . ']';
    }
}

