Package com.oracle.bmc.aivision.model
Class ModelSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.aivision.model.ModelSummary.Builder
-
- Enclosing class:
- ModelSummary
public static class ModelSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelSummarybuild()ModelSummary.BuildercompartmentId(String compartmentId)The compartment identifier.ModelSummary.Buildercopy(ModelSummary model)ModelSummary.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.ModelSummary.Builderdescription(String description)An optional description of the model.ModelSummary.BuilderdisplayName(String displayName)A human-friendly name for the model, which can be changed.ModelSummary.BuilderfreeformTags(Map<String,String> freeformTags)A simple key-value pair that is applied without any predefined name, type, or scope.ModelSummary.Builderid(String id)A unique identifier that is immutable after creation.ModelSummary.BuilderlifecycleDetails(String lifecycleDetails)A message describing the current state in more detail, that can provide actionable information if training failed.ModelSummary.BuilderlifecycleState(Model.LifecycleState lifecycleState)The current state of the model.ModelSummary.BuildermodelType(Model.ModelType modelType)What type of Vision model this is.ModelSummary.BuildermodelVersion(String modelVersion)The version of the model.ModelSummary.Builderprecision(Float precision)The precision of the trained model.ModelSummary.BuilderprojectId(String projectId)The OCID of the project that contains the model.ModelSummary.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.ModelSummary.BuildertestingDataset(Dataset testingDataset)ModelSummary.BuildertimeCreated(Date timeCreated)When the model was created, as an RFC3339 datetime string.ModelSummary.BuildertimeUpdated(Date timeUpdated)When the model was modified, as an RFC3339 datetime string.ModelSummary.BuildertrainingDataset(Dataset trainingDataset)ModelSummary.BuildervalidationDataset(Dataset validationDataset)
-
-
-
Method Detail
-
id
public ModelSummary.Builder id(String id)
A unique identifier that is immutable after creation.- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public ModelSummary.Builder displayName(String displayName)
A human-friendly name for the model, which can be changed.- Parameters:
displayName- the value to set- Returns:
- this builder
-
description
public ModelSummary.Builder description(String description)
An optional description of the model.- Parameters:
description- the value to set- Returns:
- this builder
-
compartmentId
public ModelSummary.Builder compartmentId(String compartmentId)
The compartment identifier.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
modelType
public ModelSummary.Builder modelType(Model.ModelType modelType)
What type of Vision model this is.- Parameters:
modelType- the value to set- Returns:
- this builder
-
modelVersion
public ModelSummary.Builder modelVersion(String modelVersion)
The version of the model.- Parameters:
modelVersion- the value to set- Returns:
- this builder
-
projectId
public ModelSummary.Builder projectId(String projectId)
The OCID of the project that contains the model.- Parameters:
projectId- the value to set- Returns:
- this builder
-
timeCreated
public ModelSummary.Builder timeCreated(Date timeCreated)
When the model was created, as an RFC3339 datetime string.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public ModelSummary.Builder timeUpdated(Date timeUpdated)
When the model was modified, as an RFC3339 datetime string.- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
lifecycleState
public ModelSummary.Builder lifecycleState(Model.LifecycleState lifecycleState)
The current state of the model.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public ModelSummary.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
-
precision
public ModelSummary.Builder precision(Float precision)
The precision of the trained model.- Parameters:
precision- the value to set- Returns:
- this builder
-
trainingDataset
public ModelSummary.Builder trainingDataset(Dataset trainingDataset)
-
testingDataset
public ModelSummary.Builder testingDataset(Dataset testingDataset)
-
validationDataset
public ModelSummary.Builder validationDataset(Dataset validationDataset)
-
freeformTags
public ModelSummary.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
-
definedTags
public ModelSummary.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
-
systemTags
public ModelSummary.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
-
build
public ModelSummary build()
-
copy
public ModelSummary.Builder copy(ModelSummary model)
-
-