Class DrPlanSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.disasterrecovery.model.DrPlanSummary.Builder
-
- Enclosing class:
- DrPlanSummary
public static class DrPlanSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DrPlanSummary
build()
DrPlanSummary.Builder
compartmentId(String compartmentId)
The OCID of the compartment containing the DR plan.DrPlanSummary.Builder
copy(DrPlanSummary model)
DrPlanSummary.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.DrPlanSummary.Builder
displayName(String displayName)
The display name of the DR plan.DrPlanSummary.Builder
drProtectionGroupId(String drProtectionGroupId)
The OCID of the DR protection group to which this DR plan belongs.DrPlanSummary.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.DrPlanSummary.Builder
id(String id)
The OCID of the DR plan.DrPlanSummary.Builder
lifeCycleDetails(String lifeCycleDetails)
A message describing the DR plan’s current state in more detail.DrPlanSummary.Builder
lifecycleState(DrPlanLifecycleState lifecycleState)
The current state of the DR plan.DrPlanSummary.Builder
lifecycleSubState(DrPlanLifecycleSubState lifecycleSubState)
The current sub state of the DR plan.DrPlanSummary.Builder
peerDrProtectionGroupId(String peerDrProtectionGroupId)
The OCID of the peer DR protection group associated with this plan’s DR protection group.DrPlanSummary.Builder
peerRegion(String peerRegion)
The region of the peer DR protection group associated with this plan’s DR protection group.DrPlanSummary.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.DrPlanSummary.Builder
timeCreated(Date timeCreated)
The date and time the DR plan was created.DrPlanSummary.Builder
timeUpdated(Date timeUpdated)
The date and time the DR plan was updated.DrPlanSummary.Builder
type(DrPlanType type)
The type of the DR plan.
-
-
-
Method Detail
-
id
public DrPlanSummary.Builder id(String id)
The OCID of the DR plan.Example: ocid1.drplan.oc1..uniqueID
- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public DrPlanSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the DR plan.Example: ocid1.compartment.oc1..uniqueID
- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
displayName
public DrPlanSummary.Builder displayName(String displayName)
The display name of the DR plan.Example: EBS Switchover PHX to IAD
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
type
public DrPlanSummary.Builder type(DrPlanType type)
The type of the DR plan.Example: SWITCHOVER
- Parameters:
type
- the value to set- Returns:
- this builder
-
drProtectionGroupId
public DrPlanSummary.Builder drProtectionGroupId(String drProtectionGroupId)
The OCID of the DR protection group to which this DR plan belongs.Example: ocid1.drprotectiongroup.oc1..uniqueID
- Parameters:
drProtectionGroupId
- the value to set- Returns:
- this builder
-
peerDrProtectionGroupId
public DrPlanSummary.Builder peerDrProtectionGroupId(String peerDrProtectionGroupId)
The OCID of the 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 DrPlanSummary.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
-
timeCreated
public DrPlanSummary.Builder timeCreated(Date timeCreated)
The date and time the DR plan was created.An RFC3339 formatted datetime string.
Example: 2019-03-29T09:36:42Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public DrPlanSummary.Builder timeUpdated(Date timeUpdated)
The date and time the DR plan was updated.An RFC3339 formatted datetime string.
Example: 2019-03-29T09:36:42Z
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
lifecycleState
public DrPlanSummary.Builder lifecycleState(DrPlanLifecycleState lifecycleState)
The current state of the DR plan.Example: ACTIVE
- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleSubState
public DrPlanSummary.Builder lifecycleSubState(DrPlanLifecycleSubState lifecycleSubState)
The current sub state of the DR plan.Example: NEEDS_REFRESH
- Parameters:
lifecycleSubState
- the value to set- Returns:
- this builder
-
lifeCycleDetails
public DrPlanSummary.Builder lifeCycleDetails(String lifeCycleDetails)
A message describing the DR plan’s current state in more detail.- Parameters:
lifeCycleDetails
- the value to set- Returns:
- this builder
-
freeformTags
public DrPlanSummary.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 DrPlanSummary.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 DrPlanSummary.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 DrPlanSummary build()
-
copy
public DrPlanSummary.Builder copy(DrPlanSummary model)
-
-