Package com.oracle.bmc.aidocument.model
Class Model.Builder
- java.lang.Object
- 
- com.oracle.bmc.aidocument.model.Model.Builder
 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Model.BuilderaliasName(String aliasName)the alias name of the model.Modelbuild()Model.BuildercompartmentId(String compartmentId)The compartment identifier.Model.BuildercomponentModels(List<ComponentModel> componentModels)The OCID collection of active custom Key Value models that need to be composed.Model.Buildercopy(Model model)Model.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.Model.Builderdescription(String description)An optional description of the model.Model.BuilderdisplayName(String displayName)A human-friendly name for the model, which can be changed.Model.BuilderfreeformTags(Map<String,String> freeformTags)A simple key-value pair that is applied without any predefined name, type, or scope.Model.Builderid(String id)A unique identifier that is immutable after creation.Model.BuilderinferenceUnits(Integer inferenceUnits)Number of replicas required for this model.Model.BuilderisComposedModel(Boolean isComposedModel)Set to true when the model is created by using multiple key value extraction models.Model.BuilderisQuickMode(Boolean isQuickMode)Set to true when experimenting with a new model type or dataset, so model training is quick, with a predefined low number of passes through the training data.Model.Builderlabels(List<String> labels)The collection of labels used to train the custom model.Model.Builderlanguage(String language)The document language for model training, abbreviated according to the BCP 47 syntax.Model.BuilderlifecycleDetails(String lifecycleDetails)A message describing the current state in more detail, that can provide actionable information if training failed.Model.BuilderlifecycleState(Model.LifecycleState lifecycleState)The current state of the model.Model.Builderlocks(List<ResourceLock> locks)Locks associated with this resource.Model.BuildermaxTrainingTimeInHours(Double maxTrainingTimeInHours)The maximum model training time in hours, expressed as a decimal fraction.Model.Buildermetrics(ModelMetrics metrics)Model.BuildermodelSubType(ModelSubType modelSubType)Applicable to only PRE_TRAINED_KEY_VALUE_EXTRACTION, PRE_TRAINED_DOCUMENT_ELEMENTS_EXTRACTION.Model.BuildermodelType(Model.ModelType modelType)The type of the Document model.Model.BuildermodelVersion(String modelVersion)The version of the model.Model.BuilderprojectId(String projectId)The OCID of the project that contains the model.Model.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.Model.BuildertenancyId(String tenancyId)The tenancy id of the model.Model.BuildertestingDataset(Dataset testingDataset)Model.BuildertimeCreated(Date timeCreated)When the model was created, as an RFC3339 datetime string.Model.BuildertimeUpdated(Date timeUpdated)When the model was updated, as an RFC3339 datetime string.Model.BuildertrainedTimeInHours(Double trainedTimeInHours)The total hours actually used for model training.Model.BuildertrainingDataset(Dataset trainingDataset)Model.BuildervalidationDataset(Dataset validationDataset)
 
- 
- 
- 
Method Detail- 
idpublic Model.Builder id(String id) A unique identifier that is immutable after creation.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic Model.Builder displayName(String displayName) A human-friendly name for the model, which can be changed.- Parameters:
- displayName- the value to set
- Returns:
- this builder
 
 - 
descriptionpublic Model.Builder description(String description) An optional description of the model.- Parameters:
- description- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic Model.Builder compartmentId(String compartmentId) The compartment identifier.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
modelTypepublic Model.Builder modelType(Model.ModelType modelType) The type of the Document model.- Parameters:
- modelType- the value to set
- Returns:
- this builder
 
 - 
modelSubTypepublic Model.Builder modelSubType(ModelSubType modelSubType) Applicable to only PRE_TRAINED_KEY_VALUE_EXTRACTION, PRE_TRAINED_DOCUMENT_ELEMENTS_EXTRACTION.- Parameters:
- modelSubType- the value to set
- Returns:
- this builder
 
 - 
inferenceUnitspublic Model.Builder inferenceUnits(Integer inferenceUnits) Number of replicas required for this model.- Parameters:
- inferenceUnits- the value to set
- Returns:
- this builder
 
 - 
tenancyIdpublic Model.Builder tenancyId(String tenancyId) The tenancy id of the model.- Parameters:
- tenancyId- the value to set
- Returns:
- this builder
 
 - 
aliasNamepublic Model.Builder aliasName(String aliasName) the alias name of the model.- Parameters:
- aliasName- the value to set
- Returns:
- this builder
 
 - 
labelspublic Model.Builder labels(List<String> labels) The collection of labels used to train the custom model.- Parameters:
- labels- the value to set
- Returns:
- this builder
 
 - 
isQuickModepublic Model.Builder isQuickMode(Boolean isQuickMode) Set to true when experimenting with a new model type or dataset, so model training is quick, with a predefined low number of passes through the training data.- Parameters:
- isQuickMode- the value to set
- Returns:
- this builder
 
 - 
maxTrainingTimeInHourspublic Model.Builder maxTrainingTimeInHours(Double maxTrainingTimeInHours) The maximum model training time in hours, expressed as a decimal fraction.- Parameters:
- maxTrainingTimeInHours- the value to set
- Returns:
- this builder
 
 - 
languagepublic Model.Builder language(String language) The document language for model training, abbreviated according to the BCP 47 syntax.- Parameters:
- language- the value to set
- Returns:
- this builder
 
 - 
trainedTimeInHourspublic Model.Builder trainedTimeInHours(Double trainedTimeInHours) The total hours actually used for model training.- Parameters:
- trainedTimeInHours- the value to set
- Returns:
- this builder
 
 - 
trainingDatasetpublic Model.Builder trainingDataset(Dataset trainingDataset) 
 - 
testingDatasetpublic Model.Builder testingDataset(Dataset testingDataset) 
 - 
validationDatasetpublic Model.Builder validationDataset(Dataset validationDataset) 
 - 
componentModelspublic Model.Builder componentModels(List<ComponentModel> componentModels) The OCID collection of active custom Key Value models that need to be composed.- Parameters:
- componentModels- the value to set
- Returns:
- this builder
 
 - 
isComposedModelpublic Model.Builder isComposedModel(Boolean isComposedModel) Set to true when the model is created by using multiple key value extraction models.- Parameters:
- isComposedModel- the value to set
- Returns:
- this builder
 
 - 
modelVersionpublic Model.Builder modelVersion(String modelVersion) The version of the model.- Parameters:
- modelVersion- the value to set
- Returns:
- this builder
 
 - 
projectIdpublic Model.Builder projectId(String projectId) The OCID of the project that contains the model.- Parameters:
- projectId- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic Model.Builder timeCreated(Date timeCreated) When the model was created, as an RFC3339 datetime string.- Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
timeUpdatedpublic Model.Builder timeUpdated(Date timeUpdated) When the model was updated, as an RFC3339 datetime string.- Parameters:
- timeUpdated- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic Model.Builder lifecycleState(Model.LifecycleState lifecycleState) The current state of the model.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
lifecycleDetailspublic Model.Builder lifecycleDetails(String lifecycleDetails) A message describing the current state in more detail, that can provide actionable information if training failed.- Parameters:
- lifecycleDetails- the value to set
- Returns:
- this builder
 
 - 
metricspublic Model.Builder metrics(ModelMetrics metrics) 
 - 
freeformTagspublic Model.Builder freeformTags(Map<String,String> freeformTags) A simple key-value pair that is applied without any predefined name, type, or scope.It exists for cross-compatibility only. For example: {“bar-key”: “value”} - Parameters:
- freeformTags- the value to set
- Returns:
- this builder
 
 - 
definedTagspublic Model.Builder definedTags(Map<String,Map<String,Object>> definedTags) Defined tags for this resource.Each key is predefined and scoped to a namespace. For example: {“foo-namespace”: {“bar-key”: “value”}} - Parameters:
- definedTags- the value to set
- Returns:
- this builder
 
 - 
systemTagspublic Model.Builder systemTags(Map<String,Map<String,Object>> systemTags) Usage of system tag keys.These predefined keys are scoped to namespaces. For example: {“orcl-cloud”: {“free-tier-retained”: “true”}} - Parameters:
- systemTags- the value to set
- Returns:
- this builder
 
 - 
lockspublic Model.Builder locks(List<ResourceLock> locks) Locks associated with this resource.- Parameters:
- locks- the value to set
- Returns:
- this builder
 
 - 
buildpublic Model build() 
 - 
copypublic Model.Builder copy(Model model) 
 
- 
 
-