Class CfnTransformerProps.Builder
java.lang.Object
software.amazon.awscdk.services.b2bi.CfnTransformerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransformerProps>
- Enclosing interface:
CfnTransformerProps
@Stability(Stable)
public static final class CfnTransformerProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransformerProps>
A builder for
CfnTransformerProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.ediType
(IResolvable ediType) Deprecated.this property has been deprecatedediType
(CfnTransformer.EdiTypeProperty ediType) Deprecated.this property has been deprecatedfileFormat
(String fileFormat) Deprecated.this property has been deprecatedinputConversion
(IResolvable inputConversion) Sets the value ofCfnTransformerProps.getInputConversion()
inputConversion
(CfnTransformer.InputConversionProperty inputConversion) Sets the value ofCfnTransformerProps.getInputConversion()
mapping
(IResolvable mapping) Sets the value ofCfnTransformerProps.getMapping()
mapping
(CfnTransformer.MappingProperty mapping) Sets the value ofCfnTransformerProps.getMapping()
mappingTemplate
(String mappingTemplate) Deprecated.this property has been deprecatedSets the value ofCfnTransformerProps.getName()
outputConversion
(IResolvable outputConversion) Sets the value ofCfnTransformerProps.getOutputConversion()
outputConversion
(CfnTransformer.OutputConversionProperty outputConversion) Sets the value ofCfnTransformerProps.getOutputConversion()
sampleDocument
(String sampleDocument) Deprecated.this property has been deprecatedsampleDocuments
(IResolvable sampleDocuments) Sets the value ofCfnTransformerProps.getSampleDocuments()
sampleDocuments
(CfnTransformer.SampleDocumentsProperty sampleDocuments) Sets the value ofCfnTransformerProps.getSampleDocuments()
Sets the value ofCfnTransformerProps.getStatus()
Sets the value ofCfnTransformerProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnTransformerProps.getName()
- Parameters:
name
- Returns the descriptive name for the transformer. This parameter is required.- Returns:
this
-
status
Sets the value ofCfnTransformerProps.getStatus()
- Parameters:
status
- Returns the state of the newly created transformer. This parameter is required. The transformer can be eitheractive
orinactive
. For the transformer to be used in a capability, its status mustactive
.- Returns:
this
-
ediType
Deprecated.this property has been deprecatedSets the value ofCfnTransformerProps.getEdiType()
- Parameters:
ediType
- the value to be set.- Returns:
this
-
ediType
@Stability(Deprecated) @Deprecated public CfnTransformerProps.Builder ediType(CfnTransformer.EdiTypeProperty ediType) Deprecated.this property has been deprecatedSets the value ofCfnTransformerProps.getEdiType()
- Parameters:
ediType
- the value to be set.- Returns:
this
-
fileFormat
Deprecated.this property has been deprecatedSets the value ofCfnTransformerProps.getFileFormat()
- Parameters:
fileFormat
- the value to be set.- Returns:
this
-
inputConversion
Sets the value ofCfnTransformerProps.getInputConversion()
- Parameters:
inputConversion
- Returns a structure that contains the format options for the transformation.- Returns:
this
-
inputConversion
@Stability(Stable) public CfnTransformerProps.Builder inputConversion(CfnTransformer.InputConversionProperty inputConversion) Sets the value ofCfnTransformerProps.getInputConversion()
- Parameters:
inputConversion
- Returns a structure that contains the format options for the transformation.- Returns:
this
-
mapping
Sets the value ofCfnTransformerProps.getMapping()
- Parameters:
mapping
- Returns the structure that contains the mapping template and its language (either XSLT or JSONATA).- Returns:
this
-
mapping
@Stability(Stable) public CfnTransformerProps.Builder mapping(CfnTransformer.MappingProperty mapping) Sets the value ofCfnTransformerProps.getMapping()
- Parameters:
mapping
- Returns the structure that contains the mapping template and its language (either XSLT or JSONATA).- Returns:
this
-
mappingTemplate
@Stability(Deprecated) @Deprecated public CfnTransformerProps.Builder mappingTemplate(String mappingTemplate) Deprecated.this property has been deprecatedSets the value ofCfnTransformerProps.getMappingTemplate()
- Parameters:
mappingTemplate
- This shape is deprecated: This is a legacy trait. Please use input-conversion or output-conversion.- Returns:
this
-
outputConversion
@Stability(Stable) public CfnTransformerProps.Builder outputConversion(IResolvable outputConversion) Sets the value ofCfnTransformerProps.getOutputConversion()
- Parameters:
outputConversion
- Returns theOutputConversion
object, which contains the format options for the outbound transformation.- Returns:
this
-
outputConversion
@Stability(Stable) public CfnTransformerProps.Builder outputConversion(CfnTransformer.OutputConversionProperty outputConversion) Sets the value ofCfnTransformerProps.getOutputConversion()
- Parameters:
outputConversion
- Returns theOutputConversion
object, which contains the format options for the outbound transformation.- Returns:
this
-
sampleDocument
@Stability(Deprecated) @Deprecated public CfnTransformerProps.Builder sampleDocument(String sampleDocument) Deprecated.this property has been deprecatedSets the value ofCfnTransformerProps.getSampleDocument()
- Parameters:
sampleDocument
- This shape is deprecated: This is a legacy trait. Please use input-conversion or output-conversion.- Returns:
this
-
sampleDocuments
Sets the value ofCfnTransformerProps.getSampleDocuments()
- Parameters:
sampleDocuments
- Returns a structure that contains the Amazon S3 bucket and an array of the corresponding keys used to identify the location for your sample documents.- Returns:
this
-
sampleDocuments
@Stability(Stable) public CfnTransformerProps.Builder sampleDocuments(CfnTransformer.SampleDocumentsProperty sampleDocuments) Sets the value ofCfnTransformerProps.getSampleDocuments()
- Parameters:
sampleDocuments
- Returns a structure that contains the Amazon S3 bucket and an array of the corresponding keys used to identify the location for your sample documents.- Returns:
this
-
tags
Sets the value ofCfnTransformerProps.getTags()
- Parameters:
tags
- A key-value pair for a specific transformer. Tags are metadata that you can use to search for and group capabilities for various purposes.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTransformerProps>
- Returns:
- a new instance of
CfnTransformerProps
- Throws:
NullPointerException
- if any required attribute was not provided
-