BucketList

Collection of Buckets retrieved from an S3 store.

The contents of this BucketList are guaranteed to be in the order returned by the S3 API.

Author

Elizabeth Paige Harper https://github.com/Foxcapades

Since

v0.3.0

Functions

Link copied to clipboard
open fun forEach(p0: Consumer<in S3Bucket>)
Link copied to clipboard
abstract operator fun get(index: Int): S3Bucket

Returns the S3Bucket in this BucketList at the given index.

abstract operator fun get(name: BucketName): S3Bucket?

Retrieves the bucket in this BucketList with the given name (if such a bucket exists).

Link copied to clipboard
abstract operator fun iterator(): Iterator<S3Bucket>
Link copied to clipboard
Link copied to clipboard
abstract fun stream(): Stream<S3Bucket>

Returns a stream over the contents of this BucketList.

Link copied to clipboard
abstract fun toList(): List<S3Bucket>

Copies the contents of this BucketList into a list.

Link copied to clipboard
abstract fun toMap(): Map<BucketName, S3Bucket>

Copies the contents of this BucketList into a map keyed on bucket names.

Properties

Link copied to clipboard
abstract val isEmpty: Boolean

Whether this BucketList is empty.

Link copied to clipboard
abstract val isNotEmpty: Boolean

Whether this BucketList is not empty.

Link copied to clipboard
abstract val size: Int

Count of buckets in this BucketList.