Interface GetOntologyRequest.Builder

  • Method Details

    • ontologyId

      GetOntologyRequest.Builder ontologyId(String ontologyId)

      The ontology to return, by its ID or ARN (see OntologyIdentifier).

      Parameters:
      ontologyId - The ontology to return, by its ID or ARN (see OntologyIdentifier).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • version

      The version to return, in MAJOR.MINOR.PATCH form, for example 1.0.0. If you omit it, GetOntology returns the current default version.

      Parameters:
      version - The version to return, in MAJOR.MINOR.PATCH form, for example 1.0.0. If you omit it, GetOntology returns the current default version.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceFormat

      GetOntologyRequest.Builder sourceFormat(String sourceFormat)

      Return the version's source document in source, in this format, in place of the template. The response then has no template. The format must be the version's sourceFormat. On a DRAFT ontology, GetOntology returns the draft, with or without version (its only version is 1.0.0). If the ontology is AWS managed, whose source is never returned, or the version has no source document, the request fails with ValidationException. If you omit it, the response has the template and no source.

      Parameters:
      sourceFormat - Return the version's source document in source, in this format, in place of the template. The response then has no template. The format must be the version's sourceFormat. On a DRAFT ontology, GetOntology returns the draft, with or without version (its only version is 1.0.0). If the ontology is AWS managed, whose source is never returned, or the version has no source document, the request fails with ValidationException. If you omit it, the response has the template and no source.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • sourceFormat

      Return the version's source document in source, in this format, in place of the template. The response then has no template. The format must be the version's sourceFormat. On a DRAFT ontology, GetOntology returns the draft, with or without version (its only version is 1.0.0). If the ontology is AWS managed, whose source is never returned, or the version has no source document, the request fails with ValidationException. If you omit it, the response has the template and no source.

      Parameters:
      sourceFormat - Return the version's source document in source, in this format, in place of the template. The response then has no template. The format must be the version's sourceFormat. On a DRAFT ontology, GetOntology returns the draft, with or without version (its only version is 1.0.0). If the ontology is AWS managed, whose source is never returned, or the version has no source document, the request fails with ValidationException. If you omit it, the response has the template and no source.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      GetOntologyRequest.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.