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 VolumeBackupPolicybuild()VolumeBackupPolicy.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the volume backup.VolumeBackupPolicy.Buildercopy(VolumeBackupPolicy model)VolumeBackupPolicy.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.VolumeBackupPolicy.BuilderdestinationRegion(String destinationRegion)The paired destination region for copying scheduled backups to.VolumeBackupPolicy.BuilderdisplayName(String displayName)A user-friendly name.VolumeBackupPolicy.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.VolumeBackupPolicy.Builderid(String id)The OCID of the volume backup policy.VolumeBackupPolicy.Builderschedules(List<VolumeBackupSchedule> schedules)The collection of schedules that this policy will apply.VolumeBackupPolicy.BuildertimeCreated(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)
-
-