Skip to content

Commit

Permalink
[MODORSERS-1026] - Added jsonProperty annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
azizbekxm committed Mar 29, 2024
1 parent d83c8ab commit 48e3ee4
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/main/java/org/folio/models/TemplateProcessingRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,41 @@
import java.util.Objects;
import java.util.UUID;

import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Getter;

@Getter
public class TemplateProcessingRequest {
@JsonProperty
private UUID templateId;
@JsonProperty
private String lang;
@JsonProperty
private String outputFormat;
@JsonProperty
private Context context;

public TemplateProcessingRequest setTemplateId(UUID templateId) {
this.templateId = templateId;
return this;
}

public TemplateProcessingRequest setLang(String lang) {
this.lang = lang;
return this;
}

public TemplateProcessingRequest setOutputFormat(String outputFormat) {
this.outputFormat = outputFormat;
return this;
}

public TemplateProcessingRequest setContext(Context context) {
this.context = context;
return this;
}

public TemplateProcessingRequest withTemplateId(UUID templateId) {
this.templateId = templateId;
return this;
Expand Down

0 comments on commit 48e3ee4

Please sign in to comment.