Interface StartOntologyInductionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ContextRequest.Builder,CopyableBuilder<StartOntologyInductionRequest.Builder,,StartOntologyInductionRequest> SdkBuilder<StartOntologyInductionRequest.Builder,,StartOntologyInductionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
StartOntologyInductionRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier that you provide to make the request idempotent.inputConfig(Consumer<OntologyInductionInputConfig.Builder> inputConfig) The input to induce the ontology from.inputConfig(OntologyInductionInputConfig inputConfig) The input to induce the ontology from.ontologyDescription(String ontologyDescription) Optional.ontologyName(String ontologyName) The new ontology's display name.ontologyTags(Map<String, String> ontologyTags) Tags to add to the ontology the induction creates at DRAFT, with the same limits and rules astags.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Optional.seedOntologyId(String seedOntologyId) Optional.Tags to add to the induction when you create it: up to 200 in the request, of which at most 50 can be user tags.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.context.model.ContextRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
clientToken
A unique, case-sensitive identifier that you provide to make the request idempotent. A retry of the same request with the same token returns the induction that the first request created, and the same token used with a different request returns a
ValidationException. If that induction, or the ontology it created, was deleted since, a retry with the token fails withConflictException.- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to make the request idempotent. A retry of the same request with the same token returns the induction that the first request created, and the same token used with a different request returns aValidationException. If that induction, or the ontology it created, was deleted since, a retry with the token fails withConflictException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ontologyName
The new ontology's display name.
- Parameters:
ontologyName- The new ontology's display name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ontologyDescription
Optional. The new ontology's description. An empty string is the same as none.
- Parameters:
ontologyDescription- Optional. The new ontology's description. An empty string is the same as none.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputConfig
The input to induce the ontology from. Set exactly one member.
- Parameters:
inputConfig- The input to induce the ontology from. Set exactly one member.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputConfig
default StartOntologyInductionRequest.Builder inputConfig(Consumer<OntologyInductionInputConfig.Builder> inputConfig) The input to induce the ontology from. Set exactly one member.
This is a convenience method that creates an instance of theOntologyInductionInputConfig.Builderavoiding the need to create one manually viaOntologyInductionInputConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinputConfig(OntologyInductionInputConfig).- Parameters:
inputConfig- a consumer that will call methods onOntologyInductionInputConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
seedOntologyId
Optional. An existing ontology to start from, by ID or ARN. If you omit it, AWS Context induces the ontology from the documents alone. The seed must be an ontology that you own, it must be
PUBLISHED, and its current version must be derived from a Turtle source document. You also needcontext:GetOntologypermission on the seed. If the seed doesn't exist, the request fails withResourceNotFoundException. If it can't be used, the request fails withValidationException. If the seed's source document is deleted while the induction runs, is larger than 400,000 bytes, or doesn't parse, the induction fails withSEED_INVALID.- Parameters:
seedOntologyId- Optional. An existing ontology to start from, by ID or ARN. If you omit it, AWS Context induces the ontology from the documents alone. The seed must be an ontology that you own, it must bePUBLISHED, and its current version must be derived from a Turtle source document. You also needcontext:GetOntologypermission on the seed. If the seed doesn't exist, the request fails withResourceNotFoundException. If it can't be used, the request fails withValidationException. If the seed's source document is deleted while the induction runs, is larger than 400,000 bytes, or doesn't parse, the induction fails withSEED_INVALID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
prompt
Optional. Instructions for the induction.
- Parameters:
prompt- Optional. Instructions for the induction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Tags to add to the induction when you create it: up to 200 in the request, of which at most 50 can be user tags. Keys can't start with
aws:. To add tags, you also needcontext:TagResourcepermission on the new induction. If you specify more than 50 user tags, the request fails withServiceQuotaExceededException, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails withValidationException. These tags go on the induction only.ontologyTagsgo on the ontology.- Parameters:
tags- Tags to add to the induction when you create it: up to 200 in the request, of which at most 50 can be user tags. Keys can't start withaws:. To add tags, you also needcontext:TagResourcepermission on the new induction. If you specify more than 50 user tags, the request fails withServiceQuotaExceededException, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails withValidationException. These tags go on the induction only.ontologyTagsgo on the ontology.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ontologyTags
Tags to add to the ontology the induction creates at DRAFT, with the same limits and rules as
tags. They are checked here, and supplying them also requirescontext:TagResourceon the new ontology. These tags go on the ontology only.tagsgo on the induction.- Parameters:
ontologyTags- Tags to add to the ontology the induction creates at DRAFT, with the same limits and rules astags. They are checked here, and supplying them also requirescontext:TagResourceon the new ontology. These tags go on the ontology only.tagsgo on the induction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
StartOntologyInductionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
StartOntologyInductionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-