Package com.oracle.bmc.filestorage.model
Class Replication.Builder
- java.lang.Object
-
- com.oracle.bmc.filestorage.model.Replication.Builder
-
- Enclosing class:
- Replication
public static class Replication.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Replication.Builder
availabilityDomain(String availabilityDomain)
The availability domain that contains the replication.Replication
build()
Replication.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the replication.Replication.Builder
copy(Replication model)
Replication.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Replication.Builder
deltaProgress(Long deltaProgress)
Percentage progress of the current replication cycle.Replication.Builder
deltaStatus(Replication.DeltaStatus deltaStatus)
The current state of the snapshot during replication operations.Replication.Builder
displayName(String displayName)
A user-friendly name.Replication.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Replication.Builder
id(String id)
The OCID of the replication.Replication.Builder
lastSnapshotId(String lastSnapshotId)
The OCID of the last snapshot that has been replicated completely.Replication.Builder
lifecycleDetails(String lifecycleDetails)
Additional information about the current ‘lifecycleState’.Replication.Builder
lifecycleState(Replication.LifecycleState lifecycleState)
The current lifecycle state of the replication.Replication.Builder
locks(List<ResourceLock> locks)
Locks associated with this resource.Replication.Builder
recoveryPointTime(Date recoveryPointTime)
ThesnapshotTime
of the most recent recoverable replication snapshot in RFC 3339 timestamp format.Replication.Builder
replicationInterval(Long replicationInterval)
Duration in minutes between replication snapshots.Replication.Builder
replicationTargetId(String replicationTargetId)
The OCID of theReplicationTarget
.Replication.Builder
sourceId(String sourceId)
The OCID of the source file system.Replication.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Replication.Builder
targetId(String targetId)
The OCID of the target file system.Replication.Builder
timeCreated(Date timeCreated)
The date and time the replication was created in RFC 3339 timestamp format.
-
-
-
Method Detail
-
compartmentId
public Replication.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the replication.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
availabilityDomain
public Replication.Builder availabilityDomain(String availabilityDomain)
The availability domain that contains the replication.May be unset as a blank or NULL value. Example: Uocm:PHX-AD-2
- Parameters:
availabilityDomain
- the value to set- Returns:
- this builder
-
id
public Replication.Builder id(String id)
The OCID of the replication.- Parameters:
id
- the value to set- Returns:
- this builder
-
lifecycleState
public Replication.Builder lifecycleState(Replication.LifecycleState lifecycleState)
The current lifecycle state of the replication.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
displayName
public Replication.Builder displayName(String displayName)
A user-friendly name.It does not have to be unique, and it is changeable. Avoid entering confidential information.
Example: My replication
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
timeCreated
public Replication.Builder timeCreated(Date timeCreated)
The date and time the replication was created in RFC 3339 timestamp format.Example: 2021-01-04T20:01:29.100Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
sourceId
public Replication.Builder sourceId(String sourceId)
The OCID of the source file system.- Parameters:
sourceId
- the value to set- Returns:
- this builder
-
targetId
public Replication.Builder targetId(String targetId)
The OCID of the target file system.- Parameters:
targetId
- the value to set- Returns:
- this builder
-
replicationTargetId
public Replication.Builder replicationTargetId(String replicationTargetId)
The OCID of theReplicationTarget
.- Parameters:
replicationTargetId
- the value to set- Returns:
- this builder
-
replicationInterval
public Replication.Builder replicationInterval(Long replicationInterval)
Duration in minutes between replication snapshots.- Parameters:
replicationInterval
- the value to set- Returns:
- this builder
-
lastSnapshotId
public Replication.Builder lastSnapshotId(String lastSnapshotId)
The OCID of the last snapshot that has been replicated completely.Empty if the copy of the initial snapshot is not complete.
- Parameters:
lastSnapshotId
- the value to set- Returns:
- this builder
-
recoveryPointTime
public Replication.Builder recoveryPointTime(Date recoveryPointTime)
ThesnapshotTime
of the most recent recoverable replication snapshot in RFC 3339 timestamp format.Example: 2021-04-04T20:01:29.100Z
- Parameters:
recoveryPointTime
- the value to set- Returns:
- this builder
-
deltaStatus
public Replication.Builder deltaStatus(Replication.DeltaStatus deltaStatus)
The current state of the snapshot during replication operations.- Parameters:
deltaStatus
- the value to set- Returns:
- this builder
-
lifecycleDetails
public Replication.Builder lifecycleDetails(String lifecycleDetails)
Additional information about the current ‘lifecycleState’.- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
deltaProgress
public Replication.Builder deltaProgress(Long deltaProgress)
Percentage progress of the current replication cycle.- Parameters:
deltaProgress
- the value to set- Returns:
- this builder
-
locks
public Replication.Builder locks(List<ResourceLock> locks)
Locks associated with this resource.- Parameters:
locks
- the value to set- Returns:
- this builder
-
freeformTags
public Replication.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {“Department”: “Finance”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public Replication.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
systemTags
public Replication.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.System tags are applied to resources by internal OCI services.
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public Replication build()
-
copy
public Replication.Builder copy(Replication model)
-
-