Interface SnapmirrorRelationship.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SnapmirrorRelationship.Builder,,SnapmirrorRelationship> SdkBuilder<SnapmirrorRelationship.Builder,,SnapmirrorRelationship> SdkPojo
- Enclosing class:
SnapmirrorRelationship
-
Method Summary
Modifier and TypeMethodDescriptiondefault SnapmirrorRelationship.Builderdestination(Consumer<SnapmirrorDestination.Builder> destination) The destination endpoint of the SnapMirror relationship.destination(SnapmirrorDestination destination) The destination endpoint of the SnapMirror relationship.default SnapmirrorRelationship.BuilderexportedSnapshot(Consumer<SnapmirrorExportedSnapshot.Builder> exportedSnapshot) The latest snapshot that SnapMirror transferred to the destination volume.exportedSnapshot(SnapmirrorExportedSnapshot exportedSnapshot) The latest snapshot that SnapMirror transferred to the destination volume.fileSystemId(String fileSystemId) The globally unique ID of the file system that the destination volume is on, assigned by Amazon FSx.Indicates whether ONTAP reports the SnapMirror relationship as healthy.lagTimeInMinutes(Long lagTimeInMinutes) The time, in minutes, since ONTAP created the latest snapshot that SnapMirror transferred to the destination volume.The lifecycle status of the SnapMirror relationship can be one of the following:lifecycle(SnapmirrorRelationshipLifecycle lifecycle) The lifecycle status of the SnapMirror relationship can be one of the following:default SnapmirrorRelationship.BuilderlifecycleTransitionReason(Consumer<LifecycleTransitionReason.Builder> lifecycleTransitionReason) The reason why the SnapMirror relationship lifecycle status changed.lifecycleTransitionReason(LifecycleTransitionReason lifecycleTransitionReason) The reason why the SnapMirror relationship lifecycle status changed.resourceARN(String resourceARN) Sets the value of the ResourceARN property for this object.default SnapmirrorRelationship.BuildersnapmirrorPolicy(Consumer<SnapmirrorRelationshipPolicy.Builder> snapmirrorPolicy) The SnapMirror policy that the SnapMirror relationship uses.snapmirrorPolicy(SnapmirrorRelationshipPolicy snapmirrorPolicy) The SnapMirror policy that the SnapMirror relationship uses.snapmirrorRelationshipId(String snapmirrorRelationshipId) The system-generated, unique ID of the SnapMirror relationship.default SnapmirrorRelationship.Buildersource(Consumer<SnapmirrorSource.Builder> source) The source endpoint of the SnapMirror relationship.source(SnapmirrorSource source) The source endpoint of the SnapMirror relationship.The state of the SnapMirror relationship in ONTAP can be one of the following:state(SnapmirrorRelationshipState state) The state of the SnapMirror relationship in ONTAP can be one of the following:tags(Collection<Tag> tags) Sets the value of the Tags property for this object.tags(Consumer<Tag.Builder>... tags) Sets the value of the Tags property for this object.Sets the value of the Tags property for this object.throttleInKbps(Long throttleInKbps) The maximum bandwidth, in kilobytes per second (KBps), that SnapMirror uses to transfer data for the relationship.transferSchedule(String transferSchedule) The name of the ONTAP schedule that determines when SnapMirror transfers data for the relationship.default SnapmirrorRelationship.BuildertransferState(Consumer<SnapmirrorTransferState.Builder> transferState) The latest SnapMirror transfer for the relationship.transferState(SnapmirrorTransferState transferState) The latest SnapMirror transfer for the relationship.unhealthyReason(String unhealthyReason) The reason that ONTAP reports for why the SnapMirror relationship is unhealthy, ifHealthyisfalse.The SnapMirror relationship's universally unique identifier (UUID).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
-
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
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
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
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 theLifecycleTransitionReason.Builderavoiding the need to create one manually viaLifecycleTransitionReason.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolifecycleTransitionReason(LifecycleTransitionReason).- Parameters:
lifecycleTransitionReason- a consumer that will call methods onLifecycleTransitionReason.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 theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.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 theSnapmirrorSource.Builderavoiding the need to create one manually viaSnapmirrorSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosource(SnapmirrorSource).- Parameters:
source- a consumer that will call methods onSnapmirrorSource.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
default SnapmirrorRelationship.Builder destination(Consumer<SnapmirrorDestination.Builder> destination) The destination endpoint of the SnapMirror relationship.
This is a convenience method that creates an instance of theSnapmirrorDestination.Builderavoiding the need to create one manually viaSnapmirrorDestination.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todestination(SnapmirrorDestination).- Parameters:
destination- a consumer that will call methods onSnapmirrorDestination.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
default SnapmirrorRelationship.Builder snapmirrorPolicy(Consumer<SnapmirrorRelationshipPolicy.Builder> snapmirrorPolicy) The SnapMirror policy that the SnapMirror relationship uses.
This is a convenience method that creates an instance of theSnapmirrorRelationshipPolicy.Builderavoiding the need to create one manually viaSnapmirrorRelationshipPolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosnapmirrorPolicy(SnapmirrorRelationshipPolicy).- Parameters:
snapmirrorPolicy- a consumer that will call methods onSnapmirrorRelationshipPolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
The maximum bandwidth, in kilobytes per second (KBps), that SnapMirror uses to transfer data for the relationship. A value of
0means 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 of0means 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
The reason that ONTAP reports for why the SnapMirror relationship is unhealthy, if
Healthyisfalse.- Parameters:
unhealthyReason- The reason that ONTAP reports for why the SnapMirror relationship is unhealthy, ifHealthyisfalse.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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 theSnapmirrorExportedSnapshot.Builderavoiding the need to create one manually viaSnapmirrorExportedSnapshot.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexportedSnapshot(SnapmirrorExportedSnapshot).- Parameters:
exportedSnapshot- a consumer that will call methods onSnapmirrorExportedSnapshot.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
default SnapmirrorRelationship.Builder transferState(Consumer<SnapmirrorTransferState.Builder> 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 theSnapmirrorTransferState.Builderavoiding the need to create one manually viaSnapmirrorTransferState.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totransferState(SnapmirrorTransferState).- Parameters:
transferState- a consumer that will call methods onSnapmirrorTransferState.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.
-