Class Endpoint.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeai.model.Endpoint.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Endpoint
build()
Endpoint.Builder
compartmentId(String compartmentId)
The compartment OCID to create the endpoint in.Endpoint.Builder
contentModerationConfig(ContentModerationConfig contentModerationConfig)
Endpoint.Builder
copy(Endpoint model)
Endpoint.Builder
dedicatedAiClusterId(String dedicatedAiClusterId)
The OCID of the dedicated AI cluster on which the model will be deployed to.Endpoint.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Endpoint.Builder
description(String description)
An optional description of the endpoint.Endpoint.Builder
displayName(String displayName)
A user-friendly name.Endpoint.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Endpoint.Builder
id(String id)
An OCID that uniquely identifies this endpoint resource.Endpoint.Builder
lifecycleDetails(String lifecycleDetails)
A message describing the current state of the endpoint in more detail that can provide actionable information.Endpoint.Builder
lifecycleState(Endpoint.LifecycleState lifecycleState)
The current state of the endpoint.Endpoint.Builder
modelId(String modelId)
The OCID of the model that’s used to create this endpoint.Endpoint.Builder
previousState(Endpoint previousState)
Endpoint.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Endpoint.Builder
timeCreated(Date timeCreated)
The date and time that the endpoint was created in the format of an RFC3339 datetime string.Endpoint.Builder
timeUpdated(Date timeUpdated)
The date and time that the endpoint was updated in the format of an RFC3339 datetime string.
-
-
-
Method Detail
-
id
public Endpoint.Builder id(String id)
An OCID that uniquely identifies this endpoint resource.- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public Endpoint.Builder displayName(String displayName)
A user-friendly name.Does not have to be unique, and it’s changeable.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
description
public Endpoint.Builder description(String description)
An optional description of the endpoint.- Parameters:
description
- the value to set- Returns:
- this builder
-
modelId
public Endpoint.Builder modelId(String modelId)
The OCID of the model that’s used to create this endpoint.- Parameters:
modelId
- the value to set- Returns:
- this builder
-
compartmentId
public Endpoint.Builder compartmentId(String compartmentId)
The compartment OCID to create the endpoint in.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
dedicatedAiClusterId
public Endpoint.Builder dedicatedAiClusterId(String dedicatedAiClusterId)
The OCID of the dedicated AI cluster on which the model will be deployed to.- Parameters:
dedicatedAiClusterId
- the value to set- Returns:
- this builder
-
timeCreated
public Endpoint.Builder timeCreated(Date timeCreated)
The date and time that the endpoint was created in the format of an RFC3339 datetime string.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public Endpoint.Builder timeUpdated(Date timeUpdated)
The date and time that the endpoint was updated in the format of an RFC3339 datetime string.- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
lifecycleState
public Endpoint.Builder lifecycleState(Endpoint.LifecycleState lifecycleState)
The current state of the endpoint.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public Endpoint.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state of the endpoint in more detail that can provide actionable information.- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
contentModerationConfig
public Endpoint.Builder contentModerationConfig(ContentModerationConfig contentModerationConfig)
-
previousState
public Endpoint.Builder previousState(Endpoint previousState)
-
freeformTags
public Endpoint.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
-
definedTags
public Endpoint.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
-
systemTags
public Endpoint.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
-
build
public Endpoint build()
-
copy
public Endpoint.Builder copy(Endpoint model)
-
-