package info.frostfs.sdk.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.TYPE, ElementType.ANNOTATION_TYPE}) public @interface AtLeastOneIsFilled { String message() default "At least one of the fields (%s) must be filled in"; String[] fields(); }