Class BackupPolicyPlanPatch.Builder
java.lang.Object
com.ibm.cloud.is.vpc.v1.model.BackupPolicyPlanPatch.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.build()
Builds a BackupPolicyPlanPatch.clonePolicy
(BackupPolicyPlanClonePolicyPatch clonePolicy) Set the clonePolicy.copyUserTags
(Boolean copyUserTags) Set the copyUserTags.Set the cronSpec.deletionTrigger
(BackupPolicyPlanDeletionTriggerPatch deletionTrigger) Set the deletionTrigger.Set the name.remoteRegionPolicies
(List<BackupPolicyPlanRemoteRegionPolicyPrototype> remoteRegionPolicies) Set the remoteRegionPolicies.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a BackupPolicyPlanPatch.- Returns:
- the new BackupPolicyPlanPatch instance
-
addAttachUserTags
Adds a new element to attachUserTags.- Parameters:
attachUserTags
- the new element to be added- Returns:
- the BackupPolicyPlanPatch builder
-
addRemoteRegionPolicies
public BackupPolicyPlanPatch.Builder addRemoteRegionPolicies(BackupPolicyPlanRemoteRegionPolicyPrototype remoteRegionPolicies) Adds a new element to remoteRegionPolicies.- Parameters:
remoteRegionPolicies
- the new element to be added- Returns:
- the BackupPolicyPlanPatch builder
-
active
Set the active.- Parameters:
active
- the active- Returns:
- the BackupPolicyPlanPatch builder
-
attachUserTags
Set the attachUserTags. Existing attachUserTags will be replaced.- Parameters:
attachUserTags
- the attachUserTags- Returns:
- the BackupPolicyPlanPatch builder
-
clonePolicy
Set the clonePolicy.- Parameters:
clonePolicy
- the clonePolicy- Returns:
- the BackupPolicyPlanPatch builder
-
copyUserTags
Set the copyUserTags.- Parameters:
copyUserTags
- the copyUserTags- Returns:
- the BackupPolicyPlanPatch builder
-
cronSpec
Set the cronSpec.- Parameters:
cronSpec
- the cronSpec- Returns:
- the BackupPolicyPlanPatch builder
-
deletionTrigger
public BackupPolicyPlanPatch.Builder deletionTrigger(BackupPolicyPlanDeletionTriggerPatch deletionTrigger) Set the deletionTrigger.- Parameters:
deletionTrigger
- the deletionTrigger- Returns:
- the BackupPolicyPlanPatch builder
-
name
Set the name.- Parameters:
name
- the name- Returns:
- the BackupPolicyPlanPatch builder
-
remoteRegionPolicies
public BackupPolicyPlanPatch.Builder remoteRegionPolicies(List<BackupPolicyPlanRemoteRegionPolicyPrototype> remoteRegionPolicies) Set the remoteRegionPolicies. Existing remoteRegionPolicies will be replaced.- Parameters:
remoteRegionPolicies
- the remoteRegionPolicies- Returns:
- the BackupPolicyPlanPatch builder
-