Class DeleteSnapshotReturnCode

java.lang.Object
software.amazon.awssdk.services.ec2.model.DeleteSnapshotReturnCode
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<DeleteSnapshotReturnCode.Builder,DeleteSnapshotReturnCode>

@Generated("software.amazon.awssdk:codegen") public final class DeleteSnapshotReturnCode extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DeleteSnapshotReturnCode.Builder,DeleteSnapshotReturnCode>

The snapshot ID and its deletion result code.

See Also:
  • Method Details

    • snapshotId

      public final String snapshotId()

      The ID of the snapshot.

      Returns:
      The ID of the snapshot.
    • returnCode

      public final SnapshotReturnCodes 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 lacks DeleteSnapshot permissions. 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 DeleteSnapshot event 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, returnCode will return SnapshotReturnCodes.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from returnCodeAsString().

      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 lacks DeleteSnapshot permissions. 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 DeleteSnapshot event in the CloudTrail event history. For more information, see View event history in the Amazon Web Services CloudTrail User Guide.

      See Also:
    • returnCodeAsString

      public final String 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 lacks DeleteSnapshot permissions. 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 DeleteSnapshot event 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, returnCode will return SnapshotReturnCodes.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from returnCodeAsString().

      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 lacks DeleteSnapshot permissions. 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 DeleteSnapshot event 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:
      toBuilder in interface ToCopyableBuilder<DeleteSnapshotReturnCode.Builder,DeleteSnapshotReturnCode>
    • builder

      public static DeleteSnapshotReturnCode.Builder builder()
    • serializableBuilderClass

      public static Class<? extends DeleteSnapshotReturnCode.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo