blob: 7bb17dfdf51a2a9d5aba1729a3cd0970f5a45f17 (
plain)
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
|
//version 8: Jackson deps are at least Java7+.
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSetter;
import com.fasterxml.jackson.annotation.Nulls;
public class JacksonJsonProperty {
@JsonProperty("kebab-case-prop")
@JsonSetter(nulls = Nulls.SKIP)
public String kebabCaseProp;
@java.lang.SuppressWarnings("all")
JacksonJsonProperty(final String kebabCaseProp) {
this.kebabCaseProp = kebabCaseProp;
}
@java.lang.SuppressWarnings("all")
public static class JacksonJsonPropertyBuilder {
@java.lang.SuppressWarnings("all")
private String kebabCaseProp;
@java.lang.SuppressWarnings("all")
JacksonJsonPropertyBuilder() {
}
/**
* @return {@code this}.
*/
@JsonProperty("kebab-case-prop")
@JsonSetter(nulls = Nulls.SKIP)
@java.lang.SuppressWarnings("all")
public JacksonJsonProperty.JacksonJsonPropertyBuilder kebabCaseProp(final String kebabCaseProp) {
this.kebabCaseProp = kebabCaseProp;
return this;
}
@java.lang.SuppressWarnings("all")
public JacksonJsonProperty build() {
return new JacksonJsonProperty(this.kebabCaseProp);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "JacksonJsonProperty.JacksonJsonPropertyBuilder(kebabCaseProp=" + this.kebabCaseProp + ")";
}
}
@java.lang.SuppressWarnings("all")
public static JacksonJsonProperty.JacksonJsonPropertyBuilder builder() {
return new JacksonJsonProperty.JacksonJsonPropertyBuilder();
}
@JsonProperty("kebab-case-prop")
@JsonSetter(nulls = Nulls.SKIP)
@java.lang.SuppressWarnings("all")
public void setKebabCaseProp(final String kebabCaseProp) {
this.kebabCaseProp = kebabCaseProp;
}
}
|