Class CfnEntityRecognizerEndpointProps.Builder
java.lang.Object
software.amazon.awscdk.services.comprehend.CfnEntityRecognizerEndpointProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEntityRecognizerEndpointProps>
- Enclosing interface:
CfnEntityRecognizerEndpointProps
@Stability(Stable)
public static final class CfnEntityRecognizerEndpointProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEntityRecognizerEndpointProps>
A builder for
CfnEntityRecognizerEndpointProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dataAccessRoleArn(String dataAccessRoleArn) Sets the value ofCfnEntityRecognizerEndpointProps.getDataAccessRoleArn()desiredInferenceUnits(Number desiredInferenceUnits) Sets the value ofCfnEntityRecognizerEndpointProps.getDesiredInferenceUnits()endpointName(String endpointName) Sets the value ofCfnEntityRecognizerEndpointProps.getEndpointName()flywheelArn(String flywheelArn) Sets the value ofCfnEntityRecognizerEndpointProps.getFlywheelArn()Sets the value ofCfnEntityRecognizerEndpointProps.getModelArn()Sets the value ofCfnEntityRecognizerEndpointProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
desiredInferenceUnits
@Stability(Stable) public CfnEntityRecognizerEndpointProps.Builder desiredInferenceUnits(Number desiredInferenceUnits) Sets the value ofCfnEntityRecognizerEndpointProps.getDesiredInferenceUnits()- Parameters:
desiredInferenceUnits- The desired number of inference units to be used by the model. This parameter is required. Each inference unit represents throughput of 100 characters per second.- Returns:
this
-
endpointName
@Stability(Stable) public CfnEntityRecognizerEndpointProps.Builder endpointName(String endpointName) Sets the value ofCfnEntityRecognizerEndpointProps.getEndpointName()- Parameters:
endpointName- The name of the endpoint. This parameter is required. The name must be unique within the AWS Region and account.- Returns:
this
-
dataAccessRoleArn
@Stability(Stable) public CfnEntityRecognizerEndpointProps.Builder dataAccessRoleArn(String dataAccessRoleArn) Sets the value ofCfnEntityRecognizerEndpointProps.getDataAccessRoleArn()- Parameters:
dataAccessRoleArn- The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to trained custom models encrypted with a customer managed key (ModelKmsKeyId).- Returns:
this
-
flywheelArn
Sets the value ofCfnEntityRecognizerEndpointProps.getFlywheelArn()- Parameters:
flywheelArn- The Amazon Resource Name (ARN) of the flywheel to which the endpoint is attached.- Returns:
this
-
modelArn
Sets the value ofCfnEntityRecognizerEndpointProps.getModelArn()- Parameters:
modelArn- The Amazon Resource Name (ARN) of the entity recognizer model to which the endpoint is attached.- Returns:
this
-
tags
@Stability(Stable) public CfnEntityRecognizerEndpointProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnEntityRecognizerEndpointProps.getTags()- Parameters:
tags- Tags associated with the endpoint being created.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEntityRecognizerEndpointProps>- Returns:
- a new instance of
CfnEntityRecognizerEndpointProps - Throws:
NullPointerException- if any required attribute was not provided
-