Package com.ibm.cloud.is.vpc.v1.model
Class BackupPolicyPlanPatch
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.BackupPolicyPlanPatch
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class BackupPolicyPlanPatch extends com.ibm.cloud.sdk.core.service.model.GenericModel
BackupPolicyPlanPatch.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BackupPolicyPlanPatch.Builder
Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
active()
Gets the active.Map<String,Object>
asPatch()
Construct a JSON merge-patch from the BackupPolicyPlanPatch.List<String>
attachUserTags()
Gets the attachUserTags.BackupPolicyPlanClonePolicyPatch
clonePolicy()
Gets the clonePolicy.Boolean
copyUserTags()
Gets the copyUserTags.String
cronSpec()
Gets the cronSpec.BackupPolicyPlanDeletionTriggerPatch
deletionTrigger()
Gets the deletionTrigger.String
name()
Gets the name.BackupPolicyPlanPatch.Builder
newBuilder()
New builder.List<BackupPolicyPlanRemoteRegionPolicyPrototype>
remoteRegionPolicies()
Gets the remoteRegionPolicies.
-
-
-
Method Detail
-
newBuilder
public BackupPolicyPlanPatch.Builder newBuilder()
New builder.- Returns:
- a BackupPolicyPlanPatch builder
-
active
public Boolean active()
Gets the active. Indicates whether the plan is active.- Returns:
- the active
-
attachUserTags
public List<String> attachUserTags()
Gets the attachUserTags. The user tags to attach to backups (snapshots) created by this plan. Updating this value does not change the user tags for backups that have already been created by this plan.- Returns:
- the attachUserTags
-
clonePolicy
public BackupPolicyPlanClonePolicyPatch clonePolicy()
Gets the clonePolicy.- Returns:
- the clonePolicy
-
copyUserTags
public Boolean copyUserTags()
Gets the copyUserTags. Indicates whether to copy the source's user tags to the created backups (snapshots).- Returns:
- the copyUserTags
-
cronSpec
public String cronSpec()
Gets the cronSpec. The cron specification for the backup schedule. The backup policy jobs (which create and delete backups for this plan) will not start until this time, and may start for up to 90 minutes after this time. All backup schedules for plans in the same policy must be at least an hour apart.- Returns:
- the cronSpec
-
deletionTrigger
public BackupPolicyPlanDeletionTriggerPatch deletionTrigger()
Gets the deletionTrigger.- Returns:
- the deletionTrigger
-
name
public String name()
Gets the name. The name for this backup policy plan. The name must not be used by another plan for the backup policy.- Returns:
- the name
-
remoteRegionPolicies
public List<BackupPolicyPlanRemoteRegionPolicyPrototype> remoteRegionPolicies()
Gets the remoteRegionPolicies. The policies for additional backups in remote regions (replacing any existing policies).- Returns:
- the remoteRegionPolicies
-
asPatch
public Map<String,Object> asPatch()
Construct a JSON merge-patch from the BackupPolicyPlanPatch. Note that properties of the BackupPolicyPlanPatch with null values are not represented in the constructed JSON merge-patch object, but can be explicitly set afterward to signify a property delete.- Returns:
- a JSON merge-patch for the BackupPolicyPlanPatch
-
-