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

namespace Twilio\Rest\Studio\V2;

use Twilio\Options;
use Twilio\Values;

abstract class FlowOptions
{
    /**
     * @param string $commitMessage Description of change made in the revision.
     * @param string $authorSid The SID of the User that created the Flow.
     * @return CreateFlowOptions Options builder
     */
    public static function create(
        
        string $commitMessage = Values::NONE,
        string $authorSid = Values::NONE

    ): CreateFlowOptions
    {
        return new CreateFlowOptions(
            $commitMessage,
            $authorSid
        );
    }




    /**
     * @param string $friendlyName The string that you assigned to describe the Flow.
     * @param array $definition JSON representation of flow definition.
     * @param string $commitMessage Description of change made in the revision.
     * @param string $authorSid The SID of the User that created or last updated the Flow.
     * @return UpdateFlowOptions Options builder
     */
    public static function update(
        
        string $friendlyName = Values::NONE,
        array $definition = Values::ARRAY_NONE,
        string $commitMessage = Values::NONE,
        string $authorSid = Values::NONE

    ): UpdateFlowOptions
    {
        return new UpdateFlowOptions(
            $friendlyName,
            $definition,
            $commitMessage,
            $authorSid
        );
    }

}

class CreateFlowOptions extends Options
    {
    /**
     * @param string $commitMessage Description of change made in the revision.
     * @param string $authorSid The SID of the User that created the Flow.
     */
    public function __construct(
        
        string $commitMessage = Values::NONE,
        string $authorSid = Values::NONE

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

    /**
     * Description of change made in the revision.
     *
     * @param string $commitMessage Description of change made in the revision.
     * @return $this Fluent Builder
     */
    public function setCommitMessage(string $commitMessage): self
    {
        $this->options['commitMessage'] = $commitMessage;
        return $this;
    }

    /**
     * The SID of the User that created the Flow.
     *
     * @param string $authorSid The SID of the User that created the Flow.
     * @return $this Fluent Builder
     */
    public function setAuthorSid(string $authorSid): self
    {
        $this->options['authorSid'] = $authorSid;
        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.Studio.V2.CreateFlowOptions ' . $options . ']';
    }
}




class UpdateFlowOptions extends Options
    {
    /**
     * @param string $friendlyName The string that you assigned to describe the Flow.
     * @param array $definition JSON representation of flow definition.
     * @param string $commitMessage Description of change made in the revision.
     * @param string $authorSid The SID of the User that created or last updated the Flow.
     */
    public function __construct(
        
        string $friendlyName = Values::NONE,
        array $definition = Values::ARRAY_NONE,
        string $commitMessage = Values::NONE,
        string $authorSid = Values::NONE

    ) {
        $this->options['friendlyName'] = $friendlyName;
        $this->options['definition'] = $definition;
        $this->options['commitMessage'] = $commitMessage;
        $this->options['authorSid'] = $authorSid;
    }

    /**
     * The string that you assigned to describe the Flow.
     *
     * @param string $friendlyName The string that you assigned to describe the Flow.
     * @return $this Fluent Builder
     */
    public function setFriendlyName(string $friendlyName): self
    {
        $this->options['friendlyName'] = $friendlyName;
        return $this;
    }

    /**
     * JSON representation of flow definition.
     *
     * @param array $definition JSON representation of flow definition.
     * @return $this Fluent Builder
     */
    public function setDefinition(array $definition): self
    {
        $this->options['definition'] = $definition;
        return $this;
    }

    /**
     * Description of change made in the revision.
     *
     * @param string $commitMessage Description of change made in the revision.
     * @return $this Fluent Builder
     */
    public function setCommitMessage(string $commitMessage): self
    {
        $this->options['commitMessage'] = $commitMessage;
        return $this;
    }

    /**
     * The SID of the User that created or last updated the Flow.
     *
     * @param string $authorSid The SID of the User that created or last updated the Flow.
     * @return $this Fluent Builder
     */
    public function setAuthorSid(string $authorSid): self
    {
        $this->options['authorSid'] = $authorSid;
        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.Studio.V2.UpdateFlowOptions ' . $options . ']';
    }
}

