@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ConversationsHistoryResponseMetadataIF"}) @Immutable public final class ConversationsHistoryResponseMetadata extends Object implements ConversationsHistoryResponseMetadataIF
ConversationsHistoryResponseMetadataIF.
Use the builder to create immutable instances:
ConversationsHistoryResponseMetadata.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ConversationsHistoryResponseMetadata.Builder
Builds instances of type
ConversationsHistoryResponseMetadata. |
| Modifier and Type | Method and Description |
|---|---|
static ConversationsHistoryResponseMetadata.Builder |
builder()
Creates a builder for
ConversationsHistoryResponseMetadata. |
static ConversationsHistoryResponseMetadata |
copyOf(ConversationsHistoryResponseMetadataIF instance)
Creates an immutable copy of a
ConversationsHistoryResponseMetadataIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ConversationsHistoryResponseMetadata that have equal attribute values. |
Optional<String> |
getNextCursor() |
int |
hashCode()
Computes a hash code from attributes:
nextCursor. |
String |
toString()
Prints the immutable value
ConversationsHistoryResponseMetadata with attribute values. |
ConversationsHistoryResponseMetadata |
withNextCursor(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
nextCursor attribute. |
ConversationsHistoryResponseMetadata |
withNextCursor(String value)
Copy the current immutable object by setting a present value for the optional
nextCursor attribute. |
public Optional<String> getNextCursor()
getNextCursor in interface ConversationsHistoryResponseMetadataIFnextCursor attributepublic final ConversationsHistoryResponseMetadata withNextCursor(@Nullable String value)
nextCursor attribute.value - The value for nextCursor, null is accepted as java.util.Optional.empty()this objectpublic final ConversationsHistoryResponseMetadata withNextCursor(Optional<String> optional)
nextCursor attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for nextCursorthis objectpublic boolean equals(@Nullable Object another)
ConversationsHistoryResponseMetadata that have equal attribute values.public int hashCode()
nextCursor.public String toString()
ConversationsHistoryResponseMetadata with attribute values.public static ConversationsHistoryResponseMetadata copyOf(ConversationsHistoryResponseMetadataIF instance)
ConversationsHistoryResponseMetadataIF 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 ConversationsHistoryResponseMetadata.Builder builder()
ConversationsHistoryResponseMetadata.Copyright © 2019. All rights reserved.