OrgEnhetSearchFilterDto.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 OrgEnhetSearchFilterDto implements java.io.Serializable {

  8.     private static final long serialVersionUID = 1L;

  9.     @jakarta.validation.constraints.NotNull
  10.     private OrgnivSelectionDto orgnivSelection = OrgnivSelectionDto.ALLE;
  11.     @jakarta.validation.constraints.NotNull
  12.     private GyldigTomSelectionDto gyldigTomSelection = GyldigTomSelectionDto.ALLE;
  13.     @jakarta.validation.constraints.NotNull
  14.     private ResultLimitDto limit = ResultLimitDto.LIMIT_30;

  15.     public OrgEnhetSearchFilterDto() {
  16.     }

  17.     public OrgEnhetSearchFilterDto(OrgnivSelectionDto orgnivSelection, GyldigTomSelectionDto gyldigTomSelection, ResultLimitDto limit) {
  18.         this.orgnivSelection = orgnivSelection;
  19.         this.gyldigTomSelection = gyldigTomSelection;
  20.         this.limit = limit;
  21.     }

  22.     public OrgnivSelectionDto getOrgnivSelection() {
  23.         return orgnivSelection;
  24.     }
  25.     public void setOrgnivSelection(OrgnivSelectionDto orgnivSelection) {
  26.         this.orgnivSelection = orgnivSelection;
  27.     }

  28.     public GyldigTomSelectionDto getGyldigTomSelection() {
  29.         return gyldigTomSelection;
  30.     }
  31.     public void setGyldigTomSelection(GyldigTomSelectionDto gyldigTomSelection) {
  32.         this.gyldigTomSelection = gyldigTomSelection;
  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 (orgnivSelection != null) {
  44.             joiner.add("orgnivSelection: " + orgnivSelection);
  45.         }
  46.         if (gyldigTomSelection != null) {
  47.             joiner.add("gyldigTomSelection: " + gyldigTomSelection);
  48.         }
  49.         if (limit != null) {
  50.             joiner.add("limit: " + limit);
  51.         }
  52.         return joiner.toString();
  53.     }

  54.     public static OrgEnhetSearchFilterDto.Builder builder() {
  55.         return new OrgEnhetSearchFilterDto.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 OrgnivSelectionDto orgnivSelection = OrgnivSelectionDto.ALLE;
  63.         private GyldigTomSelectionDto gyldigTomSelection = GyldigTomSelectionDto.ALLE;
  64.         private ResultLimitDto limit = ResultLimitDto.LIMIT_30;

  65.         public Builder() {
  66.         }

  67.         public Builder setOrgnivSelection(OrgnivSelectionDto orgnivSelection) {
  68.             this.orgnivSelection = orgnivSelection;
  69.             return this;
  70.         }

  71.         public Builder setGyldigTomSelection(GyldigTomSelectionDto gyldigTomSelection) {
  72.             this.gyldigTomSelection = gyldigTomSelection;
  73.             return this;
  74.         }

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


  79.         public OrgEnhetSearchFilterDto build() {
  80.             return new OrgEnhetSearchFilterDto(orgnivSelection, gyldigTomSelection, limit);
  81.         }

  82.     }
  83. }