Class CfnPartnership.WrapOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.b2bi.CfnPartnership.WrapOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPartnership.WrapOptionsProperty>
- Enclosing interface:
CfnPartnership.WrapOptionsProperty
@Stability(Stable)
public static final class CfnPartnership.WrapOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPartnership.WrapOptionsProperty>
A builder for
CfnPartnership.WrapOptionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.lineLength(Number lineLength) Sets the value ofCfnPartnership.WrapOptionsProperty.getLineLength()lineTerminator(String lineTerminator) Sets the value ofCfnPartnership.WrapOptionsProperty.getLineTerminator()Sets the value ofCfnPartnership.WrapOptionsProperty.getWrapBy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lineLength
Sets the value ofCfnPartnership.WrapOptionsProperty.getLineLength()- Parameters:
lineLength- Specifies the maximum length of a line before wrapping occurs. This value is used whenwrapByis set toLINE_LENGTH.- Returns:
this
-
lineTerminator
@Stability(Stable) public CfnPartnership.WrapOptionsProperty.Builder lineTerminator(String lineTerminator) Sets the value ofCfnPartnership.WrapOptionsProperty.getLineTerminator()- Parameters:
lineTerminator- Specifies the character sequence used to terminate lines when wrapping. Valid values:.CRLF: carriage return and line feedLF: line feed)CR: carriage return
- Returns:
this
-
wrapBy
Sets the value ofCfnPartnership.WrapOptionsProperty.getWrapBy()- Parameters:
wrapBy- Specifies the method used for wrapping lines in the EDI output. Valid values:.SEGMENT: Wraps by segment.ONE_LINE: Indicates that the entire content is on a single line.
When you specify
ONE_LINE, do not provide either the line length nor the line terminator value.LINE_LENGTH: Wraps by character count, as specified bylineLengthvalue.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPartnership.WrapOptionsProperty>- Returns:
- a new instance of
CfnPartnership.WrapOptionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-