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