generated from wayfair-incubator/oss-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Error.java
58 lines (42 loc) · 1.04 KB
/
Error.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package com.wayfair.javafroid.model;
import java.util.List;
public class Error {
private String message;
private List<Location> locations;
public Error() {
}
public Error(String message, List<Location> locations) {
this.message = message;
this.locations = locations;
}
public String getMessage() {
return message;
}
public List<Location> getLocations() {
return locations;
}
public void setMessage(String message) {
this.message = message;
}
public void setLocations(List<Location> locations) {
this.locations = locations;
}
public static Builder builder() {
return new Builder();
}
public static class Builder {
private String message;
private List<Location> locations;
public Builder setMessage(String message) {
this.message = message;
return this;
}
public Builder setLocations(List<Location> locations) {
this.locations = locations;
return this;
}
public Error build() {
return new Error(message, locations);
}
}
}