@Generated(value="software.amazon.awssdk:codegen") public final class PutSnapshotBlockRequest extends EbsRequest implements ToCopyableBuilder<PutSnapshotBlockRequest.Builder,PutSnapshotBlockRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
PutSnapshotBlockRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
Integer |
blockIndex()
The block index of the block in which to write the data.
|
static PutSnapshotBlockRequest.Builder |
builder() |
String |
checksum()
A Base64-encoded SHA256 checksum of the data.
|
ChecksumAlgorithm |
checksumAlgorithm()
The algorithm used to generate the checksum.
|
String |
checksumAlgorithmAsString()
The algorithm used to generate the checksum.
|
Integer |
dataLength()
The size of the data to write to the block, in bytes.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
progress()
The progress of the write process, as a percentage.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PutSnapshotBlockRequest.Builder> |
serializableBuilderClass() |
String |
snapshotId()
The ID of the snapshot.
|
PutSnapshotBlockRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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..
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..
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.
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.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
524288 bytes.
Valid values: 524288
public final Integer progress()
The progress of the write process, as a percentage.
public final String checksum()
A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums are supported.
public final ChecksumAlgorithm checksumAlgorithm()
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().
SHA256.ChecksumAlgorithmpublic 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().
SHA256.ChecksumAlgorithmpublic PutSnapshotBlockRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PutSnapshotBlockRequest.Builder,PutSnapshotBlockRequest>toBuilder in class EbsRequestpublic static PutSnapshotBlockRequest.Builder builder()
public static Class<? extends PutSnapshotBlockRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.