Class DeleteSnapshotReturnCode

    • Method Detail

      • 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:
        SnapshotReturnCodes
      • 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:
        SnapshotReturnCodes
      • hashCode

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

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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)