Interface GetOntologyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ContextRequest.Builder,CopyableBuilder<GetOntologyRequest.Builder,,GetOntologyRequest> SdkBuilder<GetOntologyRequest.Builder,,GetOntologyRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
GetOntologyRequest
-
Method Summary
Modifier and TypeMethodDescriptionontologyId(String ontologyId) The ontology to return, by its ID or ARN (seeOntologyIdentifier).overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.sourceFormat(String sourceFormat) Return the version's source document insource, in this format, in place of the template.sourceFormat(OntologySourceFormat sourceFormat) Return the version's source document insource, in this format, in place of the template.The version to return, in MAJOR.MINOR.PATCH form, for example1.0.0.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
-
ontologyId
The ontology to return, by its ID or ARN (see
OntologyIdentifier).- Parameters:
ontologyId- The ontology to return, by its ID or ARN (seeOntologyIdentifier).- 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 example1.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
Return the version's source document in
source, in this format, in place of the template. The response then has notemplate. The format must be the version'ssourceFormat. On aDRAFTontology, GetOntology returns the draft, with or withoutversion(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 withValidationException. If you omit it, the response has the template and no source.- Parameters:
sourceFormat- Return the version's source document insource, in this format, in place of the template. The response then has notemplate. The format must be the version'ssourceFormat. On aDRAFTontology, GetOntology returns the draft, with or withoutversion(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 withValidationException. 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 notemplate. The format must be the version'ssourceFormat. On aDRAFTontology, GetOntology returns the draft, with or withoutversion(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 withValidationException. If you omit it, the response has the template and no source.- Parameters:
sourceFormat- Return the version's source document insource, in this format, in place of the template. The response then has notemplate. The format must be the version'ssourceFormat. On aDRAFTontology, GetOntology returns the draft, with or withoutversion(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 withValidationException. 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
GetOntologyRequest.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.
-