Class DrPlan.Builder
- java.lang.Object
- 
- com.oracle.bmc.disasterrecovery.model.DrPlan.Builder
 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description DrPlanbuild()DrPlan.BuildercompartmentId(String compartmentId)The OCID of the compartment containing the DR plan.DrPlan.Buildercopy(DrPlan model)DrPlan.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.DrPlan.BuilderdisplayName(String displayName)The display name of the DR plan.DrPlan.BuilderdrProtectionGroupId(String drProtectionGroupId)The OCID of the DR protection group to which this DR plan belongs.DrPlan.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.DrPlan.Builderid(String id)The OCID of the DR plan.DrPlan.BuilderlifeCycleDetails(String lifeCycleDetails)A message describing the DR plan’s current state in more detail.DrPlan.BuilderlifecycleState(DrPlanLifecycleState lifecycleState)The current state of the DR plan.DrPlan.BuilderlifecycleSubState(DrPlanLifecycleSubState lifecycleSubState)The current state of the DR plan.DrPlan.BuilderpeerDrProtectionGroupId(String peerDrProtectionGroupId)The OCID of the peer DR protection group associated with this plan’s DR protection group.DrPlan.BuilderpeerRegion(String peerRegion)The region of the peer DR protection group associated with this plan’s DR protection group.DrPlan.BuilderplanGroups(List<DrPlanGroup> planGroups)The list of groups in this DR plan.DrPlan.BuildersourcePlanId(String sourcePlanId)If this is a cloned DR plan, the OCID of the source DR plan that was used to clone this DR plan.DrPlan.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.DrPlan.BuildertimeCreated(Date timeCreated)The date and time the DR plan was created.DrPlan.BuildertimeUpdated(Date timeUpdated)The date and time the DR plan was updated.DrPlan.Buildertype(DrPlanType type)The type of the DR plan.
 
- 
- 
- 
Method Detail- 
idpublic DrPlan.Builder id(String id) The OCID of the DR plan.Example: ocid1.drplan.oc1..uniqueID - Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic DrPlan.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
 
 - 
compartmentIdpublic DrPlan.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
 
 - 
typepublic DrPlan.Builder type(DrPlanType type) The type of the DR plan.- Parameters:
- type- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic DrPlan.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
 
 - 
timeUpdatedpublic DrPlan.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
 
 - 
drProtectionGroupIdpublic DrPlan.Builder drProtectionGroupId(String drProtectionGroupId) The OCID of the DR protection group to which this DR plan belongs.Example: ocid1.drplan.oc1..uniqueID - Parameters:
- drProtectionGroupId- the value to set
- Returns:
- this builder
 
 - 
peerDrProtectionGroupIdpublic DrPlan.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
 
 - 
peerRegionpublic DrPlan.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
 
 - 
sourcePlanIdpublic DrPlan.Builder sourcePlanId(String sourcePlanId) If this is a cloned DR plan, the OCID of the source DR plan that was used to clone this DR plan.If this DR plan was not cloned, then the value for this will be null. Example: ocid1.drplan.oc1..uniqueID - Parameters:
- sourcePlanId- the value to set
- Returns:
- this builder
 
 - 
planGroupspublic DrPlan.Builder planGroups(List<DrPlanGroup> planGroups) The list of groups in this DR plan.- Parameters:
- planGroups- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic DrPlan.Builder lifecycleState(DrPlanLifecycleState lifecycleState) The current state of the DR plan.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
lifecycleSubStatepublic DrPlan.Builder lifecycleSubState(DrPlanLifecycleSubState lifecycleSubState) The current state of the DR plan.- Parameters:
- lifecycleSubState- the value to set
- Returns:
- this builder
 
 - 
lifeCycleDetailspublic DrPlan.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
 
 - 
freeformTagspublic DrPlan.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
 
 - 
definedTagspublic DrPlan.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
 
 - 
systemTagspublic DrPlan.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
 
 - 
buildpublic DrPlan build() 
 - 
copypublic DrPlan.Builder copy(DrPlan model) 
 
- 
 
-