Class DrPlan.Builder

  • Enclosing class:
    DrPlan

    public static class DrPlan.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public 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
      • displayName

        public 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
      • compartmentId

        public 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
      • type

        public DrPlan.Builder type​(DrPlanType type)
        The type of the DR plan.
        Parameters:
        type - the value to set
        Returns:
        this builder
      • timeCreated

        public 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
      • timeUpdated

        public 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
      • drProtectionGroupId

        public 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
      • peerDrProtectionGroupId

        public 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
      • peerRegion

        public 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
      • sourcePlanId

        public 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
      • planGroups

        public DrPlan.Builder planGroups​(List<DrPlanGroup> planGroups)
        The list of groups in this DR plan.
        Parameters:
        planGroups - the value to set
        Returns:
        this builder
      • lifecycleState

        public DrPlan.Builder lifecycleState​(DrPlanLifecycleState lifecycleState)
        The current state of the DR plan.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • lifecycleSubState

        public DrPlan.Builder lifecycleSubState​(DrPlanLifecycleSubState lifecycleSubState)
        The current state of the DR plan.
        Parameters:
        lifecycleSubState - the value to set
        Returns:
        this builder
      • lifeCycleDetails

        public 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
      • freeformTags

        public 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
      • definedTags

        public 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
      • systemTags

        public 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
      • build

        public DrPlan build()