//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; } }