public static class Annotation.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Annotation |
build() |
Annotation.Builder |
compartmentId(String compartmentId)
The OCID of the compartment for the annotation.
|
Annotation.Builder |
copy(Annotation model) |
Annotation.Builder |
createdBy(String createdBy)
The OCID of the principal which created the annotation.
|
Annotation.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
The defined tags for this resource.
|
Annotation.Builder |
entities(List<Entity> entities)
The entity types are validated against the dataset to ensure consistency.
|
Annotation.Builder |
freeformTags(Map<String,String> freeformTags)
A simple key-value pair that is applied without any predefined name, type, or scope.
|
Annotation.Builder |
id(String id)
The OCID of the annotation.
|
Annotation.Builder |
lifecycleState(Annotation.LifecycleState lifecycleState)
The lifecycle state of an annotation.
|
Annotation.Builder |
recordId(String recordId)
The OCID of the record annotated.
|
Annotation.Builder |
timeCreated(Date timeCreated)
The date and time the annotation was created, in the timestamp format defined by RFC3339.
|
Annotation.Builder |
timeUpdated(Date timeUpdated)
The date and time the resource was updated, in the timestamp format defined by RFC3339.
|
Annotation.Builder |
updatedBy(String updatedBy)
The OCID of the principal which updated the annotation.
|
public Annotation.Builder id(String id)
The OCID of the annotation.
id
- the value to setpublic Annotation.Builder timeCreated(Date timeCreated)
The date and time the annotation was created, in the timestamp format defined by RFC3339.
timeCreated
- the value to setpublic Annotation.Builder timeUpdated(Date timeUpdated)
The date and time the resource was updated, in the timestamp format defined by RFC3339.
timeUpdated
- the value to setpublic Annotation.Builder createdBy(String createdBy)
The OCID of the principal which created the annotation.
createdBy
- the value to setpublic Annotation.Builder updatedBy(String updatedBy)
The OCID of the principal which updated the annotation.
updatedBy
- the value to setpublic Annotation.Builder recordId(String recordId)
The OCID of the record annotated.
recordId
- the value to setpublic Annotation.Builder entities(List<Entity> entities)
The entity types are validated against the dataset to ensure consistency.
entities
- the value to setpublic Annotation.Builder compartmentId(String compartmentId)
The OCID of the compartment for the annotation. This is tied to the dataset. It is not changeable on the record itself.
compartmentId
- the value to setpublic Annotation.Builder lifecycleState(Annotation.LifecycleState lifecycleState)
The lifecycle state of an annotation. ACTIVE - The annotation is active to be used for labeling. INACTIVE - The annotation has been marked as inactive and should not be used for labeling. DELETED - Tha annotation been deleted and no longer available for labeling.
lifecycleState
- the value to setpublic Annotation.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"}
freeformTags
- the value to setpublic Annotation.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"}}
definedTags
- the value to setpublic Annotation build()
public Annotation.Builder copy(Annotation model)
Copyright © 2016–2024. All rights reserved.