Interface SnapmirrorPolicy.Builder

  • Method Details

    • resourceARN

      SnapmirrorPolicy.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.
    • snapmirrorPolicyId

      SnapmirrorPolicy.Builder snapmirrorPolicyId(String snapmirrorPolicyId)

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

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

      SnapmirrorPolicy.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

      SnapmirrorPolicy.Builder storageVirtualMachineId(String storageVirtualMachineId)

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

      Parameters:
      storageVirtualMachineId - The ID of the SnapMirror policy's storage virtual machine, if you created the SnapMirror 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 SnapMirror policy.

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

      SnapmirrorPolicy.Builder snapshotCopyMode(String snapshotCopyMode)

      The snapshot copy mode of the SnapMirror policy, which determines which snapshots SnapMirror transfers to the destination volume.

      Parameters:
      snapshotCopyMode - The snapshot copy mode of the SnapMirror policy, which determines which snapshots SnapMirror transfers to the destination volume.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • snapshotCopyMode

      SnapmirrorPolicy.Builder snapshotCopyMode(SnapmirrorPolicySnapshotCopyMode snapshotCopyMode)

      The snapshot copy mode of the SnapMirror policy, which determines which snapshots SnapMirror transfers to the destination volume.

      Parameters:
      snapshotCopyMode - The snapshot copy mode of the SnapMirror policy, which determines which snapshots SnapMirror transfers to the destination volume.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • retentionRules

      The rules that determine which snapshots SnapMirror retains on the destination volume.

      Parameters:
      retentionRules - The rules that determine which snapshots SnapMirror retains on the destination volume.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • retentionRules

      SnapmirrorPolicy.Builder retentionRules(SnapmirrorPolicyRetentionRule... retentionRules)

      The rules that determine which snapshots SnapMirror retains on the destination volume.

      Parameters:
      retentionRules - The rules that determine which snapshots SnapMirror retains on the destination volume.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • retentionRules

      The rules that determine which snapshots SnapMirror retains on the destination volume.

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

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

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

      SnapmirrorPolicy.Builder transferSchedule(String transferSchedule)

      The name of the ONTAP schedule that determines when SnapMirror transfers data.

      Parameters:
      transferSchedule - The name of the ONTAP schedule that determines when SnapMirror transfers data.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • networkCompressionEnabled

      SnapmirrorPolicy.Builder networkCompressionEnabled(Boolean networkCompressionEnabled)

      Specifies whether SnapMirror compresses data when it transfers the data over the network. This value defaults to false.

      Parameters:
      networkCompressionEnabled - Specifies whether SnapMirror compresses data when it transfers the data over the network. This value defaults to false.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • throttleInKbps

      SnapmirrorPolicy.Builder throttleInKbps(Long throttleInKbps)

      The maximum bandwidth, in kilobytes per second (KBps), that SnapMirror uses to transfer data. A value of 0 means that the bandwidth is unlimited.

      Parameters:
      throttleInKbps - The maximum bandwidth, in kilobytes per second (KBps), that SnapMirror uses to transfer data. A value of 0 means that the bandwidth is unlimited.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scope

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

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

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

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

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

      • SVM – The SnapMirror 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 SnapMirror policy can be one of the following:

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

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

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

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

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

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

      SnapmirrorPolicy.Builder lifecycle(String lifecycle)

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

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

      • CREATING – Amazon FSx is creating the SnapMirror policy.

      • DELETING – Amazon FSx is deleting the SnapMirror policy.

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

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

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

      • CREATING – Amazon FSx is creating the SnapMirror policy.

      • DELETING – Amazon FSx is deleting the SnapMirror policy.

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

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

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

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

      • CREATING – Amazon FSx is creating the SnapMirror policy.

      • DELETING – Amazon FSx is deleting the SnapMirror policy.

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

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

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

      • CREATING – Amazon FSx is creating the SnapMirror policy.

      • DELETING – Amazon FSx is deleting the SnapMirror policy.

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

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

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

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

      SnapmirrorPolicy.Builder lifecycleTransitionReason(LifecycleTransitionReason lifecycleTransitionReason)

      The reason why the SnapMirror policy lifecycle status changed.

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

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

      The reason why the SnapMirror 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

      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: