Interface UpdateSnapmirrorPolicyRequest.Builder

  • Method Details

    • clientRequestToken

      UpdateSnapmirrorPolicyRequest.Builder clientRequestToken(String 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

      UpdateSnapmirrorPolicyRequest.Builder snapmirrorPolicyId(String 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

      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

      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

      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 the SnapmirrorPolicyRetentionRule.Builder avoiding the need to create one manually via SnapmirrorPolicyRetentionRule.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to retentionRules(List<SnapmirrorPolicyRetentionRule>).

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

      UpdateSnapmirrorPolicyRequest.Builder transferSchedule(String 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

      UpdateSnapmirrorPolicyRequest.Builder networkCompressionEnabled(Boolean 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

      UpdateSnapmirrorPolicyRequest.Builder throttleInKbps(Long throttleInKbps)

      Specifies the maximum bandwidth, in kilobytes per second (KBps), that SnapMirror uses to transfer data. A value of 0 means that the bandwidth is unlimited.

      Parameters:
      throttleInKbps - Specifies the maximum bandwidth, in kilobytes per second (KBps), that SnapMirror uses to transfer data. A value of 0 means 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.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.