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 LoginFromNewDeviceRenewedAt(@NonNull Instant instant) {
   @SuppressFBWarnings(justification = "generated code")
   public LoginFromNewDeviceRenewedAt {
      if (instant == null) {
         throw new NullPointerException("instant is marked non-null but is null");
      }
   }

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