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

  8.     private static final long serialVersionUID = 1L;

  9.     private Boolean erDagligOppfolging;
  10.     @jakarta.validation.constraints.NotNull
  11.     private RessursDto ressurs;
  12.     @jakarta.validation.constraints.NotNull
  13.     private java.time.LocalDate gyldigFom;
  14.     private java.time.LocalDate gyldigTom;

  15.     public RessursLederDto() {
  16.     }

  17.     public RessursLederDto(Boolean erDagligOppfolging, RessursDto ressurs, java.time.LocalDate gyldigFom, java.time.LocalDate gyldigTom) {
  18.         this.erDagligOppfolging = erDagligOppfolging;
  19.         this.ressurs = ressurs;
  20.         this.gyldigFom = gyldigFom;
  21.         this.gyldigTom = gyldigTom;
  22.     }

  23.     public Boolean getErDagligOppfolging() {
  24.         return erDagligOppfolging;
  25.     }
  26.     public void setErDagligOppfolging(Boolean erDagligOppfolging) {
  27.         this.erDagligOppfolging = erDagligOppfolging;
  28.     }

  29.     public RessursDto getRessurs() {
  30.         return ressurs;
  31.     }
  32.     public void setRessurs(RessursDto ressurs) {
  33.         this.ressurs = ressurs;
  34.     }

  35.     public java.time.LocalDate getGyldigFom() {
  36.         return gyldigFom;
  37.     }
  38.     public void setGyldigFom(java.time.LocalDate gyldigFom) {
  39.         this.gyldigFom = gyldigFom;
  40.     }

  41.     public java.time.LocalDate getGyldigTom() {
  42.         return gyldigTom;
  43.     }
  44.     public void setGyldigTom(java.time.LocalDate gyldigTom) {
  45.         this.gyldigTom = gyldigTom;
  46.     }


  47.     @Override
  48.     public String toString() {
  49.         StringJoiner joiner = new StringJoiner(", ", "{ ", " }");
  50.         if (erDagligOppfolging != null) {
  51.             joiner.add("erDagligOppfolging: " + erDagligOppfolging);
  52.         }
  53.         if (ressurs != null) {
  54.             joiner.add("ressurs: " + ressurs);
  55.         }
  56.         if (gyldigFom != null) {
  57.             joiner.add("gyldigFom: " + gyldigFom);
  58.         }
  59.         if (gyldigTom != null) {
  60.             joiner.add("gyldigTom: " + gyldigTom);
  61.         }
  62.         return joiner.toString();
  63.     }

  64.     public static RessursLederDto.Builder builder() {
  65.         return new RessursLederDto.Builder();
  66.     }

  67.     @javax.annotation.processing.Generated(
  68.         value = "com.kobylynskyi.graphql.codegen.GraphQLCodegen",
  69.         date = "2025-01-10T14:34:08+0000"
  70.     )
  71.     public static class Builder {

  72.         private Boolean erDagligOppfolging;
  73.         private RessursDto ressurs;
  74.         private java.time.LocalDate gyldigFom;
  75.         private java.time.LocalDate gyldigTom;

  76.         public Builder() {
  77.         }

  78.         public Builder setErDagligOppfolging(Boolean erDagligOppfolging) {
  79.             this.erDagligOppfolging = erDagligOppfolging;
  80.             return this;
  81.         }

  82.         public Builder setRessurs(RessursDto ressurs) {
  83.             this.ressurs = ressurs;
  84.             return this;
  85.         }

  86.         public Builder setGyldigFom(java.time.LocalDate gyldigFom) {
  87.             this.gyldigFom = gyldigFom;
  88.             return this;
  89.         }

  90.         public Builder setGyldigTom(java.time.LocalDate gyldigTom) {
  91.             this.gyldigTom = gyldigTom;
  92.             return this;
  93.         }


  94.         public RessursLederDto build() {
  95.             return new RessursLederDto(erDagligOppfolging, ressurs, gyldigFom, gyldigTom);
  96.         }

  97.     }
  98. }