Interface CfnTransformer.X12ValidationRuleProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnTransformer.X12ValidationRuleProperty.Jsii$Proxy
Enclosing class:
CfnTransformer

@Stability(Stable) public static interface CfnTransformer.X12ValidationRuleProperty extends software.amazon.jsii.JsiiSerializable
Represents a single validation rule that can be applied during X12 EDI processing.

This is a union type that can contain one of several specific validation rule types: code list validation rules for modifying allowed element codes, element length validation rules for enforcing custom length constraints, or element requirement validation rules for changing mandatory/optional status. Each validation rule targets specific aspects of EDI document validation to ensure compliance with trading partner requirements and business rules.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.b2bi.*;
 X12ValidationRuleProperty x12ValidationRuleProperty = X12ValidationRuleProperty.builder()
         .codeListValidationRule(X12CodeListValidationRuleProperty.builder()
                 .elementId("elementId")
                 // the properties below are optional
                 .codesToAdd(List.of("codesToAdd"))
                 .codesToRemove(List.of("codesToRemove"))
                 .build())
         .elementLengthValidationRule(X12ElementLengthValidationRuleProperty.builder()
                 .elementId("elementId")
                 .maxLength(123)
                 .minLength(123)
                 .build())
         .elementRequirementValidationRule(X12ElementRequirementValidationRuleProperty.builder()
                 .elementPosition("elementPosition")
                 .requirement("requirement")
                 .build())
         .build();
 

See Also: