Package com.oracle.bmc.core.model
Class VolumeBackupPolicy.Builder
- java.lang.Object
-
- com.oracle.bmc.core.model.VolumeBackupPolicy.Builder
-
- Enclosing class:
- VolumeBackupPolicy
public static class VolumeBackupPolicy.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeBackupPolicy
build()
VolumeBackupPolicy.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the volume backup.VolumeBackupPolicy.Builder
copy(VolumeBackupPolicy model)
VolumeBackupPolicy.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.VolumeBackupPolicy.Builder
destinationRegion(String destinationRegion)
The paired destination region for copying scheduled backups to.VolumeBackupPolicy.Builder
displayName(String displayName)
A user-friendly name.VolumeBackupPolicy.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.VolumeBackupPolicy.Builder
id(String id)
The OCID of the volume backup policy.VolumeBackupPolicy.Builder
schedules(List<VolumeBackupSchedule> schedules)
The collection of schedules that this policy will apply.VolumeBackupPolicy.Builder
timeCreated(Date timeCreated)
The date and time the volume backup policy was created.
-
-
-
Method Detail
-
displayName
public VolumeBackupPolicy.Builder displayName(String displayName)
A user-friendly name.Does not have to be unique, and it’s changeable. Avoid entering confidential information.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
id
public VolumeBackupPolicy.Builder id(String id)
The OCID of the volume backup policy.- Parameters:
id
- the value to set- Returns:
- this builder
-
schedules
public VolumeBackupPolicy.Builder schedules(List<VolumeBackupSchedule> schedules)
The collection of schedules that this policy will apply.- Parameters:
schedules
- the value to set- Returns:
- this builder
-
destinationRegion
public VolumeBackupPolicy.Builder destinationRegion(String destinationRegion)
The paired destination region for copying scheduled backups to.Example us-ashburn-1. See Region Pairs for details about paired regions.
- Parameters:
destinationRegion
- the value to set- Returns:
- this builder
-
timeCreated
public VolumeBackupPolicy.Builder timeCreated(Date timeCreated)
The date and time the volume backup policy was created.Format defined by RFC3339.
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
compartmentId
public VolumeBackupPolicy.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the volume backup.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
definedTags
public VolumeBackupPolicy.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
-
freeformTags
public VolumeBackupPolicy.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
-
build
public VolumeBackupPolicy build()
-
copy
public VolumeBackupPolicy.Builder copy(VolumeBackupPolicy model)
-
-