-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathAmlAddress.java
More file actions
51 lines (36 loc) · 1.04 KB
/
AmlAddress.java
File metadata and controls
51 lines (36 loc) · 1.04 KB
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
package com.yoti.api.client.aml;
import com.fasterxml.jackson.annotation.JsonProperty;
public class AmlAddress {
@JsonProperty("post_code")
private final String postCode;
@JsonProperty("country")
private final String country;
private AmlAddress(String postCode, String country) {
this.postCode = postCode;
this.country = country;
}
public static AmlAddress.Builder builder() {
return new AmlAddress.Builder();
}
public String getPostCode() {
return postCode;
}
public String getCountry() {
return country;
}
public static class Builder {
private String postCode;
private String country;
public Builder withPostCode(String postCode) {
this.postCode = postCode;
return this;
}
public Builder withCountry(String country) {
this.country = country;
return this;
}
public AmlAddress build() {
return new AmlAddress(postCode, country);
}
}
}