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

  8.     private static final long serialVersionUID = 1L;

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

  14.     public OrgEnhetsKoblingDto() {
  15.     }

  16.     public OrgEnhetsKoblingDto(RessursDto ressurs, java.time.LocalDate gyldigFom, java.time.LocalDate gyldigTom) {
  17.         this.ressurs = ressurs;
  18.         this.gyldigFom = gyldigFom;
  19.         this.gyldigTom = gyldigTom;
  20.     }

  21.     public RessursDto getRessurs() {
  22.         return ressurs;
  23.     }
  24.     public void setRessurs(RessursDto ressurs) {
  25.         this.ressurs = ressurs;
  26.     }

  27.     public java.time.LocalDate getGyldigFom() {
  28.         return gyldigFom;
  29.     }
  30.     public void setGyldigFom(java.time.LocalDate gyldigFom) {
  31.         this.gyldigFom = gyldigFom;
  32.     }

  33.     public java.time.LocalDate getGyldigTom() {
  34.         return gyldigTom;
  35.     }
  36.     public void setGyldigTom(java.time.LocalDate gyldigTom) {
  37.         this.gyldigTom = gyldigTom;
  38.     }


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

  53.     public static OrgEnhetsKoblingDto.Builder builder() {
  54.         return new OrgEnhetsKoblingDto.Builder();
  55.     }

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

  61.         private RessursDto ressurs;
  62.         private java.time.LocalDate gyldigFom;
  63.         private java.time.LocalDate gyldigTom;

  64.         public Builder() {
  65.         }

  66.         public Builder setRessurs(RessursDto ressurs) {
  67.             this.ressurs = ressurs;
  68.             return this;
  69.         }

  70.         public Builder setGyldigFom(java.time.LocalDate gyldigFom) {
  71.             this.gyldigFom = gyldigFom;
  72.             return this;
  73.         }

  74.         public Builder setGyldigTom(java.time.LocalDate gyldigTom) {
  75.             this.gyldigTom = gyldigTom;
  76.             return this;
  77.         }


  78.         public OrgEnhetsKoblingDto build() {
  79.             return new OrgEnhetsKoblingDto(ressurs, gyldigFom, gyldigTom);
  80.         }

  81.     }
  82. }