@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableDirectoryListing extends Object implements DirectoryListing
DirectoryListing.
Use the builder to create immutable instances:
ImmutableDirectoryListing.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableDirectoryListing.Builder
Builds instances of type
ImmutableDirectoryListing. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableDirectoryListing.Builder |
builder()
Creates a builder for
ImmutableDirectoryListing. |
static ImmutableDirectoryListing |
copyOf(DirectoryListing instance)
Creates an immutable copy of a
DirectoryListing value. |
com.google.common.collect.ImmutableList<DirectoryListingEntry> |
entry()
The list of entries.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableDirectoryListing that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
paginationCookie, entry. |
Optional<String> |
paginationCookie()
Pagination cookie can be used in subsequent requests to retrieve more
results.
|
String |
toString()
Prints the immutable value
DirectoryListing with attribute values. |
ImmutableDirectoryListing |
withEntry(DirectoryListingEntry... elements)
Copy the current immutable object with elements that replace the content of
entry. |
ImmutableDirectoryListing |
withEntry(Iterable<? extends DirectoryListingEntry> elements)
Copy the current immutable object with elements that replace the content of
entry. |
ImmutableDirectoryListing |
withPaginationCookie(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
paginationCookie attribute. |
ImmutableDirectoryListing |
withPaginationCookie(String value)
Copy the current immutable object by setting a present value for the optional
paginationCookie attribute. |
public Optional<String> paginationCookie()
paginationCookie in interface DirectoryListingpublic com.google.common.collect.ImmutableList<DirectoryListingEntry> entry()
entry in interface DirectoryListingpublic final ImmutableDirectoryListing withPaginationCookie(String value)
paginationCookie attribute.value - The value for paginationCookiethis objectpublic final ImmutableDirectoryListing withPaginationCookie(Optional<String> optional)
paginationCookie attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for paginationCookiethis objectpublic final ImmutableDirectoryListing withEntry(DirectoryListingEntry... elements)
entry.elements - The elements to setthis objectpublic final ImmutableDirectoryListing withEntry(Iterable<? extends DirectoryListingEntry> elements)
entry.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of entry elements to setthis objectpublic boolean equals(@Nullable Object another)
ImmutableDirectoryListing that have equal attribute values.public int hashCode()
paginationCookie, entry.public String toString()
DirectoryListing with attribute values.public static ImmutableDirectoryListing copyOf(DirectoryListing instance)
DirectoryListing value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableDirectoryListing.Builder builder()
ImmutableDirectoryListing.
ImmutableDirectoryListing.builder()
.paginationCookie(String) // optional paginationCookie
.addEntry|addAllEntry(com.iland.cohesity.iaas.backups.recovery.model.DirectoryListingEntry) // entry elements
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.