RessursSearchFilterDto.java

  1. package no.nav.nom.graphql.model;

  2. import java.util.StringJoiner;

  3. @javax.annotation.processing.Generated(
  4.     value = "com.kobylynskyi.graphql.codegen.GraphQLCodegen",
  5.     date = "2025-01-10T14:34:08+0000"
  6. )
  7. public class RessursSearchFilterDto implements java.io.Serializable {

  8.     private static final long serialVersionUID = 1L;

  9.     @jakarta.validation.constraints.NotNull
  10.     private SektorSelectionDto sektorSelection = SektorSelectionDto.ALLE;
  11.     @jakarta.validation.constraints.NotNull
  12.     private StatusSelectionDto statusSelection = StatusSelectionDto.ALLE;
  13.     @jakarta.validation.constraints.NotNull
  14.     private ResultLimitDto limit = ResultLimitDto.LIMIT_30;

  15.     public RessursSearchFilterDto() {
  16.     }

  17.     public RessursSearchFilterDto(SektorSelectionDto sektorSelection, StatusSelectionDto statusSelection, ResultLimitDto limit) {
  18.         this.sektorSelection = sektorSelection;
  19.         this.statusSelection = statusSelection;
  20.         this.limit = limit;
  21.     }

  22.     public SektorSelectionDto getSektorSelection() {
  23.         return sektorSelection;
  24.     }
  25.     public void setSektorSelection(SektorSelectionDto sektorSelection) {
  26.         this.sektorSelection = sektorSelection;
  27.     }

  28.     public StatusSelectionDto getStatusSelection() {
  29.         return statusSelection;
  30.     }
  31.     public void setStatusSelection(StatusSelectionDto statusSelection) {
  32.         this.statusSelection = statusSelection;
  33.     }

  34.     public ResultLimitDto getLimit() {
  35.         return limit;
  36.     }
  37.     public void setLimit(ResultLimitDto limit) {
  38.         this.limit = limit;
  39.     }


  40.     @Override
  41.     public String toString() {
  42.         StringJoiner joiner = new StringJoiner(", ", "{ ", " }");
  43.         if (sektorSelection != null) {
  44.             joiner.add("sektorSelection: " + sektorSelection);
  45.         }
  46.         if (statusSelection != null) {
  47.             joiner.add("statusSelection: " + statusSelection);
  48.         }
  49.         if (limit != null) {
  50.             joiner.add("limit: " + limit);
  51.         }
  52.         return joiner.toString();
  53.     }

  54.     public static RessursSearchFilterDto.Builder builder() {
  55.         return new RessursSearchFilterDto.Builder();
  56.     }

  57.     @javax.annotation.processing.Generated(
  58.         value = "com.kobylynskyi.graphql.codegen.GraphQLCodegen",
  59.         date = "2025-01-10T14:34:08+0000"
  60.     )
  61.     public static class Builder {

  62.         private SektorSelectionDto sektorSelection = SektorSelectionDto.ALLE;
  63.         private StatusSelectionDto statusSelection = StatusSelectionDto.ALLE;
  64.         private ResultLimitDto limit = ResultLimitDto.LIMIT_30;

  65.         public Builder() {
  66.         }

  67.         public Builder setSektorSelection(SektorSelectionDto sektorSelection) {
  68.             this.sektorSelection = sektorSelection;
  69.             return this;
  70.         }

  71.         public Builder setStatusSelection(StatusSelectionDto statusSelection) {
  72.             this.statusSelection = statusSelection;
  73.             return this;
  74.         }

  75.         public Builder setLimit(ResultLimitDto limit) {
  76.             this.limit = limit;
  77.             return this;
  78.         }


  79.         public RessursSearchFilterDto build() {
  80.             return new RessursSearchFilterDto(sektorSelection, statusSelection, limit);
  81.         }

  82.     }
  83. }