<?php

declare(strict_types=1);

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

namespace PaypalServerSDKLib\Models\Builders;

use Core\Utils\CoreHelper;
use PaypalServerSDKLib\Models\VaultResponse;
use PaypalServerSDKLib\Models\VenmoWalletAttributesResponse;

/**
 * Builder for model VenmoWalletAttributesResponse
 *
 * @see VenmoWalletAttributesResponse
 */
class VenmoWalletAttributesResponseBuilder
{
    /**
     * @var VenmoWalletAttributesResponse
     */
    private $instance;

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

    /**
     * Initializes a new venmo wallet attributes response Builder object.
     */
    public static function init(): self
    {
        return new self(new VenmoWalletAttributesResponse());
    }

    /**
     * Sets vault field.
     */
    public function vault(?VaultResponse $value): self
    {
        $this->instance->setVault($value);
        return $this;
    }

    /**
     * Initializes a new venmo wallet attributes response object.
     */
    public function build(): VenmoWalletAttributesResponse
    {
        return CoreHelper::clone($this->instance);
    }
}
