PaOwnerGroupResponse.java

  1. package no.nav.data.team.po.dto;

  2. import lombok.Builder;
  3. import lombok.Data;
  4. import no.nav.data.team.resource.dto.ResourceResponse;

  5. import java.util.List;

  6. @Data
  7. @Builder
  8. public class PaOwnerGroupResponse {
  9.     private final ResourceResponse ownerResource;
  10.     private final List<ResourceResponse> ownerGroupMemberResourceList;

  11.     public PaOwnerGroupResponse(){
  12.         this.ownerResource = null;
  13.         this.ownerGroupMemberResourceList = List.of();
  14.     }

  15.     public PaOwnerGroupResponse(ResourceResponse ownerResource, List<ResourceResponse> ownerGroupMemberResourceList){
  16.         this.ownerResource = ownerResource;
  17.         this.ownerGroupMemberResourceList = ownerGroupMemberResourceList;
  18.     }

  19. }