Class CfnTransformer.X12CodeListValidationRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.b2bi.CfnTransformer.X12CodeListValidationRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransformer.X12CodeListValidationRuleProperty>
- Enclosing interface:
CfnTransformer.X12CodeListValidationRuleProperty
@Stability(Stable)
public static final class CfnTransformer.X12CodeListValidationRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransformer.X12CodeListValidationRuleProperty>
A builder for
CfnTransformer.X12CodeListValidationRuleProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.codesToAdd
(List<String> codesToAdd) Sets the value ofCfnTransformer.X12CodeListValidationRuleProperty.getCodesToAdd()
codesToRemove
(List<String> codesToRemove) Sets the value ofCfnTransformer.X12CodeListValidationRuleProperty.getCodesToRemove()
Sets the value ofCfnTransformer.X12CodeListValidationRuleProperty.getElementId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
elementId
@Stability(Stable) public CfnTransformer.X12CodeListValidationRuleProperty.Builder elementId(String elementId) Sets the value ofCfnTransformer.X12CodeListValidationRuleProperty.getElementId()
- Parameters:
elementId
- Specifies the four-digit element ID to which the code list modifications apply. This parameter is required. This identifies which X12 element will have its allowed code values modified.- Returns:
this
-
codesToAdd
@Stability(Stable) public CfnTransformer.X12CodeListValidationRuleProperty.Builder codesToAdd(List<String> codesToAdd) Sets the value ofCfnTransformer.X12CodeListValidationRuleProperty.getCodesToAdd()
- Parameters:
codesToAdd
- Specifies a list of code values to add to the element's allowed values. These codes will be considered valid for the specified element in addition to the standard codes defined by the X12 specification.- Returns:
this
-
codesToRemove
@Stability(Stable) public CfnTransformer.X12CodeListValidationRuleProperty.Builder codesToRemove(List<String> codesToRemove) Sets the value ofCfnTransformer.X12CodeListValidationRuleProperty.getCodesToRemove()
- Parameters:
codesToRemove
- Specifies a list of code values to remove from the element's allowed values. These codes will be considered invalid for the specified element, even if they are part of the standard codes defined by the X12 specification.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTransformer.X12CodeListValidationRuleProperty>
- Returns:
- a new instance of
CfnTransformer.X12CodeListValidationRuleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-