Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Model.Builder |
baseModelId(String baseModelId)
The OCID of the base model that’s used for fine-tuning.
|
Model |
build() |
Model.Builder |
capabilities(List<ModelCapability> capabilities)
Describes what this model can be used for.
|
Model.Builder |
compartmentId(String compartmentId)
The compartment OCID for fine-tuned models.
|
Model.Builder |
copy(Model model) |
Model.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
Model.Builder |
description(String description)
An optional description of the model.
|
Model.Builder |
displayName(String displayName)
A user-friendly name.
|
Model.Builder |
fineTuneDetails(FineTuneDetails fineTuneDetails) |
Model.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
Model.Builder |
id(String id)
An ID that uniquely identifies a pretrained or fine-tuned model.
|
Model.Builder |
isLongTermSupported(Boolean isLongTermSupported)
Whether a model is supported long-term.
|
Model.Builder |
lifecycleDetails(String lifecycleDetails)
A message describing the current state of the model in more detail that can provide
actionable information.
|
Model.Builder |
lifecycleState(Model.LifecycleState lifecycleState)
The lifecycle state of the model.
|
Model.Builder |
modelMetrics(ModelMetrics modelMetrics) |
Model.Builder |
previousState(Model previousState) |
Model.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.
|
Model.Builder |
timeCreated(Date timeCreated)
The date and time that the model was created in the format of an RFC3339 datetime string.
|
Model.Builder |
timeDeprecated(Date timeDeprecated)
Corresponds to the time when the custom model and its associated foundation model will be
deprecated.
|
Model.Builder |
timeUpdated(Date timeUpdated)
The date and time that the model was updated in the format of an RFC3339 datetime string.
|
Model.Builder |
type(Model.Type type)
The model type indicating whether this is a pretrained/base model or a custom/fine-tuned
model.
|
Model.Builder |
vendor(String vendor)
The provider of the base model.
|
Model.Builder |
version(String version)
The version of the model.
|
public Model.Builder id(String id)
An ID that uniquely identifies a pretrained or fine-tuned model.
id
- the value to setpublic Model.Builder description(String description)
An optional description of the model.
description
- the value to setpublic Model.Builder compartmentId(String compartmentId)
The compartment OCID for fine-tuned models. For pretrained models, this value is null.
compartmentId
- the value to setpublic Model.Builder capabilities(List<ModelCapability> capabilities)
Describes what this model can be used for.
capabilities
- the value to setpublic Model.Builder lifecycleState(Model.LifecycleState lifecycleState)
The lifecycle state of the model.
lifecycleState
- the value to setpublic Model.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state of the model in more detail that can provide actionable information.
lifecycleDetails
- the value to setpublic Model.Builder vendor(String vendor)
The provider of the base model.
vendor
- the value to setpublic Model.Builder version(String version)
The version of the model.
version
- the value to setpublic Model.Builder displayName(String displayName)
A user-friendly name.
displayName
- the value to setpublic Model.Builder timeCreated(Date timeCreated)
The date and time that the model was created in the format of an RFC3339 datetime string.
timeCreated
- the value to setpublic Model.Builder timeUpdated(Date timeUpdated)
The date and time that the model was updated in the format of an RFC3339 datetime string.
timeUpdated
- the value to setpublic Model.Builder baseModelId(String baseModelId)
The OCID of the base model that’s used for fine-tuning. For pretrained models, the value is null.
baseModelId
- the value to setpublic Model.Builder type(Model.Type type)
The model type indicating whether this is a pretrained/base model or a custom/fine-tuned model.
type
- the value to setpublic Model.Builder fineTuneDetails(FineTuneDetails fineTuneDetails)
public Model.Builder modelMetrics(ModelMetrics modelMetrics)
public Model.Builder isLongTermSupported(Boolean isLongTermSupported)
Whether a model is supported long-term. Only applicable to base models.
isLongTermSupported
- the value to setpublic Model.Builder timeDeprecated(Date timeDeprecated)
Corresponds to the time when the custom model and its associated foundation model will be deprecated.
timeDeprecated
- the value to setpublic Model.Builder previousState(Model previousState)
public Model.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"}
freeformTags
- the value to setpublic Model.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"}}
definedTags
- the value to setpublic Model.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"}}
systemTags
- the value to setpublic Model build()
public Model.Builder copy(Model model)
Copyright © 2016–2024. All rights reserved.