Class Record.Builder
- java.lang.Object
-
- com.oracle.bmc.datalabelingservicedataplane.model.Record.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Record
build()
Record.Builder
compartmentId(String compartmentId)
The OCID of the compartment for the task.Record.Builder
copy(Record model)
Record.Builder
datasetId(String datasetId)
The OCID of the dataset to associate the record with.Record.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
The defined tags for this resource.Record.Builder
freeformTags(Map<String,String> freeformTags)
A simple key-value pair that is applied without any predefined name, type, or scope.Record.Builder
id(String id)
The OCID of the record.Record.Builder
isLabeled(Boolean isLabeled)
Whether or not the record has been labeled and has associated annotations.Record.Builder
lifecycleState(Record.LifecycleState lifecycleState)
The lifecycle state of the record.Record.Builder
name(String name)
The name is created by the user.Record.Builder
recordMetadata(RecordMetadata recordMetadata)
Record.Builder
sourceDetails(SourceDetails sourceDetails)
Record.Builder
timeCreated(Date timeCreated)
The date and time the resource was created, in the timestamp format defined by RFC3339.Record.Builder
timeUpdated(Date timeUpdated)
The date and time the resource was updated, in the timestamp format defined by RFC3339.
-
-
-
Method Detail
-
id
public Record.Builder id(String id)
The OCID of the record.- Parameters:
id
- the value to set- Returns:
- this builder
-
name
public Record.Builder name(String name)
The name is created by the user.It is unique and immutable.
- Parameters:
name
- the value to set- Returns:
- this builder
-
timeCreated
public Record.Builder timeCreated(Date timeCreated)
The date and time the resource was created, in the timestamp format defined by RFC3339.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public Record.Builder timeUpdated(Date timeUpdated)
The date and time the resource was updated, in the timestamp format defined by RFC3339.- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
datasetId
public Record.Builder datasetId(String datasetId)
The OCID of the dataset to associate the record with.- Parameters:
datasetId
- the value to set- Returns:
- this builder
-
compartmentId
public Record.Builder compartmentId(String compartmentId)
The OCID of the compartment for the task.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
sourceDetails
public Record.Builder sourceDetails(SourceDetails sourceDetails)
-
isLabeled
public Record.Builder isLabeled(Boolean isLabeled)
Whether or not the record has been labeled and has associated annotations.- Parameters:
isLabeled
- the value to set- Returns:
- this builder
-
lifecycleState
public Record.Builder lifecycleState(Record.LifecycleState lifecycleState)
The lifecycle state of the record.ACTIVE - The record is active and ready for labeling. INACTIVE - The record has been marked as inactive and should not be used for labeling. DELETED - The record has been deleted and is no longer available for labeling.
- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
recordMetadata
public Record.Builder recordMetadata(RecordMetadata recordMetadata)
-
freeformTags
public Record.Builder freeformTags(Map<String,String> freeformTags)
A simple key-value pair that is applied without any predefined name, type, or scope.It exists for cross-compatibility only. For example: {“bar-key”: “value”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public Record.Builder definedTags(Map<String,Map<String,Object>> definedTags)
The defined tags for this resource.Each key is predefined and scoped to a namespace. For example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
build
public Record build()
-
copy
public Record.Builder copy(Record model)
-
-