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