Skip to content

Commit

Permalink
feat : add isTemplate in AwsBluePrintListDto
Browse files Browse the repository at this point in the history
  • Loading branch information
nookcoder committed Nov 17, 2023
1 parent b40a8a3 commit 6c71e10
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public class AwsBluePrintListDto {
private Date updatedAt;
private String presignedUrl;
private ProvisionStatus status;
private boolean isTemplate;

public static AwsBluePrintListDto fromAwsBluePrint(AwsBluePrint awsBluePrint, String presignedUrl) {
return AwsBluePrintListDto.builder()
Expand All @@ -40,6 +41,7 @@ public static AwsBluePrintListDto fromAwsBluePrint(AwsBluePrint awsBluePrint, St
.updatedAt(awsBluePrint.getUpdated_at())
.presignedUrl(presignedUrl)
.status(awsBluePrint.getStatus())
.isTemplate(awsBluePrint.getIsTemplate() != null && awsBluePrint.getIsTemplate())
.build();
}
}

0 comments on commit 6c71e10

Please sign in to comment.