RessursResultDto.java
- package no.nav.nom.graphql.model;
- import java.util.StringJoiner;
- @javax.annotation.processing.Generated(
- value = "com.kobylynskyi.graphql.codegen.GraphQLCodegen",
- date = "2025-01-10T14:34:08+0000"
- )
- public class RessursResultDto implements java.io.Serializable {
- private static final long serialVersionUID = 1L;
- @jakarta.validation.constraints.NotNull
- private ResultCodeDto code;
- @jakarta.validation.constraints.NotNull
- private String id;
- private RessursDto ressurs;
- public RessursResultDto() {
- }
- public RessursResultDto(ResultCodeDto code, String id, RessursDto ressurs) {
- this.code = code;
- this.id = id;
- this.ressurs = ressurs;
- }
- public ResultCodeDto getCode() {
- return code;
- }
- public void setCode(ResultCodeDto code) {
- this.code = code;
- }
- public String getId() {
- return id;
- }
- public void setId(String id) {
- this.id = id;
- }
- public RessursDto getRessurs() {
- return ressurs;
- }
- public void setRessurs(RessursDto ressurs) {
- this.ressurs = ressurs;
- }
- @Override
- public String toString() {
- StringJoiner joiner = new StringJoiner(", ", "{ ", " }");
- if (code != null) {
- joiner.add("code: " + code);
- }
- if (id != null) {
- joiner.add("id: \"" + id + "\"");
- }
- if (ressurs != null) {
- joiner.add("ressurs: " + ressurs);
- }
- return joiner.toString();
- }
- public static RessursResultDto.Builder builder() {
- return new RessursResultDto.Builder();
- }
- @javax.annotation.processing.Generated(
- value = "com.kobylynskyi.graphql.codegen.GraphQLCodegen",
- date = "2025-01-10T14:34:08+0000"
- )
- public static class Builder {
- private ResultCodeDto code;
- private String id;
- private RessursDto ressurs;
- public Builder() {
- }
- public Builder setCode(ResultCodeDto code) {
- this.code = code;
- return this;
- }
- public Builder setId(String id) {
- this.id = id;
- return this;
- }
- public Builder setRessurs(RessursDto ressurs) {
- this.ressurs = ressurs;
- return this;
- }
- public RessursResultDto build() {
- return new RessursResultDto(code, id, ressurs);
- }
- }
- }