Class GetSnapshotBlockRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.ebs.model.EbsRequest
-
- software.amazon.awssdk.services.ebs.model.GetSnapshotBlockRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetSnapshotBlockRequest.Builder,GetSnapshotBlockRequest>
@Generated("software.amazon.awssdk:codegen") public final class GetSnapshotBlockRequest extends EbsRequest implements ToCopyableBuilder<GetSnapshotBlockRequest.Builder,GetSnapshotBlockRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetSnapshotBlockRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerblockIndex()The block index of the block in which to read the data.StringblockToken()The block token of the block from which to get data.static GetSnapshotBlockRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends GetSnapshotBlockRequest.Builder>serializableBuilderClass()StringsnapshotId()The ID of the snapshot containing the block from which to get data.GetSnapshotBlockRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
snapshotId
public final String snapshotId()
The ID of the snapshot containing the block from which to get data.
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 containing the block from which to get data.
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 read the data. A block index is a logical index in units of
512KiB 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 be512KiB aligned.- Returns:
- The block index of the block in which to read the data. A block index is a logical index in units of
512KiB 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 be512KiB aligned.
-
blockToken
public final String blockToken()
The block token of the block from which to get data. You can obtain the
BlockTokenby running theListChangedBlocksorListSnapshotBlocksoperations.- Returns:
- The block token of the block from which to get data. You can obtain the
BlockTokenby running theListChangedBlocksorListSnapshotBlocksoperations.
-
toBuilder
public GetSnapshotBlockRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetSnapshotBlockRequest.Builder,GetSnapshotBlockRequest>- Specified by:
toBuilderin classEbsRequest
-
builder
public static GetSnapshotBlockRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetSnapshotBlockRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-