Class DrPlanExecution.Builder
- java.lang.Object
-
- com.oracle.bmc.disasterrecovery.model.DrPlanExecution.Builder
-
- Enclosing class:
- DrPlanExecution
public static class DrPlanExecution.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DrPlanExecution
build()
DrPlanExecution.Builder
compartmentId(String compartmentId)
The OCID of the compartment containing this DR plan execution.DrPlanExecution.Builder
copy(DrPlanExecution model)
DrPlanExecution.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.DrPlanExecution.Builder
displayName(String displayName)
The display name of the DR plan execution.DrPlanExecution.Builder
drProtectionGroupId(String drProtectionGroupId)
The OCID of the DR protection group to which this DR plan execution belongs.DrPlanExecution.Builder
executionDurationInSec(Integer executionDurationInSec)
The total duration in seconds taken to complete the DR plan execution.DrPlanExecution.Builder
executionOptions(DrPlanExecutionOptions executionOptions)
DrPlanExecution.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.DrPlanExecution.Builder
groupExecutions(List<DrPlanGroupExecution> groupExecutions)
A list of groups executed in this DR plan execution.DrPlanExecution.Builder
id(String id)
The OCID of the DR plan execution.DrPlanExecution.Builder
lifeCycleDetails(String lifeCycleDetails)
A message describing the DR plan execution’s current state in more detail.DrPlanExecution.Builder
lifecycleState(DrPlanExecutionLifecycleState lifecycleState)
The current state of the DR plan execution.DrPlanExecution.Builder
logLocation(ObjectStorageLogLocation logLocation)
DrPlanExecution.Builder
peerDrProtectionGroupId(String peerDrProtectionGroupId)
The OCID of peer DR protection group associated with this plan’s DR protection group.DrPlanExecution.Builder
peerRegion(String peerRegion)
The region of the peer DR protection group associated with this plan’s DR protection group.DrPlanExecution.Builder
planExecutionType(DrPlanExecutionType planExecutionType)
The type of the DR plan executed.DrPlanExecution.Builder
planId(String planId)
The OCID of the DR plan.DrPlanExecution.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.DrPlanExecution.Builder
timeCreated(Date timeCreated)
The date and time at which DR plan execution was created.DrPlanExecution.Builder
timeEnded(Date timeEnded)
The date and time at which DR plan execution succeeded, failed, was paused, or was canceled.DrPlanExecution.Builder
timeStarted(Date timeStarted)
The date and time at which DR plan execution began.DrPlanExecution.Builder
timeUpdated(Date timeUpdated)
The time when DR plan execution was last updated.
-
-
-
Method Detail
-
id
public DrPlanExecution.Builder id(String id)
The OCID of the DR plan execution.Example: ocid1.drplanexecution.oc1..uniqueID
- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public DrPlanExecution.Builder compartmentId(String compartmentId)
The OCID of the compartment containing this DR plan execution.Example: ocid1.compartment.oc1..uniqueID
- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
displayName
public DrPlanExecution.Builder displayName(String displayName)
The display name of the DR plan execution.Example: Execution - EBS Switchover PHX to IAD
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
planId
public DrPlanExecution.Builder planId(String planId)
The OCID of the DR plan.Example: ocid1.drplan.oc1..uniqueID
- Parameters:
planId
- the value to set- Returns:
- this builder
-
planExecutionType
public DrPlanExecution.Builder planExecutionType(DrPlanExecutionType planExecutionType)
The type of the DR plan executed.- Parameters:
planExecutionType
- the value to set- Returns:
- this builder
-
executionOptions
public DrPlanExecution.Builder executionOptions(DrPlanExecutionOptions executionOptions)
-
drProtectionGroupId
public DrPlanExecution.Builder drProtectionGroupId(String drProtectionGroupId)
The OCID of the DR protection group to which this DR plan execution belongs.Example: ocid1.drprotectiongroup.oc1..uniqueID
- Parameters:
drProtectionGroupId
- the value to set- Returns:
- this builder
-
peerDrProtectionGroupId
public DrPlanExecution.Builder peerDrProtectionGroupId(String peerDrProtectionGroupId)
The OCID of peer DR protection group associated with this plan’s DR protection group.Example: ocid1.drprotectiongroup.oc1..uniqueID
- Parameters:
peerDrProtectionGroupId
- the value to set- Returns:
- this builder
-
peerRegion
public DrPlanExecution.Builder peerRegion(String peerRegion)
The region of the peer DR protection group associated with this plan’s DR protection group.Example: us-ashburn-1
- Parameters:
peerRegion
- the value to set- Returns:
- this builder
-
logLocation
public DrPlanExecution.Builder logLocation(ObjectStorageLogLocation logLocation)
-
timeCreated
public DrPlanExecution.Builder timeCreated(Date timeCreated)
The date and time at which DR plan execution was created.An RFC3339 formatted datetime string.
Example: 2019-03-29T09:36:42Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeStarted
public DrPlanExecution.Builder timeStarted(Date timeStarted)
The date and time at which DR plan execution began.An RFC3339 formatted datetime string.
Example: 2019-03-29T09:36:42Z
- Parameters:
timeStarted
- the value to set- Returns:
- this builder
-
timeUpdated
public DrPlanExecution.Builder timeUpdated(Date timeUpdated)
The time when DR plan execution was last updated.An RFC3339 formatted datetime string.
Example: 2019-03-29T09:36:42Z
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
timeEnded
public DrPlanExecution.Builder timeEnded(Date timeEnded)
The date and time at which DR plan execution succeeded, failed, was paused, or was canceled.An RFC3339 formatted datetime string.
Example: 2019-03-29T09:36:42Z
- Parameters:
timeEnded
- the value to set- Returns:
- this builder
-
executionDurationInSec
public DrPlanExecution.Builder executionDurationInSec(Integer executionDurationInSec)
The total duration in seconds taken to complete the DR plan execution.Example: 750
- Parameters:
executionDurationInSec
- the value to set- Returns:
- this builder
-
groupExecutions
public DrPlanExecution.Builder groupExecutions(List<DrPlanGroupExecution> groupExecutions)
A list of groups executed in this DR plan execution.- Parameters:
groupExecutions
- the value to set- Returns:
- this builder
-
lifecycleState
public DrPlanExecution.Builder lifecycleState(DrPlanExecutionLifecycleState lifecycleState)
The current state of the DR plan execution.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifeCycleDetails
public DrPlanExecution.Builder lifeCycleDetails(String lifeCycleDetails)
A message describing the DR plan execution’s current state in more detail.- Parameters:
lifeCycleDetails
- the value to set- Returns:
- this builder
-
freeformTags
public DrPlanExecution.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: {"Department": "Finance"}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public DrPlanExecution.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace.
Example: {"Operations": {"CostCenter": "42"}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
systemTags
public DrPlanExecution.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.These predefined keys are scoped to namespaces.
Example: {"orcl-cloud": {"free-tier-retained": "true"}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public DrPlanExecution build()
-
copy
public DrPlanExecution.Builder copy(DrPlanExecution model)
-
-