Interface GetOntologyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ContextResponse.Builder,CopyableBuilder<GetOntologyResponse.Builder,,GetOntologyResponse> SdkBuilder<GetOntologyResponse.Builder,,GetOntologyResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetOntologyResponse
-
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the ontology.When this version was created.derivationVersion(String derivationVersion) Identifies the derivation rules that produced this template.description(String description) The ontology's description.The ID of the ontology, assigned by AWS Context.The ontology's current display name.ontologyInductionId(String ontologyInductionId) The induction that made the ontology.publishedAt(Instant publishedAt) Publish time of the DEFAULT version.revisionId(String revisionId) The revision of the draft.The source document of the returned version, or the draft of aDRAFTontology, with or withoutversion.sourceFormat(String sourceFormat) The format of the version's source document.sourceFormat(OntologySourceFormat sourceFormat) The format of the version's source document.The ontology's status.status(OntologyStatus status) The ontology's status.The serialized template JSON for this version (see OntologyTemplate).When the ontology itself last changed.validationIssues(Collection<OntologyValidationIssue> validationIssues) Non-fatal warnings raised while deriving the returned version.validationIssues(Consumer<OntologyValidationIssue.Builder>... validationIssues) Non-fatal warnings raised while deriving the returned version.validationIssues(OntologyValidationIssue... validationIssues) Non-fatal warnings raised while deriving the returned version.The version of the ontology, in MAJOR.MINOR.PATCH form, for example1.0.0.Methods inherited from interface software.amazon.awssdk.services.context.model.ContextResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
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 example1.0.0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
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
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
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
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-levelcreatedAt(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
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
DRAFTontology, with or withoutversion. Set only when the request setsourceFormat. Absent otherwise.- Parameters:
source- The source document of the returned version, or the draft of aDRAFTontology, with or withoutversion. Set only when the request setsourceFormat. Absent otherwise.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 forsource, and asourcein 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 (seesourceFormaton the request).- Parameters:
sourceFormat- The format of the version's source document. On aDRAFT,TURTLE, the format of the draft. Set whether or not the request asked forsource, and asourcein 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 (seesourceFormaton 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 forsource, and asourcein 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 (seesourceFormaton the request).- Parameters:
sourceFormat- The format of the version's source document. On aDRAFT,TURTLE, the format of the draft. Set whether or not the request asked forsource, and asourcein 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 (seesourceFormaton the request).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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.
- 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(Consumer<OntologyValidationIssue.Builder>... 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 theOntologyValidationIssue.Builderavoiding the need to create one manually viaOntologyValidationIssue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovalidationIssues(List<OntologyValidationIssue>).- Parameters:
validationIssues- a consumer that will call methods onOntologyValidationIssue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-