uploadId = $input['UploadId'] ?? null; $this->key = $input['Key'] ?? null; $this->initiated = $input['Initiated'] ?? null; $this->storageClass = $input['StorageClass'] ?? null; $this->owner = isset($input['Owner']) ? Owner::create($input['Owner']) : null; $this->initiator = isset($input['Initiator']) ? Initiator::create($input['Initiator']) : null; $this->checksumAlgorithm = $input['ChecksumAlgorithm'] ?? null; } public static function create($input): self { return $input instanceof self ? $input : new self($input); } /** * @return ChecksumAlgorithm::*|null */ public function getChecksumAlgorithm(): ?string { return $this->checksumAlgorithm; } public function getInitiated(): ?\DateTimeImmutable { return $this->initiated; } public function getInitiator(): ?Initiator { return $this->initiator; } public function getKey(): ?string { return $this->key; } public function getOwner(): ?Owner { return $this->owner; } /** * @return StorageClass::*|null */ public function getStorageClass(): ?string { return $this->storageClass; } public function getUploadId(): ?string { return $this->uploadId; } }