package com.airlock.iam.admin.domain.model.user;

import com.airlock.iam.base.api.domain.model.store.query.Restriction;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;

public final class Restrictions {
   private final List<Restriction> restrictions;

   public static Restrictions noRestrictions() {
      return new Restrictions(List.of());
   }

   @SuppressFBWarnings(justification = "generated code")
   public Restrictions(List<Restriction> restrictions) {
      this.restrictions = restrictions;
   }

   @SuppressFBWarnings(justification = "generated code")
   public List<Restriction> getRestrictions() {
      return this.restrictions;
   }
}
