Class DrPlanStep.Builder
- java.lang.Object
-
- com.oracle.bmc.disasterrecovery.model.DrPlanStep.Builder
-
- Enclosing class:
- DrPlanStep
public static class DrPlanStep.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DrPlanStep
build()
DrPlanStep.Builder
copy(DrPlanStep model)
DrPlanStep.Builder
displayName(String displayName)
The display name of the group.DrPlanStep.Builder
errorMode(DrPlanStepErrorMode errorMode)
The error mode for this step.DrPlanStep.Builder
groupId(String groupId)
The unique id of the group to which this step belongs.DrPlanStep.Builder
id(String id)
The unique id of the step.DrPlanStep.Builder
isEnabled(Boolean isEnabled)
A flag indicating whether this step should be enabled for execution.DrPlanStep.Builder
memberId(String memberId)
The OCID of the member associated with this step.DrPlanStep.Builder
refreshStatus(DrPlanStepRefreshStatus refreshStatus)
The DR plan step refresh status.DrPlanStep.Builder
timeout(Integer timeout)
The timeout in seconds for executing this step.DrPlanStep.Builder
type(DrPlanStepType type)
The plan step type.DrPlanStep.Builder
userDefinedStep(DrPlanUserDefinedStep userDefinedStep)
-
-
-
Method Detail
-
id
public DrPlanStep.Builder id(String id)
The unique id of the step.Must not be modified by the user.
Example: sgid1.step..uniqueID
- Parameters:
id
- the value to set- Returns:
- this builder
-
groupId
public DrPlanStep.Builder groupId(String groupId)
The unique id of the group to which this step belongs.Must not be modified by user.
Example: sgid1.group..uniqueID
- Parameters:
groupId
- the value to set- Returns:
- this builder
-
memberId
public DrPlanStep.Builder memberId(String memberId)
The OCID of the member associated with this step.Example: ocid1.database.oc1..uniqueID
- Parameters:
memberId
- the value to set- Returns:
- this builder
-
type
public DrPlanStep.Builder type(DrPlanStepType type)
The plan step type.- Parameters:
type
- the value to set- Returns:
- this builder
-
refreshStatus
public DrPlanStep.Builder refreshStatus(DrPlanStepRefreshStatus refreshStatus)
The DR plan step refresh status.Example: STEP_ADDED
- Parameters:
refreshStatus
- the value to set- Returns:
- this builder
-
displayName
public DrPlanStep.Builder displayName(String displayName)
The display name of the group.Example: DATABASE_SWITCHOVER
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
errorMode
public DrPlanStep.Builder errorMode(DrPlanStepErrorMode errorMode)
The error mode for this step.- Parameters:
errorMode
- the value to set- Returns:
- this builder
-
timeout
public DrPlanStep.Builder timeout(Integer timeout)
The timeout in seconds for executing this step.Example: 600
- Parameters:
timeout
- the value to set- Returns:
- this builder
-
isEnabled
public DrPlanStep.Builder isEnabled(Boolean isEnabled)
A flag indicating whether this step should be enabled for execution.Example: true
- Parameters:
isEnabled
- the value to set- Returns:
- this builder
-
userDefinedStep
public DrPlanStep.Builder userDefinedStep(DrPlanUserDefinedStep userDefinedStep)
-
build
public DrPlanStep build()
-
copy
public DrPlanStep.Builder copy(DrPlanStep model)
-
-