Class ModelSummary.Builder
- java.lang.Object
- 
- com.oracle.bmc.generativeai.model.ModelSummary.Builder
 
- 
- Enclosing class:
- ModelSummary
 
 public static class ModelSummary.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelSummary.BuilderbaseModelId(String baseModelId)The OCID of the base model that’s used for fine-tuning.ModelSummarybuild()ModelSummary.Buildercapabilities(List<ModelCapability> capabilities)Describes what this model can be used for.ModelSummary.BuildercompartmentId(String compartmentId)The compartment OCID for fine-tuned models.ModelSummary.Buildercopy(ModelSummary model)ModelSummary.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.ModelSummary.BuilderdisplayName(String displayName)A user-friendly name.ModelSummary.BuilderfineTuneDetails(FineTuneDetails fineTuneDetails)ModelSummary.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.ModelSummary.Builderid(String id)An ID that uniquely identifies a pretrained or a fine-tuned model.ModelSummary.BuilderisLongTermSupported(Boolean isLongTermSupported)Whether a model is supported long-term.ModelSummary.BuilderlifecycleDetails(String lifecycleDetails)A message describing the current state of the model with detail that can provide actionable information.ModelSummary.BuilderlifecycleState(Model.LifecycleState lifecycleState)The lifecycle state of the model.ModelSummary.BuildermodelMetrics(ModelMetrics modelMetrics)ModelSummary.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.ModelSummary.BuildertimeCreated(Date timeCreated)The date and time that the model was created in the format of an RFC3339 datetime string.ModelSummary.BuildertimeDedicatedRetired(Date timeDedicatedRetired)The timestamp indicating when the custom model and its associated foundation model will be fully retired.ModelSummary.BuildertimeDeprecated(Date timeDeprecated)Corresponds to the time when the custom model and its associated foundation model will be deprecated.ModelSummary.BuildertimeOnDemandRetired(Date timeOnDemandRetired)The timestamp indicating when the base model will no longer be available for on-demand usage.ModelSummary.Buildertype(Model.Type type)The model type indicating whether this is a pretrained/base model or a custom/fine-tuned model.ModelSummary.Buildervendor(String vendor)The provider of the model.ModelSummary.Builderversion(String version)The version of the model.
 
- 
- 
- 
Method Detail- 
idpublic ModelSummary.Builder id(String id) An ID that uniquely identifies a pretrained or a fine-tuned model.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic ModelSummary.Builder compartmentId(String compartmentId) The compartment OCID for fine-tuned models.For pretrained models, this value is null. - Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
capabilitiespublic ModelSummary.Builder capabilities(List<ModelCapability> capabilities) Describes what this model can be used for.- Parameters:
- capabilities- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic ModelSummary.Builder lifecycleState(Model.LifecycleState lifecycleState) The lifecycle state of the model.Allowed values are: - ACTIVE - CREATING - DELETING - DELETED - FAILED - Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
lifecycleDetailspublic ModelSummary.Builder lifecycleDetails(String lifecycleDetails) A message describing the current state of the model with detail that can provide actionable information.- Parameters:
- lifecycleDetails- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic ModelSummary.Builder displayName(String displayName) A user-friendly name.- Parameters:
- displayName- the value to set
- Returns:
- this builder
 
 - 
vendorpublic ModelSummary.Builder vendor(String vendor) The provider of the model.- Parameters:
- vendor- the value to set
- Returns:
- this builder
 
 - 
versionpublic ModelSummary.Builder version(String version) The version of the model.- Parameters:
- version- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic ModelSummary.Builder timeCreated(Date timeCreated) The date and time that the model was created in the format of an RFC3339 datetime string.- Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
baseModelIdpublic ModelSummary.Builder baseModelId(String baseModelId) The OCID of the base model that’s used for fine-tuning.For pretrained models, the value is null. - Parameters:
- baseModelId- the value to set
- Returns:
- this builder
 
 - 
typepublic ModelSummary.Builder type(Model.Type type) The model type indicating whether this is a pretrained/base model or a custom/fine-tuned model.Allowed values are: - BASE - CUSTOM - Parameters:
- type- the value to set
- Returns:
- this builder
 
 - 
fineTuneDetailspublic ModelSummary.Builder fineTuneDetails(FineTuneDetails fineTuneDetails) 
 - 
modelMetricspublic ModelSummary.Builder modelMetrics(ModelMetrics modelMetrics) 
 - 
isLongTermSupportedpublic ModelSummary.Builder isLongTermSupported(Boolean isLongTermSupported) Whether a model is supported long-term.Applies only to base models. - Parameters:
- isLongTermSupported- the value to set
- Returns:
- this builder
 
 - 
timeDeprecatedpublic ModelSummary.Builder timeDeprecated(Date timeDeprecated) Corresponds to the time when the custom model and its associated foundation model will be deprecated.- Parameters:
- timeDeprecated- the value to set
- Returns:
- this builder
 
 - 
timeOnDemandRetiredpublic ModelSummary.Builder timeOnDemandRetired(Date timeOnDemandRetired) The timestamp indicating when the base model will no longer be available for on-demand usage.- Parameters:
- timeOnDemandRetired- the value to set
- Returns:
- this builder
 
 - 
timeDedicatedRetiredpublic ModelSummary.Builder timeDedicatedRetired(Date timeDedicatedRetired) The timestamp indicating when the custom model and its associated foundation model will be fully retired.- Parameters:
- timeDedicatedRetired- the value to set
- Returns:
- this builder
 
 - 
freeformTagspublic ModelSummary.Builder freeformTags(Map<String,String> freeformTags) Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"} - Parameters:
- freeformTags- the value to set
- Returns:
- this builder
 
 - 
definedTagspublic ModelSummary.Builder definedTags(Map<String,Map<String,Object>> definedTags) Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations": {"CostCenter": "42"}} - Parameters:
- definedTags- the value to set
- Returns:
- this builder
 
 - 
systemTagspublic ModelSummary.Builder systemTags(Map<String,Map<String,Object>> systemTags) System tags for this resource.Each key is predefined and scoped to a namespace. Example: {"orcl-cloud": {"free-tier-retained": "true"}} - Parameters:
- systemTags- the value to set
- Returns:
- this builder
 
 - 
buildpublic ModelSummary build() 
 - 
copypublic ModelSummary.Builder copy(ModelSummary model) 
 
- 
 
-