Annotation Interface FieldEquals


@Retention(RUNTIME) @Target({}) public @interface FieldEquals
Field equality check for visibility conditions.

Checks if a DeploymentConfig field has a specific value.

Usage Examples


 // Simple boolean check
 @FieldEquals(field = "provisionDatabase", value = "true")

 // Enum check
 @FieldEquals(field = "securityProfile", value = "PRODUCTION")

 // String check
 @FieldEquals(field = "oidcProvider", value = "cognito")
 
Since:
3.0.0
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    DeploymentConfig field name to check.
    Expected value as string (converted to field type at runtime).
  • Element Details

    • field

      String field
      DeploymentConfig field name to check.

      Must match an actual field name in DeploymentConfig class.

      Returns:
      field name
    • value

      String value
      Expected value as string (converted to field type at runtime).

      Type conversion:

      • boolean: "true" or "false"
      • int/Integer: numeric string
      • String: direct comparison
      • Enum: enum constant name
      Returns:
      expected value as string