Class CfnDocumentClassifierEndpointProps.Builder
java.lang.Object
software.amazon.awscdk.services.comprehend.CfnDocumentClassifierEndpointProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDocumentClassifierEndpointProps>
- Enclosing interface:
CfnDocumentClassifierEndpointProps
@Stability(Stable)
public static final class CfnDocumentClassifierEndpointProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDocumentClassifierEndpointProps>
A builder for
CfnDocumentClassifierEndpointProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.desiredInferenceUnits(Number desiredInferenceUnits) Sets the value ofCfnDocumentClassifierEndpointProps.getDesiredInferenceUnits()endpointName(String endpointName) Sets the value ofCfnDocumentClassifierEndpointProps.getEndpointName()Sets the value ofCfnDocumentClassifierEndpointProps.getModelArn()Sets the value ofCfnDocumentClassifierEndpointProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
desiredInferenceUnits
@Stability(Stable) public CfnDocumentClassifierEndpointProps.Builder desiredInferenceUnits(Number desiredInferenceUnits) Sets the value ofCfnDocumentClassifierEndpointProps.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 CfnDocumentClassifierEndpointProps.Builder endpointName(String endpointName) Sets the value ofCfnDocumentClassifierEndpointProps.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
-
modelArn
Sets the value ofCfnDocumentClassifierEndpointProps.getModelArn()- Parameters:
modelArn- The Amazon Resource Name (ARN) of the document classifier model to which the endpoint is attached. This parameter is required.- Returns:
this
-
tags
@Stability(Stable) public CfnDocumentClassifierEndpointProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnDocumentClassifierEndpointProps.getTags()- Parameters:
tags- Tags associated with the endpoint being created.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDocumentClassifierEndpointProps>- Returns:
- a new instance of
CfnDocumentClassifierEndpointProps - Throws:
NullPointerException- if any required attribute was not provided
-