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 Endpointbuild()Endpoint.BuildercompartmentId(String compartmentId)The compartment OCID to create the endpoint in.Endpoint.BuildercontentModerationConfig(ContentModerationConfig contentModerationConfig)Endpoint.Buildercopy(Endpoint model)Endpoint.BuilderdedicatedAiClusterId(String dedicatedAiClusterId)The OCID of the dedicated AI cluster on which the model will be deployed to.Endpoint.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.Endpoint.Builderdescription(String description)An optional description of the endpoint.Endpoint.BuilderdisplayName(String displayName)A user-friendly name.Endpoint.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.Endpoint.BuildergenerativeAiPrivateEndpointId(String generativeAiPrivateEndpointId)The OCID of the Generative AI private endpoint to which this endpoint is attached to.Endpoint.Builderid(String id)An OCID that uniquely identifies this endpoint resource.Endpoint.BuilderlifecycleDetails(String lifecycleDetails)A message describing the current state of the endpoint in more detail that can provide actionable information.Endpoint.BuilderlifecycleState(Endpoint.LifecycleState lifecycleState)The current state of the endpoint.Endpoint.BuildermodelId(String modelId)The OCID of the model that’s used to create this endpoint.Endpoint.BuilderpreviousState(Endpoint previousState)Endpoint.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.Endpoint.BuildertimeCreated(Date timeCreated)The date and time that the endpoint was created in the format of an RFC3339 datetime string.Endpoint.BuildertimeUpdated(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
-
generativeAiPrivateEndpointId
public Endpoint.Builder generativeAiPrivateEndpointId(String generativeAiPrivateEndpointId)
The OCID of the Generative AI private endpoint to which this endpoint is attached to.- Parameters:
generativeAiPrivateEndpointId- 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)
-
-