<?php

declare(strict_types=1);

/*
 * PayPalRESTAPIsLib
 *
 * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
 */

namespace PayPalRESTAPIsLib\Models\Builders;

use Core\Utils\CoreHelper;
use PayPalRESTAPIsLib\Models\SEPADebitAuthorizationDetails;

/**
 * Builder for model SEPADebitAuthorizationDetails
 *
 * @see SEPADebitAuthorizationDetails
 */
class SEPADebitAuthorizationDetailsBuilder
{
    /**
     * @var SEPADebitAuthorizationDetails
     */
    private $instance;

    private function __construct(SEPADebitAuthorizationDetails $instance)
    {
        $this->instance = $instance;
    }

    /**
     * Initializes a new sepadebit authorization details Builder object.
     */
    public static function init(): self
    {
        return new self(new SEPADebitAuthorizationDetails());
    }

    /**
     * Sets status field.
     */
    public function status(?string $value): self
    {
        $this->instance->setStatus($value);
        return $this;
    }

    /**
     * Initializes a new sepadebit authorization details object.
     */
    public function build(): SEPADebitAuthorizationDetails
    {
        return CoreHelper::clone($this->instance);
    }
}
