Interface SnapmirrorRelationship.Builder

  • Method Details

    • resourceARN

      SnapmirrorRelationship.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.
    • snapmirrorRelationshipId

      SnapmirrorRelationship.Builder snapmirrorRelationshipId(String snapmirrorRelationshipId)

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

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

      SnapmirrorRelationship.Builder fileSystemId(String fileSystemId)

      The globally unique ID of the file system that the destination volume is on, assigned by Amazon FSx.

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

      SnapmirrorRelationship.Builder lifecycle(String lifecycle)

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

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

      • CREATING – Amazon FSx is creating the SnapMirror relationship.

      • DELETING – Amazon FSx is deleting the SnapMirror relationship.

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

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

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

      • CREATING – Amazon FSx is creating the SnapMirror relationship.

      • DELETING – Amazon FSx is deleting the SnapMirror relationship.

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

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

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

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

      • CREATING – Amazon FSx is creating the SnapMirror relationship.

      • DELETING – Amazon FSx is deleting the SnapMirror relationship.

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

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

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

      • CREATING – Amazon FSx is creating the SnapMirror relationship.

      • DELETING – Amazon FSx is deleting the SnapMirror relationship.

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

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

      SnapmirrorRelationship.Builder lifecycleTransitionReason(LifecycleTransitionReason lifecycleTransitionReason)

      The reason why the SnapMirror relationship lifecycle status changed.

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

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

      The reason why the SnapMirror relationship 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:
    • source

      The source endpoint of the SnapMirror relationship.

      Parameters:
      source - The source endpoint of the SnapMirror relationship.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • source

      The source endpoint of the SnapMirror relationship.

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

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

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

      The destination endpoint of the SnapMirror relationship.

      Parameters:
      destination - The destination endpoint of the SnapMirror relationship.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destination

      The destination endpoint of the SnapMirror relationship.

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

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

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

      The SnapMirror policy that the SnapMirror relationship uses.

      Parameters:
      snapmirrorPolicy - The SnapMirror policy that the SnapMirror relationship uses.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • snapmirrorPolicy

      The SnapMirror policy that the SnapMirror relationship uses.

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

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

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

      SnapmirrorRelationship.Builder transferSchedule(String transferSchedule)

      The name of the ONTAP schedule that determines when SnapMirror transfers data for the relationship. This schedule overrides the transfer schedule of the SnapMirror policy.

      Parameters:
      transferSchedule - The name of the ONTAP schedule that determines when SnapMirror transfers data for the relationship. This schedule overrides the transfer schedule of the SnapMirror policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • throttleInKbps

      SnapmirrorRelationship.Builder throttleInKbps(Long throttleInKbps)

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

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

      The state of the SnapMirror relationship in ONTAP can be one of the following:

      • UNINITIALIZED – SnapMirror hasn't transferred the baseline copy of the source volume to the destination volume.

      • TRANSFERRING – SnapMirror is transferring data to the destination volume.

      • SNAPMIRRORED – SnapMirror transferred the baseline copy, and the destination volume receives updates from the source volume.

      • PAUSED – SnapMirror transfers for the relationship are paused.

      • BROKEN_OFF – The relationship is broken off, and the destination volume is writable. SnapMirror doesn't transfer data to the destination volume.

      Parameters:
      state - The state of the SnapMirror relationship in ONTAP can be one of the following:

      • UNINITIALIZED – SnapMirror hasn't transferred the baseline copy of the source volume to the destination volume.

      • TRANSFERRING – SnapMirror is transferring data to the destination volume.

      • SNAPMIRRORED – SnapMirror transferred the baseline copy, and the destination volume receives updates from the source volume.

      • PAUSED – SnapMirror transfers for the relationship are paused.

      • BROKEN_OFF – The relationship is broken off, and the destination volume is writable. SnapMirror doesn't transfer data to the destination volume.

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

      The state of the SnapMirror relationship in ONTAP can be one of the following:

      • UNINITIALIZED – SnapMirror hasn't transferred the baseline copy of the source volume to the destination volume.

      • TRANSFERRING – SnapMirror is transferring data to the destination volume.

      • SNAPMIRRORED – SnapMirror transferred the baseline copy, and the destination volume receives updates from the source volume.

      • PAUSED – SnapMirror transfers for the relationship are paused.

      • BROKEN_OFF – The relationship is broken off, and the destination volume is writable. SnapMirror doesn't transfer data to the destination volume.

      Parameters:
      state - The state of the SnapMirror relationship in ONTAP can be one of the following:

      • UNINITIALIZED – SnapMirror hasn't transferred the baseline copy of the source volume to the destination volume.

      • TRANSFERRING – SnapMirror is transferring data to the destination volume.

      • SNAPMIRRORED – SnapMirror transferred the baseline copy, and the destination volume receives updates from the source volume.

      • PAUSED – SnapMirror transfers for the relationship are paused.

      • BROKEN_OFF – The relationship is broken off, and the destination volume is writable. SnapMirror doesn't transfer data to the destination volume.

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

      Indicates whether ONTAP reports the SnapMirror relationship as healthy.

      Parameters:
      healthy - Indicates whether ONTAP reports the SnapMirror relationship as healthy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • unhealthyReason

      SnapmirrorRelationship.Builder unhealthyReason(String unhealthyReason)

      The reason that ONTAP reports for why the SnapMirror relationship is unhealthy, if Healthy is false.

      Parameters:
      unhealthyReason - The reason that ONTAP reports for why the SnapMirror relationship is unhealthy, if Healthy is false.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lagTimeInMinutes

      SnapmirrorRelationship.Builder lagTimeInMinutes(Long lagTimeInMinutes)

      The time, in minutes, since ONTAP created the latest snapshot that SnapMirror transferred to the destination volume.

      Parameters:
      lagTimeInMinutes - The time, in minutes, since ONTAP created the latest snapshot that SnapMirror transferred to the destination volume.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • exportedSnapshot

      SnapmirrorRelationship.Builder exportedSnapshot(SnapmirrorExportedSnapshot exportedSnapshot)

      The latest snapshot that SnapMirror transferred to the destination volume.

      Parameters:
      exportedSnapshot - The latest snapshot that SnapMirror transferred to the destination volume.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • exportedSnapshot

      default SnapmirrorRelationship.Builder exportedSnapshot(Consumer<SnapmirrorExportedSnapshot.Builder> exportedSnapshot)

      The latest snapshot that SnapMirror transferred to the destination volume.

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

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

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

      The latest SnapMirror transfer for the relationship. If a transfer is in progress, this is the in-progress transfer. Otherwise, it's the most recently completed transfer.

      Parameters:
      transferState - The latest SnapMirror transfer for the relationship. If a transfer is in progress, this is the in-progress transfer. Otherwise, it's the most recently completed transfer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • transferState

      The latest SnapMirror transfer for the relationship. If a transfer is in progress, this is the in-progress transfer. Otherwise, it's the most recently completed transfer.

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

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

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

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

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