Class ConversationsHistoryResponseMetadata
java.lang.Object
com.hubspot.slack.client.models.response.conversations.ConversationsHistoryResponseMetadata
- All Implemented Interfaces:
ConversationsHistoryResponseMetadataIF
@Generated(from="ConversationsHistoryResponseMetadataIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ConversationsHistoryResponseMetadata
extends Object
implements ConversationsHistoryResponseMetadataIF
Immutable implementation of
ConversationsHistoryResponseMetadataIF.
Use the builder to create immutable instances:
ConversationsHistoryResponseMetadata.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeConversationsHistoryResponseMetadata. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forConversationsHistoryResponseMetadata.copyOf(ConversationsHistoryResponseMetadataIF instance) Creates an immutable copy of aConversationsHistoryResponseMetadataIFvalue.booleanThis instance is equal to all instances ofConversationsHistoryResponseMetadatathat have equal attribute values.inthashCode()Computes a hash code from attributes:nextCursor.toString()Prints the immutable valueConversationsHistoryResponseMetadatawith attribute values.withNextCursor(String value) Copy the current immutable object by setting a present value for the optionalnextCursorattribute.withNextCursor(Optional<String> optional) Copy the current immutable object by setting an optional value for thenextCursorattribute.
-
Method Details
-
getNextCursor
- Specified by:
getNextCursorin interfaceConversationsHistoryResponseMetadataIF- Returns:
- The value of the
nextCursorattribute
-
withNextCursor
Copy the current immutable object by setting a present value for the optionalnextCursorattribute.- Parameters:
value- The value for nextCursor,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withNextCursor
Copy the current immutable object by setting an optional value for thenextCursorattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for nextCursor- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofConversationsHistoryResponseMetadatathat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:nextCursor. -
toString
Prints the immutable valueConversationsHistoryResponseMetadatawith attribute values. -
copyOf
public static ConversationsHistoryResponseMetadata copyOf(ConversationsHistoryResponseMetadataIF instance) Creates an immutable copy of aConversationsHistoryResponseMetadataIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable ConversationsHistoryResponseMetadata instance
-
builder
Creates a builder forConversationsHistoryResponseMetadata.ConversationsHistoryResponseMetadata.builder() .setNextCursor(Optional<String>) // optionalnextCursor.build();- Returns:
- A new ConversationsHistoryResponseMetadata builder
-