Class CompleteSnapshotRequest
- 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.CompleteSnapshotRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CompleteSnapshotRequest.Builder,CompleteSnapshotRequest>
@Generated("software.amazon.awssdk:codegen") public final class CompleteSnapshotRequest extends EbsRequest implements ToCopyableBuilder<CompleteSnapshotRequest.Builder,CompleteSnapshotRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCompleteSnapshotRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CompleteSnapshotRequest.Builderbuilder()IntegerchangedBlocksCount()The number of blocks that were written to the snapshot.Stringchecksum()An aggregated Base-64 SHA256 checksum based on the checksums of each written block.ChecksumAggregationMethodchecksumAggregationMethod()The aggregation method used to generate the checksum.StringchecksumAggregationMethodAsString()The aggregation method used to generate the checksum.ChecksumAlgorithmchecksumAlgorithm()The algorithm used to generate the checksum.StringchecksumAlgorithmAsString()The algorithm used to generate the checksum.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends CompleteSnapshotRequest.Builder>serializableBuilderClass()StringsnapshotId()The ID of the snapshot.CompleteSnapshotRequest.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.
- Returns:
- The ID of the snapshot.
-
changedBlocksCount
public final Integer changedBlocksCount()
The number of blocks that were written to the snapshot.
- Returns:
- The number of blocks that were written to the snapshot.
-
checksum
public final String checksum()
An aggregated Base-64 SHA256 checksum based on the checksums of each written block.
To generate the aggregated checksum using the linear aggregation method, arrange the checksums for each written block in ascending order of their block index, concatenate them to form a single string, and then generate the checksum on the entire string using the SHA256 algorithm.
- Returns:
- An aggregated Base-64 SHA256 checksum based on the checksums of each written block.
To generate the aggregated checksum using the linear aggregation method, arrange the checksums for each written block in ascending order of their block index, concatenate them to form a single string, and then generate the checksum on the entire string using the SHA256 algorithm.
-
checksumAlgorithm
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,
checksumAlgorithmwill returnChecksumAlgorithm.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromchecksumAlgorithmAsString().- Returns:
- The algorithm used to generate the checksum. Currently, the only supported algorithm is
SHA256. - See Also:
ChecksumAlgorithm
-
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,
checksumAlgorithmwill returnChecksumAlgorithm.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromchecksumAlgorithmAsString().- Returns:
- The algorithm used to generate the checksum. Currently, the only supported algorithm is
SHA256. - See Also:
ChecksumAlgorithm
-
checksumAggregationMethod
public final ChecksumAggregationMethod checksumAggregationMethod()
The aggregation method used to generate the checksum. Currently, the only supported aggregation method is
LINEAR.If the service returns an enum value that is not available in the current SDK version,
checksumAggregationMethodwill returnChecksumAggregationMethod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromchecksumAggregationMethodAsString().- Returns:
- The aggregation method used to generate the checksum. Currently, the only supported aggregation method is
LINEAR. - See Also:
ChecksumAggregationMethod
-
checksumAggregationMethodAsString
public final String checksumAggregationMethodAsString()
The aggregation method used to generate the checksum. Currently, the only supported aggregation method is
LINEAR.If the service returns an enum value that is not available in the current SDK version,
checksumAggregationMethodwill returnChecksumAggregationMethod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromchecksumAggregationMethodAsString().- Returns:
- The aggregation method used to generate the checksum. Currently, the only supported aggregation method is
LINEAR. - See Also:
ChecksumAggregationMethod
-
toBuilder
public CompleteSnapshotRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CompleteSnapshotRequest.Builder,CompleteSnapshotRequest>- Specified by:
toBuilderin classEbsRequest
-
builder
public static CompleteSnapshotRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CompleteSnapshotRequest.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
-
-