<?php

namespace AsyncAws\Rekognition\Result;

use AsyncAws\Core\Response;
use AsyncAws\Core\Result;

class CreateCollectionResponse extends Result
{
    /**
     * HTTP status code indicating the result of the operation.
     *
     * @var int|null
     */
    private $statusCode;

    /**
     * Amazon Resource Name (ARN) of the collection. You can use this to manage permissions on your resources.
     *
     * @var string|null
     */
    private $collectionArn;

    /**
     * Version number of the face detection model associated with the collection you are creating.
     *
     * @var string|null
     */
    private $faceModelVersion;

    public function getCollectionArn(): ?string
    {
        $this->initialize();

        return $this->collectionArn;
    }

    public function getFaceModelVersion(): ?string
    {
        $this->initialize();

        return $this->faceModelVersion;
    }

    public function getStatusCode(): ?int
    {
        $this->initialize();

        return $this->statusCode;
    }

    protected function populateResult(Response $response): void
    {
        $data = $response->toArray();

        $this->statusCode = isset($data['StatusCode']) ? (int) $data['StatusCode'] : null;
        $this->collectionArn = isset($data['CollectionArn']) ? (string) $data['CollectionArn'] : null;
        $this->faceModelVersion = isset($data['FaceModelVersion']) ? (string) $data['FaceModelVersion'] : null;
    }
}
