<?php

declare (strict_types=1);
/*
 * PaypalServerSdkLib
 *
 * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
 */
namespace FormGent\PaypalServerSdkLib\Models\Builders;

use FormGent\Core\Utils\CoreHelper;
use FormGent\PaypalServerSdkLib\Models\AuthorizationStatusDetails;
use FormGent\PaypalServerSdkLib\Models\AuthorizationStatusWithDetails;
/**
 * Builder for model AuthorizationStatusWithDetails
 *
 * @see AuthorizationStatusWithDetails
 */
class AuthorizationStatusWithDetailsBuilder
{
    /**
     * @var AuthorizationStatusWithDetails
     */
    private $instance;
    private function __construct(AuthorizationStatusWithDetails $instance)
    {
        $this->instance = $instance;
    }
    /**
     * Initializes a new Authorization Status With Details Builder object.
     */
    public static function init() : self
    {
        return new self(new AuthorizationStatusWithDetails());
    }
    /**
     * Sets status field.
     *
     * @param string|null $value
     */
    public function status(?string $value) : self
    {
        $this->instance->setStatus($value);
        return $this;
    }
    /**
     * Sets status details field.
     *
     * @param AuthorizationStatusDetails|null $value
     */
    public function statusDetails(?AuthorizationStatusDetails $value) : self
    {
        $this->instance->setStatusDetails($value);
        return $this;
    }
    /**
     * Initializes a new Authorization Status With Details object.
     */
    public function build() : AuthorizationStatusWithDetails
    {
        return CoreHelper::clone($this->instance);
    }
}
