Interface CreateEndpointRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,ComprehendRequest.Builder,CopyableBuilder<CreateEndpointRequest.Builder,CreateEndpointRequest>,SdkBuilder<CreateEndpointRequest.Builder,CreateEndpointRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateEndpointRequest
public static interface CreateEndpointRequest.Builder extends ComprehendRequest.Builder, SdkPojo, CopyableBuilder<CreateEndpointRequest.Builder,CreateEndpointRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateEndpointRequest.BuilderclientRequestToken(String clientRequestToken)An idempotency token provided by the customer.CreateEndpointRequest.BuilderdataAccessRoleArn(String 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).CreateEndpointRequest.BuilderdesiredInferenceUnits(Integer desiredInferenceUnits)The desired number of inference units to be used by the model using this endpoint.CreateEndpointRequest.BuilderendpointName(String endpointName)This is the descriptive suffix that becomes part of theEndpointArnused for all subsequent requests to this resource.CreateEndpointRequest.BuilderflywheelArn(String flywheelArn)The Amazon Resource Number (ARN) of the flywheel to which the endpoint will be attached.CreateEndpointRequest.BuildermodelArn(String modelArn)The Amazon Resource Number (ARN) of the model to which the endpoint will be attached.CreateEndpointRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateEndpointRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateEndpointRequest.Buildertags(Collection<Tag> tags)Tags to associate with the endpoint.CreateEndpointRequest.Buildertags(Consumer<Tag.Builder>... tags)Tags to associate with the endpoint.CreateEndpointRequest.Buildertags(Tag... tags)Tags to associate with the endpoint.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.comprehend.model.ComprehendRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
endpointName
CreateEndpointRequest.Builder endpointName(String endpointName)
This is the descriptive suffix that becomes part of the
EndpointArnused for all subsequent requests to this resource.- Parameters:
endpointName- This is the descriptive suffix that becomes part of theEndpointArnused for all subsequent requests to this resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelArn
CreateEndpointRequest.Builder modelArn(String modelArn)
The Amazon Resource Number (ARN) of the model to which the endpoint will be attached.
- Parameters:
modelArn- The Amazon Resource Number (ARN) of the model to which the endpoint will be attached.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
desiredInferenceUnits
CreateEndpointRequest.Builder desiredInferenceUnits(Integer desiredInferenceUnits)
The desired number of inference units to be used by the model using this endpoint. Each inference unit represents of a throughput of 100 characters per second.
- Parameters:
desiredInferenceUnits- The desired number of inference units to be used by the model using this endpoint. Each inference unit represents of a throughput of 100 characters per second.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientRequestToken
CreateEndpointRequest.Builder clientRequestToken(String clientRequestToken)
An idempotency token provided by the customer. If this token matches a previous endpoint creation request, Amazon Comprehend will not return a
ResourceInUseException.- Parameters:
clientRequestToken- An idempotency token provided by the customer. If this token matches a previous endpoint creation request, Amazon Comprehend will not return aResourceInUseException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateEndpointRequest.Builder tags(Collection<Tag> tags)
Tags to associate with the endpoint. 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.
- Parameters:
tags- Tags to associate with the endpoint. 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:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateEndpointRequest.Builder tags(Tag... tags)
Tags to associate with the endpoint. 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.
- Parameters:
tags- Tags to associate with the endpoint. 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:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateEndpointRequest.Builder tags(Consumer<Tag.Builder>... tags)
Tags to associate with the endpoint. 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.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
dataAccessRoleArn
CreateEndpointRequest.Builder dataAccessRoleArn(String 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).
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
flywheelArn
CreateEndpointRequest.Builder flywheelArn(String flywheelArn)
The Amazon Resource Number (ARN) of the flywheel to which the endpoint will be attached.
- Parameters:
flywheelArn- The Amazon Resource Number (ARN) of the flywheel to which the endpoint will be attached.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateEndpointRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateEndpointRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-