Interface DeleteSnapshotReturnCode.Builder

    • Method Detail

      • snapshotId

        DeleteSnapshotReturnCode.Builder snapshotId​(String snapshotId)

        The ID of the snapshot.

        Parameters:
        snapshotId - The ID of the snapshot.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • returnCode

        DeleteSnapshotReturnCode.Builder returnCode​(String 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.

        Parameters:
        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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        SnapshotReturnCodes, SnapshotReturnCodes
      • returnCode

        DeleteSnapshotReturnCode.Builder returnCode​(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.

        Parameters:
        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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        SnapshotReturnCodes, SnapshotReturnCodes