@NotThreadSafe public static final class ImmutableDirectoryListing.Builder extends Object
ImmutableDirectoryListing.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
public final ImmutableDirectoryListing.Builder from(DirectoryListing instance)
DirectoryListing instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableDirectoryListing.Builder paginationCookie(String paginationCookie)
paginationCookie to paginationCookie.paginationCookie - The value for paginationCookiethis builder for chained invocationpublic final ImmutableDirectoryListing.Builder paginationCookie(Optional<String> paginationCookie)
paginationCookie to paginationCookie.paginationCookie - The value for paginationCookiethis builder for use in a chained invocationpublic final ImmutableDirectoryListing.Builder addEntry(DirectoryListingEntry element)
entry list.element - A entry elementthis builder for use in a chained invocationpublic final ImmutableDirectoryListing.Builder addEntry(DirectoryListingEntry... elements)
entry list.elements - An array of entry elementsthis builder for use in a chained invocationpublic final ImmutableDirectoryListing.Builder entry(Iterable<? extends DirectoryListingEntry> elements)
entry list.elements - An iterable of entry elementsthis builder for use in a chained invocationpublic final ImmutableDirectoryListing.Builder addAllEntry(Iterable<? extends DirectoryListingEntry> elements)
entry list.elements - An iterable of entry elementsthis builder for use in a chained invocationpublic ImmutableDirectoryListing build()
ImmutableDirectoryListing.IllegalStateException - if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.