<?php

declare(strict_types=1);

namespace NoahVet\Reef\Jane\Model;

class V1PetBreedExternalLinksPostBody extends \ArrayObject
{
    /**
     * @var array
     */
    protected $initialized = [];

    /**
     * Id - Common Request Model.
     *
     * @var V1PetBreedExternalLinksPostBodyPetBreed
     */
    protected $petBreed;

    /**
     * Id - Common Request Model.
     *
     * @var V1PetBreedExternalLinksPostBodyExternalRef
     */
    protected $externalRef;

    /**
     * @var string|null
     */
    protected $sharedId;

    public function isInitialized($property): bool
    {
        return \array_key_exists($property, $this->initialized);
    }

    /**
     * Id - Common Request Model.
     */
    public function getPetBreed(): V1PetBreedExternalLinksPostBodyPetBreed
    {
        return $this->petBreed;
    }

    /**
     * Id - Common Request Model.
     */
    public function setPetBreed(V1PetBreedExternalLinksPostBodyPetBreed $petBreed): self
    {
        $this->initialized['petBreed'] = true;
        $this->petBreed = $petBreed;

        return $this;
    }

    /**
     * Id - Common Request Model.
     */
    public function getExternalRef(): V1PetBreedExternalLinksPostBodyExternalRef
    {
        return $this->externalRef;
    }

    /**
     * Id - Common Request Model.
     */
    public function setExternalRef(V1PetBreedExternalLinksPostBodyExternalRef $externalRef): self
    {
        $this->initialized['externalRef'] = true;
        $this->externalRef = $externalRef;

        return $this;
    }

    public function getSharedId(): ?string
    {
        return $this->sharedId;
    }

    public function setSharedId(?string $sharedId): self
    {
        $this->initialized['sharedId'] = true;
        $this->sharedId = $sharedId;

        return $this;
    }
}
