Class CreateBackupPolicyPlanOptions.Builder
java.lang.Object
com.ibm.cloud.is.vpc.v1.model.CreateBackupPolicyPlanOptions.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet the active.addAttachUserTags
(String attachUserTags) Adds a new element to attachUserTags.addRemoteRegionPolicies
(BackupPolicyPlanRemoteRegionPolicyPrototype remoteRegionPolicies) Adds a new element to remoteRegionPolicies.attachUserTags
(List<String> attachUserTags) Set the attachUserTags.backupPolicyId
(String backupPolicyId) Set the backupPolicyId.build()
Builds a CreateBackupPolicyPlanOptions.clonePolicy
(BackupPolicyPlanClonePolicyPrototype clonePolicy) Set the clonePolicy.copyUserTags
(Boolean copyUserTags) Set the copyUserTags.Set the cronSpec.deletionTrigger
(BackupPolicyPlanDeletionTriggerPrototype deletionTrigger) Set the deletionTrigger.Set the name.remoteRegionPolicies
(List<BackupPolicyPlanRemoteRegionPolicyPrototype> remoteRegionPolicies) Set the remoteRegionPolicies.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
-
-
Method Details
-
build
Builds a CreateBackupPolicyPlanOptions.- Returns:
- the new CreateBackupPolicyPlanOptions instance
-
addAttachUserTags
Adds a new element to attachUserTags.- Parameters:
attachUserTags
- the new element to be added- Returns:
- the CreateBackupPolicyPlanOptions builder
-
addRemoteRegionPolicies
public CreateBackupPolicyPlanOptions.Builder addRemoteRegionPolicies(BackupPolicyPlanRemoteRegionPolicyPrototype remoteRegionPolicies) Adds a new element to remoteRegionPolicies.- Parameters:
remoteRegionPolicies
- the new element to be added- Returns:
- the CreateBackupPolicyPlanOptions builder
-
backupPolicyId
Set the backupPolicyId.- Parameters:
backupPolicyId
- the backupPolicyId- Returns:
- the CreateBackupPolicyPlanOptions builder
-
cronSpec
Set the cronSpec.- Parameters:
cronSpec
- the cronSpec- Returns:
- the CreateBackupPolicyPlanOptions builder
-
active
Set the active.- Parameters:
active
- the active- Returns:
- the CreateBackupPolicyPlanOptions builder
-
attachUserTags
Set the attachUserTags. Existing attachUserTags will be replaced.- Parameters:
attachUserTags
- the attachUserTags- Returns:
- the CreateBackupPolicyPlanOptions builder
-
clonePolicy
public CreateBackupPolicyPlanOptions.Builder clonePolicy(BackupPolicyPlanClonePolicyPrototype clonePolicy) Set the clonePolicy.- Parameters:
clonePolicy
- the clonePolicy- Returns:
- the CreateBackupPolicyPlanOptions builder
-
copyUserTags
Set the copyUserTags.- Parameters:
copyUserTags
- the copyUserTags- Returns:
- the CreateBackupPolicyPlanOptions builder
-
deletionTrigger
public CreateBackupPolicyPlanOptions.Builder deletionTrigger(BackupPolicyPlanDeletionTriggerPrototype deletionTrigger) Set the deletionTrigger.- Parameters:
deletionTrigger
- the deletionTrigger- Returns:
- the CreateBackupPolicyPlanOptions builder
-
name
Set the name.- Parameters:
name
- the name- Returns:
- the CreateBackupPolicyPlanOptions builder
-
remoteRegionPolicies
public CreateBackupPolicyPlanOptions.Builder remoteRegionPolicies(List<BackupPolicyPlanRemoteRegionPolicyPrototype> remoteRegionPolicies) Set the remoteRegionPolicies. Existing remoteRegionPolicies will be replaced.- Parameters:
remoteRegionPolicies
- the remoteRegionPolicies- Returns:
- the CreateBackupPolicyPlanOptions builder
-