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

  8.     private static final long serialVersionUID = 1L;

  9.     @Deprecated
  10.     @jakarta.validation.constraints.NotNull
  11.     private String personIdent;
  12.     @jakarta.validation.constraints.NotNull
  13.     private String personident;
  14.     @Deprecated
  15.     private String navIdent;
  16.     private String navident;
  17.     @Deprecated
  18.     private FolkeregisterPersonDto person;
  19.     private FolkeregisterPersonDto folkeregisterPerson;

  20.     public PersonResultDto() {
  21.     }

  22.     public PersonResultDto(String personIdent, String personident, String navIdent, String navident, FolkeregisterPersonDto person, FolkeregisterPersonDto folkeregisterPerson) {
  23.         this.personIdent = personIdent;
  24.         this.personident = personident;
  25.         this.navIdent = navIdent;
  26.         this.navident = navident;
  27.         this.person = person;
  28.         this.folkeregisterPerson = folkeregisterPerson;
  29.     }

  30.     @Deprecated
  31.     public String getPersonIdent() {
  32.         return personIdent;
  33.     }
  34.     @Deprecated
  35.     public void setPersonIdent(String personIdent) {
  36.         this.personIdent = personIdent;
  37.     }

  38.     public String getPersonident() {
  39.         return personident;
  40.     }
  41.     public void setPersonident(String personident) {
  42.         this.personident = personident;
  43.     }

  44.     @Deprecated
  45.     public String getNavIdent() {
  46.         return navIdent;
  47.     }
  48.     @Deprecated
  49.     public void setNavIdent(String navIdent) {
  50.         this.navIdent = navIdent;
  51.     }

  52.     public String getNavident() {
  53.         return navident;
  54.     }
  55.     public void setNavident(String navident) {
  56.         this.navident = navident;
  57.     }

  58.     @Deprecated
  59.     public FolkeregisterPersonDto getPerson() {
  60.         return person;
  61.     }
  62.     @Deprecated
  63.     public void setPerson(FolkeregisterPersonDto person) {
  64.         this.person = person;
  65.     }

  66.     public FolkeregisterPersonDto getFolkeregisterPerson() {
  67.         return folkeregisterPerson;
  68.     }
  69.     public void setFolkeregisterPerson(FolkeregisterPersonDto folkeregisterPerson) {
  70.         this.folkeregisterPerson = folkeregisterPerson;
  71.     }


  72.     @Override
  73.     public String toString() {
  74.         StringJoiner joiner = new StringJoiner(", ", "{ ", " }");
  75.         if (personIdent != null) {
  76.             joiner.add("personIdent: \"" + personIdent + "\"");
  77.         }
  78.         if (personident != null) {
  79.             joiner.add("personident: \"" + personident + "\"");
  80.         }
  81.         if (navIdent != null) {
  82.             joiner.add("navIdent: \"" + navIdent + "\"");
  83.         }
  84.         if (navident != null) {
  85.             joiner.add("navident: \"" + navident + "\"");
  86.         }
  87.         if (person != null) {
  88.             joiner.add("person: " + person);
  89.         }
  90.         if (folkeregisterPerson != null) {
  91.             joiner.add("folkeregisterPerson: " + folkeregisterPerson);
  92.         }
  93.         return joiner.toString();
  94.     }

  95.     public static PersonResultDto.Builder builder() {
  96.         return new PersonResultDto.Builder();
  97.     }

  98.     @javax.annotation.processing.Generated(
  99.         value = "com.kobylynskyi.graphql.codegen.GraphQLCodegen",
  100.         date = "2025-01-10T14:34:08+0000"
  101.     )
  102.     public static class Builder {

  103.         private String personIdent;
  104.         private String personident;
  105.         private String navIdent;
  106.         private String navident;
  107.         private FolkeregisterPersonDto person;
  108.         private FolkeregisterPersonDto folkeregisterPerson;

  109.         public Builder() {
  110.         }

  111.         @Deprecated
  112.         public Builder setPersonIdent(String personIdent) {
  113.             this.personIdent = personIdent;
  114.             return this;
  115.         }

  116.         public Builder setPersonident(String personident) {
  117.             this.personident = personident;
  118.             return this;
  119.         }

  120.         @Deprecated
  121.         public Builder setNavIdent(String navIdent) {
  122.             this.navIdent = navIdent;
  123.             return this;
  124.         }

  125.         public Builder setNavident(String navident) {
  126.             this.navident = navident;
  127.             return this;
  128.         }

  129.         @Deprecated
  130.         public Builder setPerson(FolkeregisterPersonDto person) {
  131.             this.person = person;
  132.             return this;
  133.         }

  134.         public Builder setFolkeregisterPerson(FolkeregisterPersonDto folkeregisterPerson) {
  135.             this.folkeregisterPerson = folkeregisterPerson;
  136.             return this;
  137.         }


  138.         public PersonResultDto build() {
  139.             return new PersonResultDto(personIdent, personident, navIdent, navident, person, folkeregisterPerson);
  140.         }

  141.     }
  142. }