<?php
/**
 * This code was generated by
 * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
 *
 * Twilio Conversational Intelligence API
 * The Conversational Intelligence API includes resources to create and manage intelligence configurations, define and run language operators, and retrieve processed conversations and operator results.  * Use the Configurations resource to create and manage intelligence configurations and define rules that control how and when language operators analyze and transform conversations.  * Use the Operators resource to create custom language operators or retrieve Twilio-author and custom operators. * Use the Conversations resource to retrieve conversations processed with an intelligence configuration, and the OperatorResults resource to retrieve language operator results for those conversations.
 *
 * NOTE: This class is auto generated by OpenAPI Generator.
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

namespace Twilio\Rest\Intelligence\V3;

use Twilio\Options;
use Twilio\Values;

abstract class OperatorResultOptions
{


    /**
     * @param string $conversationId Filter Operator Results by attached Conversation `id`.
     * @param string $intelligenceConfigurationId Filter Operator Results by Intelligence Configuration `id` used to generate them.
     * @param string $operatorId Filter Operator Results by Language Operator `id`.
     * @param int $pageSize The maximum number of resources to return
     * @param string $pageToken Token for pagination
     * @return ReadOperatorResultOptions Options builder
     */
    public static function read(
        
        string $conversationId = Values::NONE,
        string $intelligenceConfigurationId = Values::NONE,
        string $operatorId = Values::NONE,
        int $pageSize = Values::INT_NONE,
        string $pageToken = Values::NONE

    ): ReadOperatorResultOptions
    {
        return new ReadOperatorResultOptions(
            $conversationId,
            $intelligenceConfigurationId,
            $operatorId,
            $pageSize,
            $pageToken
        );
    }

}



class ReadOperatorResultOptions extends Options
    {
    /**
     * @param string $conversationId Filter Operator Results by attached Conversation `id`.
     * @param string $intelligenceConfigurationId Filter Operator Results by Intelligence Configuration `id` used to generate them.
     * @param string $operatorId Filter Operator Results by Language Operator `id`.
     * @param int $pageSize The maximum number of resources to return
     * @param string $pageToken Token for pagination
     */
    public function __construct(
        
        string $conversationId = Values::NONE,
        string $intelligenceConfigurationId = Values::NONE,
        string $operatorId = Values::NONE,
        int $pageSize = Values::INT_NONE,
        string $pageToken = Values::NONE

    ) {
        $this->options['conversationId'] = $conversationId;
        $this->options['intelligenceConfigurationId'] = $intelligenceConfigurationId;
        $this->options['operatorId'] = $operatorId;
        $this->options['pageSize'] = $pageSize;
        $this->options['pageToken'] = $pageToken;
    }

    /**
     * Filter Operator Results by attached Conversation `id`.
     *
     * @param string $conversationId Filter Operator Results by attached Conversation `id`.
     * @return $this Fluent Builder
     */
    public function setConversationId(string $conversationId): self
    {
        $this->options['conversationId'] = $conversationId;
        return $this;
    }

    /**
     * Filter Operator Results by Intelligence Configuration `id` used to generate them.
     *
     * @param string $intelligenceConfigurationId Filter Operator Results by Intelligence Configuration `id` used to generate them.
     * @return $this Fluent Builder
     */
    public function setIntelligenceConfigurationId(string $intelligenceConfigurationId): self
    {
        $this->options['intelligenceConfigurationId'] = $intelligenceConfigurationId;
        return $this;
    }

    /**
     * Filter Operator Results by Language Operator `id`.
     *
     * @param string $operatorId Filter Operator Results by Language Operator `id`.
     * @return $this Fluent Builder
     */
    public function setOperatorId(string $operatorId): self
    {
        $this->options['operatorId'] = $operatorId;
        return $this;
    }

    /**
     * The maximum number of resources to return
     *
     * @param int $pageSize The maximum number of resources to return
     * @return $this Fluent Builder
     */
    public function setPageSize(int $pageSize): self
    {
        $this->options['pageSize'] = $pageSize;
        return $this;
    }

    /**
     * Token for pagination
     *
     * @param string $pageToken Token for pagination
     * @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.Intelligence.V3.ReadOperatorResultOptions ' . $options . ']';
    }
}

