Class ChannelsListParams.Builder

java.lang.Object
com.hubspot.slack.client.methods.params.channels.ChannelsListParams.Builder
Enclosing class:
ChannelsListParams

@Generated(from="ChannelsListParamsIF", generator="Immutables") @NotThreadSafe public static final class ChannelsListParams.Builder extends Object
Builds instances of type ChannelsListParams. 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 Details

    • from

      public final ChannelsListParams.Builder from(BaseChannelsFilter instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.methods.params.channels.BaseChannelsFilter instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final ChannelsListParams.Builder from(ChannelsListParamsIF instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.methods.params.channels.ChannelsListParamsIF instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setShouldExcludeArchived

      public final ChannelsListParams.Builder setShouldExcludeArchived(@Nullable Boolean shouldExcludeArchived)
      Initializes the optional value shouldExcludeArchived to shouldExcludeArchived.
      Parameters:
      shouldExcludeArchived - The value for shouldExcludeArchived, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setShouldExcludeArchived

      public final ChannelsListParams.Builder setShouldExcludeArchived(Optional<Boolean> shouldExcludeArchived)
      Initializes the optional value shouldExcludeArchived to shouldExcludeArchived.
      Parameters:
      shouldExcludeArchived - The value for shouldExcludeArchived
      Returns:
      this builder for use in a chained invocation
    • setShouldExcludeMembers

      public final ChannelsListParams.Builder setShouldExcludeMembers(boolean shouldExcludeMembers)
      Initializes the value for the shouldExcludeMembers attribute.

      If not set, this attribute will have a default value as returned by the initializer of shouldExcludeMembers.

      Parameters:
      shouldExcludeMembers - The value for shouldExcludeMembers
      Returns:
      this builder for use in a chained invocation
    • setCursor

      public final ChannelsListParams.Builder setCursor(@Nullable String cursor)
      Initializes the optional value cursor to cursor.
      Parameters:
      cursor - The value for cursor, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setCursor

      public final ChannelsListParams.Builder setCursor(Optional<String> cursor)
      Initializes the optional value cursor to cursor.
      Parameters:
      cursor - The value for cursor
      Returns:
      this builder for use in a chained invocation
    • setLimit

      public final ChannelsListParams.Builder setLimit(@Nullable Integer limit)
      Initializes the optional value limit to limit.
      Parameters:
      limit - The value for limit, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setLimit

      public final ChannelsListParams.Builder setLimit(Optional<Integer> limit)
      Initializes the optional value limit to limit.
      Parameters:
      limit - The value for limit
      Returns:
      this builder for use in a chained invocation
    • build

      public ChannelsListParams build()
      Builds a new ChannelsListParams.
      Returns:
      An immutable instance of ChannelsListParams
      Throws:
      com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missing