Skip to content

Commit

Permalink
Merge pull request #460 from perfectsense/bugfix/revert-cloudfront-fi…
Browse files Browse the repository at this point in the history
…eld-removal

Revert "Remove unused field customize error response"
  • Loading branch information
deepanjan90 authored May 7, 2021
2 parents 2897f64 + 80bd08c commit 572945d
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public class CloudFrontCustomErrorResponse extends Diffable implements Copyable<
private Integer errorCode;
private String responseCode;
private String responsePagePath;
private Boolean customizeErrorResponse;

/**
* The minimum amount of time to cache this error code.
Expand Down Expand Up @@ -79,6 +80,18 @@ public void setResponsePagePath(String responsePagePath) {
this.responsePagePath = responsePagePath;
}

public Boolean getCustomizeErrorResponse() {
if (customizeErrorResponse == null) {
customizeErrorResponse = false;
}

return customizeErrorResponse;
}

public void setCustomizeErrorResponse(Boolean customizeErrorResponse) {
this.customizeErrorResponse = customizeErrorResponse;
}

@Override
public void copyFrom(CustomErrorResponse errorResponse) {
setTtl(errorResponse.errorCachingMinTTL());
Expand Down

0 comments on commit 572945d

Please sign in to comment.