Interface SnapshotPolicy.Builder

  • Method Details

    • resourceARN

      SnapshotPolicy.Builder resourceARN(String resourceARN)
      Sets the value of the ResourceARN property for this object.
      Parameters:
      resourceARN - The new value for the ResourceARN property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • snapshotPolicyId

      SnapshotPolicy.Builder snapshotPolicyId(String snapshotPolicyId)

      The system-generated, unique ID of the snapshot policy.

      Parameters:
      snapshotPolicyId - The system-generated, unique ID of the snapshot policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fileSystemId

      SnapshotPolicy.Builder fileSystemId(String fileSystemId)

      The globally unique ID of the file system, assigned by Amazon FSx.

      Parameters:
      fileSystemId - The globally unique ID of the file system, assigned by Amazon FSx.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • storageVirtualMachineId

      SnapshotPolicy.Builder storageVirtualMachineId(String storageVirtualMachineId)

      The ID of the snapshot policy's storage virtual machine, if you created the snapshot policy on a storage virtual machine.

      Parameters:
      storageVirtualMachineId - The ID of the snapshot policy's storage virtual machine, if you created the snapshot policy on a storage virtual machine.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the snapshot policy.

      Parameters:
      name - The name of the snapshot policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • enabled

      SnapshotPolicy.Builder enabled(Boolean enabled)

      Specifies whether the snapshot policy is enabled. This value defaults to true.

      Parameters:
      enabled - Specifies whether the snapshot policy is enabled. This value defaults to true.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • schedules

      The schedules on which ONTAP creates snapshots for the snapshot policy.

      Parameters:
      schedules - The schedules on which ONTAP creates snapshots for the snapshot policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • schedules

      The schedules on which ONTAP creates snapshots for the snapshot policy.

      Parameters:
      schedules - The schedules on which ONTAP creates snapshots for the snapshot policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • schedules

      The schedules on which ONTAP creates snapshots for the snapshot policy.

      This is a convenience method that creates an instance of the SnapshotPolicySchedule.Builder avoiding the need to create one manually via SnapshotPolicySchedule.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to schedules(List<SnapshotPolicySchedule>).

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

      The scope of the snapshot policy can be one of the following:

      • FILESYSTEM – The snapshot policy was created on the file system.

      • SVM – The snapshot policy was created on an SVM.

      Parameters:
      scope - The scope of the snapshot policy can be one of the following:

      • FILESYSTEM – The snapshot policy was created on the file system.

      • SVM – The snapshot policy was created on an SVM.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • scope

      The scope of the snapshot policy can be one of the following:

      • FILESYSTEM – The snapshot policy was created on the file system.

      • SVM – The snapshot policy was created on an SVM.

      Parameters:
      scope - The scope of the snapshot policy can be one of the following:

      • FILESYSTEM – The snapshot policy was created on the file system.

      • SVM – The snapshot policy was created on an SVM.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lifecycle

      SnapshotPolicy.Builder lifecycle(String lifecycle)

      The lifecycle status of the snapshot policy can be one of the following:

      • CREATED – The snapshot policy is fully available for use.

      • CREATING – Amazon FSx is creating the snapshot policy.

      • DELETING – Amazon FSx is deleting the snapshot policy.

      • FAILED – Amazon FSx was unable to create the snapshot policy.

      Parameters:
      lifecycle - The lifecycle status of the snapshot policy can be one of the following:

      • CREATED – The snapshot policy is fully available for use.

      • CREATING – Amazon FSx is creating the snapshot policy.

      • DELETING – Amazon FSx is deleting the snapshot policy.

      • FAILED – Amazon FSx was unable to create the snapshot policy.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lifecycle

      The lifecycle status of the snapshot policy can be one of the following:

      • CREATED – The snapshot policy is fully available for use.

      • CREATING – Amazon FSx is creating the snapshot policy.

      • DELETING – Amazon FSx is deleting the snapshot policy.

      • FAILED – Amazon FSx was unable to create the snapshot policy.

      Parameters:
      lifecycle - The lifecycle status of the snapshot policy can be one of the following:

      • CREATED – The snapshot policy is fully available for use.

      • CREATING – Amazon FSx is creating the snapshot policy.

      • DELETING – Amazon FSx is deleting the snapshot policy.

      • FAILED – Amazon FSx was unable to create the snapshot policy.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • uuid

      The snapshot policy's universally unique identifier (UUID).

      Parameters:
      uuid - The snapshot policy's universally unique identifier (UUID).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lifecycleTransitionReason

      SnapshotPolicy.Builder lifecycleTransitionReason(LifecycleTransitionReason lifecycleTransitionReason)

      The reason why the snapshot policy lifecycle status changed.

      Parameters:
      lifecycleTransitionReason - The reason why the snapshot policy lifecycle status changed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lifecycleTransitionReason

      default SnapshotPolicy.Builder lifecycleTransitionReason(Consumer<LifecycleTransitionReason.Builder> lifecycleTransitionReason)

      The reason why the snapshot policy lifecycle status changed.

      This is a convenience method that creates an instance of the LifecycleTransitionReason.Builder avoiding the need to create one manually via LifecycleTransitionReason.builder().

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

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

      Sets the value of the Tags property for this object.
      Parameters:
      tags - The new value for the Tags property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      SnapshotPolicy.Builder tags(Tag... tags)
      Sets the value of the Tags property for this object.
      Parameters:
      tags - The new value for the Tags property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Sets the value of the Tags property for this object. This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

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