Class CfnFlywheelProps.Builder
java.lang.Object
software.amazon.awscdk.services.comprehend.CfnFlywheelProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlywheelProps>
- Enclosing interface:
CfnFlywheelProps
@Stability(Stable)
public static final class CfnFlywheelProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlywheelProps>
A builder for
CfnFlywheelProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactiveModelArn(String activeModelArn) Sets the value ofCfnFlywheelProps.getActiveModelArn()build()Builds the configured instance.dataAccessRoleArn(String dataAccessRoleArn) Sets the value ofCfnFlywheelProps.getDataAccessRoleArn()dataLakeS3Uri(String dataLakeS3Uri) Sets the value ofCfnFlywheelProps.getDataLakeS3Uri()dataSecurityConfig(IResolvable dataSecurityConfig) Sets the value ofCfnFlywheelProps.getDataSecurityConfig()dataSecurityConfig(CfnFlywheel.DataSecurityConfigProperty dataSecurityConfig) Sets the value ofCfnFlywheelProps.getDataSecurityConfig()flywheelName(String flywheelName) Sets the value ofCfnFlywheelProps.getFlywheelName()Sets the value ofCfnFlywheelProps.getModelType()Sets the value ofCfnFlywheelProps.getTags()taskConfig(IResolvable taskConfig) Sets the value ofCfnFlywheelProps.getTaskConfig()taskConfig(CfnFlywheel.TaskConfigProperty taskConfig) Sets the value ofCfnFlywheelProps.getTaskConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataAccessRoleArn
Sets the value ofCfnFlywheelProps.getDataAccessRoleArn()- Parameters:
dataAccessRoleArn- The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend permission to access the flywheel data. This parameter is required.- Returns:
this
-
dataLakeS3Uri
Sets the value ofCfnFlywheelProps.getDataLakeS3Uri()- Parameters:
dataLakeS3Uri- Amazon S3 URI of the data lake location. This parameter is required.- Returns:
this
-
flywheelName
Sets the value ofCfnFlywheelProps.getFlywheelName()- Parameters:
flywheelName- Name for the flywheel. This parameter is required.- Returns:
this
-
activeModelArn
Sets the value ofCfnFlywheelProps.getActiveModelArn()- Parameters:
activeModelArn- The Amazon Resource Number (ARN) of the active model version.- Returns:
this
-
dataSecurityConfig
@Stability(Stable) public CfnFlywheelProps.Builder dataSecurityConfig(IResolvable dataSecurityConfig) Sets the value ofCfnFlywheelProps.getDataSecurityConfig()- Parameters:
dataSecurityConfig- Data security configuration.- Returns:
this
-
dataSecurityConfig
@Stability(Stable) public CfnFlywheelProps.Builder dataSecurityConfig(CfnFlywheel.DataSecurityConfigProperty dataSecurityConfig) Sets the value ofCfnFlywheelProps.getDataSecurityConfig()- Parameters:
dataSecurityConfig- Data security configuration.- Returns:
this
-
modelType
Sets the value ofCfnFlywheelProps.getModelType()- Parameters:
modelType- Model type of the flywheel's model.- Returns:
this
-
tags
Sets the value ofCfnFlywheelProps.getTags()- Parameters:
tags- Tags associated with the endpoint being created. A tag is a key-value pair that adds metadata to the endpoint. For example, a tag with "Sales" as the key might be added to an endpoint to indicate its use by the sales department.- Returns:
this
-
taskConfig
Sets the value ofCfnFlywheelProps.getTaskConfig()- Parameters:
taskConfig- Configuration about the model associated with a flywheel.- Returns:
this
-
taskConfig
@Stability(Stable) public CfnFlywheelProps.Builder taskConfig(CfnFlywheel.TaskConfigProperty taskConfig) Sets the value ofCfnFlywheelProps.getTaskConfig()- Parameters:
taskConfig- Configuration about the model associated with a flywheel.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFlywheelProps>- Returns:
- a new instance of
CfnFlywheelProps - Throws:
NullPointerException- if any required attribute was not provided
-