Class CfnTransformer.X12ElementLengthValidationRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.b2bi.CfnTransformer.X12ElementLengthValidationRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransformer.X12ElementLengthValidationRuleProperty>
- Enclosing interface:
CfnTransformer.X12ElementLengthValidationRuleProperty
@Stability(Stable)
public static final class CfnTransformer.X12ElementLengthValidationRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransformer.X12ElementLengthValidationRuleProperty>
A builder for
CfnTransformer.X12ElementLengthValidationRuleProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnTransformer.X12ElementLengthValidationRuleProperty.getElementId()
Sets the value ofCfnTransformer.X12ElementLengthValidationRuleProperty.getMaxLength()
Sets the value ofCfnTransformer.X12ElementLengthValidationRuleProperty.getMinLength()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
elementId
@Stability(Stable) public CfnTransformer.X12ElementLengthValidationRuleProperty.Builder elementId(String elementId) Sets the value ofCfnTransformer.X12ElementLengthValidationRuleProperty.getElementId()
- Parameters:
elementId
- Specifies the four-digit element ID to which the length constraints will be applied. This parameter is required. This identifies which X12 element will have its length requirements modified.- Returns:
this
-
maxLength
@Stability(Stable) public CfnTransformer.X12ElementLengthValidationRuleProperty.Builder maxLength(Number maxLength) Sets the value ofCfnTransformer.X12ElementLengthValidationRuleProperty.getMaxLength()
- Parameters:
maxLength
- Specifies the maximum allowed length for the identified element. This parameter is required. This value defines the upper limit for the element's content length.- Returns:
this
-
minLength
@Stability(Stable) public CfnTransformer.X12ElementLengthValidationRuleProperty.Builder minLength(Number minLength) Sets the value ofCfnTransformer.X12ElementLengthValidationRuleProperty.getMinLength()
- Parameters:
minLength
- Specifies the minimum required length for the identified element. This parameter is required. This value defines the lower limit for the element's content length.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTransformer.X12ElementLengthValidationRuleProperty>
- Returns:
- a new instance of
CfnTransformer.X12ElementLengthValidationRuleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-