Class CfnAdapterProps.Builder
java.lang.Object
software.amazon.awscdk.services.textract.CfnAdapterProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAdapterProps>
- Enclosing interface:
CfnAdapterProps
@Stability(Stable)
public static final class CfnAdapterProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAdapterProps>
A builder for
CfnAdapterProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadapterName(String adapterName) Sets the value ofCfnAdapterProps.getAdapterName()autoUpdate(String autoUpdate) Sets the value ofCfnAdapterProps.getAutoUpdate()build()Builds the configured instance.description(String description) Sets the value ofCfnAdapterProps.getDescription()featureTypes(List<String> featureTypes) Sets the value ofCfnAdapterProps.getFeatureTypes()Sets the value ofCfnAdapterProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
adapterName
Sets the value ofCfnAdapterProps.getAdapterName()- Parameters:
adapterName- The name to be assigned to the adapter being created. This parameter is required.- Returns:
this
-
featureTypes
Sets the value ofCfnAdapterProps.getFeatureTypes()- Parameters:
featureTypes- The type of feature that the adapter is being trained on. This parameter is required. Currently, supported feature types are: QUERIES- Returns:
this
-
autoUpdate
Sets the value ofCfnAdapterProps.getAutoUpdate()- Parameters:
autoUpdate- Controls whether or not the adapter should automatically update.- Returns:
this
-
description
Sets the value ofCfnAdapterProps.getDescription()- Parameters:
description- The description to be assigned to the adapter being created.- Returns:
this
-
tags
Sets the value ofCfnAdapterProps.getTags()- Parameters:
tags- A list of tags to be added to the adapter.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAdapterProps>- Returns:
- a new instance of
CfnAdapterProps - Throws:
NullPointerException- if any required attribute was not provided
-