<?php
/**
 * This code was generated by
 * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
 *
 * Twilio API definition for public-api voice
 * Powers Twilio public-api voice
 *
 * NOTE: This class is auto generated by OpenAPI Generator.
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

namespace Twilio\Rest\Voice\V3;

use Twilio\Options;
use Twilio\Values;

abstract class TranscriptionOptions
{
    /**
     * @param string $idempotencyKey A unique key to ensure idempotency. We recommend using UUID v7. Requests with the same key within the idempotency window return the original response.
     * @return CreateTranscriptionOptions Options builder
     */
    public static function create(
        
        string $idempotencyKey = Values::NONE

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


}

class CreateTranscriptionOptions extends Options
    {
    /**
     * @param string $idempotencyKey A unique key to ensure idempotency. We recommend using UUID v7. Requests with the same key within the idempotency window return the original response.
     */
    public function __construct(
        
        string $idempotencyKey = Values::NONE

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

    /**
     * A unique key to ensure idempotency. We recommend using UUID v7. Requests with the same key within the idempotency window return the original response.
     *
     * @param string $idempotencyKey A unique key to ensure idempotency. We recommend using UUID v7. Requests with the same key within the idempotency window return the original response.
     * @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.Voice.V3.CreateTranscriptionOptions ' . $options . ']';
    }
}


