Class DeleteSnapshotReturnCode
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DeleteSnapshotReturnCode.Builder,DeleteSnapshotReturnCode>
The snapshot ID and its deletion result code.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final SnapshotReturnCodesThe result code from the snapshot deletion attempt.final StringThe result code from the snapshot deletion attempt.static Class<? extends DeleteSnapshotReturnCode.Builder>final StringThe ID of the snapshot.final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
snapshotId
The ID of the snapshot.
- Returns:
- The ID of the snapshot.
-
returnCode
The result code from the snapshot deletion attempt. Possible values:
-
success- The snapshot was successfully deleted. -
skipped- The snapshot was not deleted because it's associated with other AMIs. -
missing-permissions- The snapshot was not deleted because the role lacksDeleteSnapshotpermissions. For more information, see How Amazon EBS works with IAM. -
internal-error- The snapshot was not deleted due to a server error. -
client-error- The snapshot was not deleted due to a client configuration error.
For details about an error, check the
DeleteSnapshotevent in the CloudTrail event history. For more information, see View event history in the Amazon Web Services CloudTrail User Guide.If the service returns an enum value that is not available in the current SDK version,
returnCodewill returnSnapshotReturnCodes.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromreturnCodeAsString().- Returns:
- The result code from the snapshot deletion attempt. Possible values:
-
success- The snapshot was successfully deleted. -
skipped- The snapshot was not deleted because it's associated with other AMIs. -
missing-permissions- The snapshot was not deleted because the role lacksDeleteSnapshotpermissions. For more information, see How Amazon EBS works with IAM. -
internal-error- The snapshot was not deleted due to a server error. -
client-error- The snapshot was not deleted due to a client configuration error.
For details about an error, check the
DeleteSnapshotevent in the CloudTrail event history. For more information, see View event history in the Amazon Web Services CloudTrail User Guide. -
- See Also:
-
-
returnCodeAsString
The result code from the snapshot deletion attempt. Possible values:
-
success- The snapshot was successfully deleted. -
skipped- The snapshot was not deleted because it's associated with other AMIs. -
missing-permissions- The snapshot was not deleted because the role lacksDeleteSnapshotpermissions. For more information, see How Amazon EBS works with IAM. -
internal-error- The snapshot was not deleted due to a server error. -
client-error- The snapshot was not deleted due to a client configuration error.
For details about an error, check the
DeleteSnapshotevent in the CloudTrail event history. For more information, see View event history in the Amazon Web Services CloudTrail User Guide.If the service returns an enum value that is not available in the current SDK version,
returnCodewill returnSnapshotReturnCodes.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromreturnCodeAsString().- Returns:
- The result code from the snapshot deletion attempt. Possible values:
-
success- The snapshot was successfully deleted. -
skipped- The snapshot was not deleted because it's associated with other AMIs. -
missing-permissions- The snapshot was not deleted because the role lacksDeleteSnapshotpermissions. For more information, see How Amazon EBS works with IAM. -
internal-error- The snapshot was not deleted due to a server error. -
client-error- The snapshot was not deleted due to a client configuration error.
For details about an error, check the
DeleteSnapshotevent in the CloudTrail event history. For more information, see View event history in the Amazon Web Services CloudTrail User Guide. -
- See Also:
-
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<DeleteSnapshotReturnCode.Builder,DeleteSnapshotReturnCode>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-