@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutSnapshotBlockRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, SignerTypeAware
NOOP
Constructor and Description |
---|
PutSnapshotBlockRequest() |
Modifier and Type | Method and Description |
---|---|
PutSnapshotBlockRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
InputStream |
getBlockData()
The data to write to the block.
|
Integer |
getBlockIndex()
The block index of the block in which to write the data.
|
String |
getChecksum()
A Base64-encoded SHA256 checksum of the data.
|
String |
getChecksumAlgorithm()
The algorithm used to generate the checksum.
|
Integer |
getDataLength()
The size of the data to write to the block, in bytes.
|
Integer |
getProgress()
The progress of the write process, as a percentage.
|
String |
getSignerType() |
String |
getSnapshotId()
The ID of the snapshot.
|
int |
hashCode() |
void |
setBlockData(InputStream blockData)
The data to write to the block.
|
void |
setBlockIndex(Integer blockIndex)
The block index of the block in which to write the data.
|
void |
setChecksum(String checksum)
A Base64-encoded SHA256 checksum of the data.
|
void |
setChecksumAlgorithm(String checksumAlgorithm)
The algorithm used to generate the checksum.
|
void |
setDataLength(Integer dataLength)
The size of the data to write to the block, in bytes.
|
void |
setProgress(Integer progress)
The progress of the write process, as a percentage.
|
void |
setSnapshotId(String snapshotId)
The ID of the snapshot.
|
String |
toString()
Returns a string representation of this object.
|
PutSnapshotBlockRequest |
withBlockData(InputStream blockData)
The data to write to the block.
|
PutSnapshotBlockRequest |
withBlockIndex(Integer blockIndex)
The block index of the block in which to write the data.
|
PutSnapshotBlockRequest |
withChecksum(String checksum)
A Base64-encoded SHA256 checksum of the data.
|
PutSnapshotBlockRequest |
withChecksumAlgorithm(ChecksumAlgorithm checksumAlgorithm)
The algorithm used to generate the checksum.
|
PutSnapshotBlockRequest |
withChecksumAlgorithm(String checksumAlgorithm)
The algorithm used to generate the checksum.
|
PutSnapshotBlockRequest |
withDataLength(Integer dataLength)
The size of the data to write to the block, in bytes.
|
PutSnapshotBlockRequest |
withProgress(Integer progress)
The progress of the write process, as a percentage.
|
PutSnapshotBlockRequest |
withSnapshotId(String snapshotId)
The ID of the snapshot.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setSnapshotId(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..
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..
public String getSnapshotId()
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 PutSnapshotBlockRequest withSnapshotId(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..
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..
public void setBlockIndex(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.
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.public Integer getBlockIndex()
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 PutSnapshotBlockRequest withBlockIndex(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.
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.public void setBlockData(InputStream blockData)
The data to write to the block.
The block data is not signed as part of the Signature Version 4 signing process. As a result, you must generate and provide a Base64-encoded SHA256 checksum for the block data using the x-amz-Checksum header. Also, you must specify the checksum algorithm using the x-amz-Checksum-Algorithm header. The checksum that you provide is part of the Signature Version 4 signing process. It is validated against a checksum generated by Amazon EBS to ensure the validity and authenticity of the data. If the checksums do not correspond, the request fails. For more information, see Using checksums with the EBS direct APIs in the Amazon Elastic Compute Cloud User Guide.
blockData
- The data to write to the block.
The block data is not signed as part of the Signature Version 4 signing process. As a result, you must generate and provide a Base64-encoded SHA256 checksum for the block data using the x-amz-Checksum header. Also, you must specify the checksum algorithm using the x-amz-Checksum-Algorithm header. The checksum that you provide is part of the Signature Version 4 signing process. It is validated against a checksum generated by Amazon EBS to ensure the validity and authenticity of the data. If the checksums do not correspond, the request fails. For more information, see Using checksums with the EBS direct APIs in the Amazon Elastic Compute Cloud User Guide.
public InputStream getBlockData()
The data to write to the block.
The block data is not signed as part of the Signature Version 4 signing process. As a result, you must generate and provide a Base64-encoded SHA256 checksum for the block data using the x-amz-Checksum header. Also, you must specify the checksum algorithm using the x-amz-Checksum-Algorithm header. The checksum that you provide is part of the Signature Version 4 signing process. It is validated against a checksum generated by Amazon EBS to ensure the validity and authenticity of the data. If the checksums do not correspond, the request fails. For more information, see Using checksums with the EBS direct APIs in the Amazon Elastic Compute Cloud User Guide.
The block data is not signed as part of the Signature Version 4 signing process. As a result, you must generate and provide a Base64-encoded SHA256 checksum for the block data using the x-amz-Checksum header. Also, you must specify the checksum algorithm using the x-amz-Checksum-Algorithm header. The checksum that you provide is part of the Signature Version 4 signing process. It is validated against a checksum generated by Amazon EBS to ensure the validity and authenticity of the data. If the checksums do not correspond, the request fails. For more information, see Using checksums with the EBS direct APIs in the Amazon Elastic Compute Cloud User Guide.
public PutSnapshotBlockRequest withBlockData(InputStream blockData)
The data to write to the block.
The block data is not signed as part of the Signature Version 4 signing process. As a result, you must generate and provide a Base64-encoded SHA256 checksum for the block data using the x-amz-Checksum header. Also, you must specify the checksum algorithm using the x-amz-Checksum-Algorithm header. The checksum that you provide is part of the Signature Version 4 signing process. It is validated against a checksum generated by Amazon EBS to ensure the validity and authenticity of the data. If the checksums do not correspond, the request fails. For more information, see Using checksums with the EBS direct APIs in the Amazon Elastic Compute Cloud User Guide.
blockData
- The data to write to the block.
The block data is not signed as part of the Signature Version 4 signing process. As a result, you must generate and provide a Base64-encoded SHA256 checksum for the block data using the x-amz-Checksum header. Also, you must specify the checksum algorithm using the x-amz-Checksum-Algorithm header. The checksum that you provide is part of the Signature Version 4 signing process. It is validated against a checksum generated by Amazon EBS to ensure the validity and authenticity of the data. If the checksums do not correspond, the request fails. For more information, see Using checksums with the EBS direct APIs in the Amazon Elastic Compute Cloud User Guide.
public void setDataLength(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
dataLength
- The size of the data to write to the block, in bytes. Currently, the only supported size is
524288
bytes.
Valid values: 524288
public Integer getDataLength()
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 PutSnapshotBlockRequest withDataLength(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
dataLength
- The size of the data to write to the block, in bytes. Currently, the only supported size is
524288
bytes.
Valid values: 524288
public void setProgress(Integer progress)
The progress of the write process, as a percentage.
progress
- The progress of the write process, as a percentage.public Integer getProgress()
The progress of the write process, as a percentage.
public PutSnapshotBlockRequest withProgress(Integer progress)
The progress of the write process, as a percentage.
progress
- The progress of the write process, as a percentage.public void setChecksum(String checksum)
A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums are supported.
checksum
- A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums are supported.public String getChecksum()
A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums are supported.
public PutSnapshotBlockRequest withChecksum(String checksum)
A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums are supported.
checksum
- A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums are supported.public void setChecksumAlgorithm(String checksumAlgorithm)
The algorithm used to generate the checksum. Currently, the only supported algorithm is SHA256
.
checksumAlgorithm
- The algorithm used to generate the checksum. Currently, the only supported algorithm is
SHA256
.ChecksumAlgorithm
public String getChecksumAlgorithm()
The algorithm used to generate the checksum. Currently, the only supported algorithm is SHA256
.
SHA256
.ChecksumAlgorithm
public PutSnapshotBlockRequest withChecksumAlgorithm(String checksumAlgorithm)
The algorithm used to generate the checksum. Currently, the only supported algorithm is SHA256
.
checksumAlgorithm
- The algorithm used to generate the checksum. Currently, the only supported algorithm is
SHA256
.ChecksumAlgorithm
public PutSnapshotBlockRequest withChecksumAlgorithm(ChecksumAlgorithm checksumAlgorithm)
The algorithm used to generate the checksum. Currently, the only supported algorithm is SHA256
.
checksumAlgorithm
- The algorithm used to generate the checksum. Currently, the only supported algorithm is
SHA256
.ChecksumAlgorithm
public String toString()
toString
in class Object
Object.toString()
public PutSnapshotBlockRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
public String getSignerType()
getSignerType
in interface SignerTypeAware