Package com.oracle.bmc.core.model
Class DetachInstancePoolInstanceDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.core.model.DetachInstancePoolInstanceDetails.Builder
-
- Enclosing class:
- DetachInstancePoolInstanceDetails
public static class DetachInstancePoolInstanceDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DetachInstancePoolInstanceDetails
build()
DetachInstancePoolInstanceDetails.Builder
copy(DetachInstancePoolInstanceDetails model)
DetachInstancePoolInstanceDetails.Builder
instanceId(String instanceId)
The OCID of the instance.DetachInstancePoolInstanceDetails.Builder
isAutoTerminate(Boolean isAutoTerminate)
Whether to permanently terminate (delete) the instance and its attached boot volume when detaching it from the instance pool.DetachInstancePoolInstanceDetails.Builder
isDecrementSize(Boolean isDecrementSize)
Whether to decrease the size of the instance pool when the instance is detached.
-
-
-
Method Detail
-
instanceId
public DetachInstancePoolInstanceDetails.Builder instanceId(String instanceId)
The OCID of the instance.- Parameters:
instanceId
- the value to set- Returns:
- this builder
-
isDecrementSize
public DetachInstancePoolInstanceDetails.Builder isDecrementSize(Boolean isDecrementSize)
Whether to decrease the size of the instance pool when the instance is detached.If true, the pool size is decreased. If false, the pool will provision a new, replacement instance using the pool’s instance configuration as a template. Default is true.
- Parameters:
isDecrementSize
- the value to set- Returns:
- this builder
-
isAutoTerminate
public DetachInstancePoolInstanceDetails.Builder isAutoTerminate(Boolean isAutoTerminate)
Whether to permanently terminate (delete) the instance and its attached boot volume when detaching it from the instance pool.Default is false.
- Parameters:
isAutoTerminate
- the value to set- Returns:
- this builder
-
build
public DetachInstancePoolInstanceDetails build()
-
copy
public DetachInstancePoolInstanceDetails.Builder copy(DetachInstancePoolInstanceDetails model)
-
-