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().

  • Method Details

    • getNextCursor

      public Optional<String> getNextCursor()
      Specified by:
      getNextCursor in interface ConversationsHistoryResponseMetadataIF
      Returns:
      The value of the nextCursor attribute
    • withNextCursor

      public final ConversationsHistoryResponseMetadata withNextCursor(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional nextCursor attribute.
      Parameters:
      value - The value for nextCursor, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withNextCursor

      public final ConversationsHistoryResponseMetadata withNextCursor(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the nextCursor attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for nextCursor
      Returns:
      A modified copy or this if not changed
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ConversationsHistoryResponseMetadata that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: nextCursor.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value ConversationsHistoryResponseMetadata with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      Creates an immutable copy of a ConversationsHistoryResponseMetadataIF value. 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 for ConversationsHistoryResponseMetadata.
       ConversationsHistoryResponseMetadata.builder()
          .setNextCursor(Optional<String>) // optional nextCursor
          .build();
       
      Returns:
      A new ConversationsHistoryResponseMetadata builder