<?php
/**
 * This code was generated by
 * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
 *
 * Twilio - Numbers
 * 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\Numbers\V2;

use Twilio\Options;
use Twilio\Values;

abstract class ApplicationOptions
{


    /**
     * @param string $accountSid The Account SID to filter by.
     * @param string $isoCountry The ISO country to filter by.
     * @param string $status The application status to filter by.
     * @param string $friendlyName The friendly name to filter by.
     * @param string $sid The application SID to filter by.
     * @return ReadApplicationOptions Options builder
     */
    public static function read(
        
        string $accountSid = Values::NONE,
        string $isoCountry = Values::NONE,
        string $status = Values::NONE,
        string $friendlyName = Values::NONE,
        string $sid = Values::NONE

    ): ReadApplicationOptions
    {
        return new ReadApplicationOptions(
            $accountSid,
            $isoCountry,
            $status,
            $friendlyName,
            $sid
        );
    }

}



class ReadApplicationOptions extends Options
    {
    /**
     * @param string $accountSid The Account SID to filter by.
     * @param string $isoCountry The ISO country to filter by.
     * @param string $status The application status to filter by.
     * @param string $friendlyName The friendly name to filter by.
     * @param string $sid The application SID to filter by.
     */
    public function __construct(
        
        string $accountSid = Values::NONE,
        string $isoCountry = Values::NONE,
        string $status = Values::NONE,
        string $friendlyName = Values::NONE,
        string $sid = Values::NONE

    ) {
        $this->options['accountSid'] = $accountSid;
        $this->options['isoCountry'] = $isoCountry;
        $this->options['status'] = $status;
        $this->options['friendlyName'] = $friendlyName;
        $this->options['sid'] = $sid;
    }

    /**
     * The Account SID to filter by.
     *
     * @param string $accountSid The Account SID to filter by.
     * @return $this Fluent Builder
     */
    public function setAccountSid(string $accountSid): self
    {
        $this->options['accountSid'] = $accountSid;
        return $this;
    }

    /**
     * The ISO country to filter by.
     *
     * @param string $isoCountry The ISO country to filter by.
     * @return $this Fluent Builder
     */
    public function setIsoCountry(string $isoCountry): self
    {
        $this->options['isoCountry'] = $isoCountry;
        return $this;
    }

    /**
     * The application status to filter by.
     *
     * @param string $status The application status to filter by.
     * @return $this Fluent Builder
     */
    public function setStatus(string $status): self
    {
        $this->options['status'] = $status;
        return $this;
    }

    /**
     * The friendly name to filter by.
     *
     * @param string $friendlyName The friendly name to filter by.
     * @return $this Fluent Builder
     */
    public function setFriendlyName(string $friendlyName): self
    {
        $this->options['friendlyName'] = $friendlyName;
        return $this;
    }

    /**
     * The application SID to filter by.
     *
     * @param string $sid The application SID to filter by.
     * @return $this Fluent Builder
     */
    public function setSid(string $sid): self
    {
        $this->options['sid'] = $sid;
        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.Numbers.V2.ReadApplicationOptions ' . $options . ']';
    }
}

