Interface SnapmirrorPolicy.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SnapmirrorPolicy.Builder,,SnapmirrorPolicy> SdkBuilder<SnapmirrorPolicy.Builder,,SnapmirrorPolicy> SdkPojo
- Enclosing class:
SnapmirrorPolicy
-
Method Summary
Modifier and TypeMethodDescriptionfileSystemId(String fileSystemId) The globally unique ID of the file system, assigned by Amazon FSx.The lifecycle status of the SnapMirror policy can be one of the following:lifecycle(SnapmirrorPolicyLifecycle lifecycle) The lifecycle status of the SnapMirror policy can be one of the following:default SnapmirrorPolicy.BuilderlifecycleTransitionReason(Consumer<LifecycleTransitionReason.Builder> lifecycleTransitionReason) The reason why the SnapMirror policy lifecycle status changed.lifecycleTransitionReason(LifecycleTransitionReason lifecycleTransitionReason) The reason why the SnapMirror policy lifecycle status changed.The name of the SnapMirror policy.networkCompressionEnabled(Boolean networkCompressionEnabled) Specifies whether SnapMirror compresses data when it transfers the data over the network.resourceARN(String resourceARN) Sets the value of the ResourceARN property for this object.retentionRules(Collection<SnapmirrorPolicyRetentionRule> retentionRules) The rules that determine which snapshots SnapMirror retains on the destination volume.retentionRules(Consumer<SnapmirrorPolicyRetentionRule.Builder>... retentionRules) The rules that determine which snapshots SnapMirror retains on the destination volume.retentionRules(SnapmirrorPolicyRetentionRule... retentionRules) The rules that determine which snapshots SnapMirror retains on the destination volume.The scope of the SnapMirror policy can be one of the following:scope(SnapmirrorPolicyScope scope) The scope of the SnapMirror policy can be one of the following:snapmirrorPolicyId(String snapmirrorPolicyId) The system-generated, unique ID of the SnapMirror policy.snapshotCopyMode(String snapshotCopyMode) The snapshot copy mode of the SnapMirror policy, which determines which snapshots SnapMirror transfers to the destination volume.snapshotCopyMode(SnapmirrorPolicySnapshotCopyMode snapshotCopyMode) The snapshot copy mode of the SnapMirror policy, which determines which snapshots SnapMirror transfers to the destination volume.storageVirtualMachineId(String storageVirtualMachineId) The ID of the SnapMirror policy's storage virtual machine, if you created the SnapMirror policy on a storage virtual machine.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.transferSchedule(String transferSchedule) The name of the ONTAP schedule that determines when SnapMirror transfers data.The SnapMirror policy'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.
-
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
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
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
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
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
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(Consumer<SnapmirrorPolicyRetentionRule.Builder>... retentionRules) The rules that determine which snapshots SnapMirror retains on the destination volume.
This is a convenience method that creates an instance of theSnapmirrorPolicyRetentionRule.Builderavoiding the need to create one manually viaSnapmirrorPolicyRetentionRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toretentionRules(List<SnapmirrorPolicyRetentionRule>).- Parameters:
retentionRules- a consumer that will call methods onSnapmirrorPolicyRetentionRule.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.
- 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
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 tofalse.- 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. A value of
0means that the bandwidth is unlimited.- Parameters:
throttleInKbps- The maximum bandwidth, in kilobytes per second (KBps), that SnapMirror uses to transfer data. A value of0means 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
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 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:
-