Skip to content

Commit

Permalink
Generate all-args constructor with Lombok
Browse files Browse the repository at this point in the history
  • Loading branch information
Philzen committed May 3, 2024
1 parent e506538 commit 02ed275
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,15 @@
package org.openapitools.codegen.online.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Setter @NoArgsConstructor
@Setter @NoArgsConstructor @AllArgsConstructor
public class ResponseCode {
private String code;
private String link;

public ResponseCode(String code, String link) {
setCode(code);
setLink(link);
}

@ApiModelProperty(value = "File download code",
example = "d40029be-eda6-4d62-b1ef-d05e2e91a72a")
public String getCode() {
Expand Down

0 comments on commit 02ed275

Please sign in to comment.