Annotation Type OneOf


  • @Target(FIELD)
    @Retention(RUNTIME)
    public @interface OneOf
    Indicates that the annotated field or one of the others in the same OneOf group is required.
    See Also:
    CanSatisfyOneOf
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String value
      The choice group id.
    • Element Detail

      • value

        java.lang.String value
        The choice group id. One of the options in the choice group must be present in the parsed JSON.