class MyClass { @JsonProperty(value = "property", required = true) public int getValue() { return 23; } }