Interface SnapshotPolicySchedule.Builder

  • 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

      SnapshotPolicySchedule.Builder snapmirrorLabel(String 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

      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 the SnapshotPolicyRetentionPeriod.Builder avoiding the need to create one manually via SnapshotPolicyRetentionPeriod.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to retentionPeriod(SnapshotPolicyRetentionPeriod).

      Parameters:
      retentionPeriod - a consumer that will call methods on SnapshotPolicyRetentionPeriod.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: