Interface GetOntologyResponse.Builder

  • Method Details

    • arn

      The ARN of the ontology. It has no account for an AWS managed ontology, and includes the account for a customer-owned one. Use it to address the same ontology again.

      Parameters:
      arn - The ARN of the ontology. It has no account for an AWS managed ontology, and includes the account for a customer-owned one. Use it to address the same ontology again.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • version

      The version of the ontology, in MAJOR.MINOR.PATCH form, for example 1.0.0.

      Parameters:
      version - The version of the ontology, in MAJOR.MINOR.PATCH form, for example 1.0.0.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • template

      GetOntologyResponse.Builder template(String template)

      The serialized template JSON for this version (see OntologyTemplate).

      Parameters:
      template - The serialized template JSON for this version (see OntologyTemplate).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      GetOntologyResponse.Builder createdAt(Instant createdAt)

      When this version was created. Absent when the stored version carries no creation time.

      Parameters:
      createdAt - When this version was created. Absent when the stored version carries no creation time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • publishedAt

      GetOntologyResponse.Builder publishedAt(Instant publishedAt)

      Publish time of the DEFAULT version. Absent for non-default versions, and while the ontology is DRAFT: a DRAFT ontology stays a draft until you publish it in the AWS Context console.

      Parameters:
      publishedAt - Publish time of the DEFAULT version. Absent for non-default versions, and while the ontology is DRAFT: a DRAFT ontology stays a draft until you publish it in the AWS Context console.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The ontology's current display name. The same for every version. Absent for an AWS managed ontology, which has no name, and for a customer-owned ontology that was created without a name and hasn't been named since.

      Parameters:
      name - The ontology's current display name. The same for every version. Absent for an AWS managed ontology, which has no name, and for a customer-owned ontology that was created without a name and hasn't been named since.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      GetOntologyResponse.Builder description(String description)

      The ontology's description. The same for every version. Absent when the ontology has none.

      Parameters:
      description - The ontology's description. The same for every version. Absent when the ontology has none.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • derivationVersion

      GetOntologyResponse.Builder derivationVersion(String derivationVersion)

      Identifies the derivation rules that produced this template. Node ID formulas don't change after a version is published.

      Parameters:
      derivationVersion - Identifies the derivation rules that produced this template. Node ID formulas don't change after a version is published.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • id

      The ID of the ontology, assigned by AWS Context.

      Parameters:
      id - The ID of the ontology, assigned by AWS Context.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The ontology's status. PUBLISHED for every ontology CreateOntology made. Check it before using the template: a DRAFT ontology stays a draft until you publish it in the AWS Context console, and until then its template is the empty template of version 1.0.0 and GetOntology returns the draft.

      Parameters:
      status - The ontology's status. PUBLISHED for every ontology CreateOntology made. Check it before using the template: a DRAFT ontology stays a draft until you publish it in the AWS Context console, and until then its template is the empty template of version 1.0.0 and GetOntology returns the draft.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The ontology's status. PUBLISHED for every ontology CreateOntology made. Check it before using the template: a DRAFT ontology stays a draft until you publish it in the AWS Context console, and until then its template is the empty template of version 1.0.0 and GetOntology returns the draft.

      Parameters:
      status - The ontology's status. PUBLISHED for every ontology CreateOntology made. Check it before using the template: a DRAFT ontology stays a draft until you publish it in the AWS Context console, and until then its template is the empty template of version 1.0.0 and GetOntology returns the draft.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • updatedAt

      GetOntologyResponse.Builder updatedAt(Instant updatedAt)

      When the ontology itself last changed. Equal to the ontology's creation time until the first update. The top-level createdAt (from the version fields) is the returned version's creation time, not the ontology's.

      Parameters:
      updatedAt - When the ontology itself last changed. Equal to the ontology's creation time until the first update. The top-level createdAt (from the version fields) is the returned version's creation time, not the ontology's.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ontologyInductionId

      GetOntologyResponse.Builder ontologyInductionId(String ontologyInductionId)

      The induction that made the ontology. Absent for an ontology CreateOntology made.

      Parameters:
      ontologyInductionId - The induction that made the ontology. Absent for an ontology CreateOntology made.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • source

      The source document of the returned version, or the draft of a DRAFT ontology, with or without version. Set only when the request set sourceFormat. Absent otherwise.

      Parameters:
      source - The source document of the returned version, or the draft of a DRAFT ontology, with or without version. Set only when the request set sourceFormat. Absent otherwise.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceFormat

      GetOntologyResponse.Builder sourceFormat(String sourceFormat)

      The format of the version's source document. On a DRAFT, TURTLE, the format of the draft. Set whether or not the request asked for source, and a source in the response is in this format. On an AWS managed ontology, it names the format that its template was derived from, but its source is never returned (see sourceFormat on the request).

      Parameters:
      sourceFormat - The format of the version's source document. On a DRAFT, TURTLE, the format of the draft. Set whether or not the request asked for source, and a source in the response is in this format. On an AWS managed ontology, it names the format that its template was derived from, but its source is never returned (see sourceFormat on the request).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • sourceFormat

      The format of the version's source document. On a DRAFT, TURTLE, the format of the draft. Set whether or not the request asked for source, and a source in the response is in this format. On an AWS managed ontology, it names the format that its template was derived from, but its source is never returned (see sourceFormat on the request).

      Parameters:
      sourceFormat - The format of the version's source document. On a DRAFT, TURTLE, the format of the draft. Set whether or not the request asked for source, and a source in the response is in this format. On an AWS managed ontology, it names the format that its template was derived from, but its source is never returned (see sourceFormat on the request).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • revisionId

      GetOntologyResponse.Builder revisionId(String revisionId)

      The revision of the draft. Set only for a DRAFT ontology.

      Parameters:
      revisionId - The revision of the draft. Set only for a DRAFT ontology.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • validationIssues

      GetOntologyResponse.Builder validationIssues(Collection<OntologyValidationIssue> validationIssues)

      Non-fatal warnings raised while deriving the returned version. On a DRAFT, the warnings from deriving the draft.

      Parameters:
      validationIssues - Non-fatal warnings raised while deriving the returned version. On a DRAFT, the warnings from deriving the draft.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • validationIssues

      GetOntologyResponse.Builder validationIssues(OntologyValidationIssue... validationIssues)

      Non-fatal warnings raised while deriving the returned version. On a DRAFT, the warnings from deriving the draft.

      Parameters:
      validationIssues - Non-fatal warnings raised while deriving the returned version. On a DRAFT, the warnings from deriving the draft.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • validationIssues

      Non-fatal warnings raised while deriving the returned version. On a DRAFT, the warnings from deriving the draft.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to validationIssues(List<OntologyValidationIssue>).

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