Interface CreateSnapmirrorPolicyRequest.Builder

  • Method Details

    • clientRequestToken

      CreateSnapmirrorPolicyRequest.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.
    • fileSystemId

      CreateSnapmirrorPolicyRequest.Builder fileSystemId(String 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 FileSystemId or a StorageVirtualMachineId, 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 a FileSystemId or a StorageVirtualMachineId, but not both.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • storageVirtualMachineId

      CreateSnapmirrorPolicyRequest.Builder storageVirtualMachineId(String storageVirtualMachineId)

      Specifies the ID of the SVM on which to create the SnapMirror policy. You must specify either a FileSystemId or a StorageVirtualMachineId, but not both.

      Parameters:
      storageVirtualMachineId - Specifies the ID of the SVM on which to create the SnapMirror policy. You must specify either a FileSystemId or a StorageVirtualMachineId, 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

      CreateSnapmirrorPolicyRequest.Builder snapshotCopyMode(String 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 specify RetentionRules along 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 specify RetentionRules along 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 specify RetentionRules along 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 match RetentionRules, to the destination volume on a transfer. RetentionRules is 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 specify RetentionRules along 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 specify RetentionRules along 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 specify RetentionRules along 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 match RetentionRules, to the destination volume on a transfer. RetentionRules is optional.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 specify RetentionRules along 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 specify RetentionRules along 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 specify RetentionRules along 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 match RetentionRules, to the destination volume on a transfer. RetentionRules is 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 specify RetentionRules along 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 specify RetentionRules along 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 specify RetentionRules along 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 match RetentionRules, to the destination volume on a transfer. RetentionRules is optional.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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

      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 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

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

      CreateSnapmirrorPolicyRequest.Builder networkCompressionEnabled(Boolean 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 to false.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • throttleInKbps

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

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

      Parameters:
      tags - a consumer that will call methods on Tag.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.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.