<?php

namespace NoahVet\Reef\Jane\Model;

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

    /**
     * @var string
     */
    protected $id;

    /**
     * @var \DateTime
     */
    protected $createdDate;

    /**
     * @var \DateTime
     */
    protected $updatedDate;

    /**
     * Id - Response Model.
     *
     * @var V1PetBreedExternalLinksPostResponse201ExternalRef
     */
    protected $externalRef;

    /**
     * Id - Response Model.
     *
     * @var V1PetBreedExternalLinksPostResponse201PetBreed
     */
    protected $petBreed;

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

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

    public function getId(): string
    {
        return $this->id;
    }

    public function setId(string $id): self
    {
        $this->initialized['id'] = true;
        $this->id = $id;

        return $this;
    }

    public function getCreatedDate(): \DateTime
    {
        return $this->createdDate;
    }

    public function setCreatedDate(\DateTime $createdDate): self
    {
        $this->initialized['createdDate'] = true;
        $this->createdDate = $createdDate;

        return $this;
    }

    public function getUpdatedDate(): \DateTime
    {
        return $this->updatedDate;
    }

    public function setUpdatedDate(\DateTime $updatedDate): self
    {
        $this->initialized['updatedDate'] = true;
        $this->updatedDate = $updatedDate;

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }
}
