package com.airlock.iam.flow.shared.domain.model.newdevice;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.time.Instant;
import lombok.NonNull;

public record LoginFromNewDeviceCreatedAt(@NonNull Instant instant) {
   @SuppressFBWarnings(justification = "generated code")
   public LoginFromNewDeviceCreatedAt {
      if (instant == null) {
         throw new NullPointerException("instant is marked non-null but is null");
      }
   }

   public static LoginFromNewDeviceCreatedAt of(Instant instant) {
      return new LoginFromNewDeviceCreatedAt(instant);
   }
}
