Class ConversationsHistoryResponseMetadata.Builder
java.lang.Object
com.hubspot.slack.client.models.response.conversations.ConversationsHistoryResponseMetadata.Builder
- Enclosing class:
ConversationsHistoryResponseMetadata
@Generated(from="ConversationsHistoryResponseMetadataIF",
generator="Immutables")
@NotThreadSafe
public static final class ConversationsHistoryResponseMetadata.Builder
extends Object
Builds instances of type
ConversationsHistoryResponseMetadata.
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.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newConversationsHistoryResponseMetadata.from(ConversationsHistoryResponseMetadataIF instance) Fill a builder with attribute values from the providedConversationsHistoryResponseMetadataIFinstance.setNextCursor(String nextCursor) Initializes the optional valuenextCursorto nextCursor.setNextCursor(Optional<String> nextCursor) Initializes the optional valuenextCursorto nextCursor.
-
Method Details
-
from
public final ConversationsHistoryResponseMetadata.Builder from(ConversationsHistoryResponseMetadataIF instance) Fill a builder with attribute values from the providedConversationsHistoryResponseMetadataIFinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setNextCursor
public final ConversationsHistoryResponseMetadata.Builder setNextCursor(@Nullable String nextCursor) Initializes the optional valuenextCursorto nextCursor.- Parameters:
nextCursor- The value for nextCursor,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setNextCursor
public final ConversationsHistoryResponseMetadata.Builder setNextCursor(Optional<String> nextCursor) Initializes the optional valuenextCursorto nextCursor.- Parameters:
nextCursor- The value for nextCursor- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newConversationsHistoryResponseMetadata.- Returns:
- An immutable instance of ConversationsHistoryResponseMetadata
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-