Class PutSnapshotBlockRequest

    • Method Detail

      • snapshotId

        public final String snapshotId()

        The ID of the snapshot.

        If the specified snapshot is encrypted, you must have permission to use the KMS key that was used to encrypt the snapshot. For more information, see Using encryption in the Amazon Elastic Compute Cloud User Guide..

        Returns:
        The ID of the snapshot.

        If the specified snapshot is encrypted, you must have permission to use the KMS key that was used to encrypt the snapshot. For more information, see Using encryption in the Amazon Elastic Compute Cloud User Guide..

      • blockIndex

        public final Integer blockIndex()

        The block index of the block in which to write the data. A block index is a logical index in units of 512 KiB blocks. To identify the block index, divide the logical offset of the data in the logical volume by the block size (logical offset of data/524288). The logical offset of the data must be 512 KiB aligned.

        Returns:
        The block index of the block in which to write the data. A block index is a logical index in units of 512 KiB blocks. To identify the block index, divide the logical offset of the data in the logical volume by the block size (logical offset of data/524288). The logical offset of the data must be 512 KiB aligned.
      • dataLength

        public final Integer dataLength()

        The size of the data to write to the block, in bytes. Currently, the only supported size is 524288 bytes.

        Valid values: 524288

        Returns:
        The size of the data to write to the block, in bytes. Currently, the only supported size is 524288 bytes.

        Valid values: 524288

      • progress

        public final Integer progress()

        The progress of the write process, as a percentage.

        Returns:
        The progress of the write process, as a percentage.
      • checksum

        public final String checksum()

        A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums are supported.

        Returns:
        A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums are supported.
      • checksumAlgorithmAsString

        public final String checksumAlgorithmAsString()

        The algorithm used to generate the checksum. Currently, the only supported algorithm is SHA256.

        If the service returns an enum value that is not available in the current SDK version, checksumAlgorithm will return ChecksumAlgorithm.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from checksumAlgorithmAsString().

        Returns:
        The algorithm used to generate the checksum. Currently, the only supported algorithm is SHA256.
        See Also:
        ChecksumAlgorithm
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object