Interface GetSnapshotBlockRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<GetSnapshotBlockRequest.Builder,,GetSnapshotBlockRequest> EbsRequest.Builder,SdkBuilder<GetSnapshotBlockRequest.Builder,,GetSnapshotBlockRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
GetSnapshotBlockRequest
-
Method Summary
Modifier and TypeMethodDescriptionblockIndex(Integer blockIndex) The block index of the block in which to read the data.blockToken(String blockToken) The block token of the block from which to get data.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.snapshotId(String snapshotId) The ID of the snapshot containing the block from which to get data.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ebs.model.EbsRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
blockIndex- The block index of the block in which to read the data. A block index is a logical index in units of512KiB 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:
- Returns a reference to this object so that method calls can be chained together.
-
blockToken
The block token of the block from which to get data. You can obtain the
BlockTokenby running theListChangedBlocksorListSnapshotBlocksoperations.- Parameters:
blockToken- The block token of the block from which to get data. You can obtain theBlockTokenby running theListChangedBlocksorListSnapshotBlocksoperations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
GetSnapshotBlockRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
GetSnapshotBlockRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-