Interface CfnTransformer.X12ValidationRuleProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnTransformer.X12ValidationRuleProperty.Jsii$Proxy
- Enclosing class:
CfnTransformer
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:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnTransformer.X12ValidationRulePropertystatic final classAn implementation forCfnTransformer.X12ValidationRuleProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectSpecifies a code list validation rule that modifies the allowed code values for a specific X12 element.default ObjectSpecifies an element length validation rule that defines custom length constraints for a specific X12 element.default ObjectSpecifies an element requirement validation rule that modifies whether a specific X12 element is required or optional within a segment.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCodeListValidationRule
Specifies a code list validation rule that modifies the allowed code values for a specific X12 element.This rule enables you to customize which codes are considered valid for an element, allowing for trading partner-specific code requirements.
Returns union: either
IResolvableorCfnTransformer.X12CodeListValidationRuleProperty- See Also:
-
getElementLengthValidationRule
Specifies an element length validation rule that defines custom length constraints for a specific X12 element.This rule allows you to enforce minimum and maximum length requirements that may differ from the standard X12 specification.
Returns union: either
IResolvableorCfnTransformer.X12ElementLengthValidationRuleProperty- See Also:
-
getElementRequirementValidationRule
Specifies an element requirement validation rule that modifies whether a specific X12 element is required or optional within a segment.This rule provides flexibility to accommodate different trading partner requirements for element presence.
Returns union: either
IResolvableorCfnTransformer.X12ElementRequirementValidationRuleProperty- See Also:
-
builder
-