Class Pool.Builder
- java.lang.Object
-
- com.oracle.bmc.dataflow.model.Pool.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pool
build()
Pool.Builder
compartmentId(String compartmentId)
The OCID of a compartment.Pool.Builder
configurations(List<PoolConfig> configurations)
List of PoolConfig items.Pool.Builder
copy(Pool model)
Pool.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Pool.Builder
description(String description)
A user-friendly description.Pool.Builder
displayName(String displayName)
A user-friendly name.Pool.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Pool.Builder
id(String id)
The OCID of a pool.Pool.Builder
idleTimeoutInMinutes(Integer idleTimeoutInMinutes)
Optional timeout value in minutes used to auto stop Pools.Pool.Builder
lifecycleDetails(String lifecycleDetails)
The detailed messages about the lifecycle state.Pool.Builder
lifecycleState(PoolLifecycleState lifecycleState)
The current state of this pool.Pool.Builder
ownerPrincipalId(String ownerPrincipalId)
The OCID of the user who created the resource.Pool.Builder
ownerUserName(String ownerUserName)
The username of the user who created the resource.Pool.Builder
poolMetrics(PoolMetrics poolMetrics)
Pool.Builder
schedules(List<PoolSchedule> schedules)
A list of schedules for pool to auto start and stop.Pool.Builder
timeCreated(Date timeCreated)
The date and time the resource was created, expressed in RFC 3339 timestamp format.Pool.Builder
timeUpdated(Date timeUpdated)
The date and time the resource was updated, expressed in RFC 3339 timestamp format.
-
-
-
Method Detail
-
compartmentId
public Pool.Builder compartmentId(String compartmentId)
The OCID of a compartment.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
definedTags
public Pool.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
-
description
public Pool.Builder description(String description)
A user-friendly description.Avoid entering confidential information.
- Parameters:
description
- the value to set- Returns:
- this builder
-
displayName
public Pool.Builder displayName(String displayName)
A user-friendly name.It does not have to be unique. Avoid entering confidential information.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
freeformTags
public Pool.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
-
id
public Pool.Builder id(String id)
The OCID of a pool.Unique Id to indentify a dataflow pool resource.
- Parameters:
id
- the value to set- Returns:
- this builder
-
lifecycleDetails
public Pool.Builder lifecycleDetails(String lifecycleDetails)
The detailed messages about the lifecycle state.- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
lifecycleState
public Pool.Builder lifecycleState(PoolLifecycleState lifecycleState)
The current state of this pool.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
ownerPrincipalId
public Pool.Builder ownerPrincipalId(String ownerPrincipalId)
The OCID of the user who created the resource.- Parameters:
ownerPrincipalId
- the value to set- Returns:
- this builder
-
ownerUserName
public Pool.Builder ownerUserName(String ownerUserName)
The username of the user who created the resource.If the username of the owner does not exist, null will be returned and the caller should refer to the ownerPrincipalId value instead.
- Parameters:
ownerUserName
- the value to set- Returns:
- this builder
-
poolMetrics
public Pool.Builder poolMetrics(PoolMetrics poolMetrics)
-
configurations
public Pool.Builder configurations(List<PoolConfig> configurations)
List of PoolConfig items.- Parameters:
configurations
- the value to set- Returns:
- this builder
-
schedules
public Pool.Builder schedules(List<PoolSchedule> schedules)
A list of schedules for pool to auto start and stop.- Parameters:
schedules
- the value to set- Returns:
- this builder
-
idleTimeoutInMinutes
public Pool.Builder idleTimeoutInMinutes(Integer idleTimeoutInMinutes)
Optional timeout value in minutes used to auto stop Pools.A Pool will be auto stopped after inactivity for this amount of time period. If value not set, pool will not be auto stopped auto.
- Parameters:
idleTimeoutInMinutes
- the value to set- Returns:
- this builder
-
timeCreated
public Pool.Builder timeCreated(Date timeCreated)
The date and time the resource was created, expressed in RFC 3339 timestamp format.Example: 2018-04-03T21:10:29.600Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public Pool.Builder timeUpdated(Date timeUpdated)
The date and time the resource was updated, expressed in RFC 3339 timestamp format.Example: 2018-04-03T21:10:29.600Z
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
build
public Pool build()
-
copy
public Pool.Builder copy(Pool model)
-
-