Package com.oracle.bmc.datacatalog.model
Class Metastore.Builder
- java.lang.Object
-
- com.oracle.bmc.datacatalog.model.Metastore.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Metastore
build()
Metastore.Builder
compartmentId(String compartmentId)
OCID of the compartment which holds the metastore.Metastore.Builder
copy(Metastore model)
Metastore.Builder
defaultExternalTableLocation(String defaultExternalTableLocation)
Location under which external tables will be created by default.Metastore.Builder
defaultManagedTableLocation(String defaultManagedTableLocation)
Location under which managed tables will be created by default.Metastore.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Usage of predefined tag keys.Metastore.Builder
displayName(String displayName)
Mutable name of the metastore.Metastore.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Metastore.Builder
id(String id)
The metastore’s OCID.Metastore.Builder
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.Metastore.Builder
lifecycleState(LifecycleState lifecycleState)
The current state of the metastore.Metastore.Builder
locks(List<ResourceLock> locks)
Locks associated with this resource.Metastore.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Metastore.Builder
timeCreated(Date timeCreated)
Time at which the metastore was created.Metastore.Builder
timeUpdated(Date timeUpdated)
Time at which the metastore was last modified.
-
-
-
Method Detail
-
id
public Metastore.Builder id(String id)
The metastore’s OCID.- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public Metastore.Builder displayName(String displayName)
Mutable name of the metastore.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
compartmentId
public Metastore.Builder compartmentId(String compartmentId)
OCID of the compartment which holds the metastore.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
timeCreated
public Metastore.Builder timeCreated(Date timeCreated)
Time at which the metastore was created.An RFC3339 formatted datetime string.
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public Metastore.Builder timeUpdated(Date timeUpdated)
Time at which the metastore was last modified.An RFC3339 formatted datetime string.
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
defaultManagedTableLocation
public Metastore.Builder defaultManagedTableLocation(String defaultManagedTableLocation)
Location under which managed tables will be created by default.This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/
- Parameters:
defaultManagedTableLocation
- the value to set- Returns:
- this builder
-
defaultExternalTableLocation
public Metastore.Builder defaultExternalTableLocation(String defaultExternalTableLocation)
Location under which external tables will be created by default.This references Object Storage using an HDFS URI format. Example: oci://bucket@namespace/sub-dir/
- Parameters:
defaultExternalTableLocation
- the value to set- Returns:
- this builder
-
lifecycleState
public Metastore.Builder lifecycleState(LifecycleState lifecycleState)
The current state of the metastore.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public Metastore.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.For example, can be used to provide actionable information for a resource in Failed state.
- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
freeformTags
public Metastore.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
systemTags
public Metastore.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system.
Example: {"orcl-cloud": {"free-tier-retained": "true"}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
definedTags
public Metastore.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Usage of predefined tag keys.These predefined keys are scoped to namespaces. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
locks
public Metastore.Builder locks(List<ResourceLock> locks)
Locks associated with this resource.- Parameters:
locks
- the value to set- Returns:
- this builder
-
build
public Metastore build()
-
copy
public Metastore.Builder copy(Metastore model)
-
-