Class DrPlanStepExecution.Builder
- java.lang.Object
-
- com.oracle.bmc.disasterrecovery.model.DrPlanStepExecution.Builder
-
- Enclosing class:
- DrPlanStepExecution
public static class DrPlanStepExecution.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DrPlanStepExecution
build()
DrPlanStepExecution.Builder
copy(DrPlanStepExecution model)
DrPlanStepExecution.Builder
displayName(String displayName)
The display name of the step execution.DrPlanStepExecution.Builder
executionDurationInSec(Integer executionDurationInSec)
The total duration in seconds taken to complete the step execution.DrPlanStepExecution.Builder
groupId(String groupId)
The unique id of the group to which this step belongs.DrPlanStepExecution.Builder
logLocation(ObjectStorageLogLocation logLocation)
DrPlanStepExecution.Builder
status(DrPlanStepExecutionStatus status)
The status of the step execution.DrPlanStepExecution.Builder
statusDetails(String statusDetails)
Additional details on the step execution status.DrPlanStepExecution.Builder
stepId(String stepId)
The unique id of the step.DrPlanStepExecution.Builder
timeEnded(Date timeEnded)
The time when execution ended.DrPlanStepExecution.Builder
timeStarted(Date timeStarted)
The time when step execution began.DrPlanStepExecution.Builder
type(DrPlanStepType type)
The step type.
-
-
-
Method Detail
-
stepId
public DrPlanStepExecution.Builder stepId(String stepId)
The unique id of the step.Must not be modified by user.
Example: sgid1.step..uniqueID
- Parameters:
stepId
- the value to set- Returns:
- this builder
-
type
public DrPlanStepExecution.Builder type(DrPlanStepType type)
The step type.- Parameters:
type
- the value to set- Returns:
- this builder
-
groupId
public DrPlanStepExecution.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
-
displayName
public DrPlanStepExecution.Builder displayName(String displayName)
The display name of the step execution.Example: DATABASE_SWITCHOVER
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
logLocation
public DrPlanStepExecution.Builder logLocation(ObjectStorageLogLocation logLocation)
-
status
public DrPlanStepExecution.Builder status(DrPlanStepExecutionStatus status)
The status of the step execution.- Parameters:
status
- the value to set- Returns:
- this builder
-
statusDetails
public DrPlanStepExecution.Builder statusDetails(String statusDetails)
Additional details on the step execution status.Example: This step failed to complete due to a timeout
- Parameters:
statusDetails
- the value to set- Returns:
- this builder
-
timeStarted
public DrPlanStepExecution.Builder timeStarted(Date timeStarted)
The time when step execution began.An RFC3339 formatted datetime string.
Example: 2019-03-29T09:36:42Z
- Parameters:
timeStarted
- the value to set- Returns:
- this builder
-
timeEnded
public DrPlanStepExecution.Builder timeEnded(Date timeEnded)
The time when execution ended.An RFC3339 formatted datetime string.
Example: 2019-03-29T09:36:42Z
- Parameters:
timeEnded
- the value to set- Returns:
- this builder
-
executionDurationInSec
public DrPlanStepExecution.Builder executionDurationInSec(Integer executionDurationInSec)
The total duration in seconds taken to complete the step execution.Example: 35
- Parameters:
executionDurationInSec
- the value to set- Returns:
- this builder
-
build
public DrPlanStepExecution build()
-
copy
public DrPlanStepExecution.Builder copy(DrPlanStepExecution model)
-
-