exists

abstract fun exists(): Boolean
abstract fun exists(action: ObjectExistsParams.() -> Unit): Boolean
abstract fun exists(params: ObjectExistsParams): Boolean

Tests whether this object still exists.

Return

true if this object still exists, otherwise false.

Throws

The bucket in which this object resided no longer exists.

If an implementation specific exception is thrown. The implementation specific exception will be set to the thrown exception's 'cause' value.