Interface UpdateSnapmirrorPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateSnapmirrorPolicyRequest.Builder,,UpdateSnapmirrorPolicyRequest> FSxRequest.Builder,SdkBuilder<UpdateSnapmirrorPolicyRequest.Builder,,UpdateSnapmirrorPolicyRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateSnapmirrorPolicyRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientRequestToken(String clientRequestToken) Sets the value of the ClientRequestToken property for this object.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.snapmirrorPolicyId(String snapmirrorPolicyId) The ID of the SnapMirror policy that you want to update.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.
-
snapmirrorPolicyId
The ID of the SnapMirror policy that you want to update.
- Parameters:
snapmirrorPolicyId- The ID of the SnapMirror policy that you want to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retentionRules
UpdateSnapmirrorPolicyRequest.Builder retentionRules(Collection<SnapmirrorPolicyRetentionRule> retentionRules) Specifies the rules that determine which snapshots SnapMirror retains on the destination volume, based on their SnapMirror labels. The rules that you specify replace all the SnapMirror policy's existing retention rules. To keep an existing rule, include it in the list. To remove all retention rules, specify an empty list.
- Parameters:
retentionRules- Specifies the rules that determine which snapshots SnapMirror retains on the destination volume, based on their SnapMirror labels. The rules that you specify replace all the SnapMirror policy's existing retention rules. To keep an existing rule, include it in the list. To remove all retention rules, specify an empty list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retentionRules
UpdateSnapmirrorPolicyRequest.Builder retentionRules(SnapmirrorPolicyRetentionRule... retentionRules) Specifies the rules that determine which snapshots SnapMirror retains on the destination volume, based on their SnapMirror labels. The rules that you specify replace all the SnapMirror policy's existing retention rules. To keep an existing rule, include it in the list. To remove all retention rules, specify an empty list.
- Parameters:
retentionRules- Specifies the rules that determine which snapshots SnapMirror retains on the destination volume, based on their SnapMirror labels. The rules that you specify replace all the SnapMirror policy's existing retention rules. To keep an existing rule, include it in the list. To remove all retention rules, specify an empty list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retentionRules
UpdateSnapmirrorPolicyRequest.Builder retentionRules(Consumer<SnapmirrorPolicyRetentionRule.Builder>... retentionRules) Specifies the rules that determine which snapshots SnapMirror retains on the destination volume, based on their SnapMirror labels. The rules that you specify replace all the SnapMirror policy's existing retention rules. To keep an existing rule, include it in the list. To remove all retention rules, specify an empty list.
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. To remove the transfer schedule, specify an empty string.
- Parameters:
transferSchedule- Specifies the name of the ONTAP schedule that determines when SnapMirror transfers data. To remove the transfer schedule, specify an empty string.- 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.
- Parameters:
networkCompressionEnabled- Specifies whether SnapMirror compresses data when it transfers the data over the network.- 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.
-
overrideConfiguration
UpdateSnapmirrorPolicyRequest.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
UpdateSnapmirrorPolicyRequest.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.
-