Interface StartOntologyInductionRequest.Builder

  • 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 with ConflictException.

      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 a ValidationException. If that induction, or the ontology it created, was deleted since, a retry with the token fails with ConflictException.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ontologyName

      StartOntologyInductionRequest.Builder ontologyName(String 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

      StartOntologyInductionRequest.Builder ontologyDescription(String 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

      The input to induce the ontology from. Set exactly one member.

      This is a convenience method that creates an instance of the OntologyInductionInputConfig.Builder avoiding the need to create one manually via OntologyInductionInputConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to inputConfig(OntologyInductionInputConfig).

      Parameters:
      inputConfig - a consumer that will call methods on OntologyInductionInputConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • seedOntologyId

      StartOntologyInductionRequest.Builder seedOntologyId(String 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 need context:GetOntology permission on the seed. If the seed doesn't exist, the request fails with ResourceNotFoundException. If it can't be used, the request fails with ValidationException. 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 with SEED_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 be PUBLISHED, and its current version must be derived from a Turtle source document. You also need context:GetOntology permission on the seed. If the seed doesn't exist, the request fails with ResourceNotFoundException. If it can't be used, the request fails with ValidationException. 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 with SEED_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 need context:TagResource permission on the new induction. If you specify more than 50 user tags, the request fails with ServiceQuotaExceededException, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails with ValidationException. These tags go on the induction only. ontologyTags go 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 with aws:. To add tags, you also need context:TagResource permission on the new induction. If you specify more than 50 user tags, the request fails with ServiceQuotaExceededException, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails with ValidationException. These tags go on the induction only. ontologyTags go 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 requires context:TagResource on the new ontology. These tags go on the ontology only. tags go on the induction.

      Parameters:
      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 requires context:TagResource on the new ontology. These tags go on the ontology only. tags go 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.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.