Interface X12ValidationRule.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<X12ValidationRule.Builder,
,X12ValidationRule> SdkBuilder<X12ValidationRule.Builder,
,X12ValidationRule> SdkPojo
- Enclosing class:
X12ValidationRule
-
Method Summary
Modifier and TypeMethodDescriptiondefault X12ValidationRule.Builder
codeListValidationRule
(Consumer<X12CodeListValidationRule.Builder> codeListValidationRule) Specifies a code list validation rule that modifies the allowed code values for a specific X12 element.codeListValidationRule
(X12CodeListValidationRule codeListValidationRule) Specifies a code list validation rule that modifies the allowed code values for a specific X12 element.default X12ValidationRule.Builder
elementLengthValidationRule
(Consumer<X12ElementLengthValidationRule.Builder> elementLengthValidationRule) Specifies an element length validation rule that defines custom length constraints for a specific X12 element.elementLengthValidationRule
(X12ElementLengthValidationRule elementLengthValidationRule) Specifies an element length validation rule that defines custom length constraints for a specific X12 element.default X12ValidationRule.Builder
elementRequirementValidationRule
(Consumer<X12ElementRequirementValidationRule.Builder> elementRequirementValidationRule) Specifies an element requirement validation rule that modifies whether a specific X12 element is required or optional within a segment.elementRequirementValidationRule
(X12ElementRequirementValidationRule elementRequirementValidationRule) Specifies 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.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
codeListValidationRule
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.
- Parameters:
codeListValidationRule
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
codeListValidationRule
default X12ValidationRule.Builder codeListValidationRule(Consumer<X12CodeListValidationRule.Builder> codeListValidationRule) 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.
This is a convenience method that creates an instance of theX12CodeListValidationRule.Builder
avoiding the need to create one manually viaX12CodeListValidationRule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocodeListValidationRule(X12CodeListValidationRule)
.- Parameters:
codeListValidationRule
- a consumer that will call methods onX12CodeListValidationRule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
elementLengthValidationRule
X12ValidationRule.Builder elementLengthValidationRule(X12ElementLengthValidationRule elementLengthValidationRule) 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.
- Parameters:
elementLengthValidationRule
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
elementLengthValidationRule
default X12ValidationRule.Builder elementLengthValidationRule(Consumer<X12ElementLengthValidationRule.Builder> elementLengthValidationRule) 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.
This is a convenience method that creates an instance of theX12ElementLengthValidationRule.Builder
avoiding the need to create one manually viaX12ElementLengthValidationRule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toelementLengthValidationRule(X12ElementLengthValidationRule)
.- Parameters:
elementLengthValidationRule
- a consumer that will call methods onX12ElementLengthValidationRule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
elementRequirementValidationRule
X12ValidationRule.Builder elementRequirementValidationRule(X12ElementRequirementValidationRule elementRequirementValidationRule) 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.
- Parameters:
elementRequirementValidationRule
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
elementRequirementValidationRule
default X12ValidationRule.Builder elementRequirementValidationRule(Consumer<X12ElementRequirementValidationRule.Builder> elementRequirementValidationRule) 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.
This is a convenience method that creates an instance of theX12ElementRequirementValidationRule.Builder
avoiding the need to create one manually viaX12ElementRequirementValidationRule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toelementRequirementValidationRule(X12ElementRequirementValidationRule)
.- Parameters:
elementRequirementValidationRule
- a consumer that will call methods onX12ElementRequirementValidationRule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-