Interface InstanceSpecification.Builder

    • Method Detail

      • instanceId

        InstanceSpecification.Builder instanceId​(String instanceId)

        The instance to specify which volumes should be snapshotted.

        Parameters:
        instanceId - The instance to specify which volumes should be snapshotted.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • excludeBootVolume

        InstanceSpecification.Builder excludeBootVolume​(Boolean excludeBootVolume)

        Excludes the root volume from being snapshotted.

        Parameters:
        excludeBootVolume - Excludes the root volume from being snapshotted.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • excludeDataVolumeIds

        InstanceSpecification.Builder excludeDataVolumeIds​(Collection<String> excludeDataVolumeIds)

        The IDs of the data (non-root) volumes to exclude from the multi-volume snapshot set. If you specify the ID of the root volume, the request fails. To exclude the root volume, use ExcludeBootVolume.

        You can specify up to 40 volume IDs per request.

        Parameters:
        excludeDataVolumeIds - The IDs of the data (non-root) volumes to exclude from the multi-volume snapshot set. If you specify the ID of the root volume, the request fails. To exclude the root volume, use ExcludeBootVolume.

        You can specify up to 40 volume IDs per request.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • excludeDataVolumeIds

        InstanceSpecification.Builder excludeDataVolumeIds​(String... excludeDataVolumeIds)

        The IDs of the data (non-root) volumes to exclude from the multi-volume snapshot set. If you specify the ID of the root volume, the request fails. To exclude the root volume, use ExcludeBootVolume.

        You can specify up to 40 volume IDs per request.

        Parameters:
        excludeDataVolumeIds - The IDs of the data (non-root) volumes to exclude from the multi-volume snapshot set. If you specify the ID of the root volume, the request fails. To exclude the root volume, use ExcludeBootVolume.

        You can specify up to 40 volume IDs per request.

        Returns:
        Returns a reference to this object so that method calls can be chained together.