Interface CreateSnapmirrorPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateSnapmirrorPolicyRequest.Builder,,CreateSnapmirrorPolicyRequest> FSxRequest.Builder,SdkBuilder<CreateSnapmirrorPolicyRequest.Builder,,CreateSnapmirrorPolicyRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateSnapmirrorPolicyRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientRequestToken(String clientRequestToken) Sets the value of the ClientRequestToken property for this object.fileSystemId(String fileSystemId) Specifies the ID of the Amazon FSx for NetApp ONTAP file system on which to create the SnapMirror policy.Specifies the name of the SnapMirror policy.networkCompressionEnabled(Boolean networkCompressionEnabled) Specifies whether SnapMirror compresses data when it transfers the data over the network.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.retentionRules(Collection<SnapmirrorPolicyRetentionRule> retentionRules) Specifies the rules that determine which snapshots SnapMirror retains on the destination volume, based on their SnapMirror labels.retentionRules(Consumer<SnapmirrorPolicyRetentionRule.Builder>... retentionRules) Specifies the rules that determine which snapshots SnapMirror retains on the destination volume, based on their SnapMirror labels.retentionRules(SnapmirrorPolicyRetentionRule... retentionRules) Specifies the rules that determine which snapshots SnapMirror retains on the destination volume, based on their SnapMirror labels.snapshotCopyMode(String snapshotCopyMode) Specifies which snapshots SnapMirror transfers to the destination volume:snapshotCopyMode(SnapmirrorPolicySnapshotCopyMode snapshotCopyMode) Specifies which snapshots SnapMirror transfers to the destination volume:storageVirtualMachineId(String storageVirtualMachineId) Specifies the ID of the SVM on which to create the SnapMirror policy.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) Specifies the maximum bandwidth, in kilobytes per second (KBps), that SnapMirror uses to transfer data.transferSchedule(String transferSchedule) Specifies the name of the ONTAP schedule that determines when SnapMirror transfers data.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.fsx.model.FSxRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
clientRequestToken
Sets the value of the ClientRequestToken property for this object.- Parameters:
clientRequestToken- The new value for the ClientRequestToken property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fileSystemId
Specifies the ID of the Amazon FSx for NetApp ONTAP file system on which to create the SnapMirror policy. You must specify either a
FileSystemIdor aStorageVirtualMachineId, but not both.- Parameters:
fileSystemId- Specifies the ID of the Amazon FSx for NetApp ONTAP file system on which to create the SnapMirror policy. You must specify either aFileSystemIdor aStorageVirtualMachineId, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageVirtualMachineId
Specifies the ID of the SVM on which to create the SnapMirror policy. You must specify either a
FileSystemIdor aStorageVirtualMachineId, but not both.- Parameters:
storageVirtualMachineId- Specifies the ID of the SVM on which to create the SnapMirror policy. You must specify either aFileSystemIdor aStorageVirtualMachineId, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
Specifies the name of the SnapMirror policy.
- Parameters:
name- Specifies the name of the SnapMirror policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotCopyMode
Specifies which snapshots SnapMirror transfers to the destination volume:
-
COPY_ALL_SOURCE_SNAPSHOTS– SnapMirror copies all snapshots of the source volume to the destination volume on a transfer. You can't specifyRetentionRulesalong with this property. -
COPY_LATEST_SOURCE_SNAPSHOT– SnapMirror copies the latest snapshot of the source volume to the destination volume on a transfer. You can't specifyRetentionRulesalong with this property. -
NO_CREATE_SNAPSHOT_ON_SOURCE– SnapMirror doesn't create a snapshot on the source volume at beginning of an update or resync operation. You must specifyRetentionRulesalong with this property.
If you don't specify a
SnapshotCopyMode, SnapMirror creates a new snapshot of the source volume and copies it, along with any snapshots that matchRetentionRules, to the destination volume on a transfer.RetentionRulesis optional.- Parameters:
snapshotCopyMode- Specifies which snapshots SnapMirror transfers to the destination volume:-
COPY_ALL_SOURCE_SNAPSHOTS– SnapMirror copies all snapshots of the source volume to the destination volume on a transfer. You can't specifyRetentionRulesalong with this property. -
COPY_LATEST_SOURCE_SNAPSHOT– SnapMirror copies the latest snapshot of the source volume to the destination volume on a transfer. You can't specifyRetentionRulesalong with this property. -
NO_CREATE_SNAPSHOT_ON_SOURCE– SnapMirror doesn't create a snapshot on the source volume at beginning of an update or resync operation. You must specifyRetentionRulesalong with this property.
If you don't specify a
SnapshotCopyMode, SnapMirror creates a new snapshot of the source volume and copies it, along with any snapshots that matchRetentionRules, to the destination volume on a transfer.RetentionRulesis optional.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
snapshotCopyMode
CreateSnapmirrorPolicyRequest.Builder snapshotCopyMode(SnapmirrorPolicySnapshotCopyMode snapshotCopyMode) Specifies which snapshots SnapMirror transfers to the destination volume:
-
COPY_ALL_SOURCE_SNAPSHOTS– SnapMirror copies all snapshots of the source volume to the destination volume on a transfer. You can't specifyRetentionRulesalong with this property. -
COPY_LATEST_SOURCE_SNAPSHOT– SnapMirror copies the latest snapshot of the source volume to the destination volume on a transfer. You can't specifyRetentionRulesalong with this property. -
NO_CREATE_SNAPSHOT_ON_SOURCE– SnapMirror doesn't create a snapshot on the source volume at beginning of an update or resync operation. You must specifyRetentionRulesalong with this property.
If you don't specify a
SnapshotCopyMode, SnapMirror creates a new snapshot of the source volume and copies it, along with any snapshots that matchRetentionRules, to the destination volume on a transfer.RetentionRulesis optional.- Parameters:
snapshotCopyMode- Specifies which snapshots SnapMirror transfers to the destination volume:-
COPY_ALL_SOURCE_SNAPSHOTS– SnapMirror copies all snapshots of the source volume to the destination volume on a transfer. You can't specifyRetentionRulesalong with this property. -
COPY_LATEST_SOURCE_SNAPSHOT– SnapMirror copies the latest snapshot of the source volume to the destination volume on a transfer. You can't specifyRetentionRulesalong with this property. -
NO_CREATE_SNAPSHOT_ON_SOURCE– SnapMirror doesn't create a snapshot on the source volume at beginning of an update or resync operation. You must specifyRetentionRulesalong with this property.
If you don't specify a
SnapshotCopyMode, SnapMirror creates a new snapshot of the source volume and copies it, along with any snapshots that matchRetentionRules, to the destination volume on a transfer.RetentionRulesis optional.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
retentionRules
CreateSnapmirrorPolicyRequest.Builder retentionRules(Collection<SnapmirrorPolicyRetentionRule> retentionRules) Specifies the rules that determine which snapshots SnapMirror retains on the destination volume, based on their SnapMirror labels.
- Parameters:
retentionRules- Specifies the rules that determine which snapshots SnapMirror retains on the destination volume, based on their SnapMirror labels.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retentionRules
CreateSnapmirrorPolicyRequest.Builder retentionRules(SnapmirrorPolicyRetentionRule... retentionRules) Specifies the rules that determine which snapshots SnapMirror retains on the destination volume, based on their SnapMirror labels.
- Parameters:
retentionRules- Specifies the rules that determine which snapshots SnapMirror retains on the destination volume, based on their SnapMirror labels.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retentionRules
CreateSnapmirrorPolicyRequest.Builder retentionRules(Consumer<SnapmirrorPolicyRetentionRule.Builder>... retentionRules) Specifies the rules that determine which snapshots SnapMirror retains on the destination volume, based on their SnapMirror labels.
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
Specifies the name of the ONTAP schedule that determines when SnapMirror transfers data.
- Parameters:
transferSchedule- Specifies 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
Specifies 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- Specifies 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.
-
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:
-
overrideConfiguration
CreateSnapmirrorPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateSnapmirrorPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-