/
BranchEntity.java
63 lines (48 loc) · 1.31 KB
/
BranchEntity.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
59
60
61
62
63
package com.example.tests.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown = true)
public class BranchEntity {
private String name;
@JsonProperty("_links")
private Links links;
private Protection protection;
@JsonIgnoreProperties(ignoreUnknown = true)
public static class Links {
private String html;
public String getHtml() {
return html;
}
public void setHtml(String html) {
this.html = html;
}
}
@JsonIgnoreProperties(ignoreUnknown = true)
public static class Protection {
private Boolean enabled;
public Boolean getEnabled() {
return enabled;
}
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Links getLinks() {
return links;
}
public void setLinks(Links links) {
this.links = links;
}
public Protection getProtection() {
return protection;
}
public void setProtection(Protection protection) {
this.protection = protection;
}
}