Interface SnapshotPolicySchedule.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SnapshotPolicySchedule.Builder,,SnapshotPolicySchedule> SdkBuilder<SnapshotPolicySchedule.Builder,,SnapshotPolicySchedule> SdkPojo
- Enclosing class:
SnapshotPolicySchedule
-
Method Summary
Modifier and TypeMethodDescriptionThe number of snapshots to retain for the schedule.The name of the ONTAP schedule that determines when snapshots are created.The prefix for the schedule to use when creating snapshots.default SnapshotPolicySchedule.BuilderretentionPeriod(Consumer<SnapshotPolicyRetentionPeriod.Builder> retentionPeriod) The length of time that the snapshots that the schedule creates are locked.retentionPeriod(SnapshotPolicyRetentionPeriod retentionPeriod) The length of time that the snapshots that the schedule creates are locked.snapmirrorLabel(String snapmirrorLabel) The SnapMirror label to assign to the snapshots that the schedule creates.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
name
The name of the ONTAP schedule that determines when snapshots are created.
- Parameters:
name- The name of the ONTAP schedule that determines when snapshots are created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
count
The number of snapshots to retain for the schedule.
- Parameters:
count- The number of snapshots to retain for the schedule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
prefix
The prefix for the schedule to use when creating snapshots.
- Parameters:
prefix- The prefix for the schedule to use when creating snapshots.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapmirrorLabel
The SnapMirror label to assign to the snapshots that the schedule creates. SnapMirror policies use labels to select which snapshots to replicate to a destination volume.
- Parameters:
snapmirrorLabel- The SnapMirror label to assign to the snapshots that the schedule creates. SnapMirror policies use labels to select which snapshots to replicate to a destination volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retentionPeriod
The length of time that the snapshots that the schedule creates are locked. This setting applies only to volumes that have snapshot locking enabled.
- Parameters:
retentionPeriod- The length of time that the snapshots that the schedule creates are locked. This setting applies only to volumes that have snapshot locking enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retentionPeriod
default SnapshotPolicySchedule.Builder retentionPeriod(Consumer<SnapshotPolicyRetentionPeriod.Builder> retentionPeriod) The length of time that the snapshots that the schedule creates are locked. This setting applies only to volumes that have snapshot locking enabled.
This is a convenience method that creates an instance of theSnapshotPolicyRetentionPeriod.Builderavoiding the need to create one manually viaSnapshotPolicyRetentionPeriod.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toretentionPeriod(SnapshotPolicyRetentionPeriod).- Parameters:
retentionPeriod- a consumer that will call methods onSnapshotPolicyRetentionPeriod.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-