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

    /**
     * @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 DeleteConversationOptions Options builder
     */
    public static function delete(
        
        string $idempotencyKey = Values::NONE

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


    /**
     * @param string[] $status Filters for specific statuses
     * @param string $channelId The resource identifier (such as callSid or messageSid) to filter conversations.
     * @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
     * @return ReadConversationOptions Options builder
     */
    public static function read(
        
        array $status = Values::ARRAY_NONE,
        string $channelId = Values::NONE,
        int $pageSize = Values::INT_NONE,
        string $pageToken = Values::NONE

    ): ReadConversationOptions
    {
        return new ReadConversationOptions(
            $status,
            $channelId,
            $pageSize,
            $pageToken
        );
    }



}


class DeleteConversationOptions 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.DeleteConversationOptions ' . $options . ']';
    }
}


class ReadConversationOptions extends Options
    {
    /**
     * @param string[] $status Filters for specific statuses
     * @param string $channelId The resource identifier (such as callSid or messageSid) to filter conversations.
     * @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
     */
    public function __construct(
        
        array $status = Values::ARRAY_NONE,
        string $channelId = Values::NONE,
        int $pageSize = Values::INT_NONE,
        string $pageToken = Values::NONE

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

    /**
     * Filters for specific statuses
     *
     * @param string[] $status Filters for specific statuses
     * @return $this Fluent Builder
     */
    public function setStatus(array $status): self
    {
        $this->options['status'] = $status;
        return $this;
    }

    /**
     * The resource identifier (such as callSid or messageSid) to filter conversations.
     *
     * @param string $channelId The resource identifier (such as callSid or messageSid) to filter conversations.
     * @return $this Fluent Builder
     */
    public function setChannelId(string $channelId): self
    {
        $this->options['channelId'] = $channelId;
        return $this;
    }

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

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



