Class CfnTransformerPropsMixin.X12ElementRequirementValidationRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.b2bi.CfnTransformerPropsMixin.X12ElementRequirementValidationRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransformerPropsMixin.X12ElementRequirementValidationRuleProperty>
- Enclosing interface:
CfnTransformerPropsMixin.X12ElementRequirementValidationRuleProperty
@Stability(Stable)
public static final class CfnTransformerPropsMixin.X12ElementRequirementValidationRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransformerPropsMixin.X12ElementRequirementValidationRuleProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.elementPosition(String elementPosition) requirement(String requirement)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
elementPosition
@Stability(Stable) public CfnTransformerPropsMixin.X12ElementRequirementValidationRuleProperty.Builder elementPosition(String elementPosition) Sets the value ofCfnTransformerPropsMixin.X12ElementRequirementValidationRuleProperty.getElementPosition()- Parameters:
elementPosition- Specifies the position of the element within an X12 segment for which the requirement status will be modified. The format follows the pattern of segment identifier followed by element position (e.g., "ST-01" for the first element of the ST segment).- Returns:
this
-
requirement
@Stability(Stable) public CfnTransformerPropsMixin.X12ElementRequirementValidationRuleProperty.Builder requirement(String requirement) Sets the value ofCfnTransformerPropsMixin.X12ElementRequirementValidationRuleProperty.getRequirement()- Parameters:
requirement- Specifies the requirement status for the element at the specified position. Valid values are OPTIONAL (the element may be omitted) or MANDATORY (the element must be present).- Returns:
this
-
build
@Stability(Stable) public CfnTransformerPropsMixin.X12ElementRequirementValidationRuleProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTransformerPropsMixin.X12ElementRequirementValidationRuleProperty>- Returns:
- a new instance of
CfnTransformerPropsMixin.X12ElementRequirementValidationRuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-